StackResourceDriftSummary

class oci.resource_manager.models.StackResourceDriftSummary(**kwargs)

Bases: object

Drift status details for the indicated resource and stack. Includes actual and expected (defined) properties.

Attributes

RESOURCE_DRIFT_STATUS_DELETED A constant which can be used with the resource_drift_status property of a StackResourceDriftSummary.
RESOURCE_DRIFT_STATUS_IN_SYNC A constant which can be used with the resource_drift_status property of a StackResourceDriftSummary.
RESOURCE_DRIFT_STATUS_MODIFIED A constant which can be used with the resource_drift_status property of a StackResourceDriftSummary.
RESOURCE_DRIFT_STATUS_NOT_CHECKED A constant which can be used with the resource_drift_status property of a StackResourceDriftSummary.
actual_properties Gets the actual_properties of this StackResourceDriftSummary.
compartment_id Gets the compartment_id of this StackResourceDriftSummary.
expected_properties Gets the expected_properties of this StackResourceDriftSummary.
resource_drift_status Gets the resource_drift_status of this StackResourceDriftSummary.
resource_id Gets the resource_id of this StackResourceDriftSummary.
resource_name Gets the resource_name of this StackResourceDriftSummary.
resource_type Gets the resource_type of this StackResourceDriftSummary.
stack_id Gets the stack_id of this StackResourceDriftSummary.
time_drift_checked Gets the time_drift_checked of this StackResourceDriftSummary.

Methods

__init__(**kwargs) Initializes a new StackResourceDriftSummary object with values from keyword arguments.
RESOURCE_DRIFT_STATUS_DELETED = 'DELETED'

A constant which can be used with the resource_drift_status property of a StackResourceDriftSummary. This constant has a value of “DELETED”

RESOURCE_DRIFT_STATUS_IN_SYNC = 'IN_SYNC'

A constant which can be used with the resource_drift_status property of a StackResourceDriftSummary. This constant has a value of “IN_SYNC”

RESOURCE_DRIFT_STATUS_MODIFIED = 'MODIFIED'

A constant which can be used with the resource_drift_status property of a StackResourceDriftSummary. This constant has a value of “MODIFIED”

RESOURCE_DRIFT_STATUS_NOT_CHECKED = 'NOT_CHECKED'

A constant which can be used with the resource_drift_status property of a StackResourceDriftSummary. This constant has a value of “NOT_CHECKED”

__init__(**kwargs)

Initializes a new StackResourceDriftSummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • stack_id (str) – The value to assign to the stack_id property of this StackResourceDriftSummary.
  • compartment_id (str) – The value to assign to the compartment_id property of this StackResourceDriftSummary.
  • resource_name (str) – The value to assign to the resource_name property of this StackResourceDriftSummary.
  • resource_id (str) – The value to assign to the resource_id property of this StackResourceDriftSummary.
  • resource_type (str) – The value to assign to the resource_type property of this StackResourceDriftSummary.
  • resource_drift_status (str) – The value to assign to the resource_drift_status property of this StackResourceDriftSummary. Allowed values for this property are: “NOT_CHECKED”, “IN_SYNC”, “MODIFIED”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • actual_properties (dict(str, str)) – The value to assign to the actual_properties property of this StackResourceDriftSummary.
  • expected_properties (dict(str, str)) – The value to assign to the expected_properties property of this StackResourceDriftSummary.
  • time_drift_checked (datetime) – The value to assign to the time_drift_checked property of this StackResourceDriftSummary.
actual_properties

Gets the actual_properties of this StackResourceDriftSummary. 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”}

Returns:The actual_properties of this StackResourceDriftSummary.
Return type:dict(str, str)
compartment_id

Gets the compartment_id of this StackResourceDriftSummary. The OCID of the compartment where the stack is located.

Returns:The compartment_id of this StackResourceDriftSummary.
Return type:str
expected_properties

Gets the expected_properties of this StackResourceDriftSummary. 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”}

Returns:The expected_properties of this StackResourceDriftSummary.
Return type:dict(str, str)
resource_drift_status

Gets the resource_drift_status of this StackResourceDriftSummary. 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.

Allowed values for this property are: “NOT_CHECKED”, “IN_SYNC”, “MODIFIED”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The resource_drift_status of this StackResourceDriftSummary.
Return type:str
resource_id

Gets the resource_id of this StackResourceDriftSummary. The OCID of the resource provisioned by Terraform.

Returns:The resource_id of this StackResourceDriftSummary.
Return type:str
resource_name

Gets the resource_name of this StackResourceDriftSummary. The name of the resource as defined in the stack.

Returns:The resource_name of this StackResourceDriftSummary.
Return type:str
resource_type

Gets the resource_type of this StackResourceDriftSummary. The provider resource type. Must be supported by the Oracle Cloud Infrastructure provider. Example: oci_core_instance

Returns:The resource_type of this StackResourceDriftSummary.
Return type:str
stack_id

Gets the stack_id of this StackResourceDriftSummary. The OCID of the stack.

Returns:The stack_id of this StackResourceDriftSummary.
Return type:str
time_drift_checked

Gets the time_drift_checked of this StackResourceDriftSummary. The date and time when the drift detection was executed. Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z

Returns:The time_drift_checked of this StackResourceDriftSummary.
Return type:datetime