Class: Google::Apis::ConnectorsV2::Reference

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Reference

Returns a new instance of Reference.



734
735
736
# File 'lib/google/apis/connectors_v2/classes.rb', line 734

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

Instance Attribute Details

#nameString

Name of the reference field. Corresponds to the JSON property name

Returns:

  • (String)


727
728
729
# File 'lib/google/apis/connectors_v2/classes.rb', line 727

def name
  @name
end

#typeString

Name of reference entity type. Corresponds to the JSON property type

Returns:

  • (String)


732
733
734
# File 'lib/google/apis/connectors_v2/classes.rb', line 732

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



739
740
741
742
# File 'lib/google/apis/connectors_v2/classes.rb', line 739

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