Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue

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

Overview

Definition of Enumvalue (to be used by enum fields)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue

Returns a new instance of GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue.



708
709
710
# File 'lib/google/apis/dataplex_v1/classes.rb', line 708

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

Instance Attribute Details

#deprecatedString

Optional. Optional deprecation message to be set if an enum value needs to be deprecated. Corresponds to the JSON property deprecated

Returns:

  • (String)


695
696
697
# File 'lib/google/apis/dataplex_v1/classes.rb', line 695

def deprecated
  @deprecated
end

#indexFixnum

Required. Index for the enum. Cannot be modified. Corresponds to the JSON property index

Returns:

  • (Fixnum)


700
701
702
# File 'lib/google/apis/dataplex_v1/classes.rb', line 700

def index
  @index
end

#nameString

Required. Name of the enumvalue. This is the actual value that the aspect will contain. Corresponds to the JSON property name

Returns:

  • (String)


706
707
708
# File 'lib/google/apis/dataplex_v1/classes.rb', line 706

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



713
714
715
716
717
# File 'lib/google/apis/dataplex_v1/classes.rb', line 713

def update!(**args)
  @deprecated = args[:deprecated] if args.key?(:deprecated)
  @index = args[:index] if args.key?(:index)
  @name = args[:name] if args.key?(:name)
end