TenancyAttachment

class oci.governance_rules_control_plane.models.TenancyAttachment(**kwargs)

Bases: object

Tenancy attachment associates a tenancy to a governance rule via an inclusion criterion.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a TenancyAttachment.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a TenancyAttachment.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a TenancyAttachment.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a TenancyAttachment.
LIFECYCLE_STATE_NEEDS_ATTENTION A constant which can be used with the lifecycle_state property of a TenancyAttachment.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a TenancyAttachment.
compartment_id [Required] Gets the compartment_id of this TenancyAttachment.
governance_rule_id [Required] Gets the governance_rule_id of this TenancyAttachment.
id [Required] Gets the id of this TenancyAttachment.
lifecycle_state [Required] Gets the lifecycle_state of this TenancyAttachment.
tenancy_id [Required] Gets the tenancy_id of this TenancyAttachment.
time_created [Required] Gets the time_created of this TenancyAttachment.
time_last_attempted Gets the time_last_attempted of this TenancyAttachment.
time_updated [Required] Gets the time_updated of this TenancyAttachment.

Methods

__init__(**kwargs) Initializes a new TenancyAttachment object with values from keyword arguments.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a TenancyAttachment. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a TenancyAttachment. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a TenancyAttachment. This constant has a value of “DELETING”

LIFECYCLE_STATE_NEEDS_ATTENTION = 'NEEDS_ATTENTION'

A constant which can be used with the lifecycle_state property of a TenancyAttachment. This constant has a value of “NEEDS_ATTENTION”

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a TenancyAttachment. This constant has a value of “UPDATING”

__init__(**kwargs)

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

Parameters:
  • id (str) – The value to assign to the id property of this TenancyAttachment.
  • compartment_id (str) – The value to assign to the compartment_id property of this TenancyAttachment.
  • governance_rule_id (str) – The value to assign to the governance_rule_id property of this TenancyAttachment.
  • tenancy_id (str) – The value to assign to the tenancy_id property of this TenancyAttachment.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this TenancyAttachment. Allowed values for this property are: “CREATING”, “ACTIVE”, “UPDATING”, “NEEDS_ATTENTION”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_created (datetime) – The value to assign to the time_created property of this TenancyAttachment.
  • time_updated (datetime) – The value to assign to the time_updated property of this TenancyAttachment.
  • time_last_attempted (datetime) – The value to assign to the time_last_attempted property of this TenancyAttachment.
compartment_id

[Required] Gets the compartment_id of this TenancyAttachment. The Oracle ID (OCID) of the root compartment containing the tenancy attachment.

Returns:The compartment_id of this TenancyAttachment.
Return type:str
governance_rule_id

[Required] Gets the governance_rule_id of this TenancyAttachment. The Oracle ID (OCID) of the governance rule. Every tenancy attachment is associated with a governance rule.

Returns:The governance_rule_id of this TenancyAttachment.
Return type:str
id

[Required] Gets the id of this TenancyAttachment. The Oracle ID (OCID) of the tenancy attachment.

Returns:The id of this TenancyAttachment.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this TenancyAttachment. The current state of the tenancy attachment.

Allowed values for this property are: “CREATING”, “ACTIVE”, “UPDATING”, “NEEDS_ATTENTION”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this TenancyAttachment.
Return type:str
tenancy_id

[Required] Gets the tenancy_id of this TenancyAttachment. The Oracle ID (OCID) of the tenancy to which the governance rule is attached.

Returns:The tenancy_id of this TenancyAttachment.
Return type:str
time_created

[Required] Gets the time_created of this TenancyAttachment. Date and time the tenancy attachment was created. An RFC3339 formatted datetime string.

Example: 2016-08-25T21:10:29.600Z

Returns:The time_created of this TenancyAttachment.
Return type:datetime
time_last_attempted

Gets the time_last_attempted of this TenancyAttachment. Date and time the tenancy attachment was last attempted. An RFC3339 formatted datetime string.

Example: 2016-08-25T21:10:29.600Z

Returns:The time_last_attempted of this TenancyAttachment.
Return type:datetime
time_updated

[Required] Gets the time_updated of this TenancyAttachment. Date and time the tenancy attachment was updated. An RFC3339 formatted datetime string.

Example: 2016-08-25T21:10:29.600Z

Returns:The time_updated of this TenancyAttachment.
Return type:datetime