class Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1TagTemplateField
The template for an individual field within a tag template.
Attributes
The description for this field. Defaults to an empty string. Corresponds to the JSON property `description` @return [String]
The display name for this field. Defaults to an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can't start or end with spaces. The maximum length is 200 characters. Corresponds to the JSON property `displayName` @return [String]
If true, this field is required. Defaults to false. Corresponds to the JSON property `isRequired` @return [Boolean]
If true, this field is required. Defaults to false. Corresponds to the JSON property `isRequired` @return [Boolean]
Output only. The resource name of the tag template field in URL format. Example: `projects/`PROJECT_ID`/locations/`LOCATION`/tagTemplates/` TAG_TEMPLATE`/fields/`FIELD“ Note: The tag template field itself might not be stored in the location specified in its name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 64 characters. Corresponds to the JSON property `name` @return [String]
The order of this field with respect to other fields in this tag template. 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. Corresponds to the JSON property `order` @return [Fixnum]
Required. The type of value this tag field can contain. Corresponds to the JSON property `type` @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1FieldType]
Public Class Methods
# File lib/google/apis/datacatalog_v1/classes.rb, line 1925 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/datacatalog_v1/classes.rb, line 1930 def update!(**args) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @is_required = args[:is_required] if args.key?(:is_required) @name = args[:name] if args.key?(:name) @order = args[:order] if args.key?(:order) @type = args[:type] if args.key?(:type) end