Class: Google::Apis::ConnectorsV2::Reference
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV2::Reference
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/connectors_v2/classes.rb,
lib/google/apis/connectors_v2/representations.rb,
lib/google/apis/connectors_v2/representations.rb
Instance Attribute Summary collapse
-
#name ⇒ String
Name of the reference field.
-
#type ⇒ String
Name of reference entity type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Reference
constructor
A new instance of Reference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Reference
Returns a new instance of Reference.
451 452 453 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 451 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of the reference field.
Corresponds to the JSON property name
444 445 446 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 444 def name @name end |
#type ⇒ String
Name of reference entity type.
Corresponds to the JSON property type
449 450 451 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 449 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
456 457 458 459 |
# File 'lib/google/apis/connectors_v2/classes.rb', line 456 def update!(**args) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end |