Class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate
- Inherits:
-
Object
- Object
- Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplate
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/datacatalog_v1beta1/classes.rb,
generated/google/apis/datacatalog_v1beta1/representations.rb,
generated/google/apis/datacatalog_v1beta1/representations.rb
Overview
A tag template defines a tag, which can have one or more typed fields. The template is used to create and attach the tag to GCP resources. Tag template roles provide permissions to create, edit, and use the template (see, for example, the TagTemplate User role, which includes permission to use the tag template to tag resources.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The display name for this template.
-
#fields ⇒ Hash<String,Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField>
Required.
-
#name ⇒ String
The resource name of the tag template in URL format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDatacatalogV1beta1TagTemplate
constructor
A new instance of GoogleCloudDatacatalogV1beta1TagTemplate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDatacatalogV1beta1TagTemplate
Returns a new instance of GoogleCloudDatacatalogV1beta1TagTemplate.
1461 1462 1463 |
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1461 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The display name for this template. Defaults to an empty string.
Corresponds to the JSON property displayName
1440 1441 1442 |
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1440 def display_name @display_name end |
#fields ⇒ Hash<String,Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField>
Required. Map of tag template field IDs to the settings for the field.
This map is an exhaustive list of the allowed fields. This map must contain
at least one field and at most 500 fields.
The keys to this map are tag template field IDs. Field IDs can contain
letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
Field IDs must be at least 1 character long and at most
64 characters long. Field IDs must start with a letter or underscore.
Corresponds to the JSON property fields
1451 1452 1453 |
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1451 def fields @fields end |
#name ⇒ String
The resource name of the tag template in URL format. Example:
- projects/
project_id
/locations/location
/tagTemplates/tag_template_id
Note that this TagTemplate and its child resources may not actually be stored in the location in this name. Corresponds to the JSON propertyname
1459 1460 1461 |
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1459 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1466 1467 1468 1469 1470 |
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1466 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @fields = args[:fields] if args.key?(:fields) @name = args[:name] if args.key?(:name) end |