CreateTagDefaultDetails¶
-
class
oci.identity.models.
CreateTagDefaultDetails
(**kwargs)¶ Bases:
object
CreateTagDefaultDetails model.
Methods
__init__
(**kwargs)Initializes a new CreateTagDefaultDetails object with values from keyword arguments. Attributes
compartment_id
[Required] Gets the compartment_id of this CreateTagDefaultDetails. is_required
Gets the is_required of this CreateTagDefaultDetails. locks
Gets the locks of this CreateTagDefaultDetails. tag_definition_id
[Required] Gets the tag_definition_id of this CreateTagDefaultDetails. value
[Required] Gets the value of this CreateTagDefaultDetails. -
__init__
(**kwargs)¶ Initializes a new CreateTagDefaultDetails 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 CreateTagDefaultDetails.
- tag_definition_id (str) – The value to assign to the tag_definition_id property of this CreateTagDefaultDetails.
- value (str) – The value to assign to the value property of this CreateTagDefaultDetails.
- is_required (bool) – The value to assign to the is_required property of this CreateTagDefaultDetails.
- locks (list[oci.identity.models.AddLockDetails]) – The value to assign to the locks property of this CreateTagDefaultDetails.
-
compartment_id
¶ [Required] Gets the compartment_id of this CreateTagDefaultDetails. The OCID of the compartment. The tag default will be applied to all new resources created in this compartment.
Returns: The compartment_id of this CreateTagDefaultDetails. Return type: str
-
is_required
¶ Gets the is_required of this CreateTagDefaultDetails. If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt). If no value is set, resource creation is blocked.
- If the isRequired flag is set to “true”, the value is set during resource creation.
- If the isRequired flag is set to “false”, the value you enter is set during resource creation.
Example: false
Returns: The is_required of this CreateTagDefaultDetails. Return type: bool
-
locks
¶ Gets the locks of this CreateTagDefaultDetails. Locks associated with this resource.
Returns: The locks of this CreateTagDefaultDetails. Return type: list[oci.identity.models.AddLockDetails]
-
tag_definition_id
¶ [Required] Gets the tag_definition_id of this CreateTagDefaultDetails. The OCID of the tag definition. The tag default will always assign a default value for this tag definition.
Returns: The tag_definition_id of this CreateTagDefaultDetails. Return type: str
-
value
¶ [Required] Gets the value of this CreateTagDefaultDetails. The default value for the tag definition. This will be applied to all new resources created in the compartment.
Returns: The value of this CreateTagDefaultDetails. Return type: str
-