Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue
- Inherits:
-
Object
- Object
- Google::Apis::DataplexV1::GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue
- 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 for enum fields.
Instance Attribute Summary collapse
-
#deprecated ⇒ String
Optional.
-
#index ⇒ Fixnum
Required.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue
constructor
A new instance of GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue
Returns a new instance of GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue.
1124 1125 1126 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1124 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deprecated ⇒ String
Optional. You can set this message if you need to deprecate an enum value.
Corresponds to the JSON property deprecated
1111 1112 1113 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1111 def deprecated @deprecated end |
#index ⇒ Fixnum
Required. Index for the enum value. It can't be modified.
Corresponds to the JSON property index
1116 1117 1118 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1116 def index @index end |
#name ⇒ String
Required. Name of the enumvalue. This is the actual value that the aspect can
contain.
Corresponds to the JSON property name
1122 1123 1124 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1122 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1129 1130 1131 1132 1133 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1129 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 |