Tags

These dataclasses are used in the SDK to represent API requests and responses for services in the databricks.sdk.service.tags module.

class databricks.sdk.service.tags.ListTagAssignmentsResponse(next_page_token: 'Optional[str]' = None, tag_assignments: 'Optional[List[TagAssignment]]' = None)
next_page_token: str | None = None

Pagination token to request the next page of tag assignments

tag_assignments: List[TagAssignment] | None = None
as_dict() dict

Serializes the ListTagAssignmentsResponse into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the ListTagAssignmentsResponse into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) ListTagAssignmentsResponse

Deserializes the ListTagAssignmentsResponse from a dictionary.

class databricks.sdk.service.tags.ListTagPoliciesResponse(next_page_token: 'Optional[str]' = None, tag_policies: 'Optional[List[TagPolicy]]' = None)
next_page_token: str | None = None
tag_policies: List[TagPolicy] | None = None
as_dict() dict

Serializes the ListTagPoliciesResponse into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the ListTagPoliciesResponse into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) ListTagPoliciesResponse

Deserializes the ListTagPoliciesResponse from a dictionary.

class databricks.sdk.service.tags.TagAssignment(entity_type: 'str', entity_id: 'str', tag_key: 'str', tag_value: 'Optional[str]' = None)
entity_type: str

The type of entity to which the tag is assigned. Allowed values are apps, dashboards, geniespaces, notebooks

entity_id: str

The identifier of the entity to which the tag is assigned. For apps, the entity_id is the app name

tag_key: str

The key of the tag. The characters , . : / - = and leading/trailing spaces are not allowed

tag_value: str | None = None

The value of the tag

as_dict() dict

Serializes the TagAssignment into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the TagAssignment into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) TagAssignment

Deserializes the TagAssignment from a dictionary.

class databricks.sdk.service.tags.TagPolicy(tag_key: 'str', create_time: 'Optional[str]' = None, description: 'Optional[str]' = None, id: 'Optional[str]' = None, update_time: 'Optional[str]' = None, values: 'Optional[List[Value]]' = None)
tag_key: str
create_time: str | None = None

Timestamp when the tag policy was created

description: str | None = None
id: str | None = None
update_time: str | None = None

Timestamp when the tag policy was last updated

values: List[Value] | None = None
as_dict() dict

Serializes the TagPolicy into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the TagPolicy into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) TagPolicy

Deserializes the TagPolicy from a dictionary.

class databricks.sdk.service.tags.Value(name: 'str')
name: str
as_dict() dict

Serializes the Value into a dictionary suitable for use as a JSON request body.

as_shallow_dict() dict

Serializes the Value into a shallow dictionary of its immediate attributes.

classmethod from_dict(d: Dict[str, Any]) Value

Deserializes the Value from a dictionary.