-
Notifications
You must be signed in to change notification settings - Fork 80
/
stack_resource_drift_summary.go
90 lines (72 loc) · 4.83 KB
/
stack_resource_drift_summary.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
// Code generated. DO NOT EDIT.
// Resource Manager API
//
// API for the Resource Manager service.
// Use this API to install, configure, and manage resources via the "infrastructure-as-code" model.
// For more information, see
// Overview of Resource Manager (https://docs.cloud.oracle.com/iaas/Content/ResourceManager/Concepts/resourcemanager.htm).
//
package resourcemanager
import (
"github.com/oracle/oci-go-sdk/v43/common"
)
// StackResourceDriftSummary Drift status details for the indicated resource and stack. Includes actual and expected (defined) properties.
type StackResourceDriftSummary struct {
// The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the stack.
StackId *string `mandatory:"false" json:"stackId"`
// The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where the stack is located.
CompartmentId *string `mandatory:"false" json:"compartmentId"`
// The name of the resource as defined in the stack.
ResourceName *string `mandatory:"false" json:"resourceName"`
// The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource provisioned by Terraform.
ResourceId *string `mandatory:"false" json:"resourceId"`
// The provider resource type.
// Must be supported by the Oracle Cloud Infrastructure provider (https://www.terraform.io/docs/providers/oci/index.html).
// Example: `oci_core_instance`
ResourceType *string `mandatory:"false" json:"resourceType"`
// The drift status of the resource.
// A drift status value indicates whether or not the actual state of the resource differs from the expected (defined) state for that resource.
ResourceDriftStatus StackResourceDriftSummaryResourceDriftStatusEnum `mandatory:"false" json:"resourceDriftStatus,omitempty"`
// Actual values of properties that the stack defines for the indicated resource.
// Each property and value is provided as a key-value pair.
// The following example shows actual values for the resource's display name and server type:
// `{"display_name": "tf-default-dhcp-options-new", "options.0.server_type": "VcnLocalPlusInternet"}`
ActualProperties map[string]string `mandatory:"false" json:"actualProperties"`
// Expected values of properties that the stack defines for the indicated resource.
// Each property and value is provided as a key-value pair.
// The following example shows expected (defined) values for the resource's display name and server type:
// `{"display_name": "tf-default-dhcp-options", "options.0.server_type": "VcnLocalPlusInternet"}`
ExpectedProperties map[string]string `mandatory:"false" json:"expectedProperties"`
// The date and time when the drift detection was executed.
// Format is defined by RFC3339.
// Example: `2020-01-25T21:10:29.600Z`
TimeDriftChecked *common.SDKTime `mandatory:"false" json:"timeDriftChecked"`
}
func (m StackResourceDriftSummary) String() string {
return common.PointerString(m)
}
// StackResourceDriftSummaryResourceDriftStatusEnum Enum with underlying type: string
type StackResourceDriftSummaryResourceDriftStatusEnum string
// Set of constants representing the allowable values for StackResourceDriftSummaryResourceDriftStatusEnum
const (
StackResourceDriftSummaryResourceDriftStatusNotChecked StackResourceDriftSummaryResourceDriftStatusEnum = "NOT_CHECKED"
StackResourceDriftSummaryResourceDriftStatusInSync StackResourceDriftSummaryResourceDriftStatusEnum = "IN_SYNC"
StackResourceDriftSummaryResourceDriftStatusModified StackResourceDriftSummaryResourceDriftStatusEnum = "MODIFIED"
StackResourceDriftSummaryResourceDriftStatusDeleted StackResourceDriftSummaryResourceDriftStatusEnum = "DELETED"
)
var mappingStackResourceDriftSummaryResourceDriftStatus = map[string]StackResourceDriftSummaryResourceDriftStatusEnum{
"NOT_CHECKED": StackResourceDriftSummaryResourceDriftStatusNotChecked,
"IN_SYNC": StackResourceDriftSummaryResourceDriftStatusInSync,
"MODIFIED": StackResourceDriftSummaryResourceDriftStatusModified,
"DELETED": StackResourceDriftSummaryResourceDriftStatusDeleted,
}
// GetStackResourceDriftSummaryResourceDriftStatusEnumValues Enumerates the set of values for StackResourceDriftSummaryResourceDriftStatusEnum
func GetStackResourceDriftSummaryResourceDriftStatusEnumValues() []StackResourceDriftSummaryResourceDriftStatusEnum {
values := make([]StackResourceDriftSummaryResourceDriftStatusEnum, 0)
for _, v := range mappingStackResourceDriftSummaryResourceDriftStatus {
values = append(values, v)
}
return values
}