CreateTagDetails

class oci.identity.models.CreateTagDetails(**kwargs)

Bases: object

CreateTagDetails model.

__init__(**kwargs)

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

Parameters:
  • name (str) -- The value to assign to the name property of this CreateTagDetails.
  • description (str) -- The value to assign to the description property of this CreateTagDetails.
  • freeform_tags (dict(str, str)) -- The value to assign to the freeform_tags property of this CreateTagDetails.
  • defined_tags (dict(str, dict(str, object))) -- The value to assign to the defined_tags property of this CreateTagDetails.
  • is_cost_tracking (bool) -- The value to assign to the is_cost_tracking property of this CreateTagDetails.
  • validator (BaseTagDefinitionValidator) -- The value to assign to the validator property of this CreateTagDetails.
defined_tags

Gets the defined_tags of this CreateTagDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations": {"CostCenter": "42"}}

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

[Required] Gets the description of this CreateTagDetails. The description you assign to the tag during creation.

Returns:The description of this CreateTagDetails.
Return type:str
freeform_tags

Gets the freeform_tags of this CreateTagDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

Returns:The freeform_tags of this CreateTagDetails.
Return type:dict(str, str)
is_cost_tracking

Gets the is_cost_tracking of this CreateTagDetails. Indicates whether the tag is enabled for cost tracking.

Returns:The is_cost_tracking of this CreateTagDetails.
Return type:bool
name

[Required] Gets the name of this CreateTagDetails. The name you assign to the tag during creation. This is the tag key definition. The name must be unique within the tag namespace and cannot be changed.

Returns:The name of this CreateTagDetails.
Return type:str
validator

Gets the validator of this CreateTagDetails. Additional validation rule for values specified for the tag definition.

If no validator is defined for a tag definition, then any (valid) value will be accepted.

The default value for validator is an empty map (no additional validation).

Returns:The validator of this CreateTagDetails.
Return type:BaseTagDefinitionValidator