models_v2.tag module

class models_v2.tag.Tag(name=None, namespace=None, id=None, tenant_id=None, description=None, created_time_usecs=None, last_updated_time_usecs=None, marked_for_deletion=None, ui_color=None, ui_path_elements=None)[source]

Bases: object

Implementation of the ‘Tag.’ model.

Tag details

Attributes:

id (string): Specifies unique id of the Tag. name (string): Name of the Tag. Name has to be unique under

Namespace.

namespace (string): Namespace of the Tag. This is used to filter tags

based on application or usecase. For example all tags related to vcenter can be put under one namespace or different departments could have their own namespaces e.g. finance/tag1 or operations/tag2 etc.

tenant_id (string): Tenant Id to whom the Tag belongs. description (string): Description of the Tag. created_time_usecs (int): Specifies the timestamp in microseconds

since the epoch when this Tag was created.

last_updated_time_usecs (int): Specifies the timestamp in microseconds

since the epoch when this Tag was last updated.

marked_for_deletion (bool): If true, Tag is marked for deletion. ui_color (string): Color of the tag in UI. ui_path_elements (list of string): Path of the tag for UI nesting

purposes.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.