Resource: Tag
Tags contain custom metadata and are attached to Data Catalog resources. Tags conform with the specification of their tag template.
See Data Catalog IAM for information on the permissions needed to create or view tags.
JSON representation |
---|
{ "name": string, "template": string, "templateDisplayName": string, "fields": { string: { object ( |
Fields | |
---|---|
name |
Identifier. The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name. |
template |
Required. The resource name of the tag template this tag uses. Example:
This field cannot be modified after creation. |
templateDisplayName |
Output only. The display name of the tag template. |
fields |
Required. Maps the ID of a tag field to its value and additional information about that field. Tag template defines valid field IDs. A tag must have at least 1 field and at most 500 fields. |
Union field Deleting the scope from the parent resource deletes all tags attached to that scope. These fields cannot be updated after creation. |
|
column |
Resources like entry can have schemas associated with them. This scope allows you to attach tags to an individual column based on that schema. To attach a tag to a nested column, separate column names with a dot ( |
TagField
Contains the value and additional information on a field within a Tag
.
JSON representation |
---|
{ "displayName": string, "order": integer, // Union field |
Fields | |
---|---|
displayName |
Output only. The display name of this field. |
order |
Output only. The order of this field with respect to other fields in this tag. Can be set by For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order, and field orders within a tag don't have to be sequential. |
Union field kind . Required. The value of this field. kind can be only one of the following: |
|
doubleValue |
The value of a tag field with a double type. |
stringValue |
The value of a tag field with a string type. The maximum length is 2000 UTF-8 characters. |
boolValue |
The value of a tag field with a boolean type. |
timestampValue |
The value of a tag field with a timestamp type. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
enumValue |
The value of a tag field with an enum type. This value must be one of the allowed values listed in this enum. |
richtextValue |
The value of a tag field with a rich text type. The maximum length is 10 MiB as this value holds HTML descriptions including encoded images. The maximum length of the text without images is 100 KiB. |
EnumValue
An enum value.
JSON representation |
---|
{ "displayName": string } |
Fields | |
---|---|
displayName |
The display name of the enum value. |
Methods |
|
---|---|
|
Creates a tag and assigns it to:
|
|
Deletes a tag. |
|
Lists tags assigned to an Entry . |
|
Updates an existing tag. |
|
ReconcileTags creates or updates a list of tags on the entry. |