Class: Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SerializedTaxonomy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datacatalog_v1/classes.rb,
lib/google/apis/datacatalog_v1/representations.rb,
lib/google/apis/datacatalog_v1/representations.rb

Overview

A nested protocol buffer that represents a taxonomy and the hierarchy of its policy tags. Used for taxonomy replacement, import, and export.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatacatalogV1SerializedTaxonomy

Returns a new instance of GoogleCloudDatacatalogV1SerializedTaxonomy.



2578
2579
2580
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2578

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

Instance Attribute Details

#activated_policy_typesArray<String>

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

Returns:

  • (Array<String>)


2559
2560
2561
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2559

def activated_policy_types
  @activated_policy_types
end

#descriptionString

Description of the serialized taxonomy. At most 2000 bytes when encoded in UTF-

  1. If not set, defaults to an empty description. Corresponds to the JSON property description

Returns:

  • (String)


2565
2566
2567
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2565

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


2571
2572
2573
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2571

def display_name
  @display_name
end

#policy_tagsArray<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SerializedPolicyTag>

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



2576
2577
2578
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2576

def policy_tags
  @policy_tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2583
2584
2585
2586
2587
2588
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2583

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