TagDefault¶
-
class
oci.governance_rules_control_plane.models.
TagDefault
(**kwargs)¶ Bases:
object
Tag defaults let you specify a default tag (tagnamespace.tag=”value”) to apply to all resource types in a specified compartment. The tag default is applied at the time the resource is created. Resources that exist in the compartment before you create the tag default are not tagged.
Methods
__init__
(**kwargs)Initializes a new TagDefault object with values from keyword arguments. Attributes
is_required
[Required] Gets the is_required of this TagDefault. tag_name
[Required] Gets the tag_name of this TagDefault. value
[Required] Gets the value of this TagDefault. -
__init__
(**kwargs)¶ Initializes a new TagDefault object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - tag_name (str) – The value to assign to the tag_name property of this TagDefault.
- value (str) – The value to assign to the value property of this TagDefault.
- is_required (bool) – The value to assign to the is_required property of this TagDefault.
-
is_required
¶ [Required] Gets the is_required of this TagDefault. 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 default). 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 TagDefault. Return type: bool
-
tag_name
¶ [Required] Gets the tag_name of this TagDefault. The name of the tag. The tag default will always assign a default value for this tag name.
Returns: The tag_name of this TagDefault. Return type: str
-
value
¶ [Required] Gets the value of this TagDefault. The default value for the tag name. This will be applied to all new resources created in the compartment.
Returns: The value of this TagDefault. Return type: str
-