EnforcedGovernanceRule

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

Bases: object

Represents the governance rule shown to the child which is a subset of governance rule resource in parent tenancy.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a EnforcedGovernanceRule.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a EnforcedGovernanceRule.
TYPE_ALLOWED_REGIONS A constant which can be used with the type property of a EnforcedGovernanceRule.
TYPE_QUOTA A constant which can be used with the type property of a EnforcedGovernanceRule.
TYPE_TAG A constant which can be used with the type property of a EnforcedGovernanceRule.
compartment_id [Required] Gets the compartment_id of this EnforcedGovernanceRule.
governance_rule_display_name [Required] Gets the governance_rule_display_name of this EnforcedGovernanceRule.
id [Required] Gets the id of this EnforcedGovernanceRule.
lifecycle_state [Required] Gets the lifecycle_state of this EnforcedGovernanceRule.
template [Required] Gets the template of this EnforcedGovernanceRule.
time_created [Required] Gets the time_created of this EnforcedGovernanceRule.
time_updated [Required] Gets the time_updated of this EnforcedGovernanceRule.
type [Required] Gets the type of this EnforcedGovernanceRule.

Methods

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

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

TYPE_ALLOWED_REGIONS = 'ALLOWED_REGIONS'

A constant which can be used with the type property of a EnforcedGovernanceRule. This constant has a value of “ALLOWED_REGIONS”

TYPE_QUOTA = 'QUOTA'

A constant which can be used with the type property of a EnforcedGovernanceRule. This constant has a value of “QUOTA”

TYPE_TAG = 'TAG'

A constant which can be used with the type property of a EnforcedGovernanceRule. This constant has a value of “TAG”

__init__(**kwargs)

Initializes a new EnforcedGovernanceRule 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 EnforcedGovernanceRule.
  • compartment_id (str) – The value to assign to the compartment_id property of this EnforcedGovernanceRule.
  • governance_rule_display_name (str) – The value to assign to the governance_rule_display_name property of this EnforcedGovernanceRule.
  • type (str) – The value to assign to the type property of this EnforcedGovernanceRule. Allowed values for this property are: “QUOTA”, “TAG”, “ALLOWED_REGIONS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • template (oci.governance_rules_control_plane.models.Template) – The value to assign to the template property of this EnforcedGovernanceRule.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this EnforcedGovernanceRule. Allowed values for this property are: “ACTIVE”, “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 EnforcedGovernanceRule.
  • time_updated (datetime) – The value to assign to the time_updated property of this EnforcedGovernanceRule.
compartment_id

[Required] Gets the compartment_id of this EnforcedGovernanceRule. The Oracle ID (OCID) of the child’s root compartment to which the governance rule is attached.

Returns:The compartment_id of this EnforcedGovernanceRule.
Return type:str
governance_rule_display_name

[Required] Gets the governance_rule_display_name of this EnforcedGovernanceRule. Display name of the governance rule.

Returns:The governance_rule_display_name of this EnforcedGovernanceRule.
Return type:str
id

[Required] Gets the id of this EnforcedGovernanceRule. The Oracle ID (OCID) of the enforced governance rule.

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

[Required] Gets the lifecycle_state of this EnforcedGovernanceRule. The current state of the governance rule.

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

Returns:The lifecycle_state of this EnforcedGovernanceRule.
Return type:str
template

[Required] Gets the template of this EnforcedGovernanceRule.

Returns:The template of this EnforcedGovernanceRule.
Return type:oci.governance_rules_control_plane.models.Template
time_created

[Required] Gets the time_created of this EnforcedGovernanceRule. Date and time the governance rule was created. An RFC3339 formatted datetime string.

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

Returns:The time_created of this EnforcedGovernanceRule.
Return type:datetime
time_updated

[Required] Gets the time_updated of this EnforcedGovernanceRule. Date and time the governance rule was updated. An RFC3339 formatted datetime string.

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

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

[Required] Gets the type of this EnforcedGovernanceRule. Type of the governance rule, can be one of QUOTA, TAG, ALLOWED_REGIONS.

Example: QUOTA

Allowed values for this property are: “QUOTA”, “TAG”, “ALLOWED_REGIONS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The type of this EnforcedGovernanceRule.
Return type:str