class Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1PolicyTag
Denotes one policy tag in a taxonomy, for example, SSN. Policy
tags can be defined in a hierarchy. For example: “` + Geolocation + LatLong + City + ZipCode “` Where the “Geolocation” policy tag contains three children.
Attributes
Description of this policy tag. If not set, defaults to empty. The description must contain only Unicode characters, tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes long when encoded in UTF-8. Corresponds to the JSON property `description` @return [String]
Required. User-defined name of this policy tag. The name can't start or end with spaces and must be unique within the parent taxonomy, contain only Unicode letters, numbers, underscores, dashes and spaces, and be at most 200 bytes long when encoded in UTF-8. Corresponds to the JSON property `displayName` @return [String]
Output only. Resource name of this policy tag in the URL format. The policy tag manager generates unique taxonomy IDs and policy tag IDs. Corresponds to the JSON property `name` @return [String]
Resource name of this policy tag's parent policy tag. If empty, this is a top level tag. If not set, defaults to an empty string. For example, for the “ LatLong” policy tag in the example above, this field contains the resource name of the “Geolocation” policy tag, and, for “Geolocation”, this field is empty. Corresponds to the JSON property `parentPolicyTag` @return [String]
Public Class Methods
# File lib/google/apis/datacatalog_v1/classes.rb, line 1124 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/datacatalog_v1/classes.rb, line 1129 def update!(**args) @child_policy_tags = args[:child_policy_tags] if args.key?(:child_policy_tags) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @parent_policy_tag = args[:parent_policy_tag] if args.key?(:parent_policy_tag) end