CreateGovernanceRuleDetails

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

Bases: object

Request object for CreateGovernanceRule operation.

Attributes

CREATION_OPTION_CLONE A constant which can be used with the creation_option property of a CreateGovernanceRuleDetails.
CREATION_OPTION_TEMPLATE A constant which can be used with the creation_option property of a CreateGovernanceRuleDetails.
TYPE_ALLOWED_REGIONS A constant which can be used with the type property of a CreateGovernanceRuleDetails.
TYPE_QUOTA A constant which can be used with the type property of a CreateGovernanceRuleDetails.
TYPE_TAG A constant which can be used with the type property of a CreateGovernanceRuleDetails.
compartment_id [Required] Gets the compartment_id of this CreateGovernanceRuleDetails.
creation_option [Required] Gets the creation_option of this CreateGovernanceRuleDetails.
defined_tags Gets the defined_tags of this CreateGovernanceRuleDetails.
description Gets the description of this CreateGovernanceRuleDetails.
display_name [Required] Gets the display_name of this CreateGovernanceRuleDetails.
freeform_tags Gets the freeform_tags of this CreateGovernanceRuleDetails.
related_resource_id Gets the related_resource_id of this CreateGovernanceRuleDetails.
template [Required] Gets the template of this CreateGovernanceRuleDetails.
type [Required] Gets the type of this CreateGovernanceRuleDetails.

Methods

__init__(**kwargs) Initializes a new CreateGovernanceRuleDetails object with values from keyword arguments.
CREATION_OPTION_CLONE = 'CLONE'

A constant which can be used with the creation_option property of a CreateGovernanceRuleDetails. This constant has a value of “CLONE”

CREATION_OPTION_TEMPLATE = 'TEMPLATE'

A constant which can be used with the creation_option property of a CreateGovernanceRuleDetails. This constant has a value of “TEMPLATE”

TYPE_ALLOWED_REGIONS = 'ALLOWED_REGIONS'

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

TYPE_QUOTA = 'QUOTA'

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

TYPE_TAG = 'TAG'

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

__init__(**kwargs)

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

Parameters:
  • compartment_id (str) – The value to assign to the compartment_id property of this CreateGovernanceRuleDetails.
  • display_name (str) – The value to assign to the display_name property of this CreateGovernanceRuleDetails.
  • description (str) – The value to assign to the description property of this CreateGovernanceRuleDetails.
  • type (str) – The value to assign to the type property of this CreateGovernanceRuleDetails. Allowed values for this property are: “QUOTA”, “TAG”, “ALLOWED_REGIONS”
  • creation_option (str) – The value to assign to the creation_option property of this CreateGovernanceRuleDetails. Allowed values for this property are: “TEMPLATE”, “CLONE”
  • template (oci.governance_rules_control_plane.models.Template) – The value to assign to the template property of this CreateGovernanceRuleDetails.
  • related_resource_id (str) – The value to assign to the related_resource_id property of this CreateGovernanceRuleDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateGovernanceRuleDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateGovernanceRuleDetails.
compartment_id

[Required] Gets the compartment_id of this CreateGovernanceRuleDetails. The Oracle ID (OCID) of the root compartment containing the governance rule.

Returns:The compartment_id of this CreateGovernanceRuleDetails.
Return type:str
creation_option

[Required] Gets the creation_option of this CreateGovernanceRuleDetails. The type of option used to create the governance rule, could be one of TEMPLATE or CLONE.

Example: TEMPLATE

Allowed values for this property are: “TEMPLATE”, “CLONE”

Returns:The creation_option of this CreateGovernanceRuleDetails.
Return type:str
defined_tags

Gets the defined_tags of this CreateGovernanceRuleDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns:The defined_tags of this CreateGovernanceRuleDetails.
Return type:dict(str, dict(str, object))
description

Gets the description of this CreateGovernanceRuleDetails. Description of the governance rule.

Returns:The description of this CreateGovernanceRuleDetails.
Return type:str
display_name

[Required] Gets the display_name of this CreateGovernanceRuleDetails. Display name of the governance rule.

Returns:The display_name of this CreateGovernanceRuleDetails.
Return type:str
freeform_tags

Gets the freeform_tags of this CreateGovernanceRuleDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}

Returns:The freeform_tags of this CreateGovernanceRuleDetails.
Return type:dict(str, str)
related_resource_id

Gets the related_resource_id of this CreateGovernanceRuleDetails. The Oracle ID (OCID) of the resource, which was used as a template to create this governance rule.

Returns:The related_resource_id of this CreateGovernanceRuleDetails.
Return type:str
template

[Required] Gets the template of this CreateGovernanceRuleDetails.

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

[Required] Gets the type of this CreateGovernanceRuleDetails. 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”

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