Class: Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1GraphSpecGraphElementTableLabelAndProperties

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

The label and its properties. Each label is associated with a set of properties.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatacatalogV1GraphSpecGraphElementTableLabelAndProperties

Returns a new instance of GoogleCloudDatacatalogV1GraphSpecGraphElementTableLabelAndProperties.



1700
1701
1702
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 1700

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

Instance Attribute Details

#labelString

Required. The name of the label. Corresponds to the JSON property label

Returns:

  • (String)


1693
1694
1695
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 1693

def label
  @label
end

#propertiesArray<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1GraphSpecGraphElementTableProperty>

Optional. The properties associated with the label. Corresponds to the JSON property properties



1698
1699
1700
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 1698

def properties
  @properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1705
1706
1707
1708
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 1705

def update!(**args)
  @label = args[:label] if args.key?(:label)
  @properties = args[:properties] if args.key?(:properties)
end