Class PolicyTag (1.2.0)

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

Denotes one policy tag in a taxonomy (e.g. ssn). Policy tags can be defined in a hierarchy. For example, consider the following hierarchy:

+ Geolocation
+ LatLong
+ City
+ ZipCode

Policy tag "Geolocation" contains 3 child policy tags: "LatLong", "City", and "ZipCode".

Inheritance

Object > PolicyTag

Namespace

Google.Cloud.DataCatalog.V1

Assembly

Google.Cloud.DataCatalog.V1.dll

Constructors

PolicyTag()

public PolicyTag()

PolicyTag(PolicyTag)

public PolicyTag(PolicyTag other)
Parameter
NameDescription
otherPolicyTag

Properties

ChildPolicyTags

public RepeatedField<string> ChildPolicyTags { get; }

Output only. Resource names of child policy tags of this policy tag.

Property Value
TypeDescription
RepeatedField<String>

Description

public string Description { get; set; }

Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description.

Property Value
TypeDescription
String

DisplayName

public string DisplayName { get; set; }

Required. User-defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.

Property Value
TypeDescription
String

Name

public string Name { get; set; }

Output only. Resource name of this policy tag in format: "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policy_tag_id}". Both taxonomy_ids and policy_tag_ids are unique and generated by Policy Tag Manager.

Property Value
TypeDescription
String

ParentPolicyTag

public string ParentPolicyTag { get; set; }

Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string.

Property Value
TypeDescription
String

PolicyTagName

public PolicyTagName PolicyTagName { get; set; }

PolicyTagName-typed view over the Name resource name property.

Property Value
TypeDescription
PolicyTagName