Class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SerializedTaxonomy

Inherits:
Object
  • Object
show all
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

Message capturing a taxonomy and its policy tag hierarchy as a nested proto. Used for taxonomy import/export and mutation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatacatalogV1beta1SerializedTaxonomy

Returns a new instance of GoogleCloudDatacatalogV1beta1SerializedTaxonomy.



1211
1212
1213
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1211

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#activated_policy_typesArray<String>

A list of policy types that are activated for a taxonomy. Corresponds to the JSON property activatedPolicyTypes

Returns:

  • (Array<String>)


1192
1193
1194
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1192

def activated_policy_types
  @activated_policy_types
end

#descriptionString

Description of the serialized taxonomy. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description. Corresponds to the JSON property description

Returns:

  • (String)


1199
1200
1201
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1199

def description
  @description
end

#display_nameString

Required. Display name of the taxonomy. Max 200 bytes when encoded in UTF-8. Corresponds to the JSON property displayName

Returns:

  • (String)


1204
1205
1206
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1204

def display_name
  @display_name
end

#policy_tagsArray<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SerializedPolicyTag>

Top level policy tags associated with the taxonomy if any. Corresponds to the JSON property policyTags



1209
1210
1211
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1209

def policy_tags
  @policy_tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1216
1217
1218
1219
1220
1221
# File 'generated/google/apis/datacatalog_v1beta1/classes.rb', line 1216

def update!(**args)
  @activated_policy_types = args[:activated_policy_types] if args.key?(:activated_policy_types)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @policy_tags = args[:policy_tags] if args.key?(:policy_tags)
end