Class TagTemplate (1.2.0)

public sealed class TagTemplate : IMessage<TagTemplate>, IEquatable<TagTemplate>, IDeepCloneable<TagTemplate>, IBufferMessage, IMessage

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.

Inheritance

Object > TagTemplate

Namespace

Google.Cloud.DataCatalog.V1

Assembly

Google.Cloud.DataCatalog.V1.dll

Constructors

TagTemplate()

public TagTemplate()

TagTemplate(TagTemplate)

public TagTemplate(TagTemplate other)
Parameter
NameDescription
otherTagTemplate

Properties

DisplayName

public string DisplayName { get; set; }

Display name for this template. 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.

Property Value
TypeDescription
String

Fields

public MapField<string, TagTemplateField> Fields { get; }

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.

Property Value
TypeDescription
MapField<String, TagTemplateField>

Name

public string Name { get; set; }

The resource name of the tag template in URL format. Example:

projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}

Note: The tag template itself and its child resources might not be stored in the location specified in its name.

Property Value
TypeDescription
String

TagTemplateName

public TagTemplateName TagTemplateName { get; set; }

TagTemplateName-typed view over the Name resource name property.

Property Value
TypeDescription
TagTemplateName