class Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1Tag

Tags contain custom metadata and are attached to Data Catalog resources. Tags conform with the specification of their tag template. See [Data Catalog IAM]( cloud.google.com/data-catalog/docs/concepts/iam) for information on the permissions needed to create or view tags.

Attributes

column[RW]

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 (`.`). Example: ` column.nested_column`. Corresponds to the JSON property `column` @return [String]

fields[RW]

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. Corresponds to the JSON property `fields` @return [Hash<String,Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1TagField>]

name[RW]

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. Corresponds to the JSON property `name` @return [String]

template[RW]

Required. The resource name of the tag template this tag uses. Example: ` projects/`PROJECT_ID`/locations/`LOCATION`/tagTemplates/`TAG_TEMPLATE_ID“ This field cannot be modified after creation. Corresponds to the JSON property `template` @return [String]

template_display_name[RW]

Output only. The display name of the tag template. Corresponds to the JSON property `templateDisplayName` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datacatalog_v1/classes.rb, line 1708
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datacatalog_v1/classes.rb, line 1713
def update!(**args)
  @column = args[:column] if args.key?(:column)
  @fields = args[:fields] if args.key?(:fields)
  @name = args[:name] if args.key?(:name)
  @template = args[:template] if args.key?(:template)
  @template_display_name = args[:template_display_name] if args.key?(:template_display_name)
end