Class: Google::Apis::ConnectorsV1::EnumOption

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

Overview

EnumOption definition

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnumOption

Returns a new instance of EnumOption.



1870
1871
1872
# File 'lib/google/apis/connectors_v1/classes.rb', line 1870

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

Instance Attribute Details

#display_nameString

Display name of the option. Corresponds to the JSON property displayName

Returns:

  • (String)


1863
1864
1865
# File 'lib/google/apis/connectors_v1/classes.rb', line 1863

def display_name
  @display_name
end

#idString

Id of the option. Corresponds to the JSON property id

Returns:

  • (String)


1868
1869
1870
# File 'lib/google/apis/connectors_v1/classes.rb', line 1868

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1875
1876
1877
1878
# File 'lib/google/apis/connectors_v1/classes.rb', line 1875

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