Class: Google::Apis::ConnectorsV2::Action

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

Overview

Action message contains metadata information about a single action present in the external system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Action

Returns a new instance of Action.



45
46
47
# File 'lib/google/apis/connectors_v2/classes.rb', line 45

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

Instance Attribute Details

#input_parametersArray<Google::Apis::ConnectorsV2::InputParameter>

List containing input parameter metadata. Corresponds to the JSON property inputParameters



33
34
35
# File 'lib/google/apis/connectors_v2/classes.rb', line 33

def input_parameters
  @input_parameters
end

#nameString

Name of the action. Corresponds to the JSON property name

Returns:

  • (String)


38
39
40
# File 'lib/google/apis/connectors_v2/classes.rb', line 38

def name
  @name
end

#result_metadataArray<Google::Apis::ConnectorsV2::ResultMetadata>

List containing the metadata of result fields. Corresponds to the JSON property resultMetadata



43
44
45
# File 'lib/google/apis/connectors_v2/classes.rb', line 43

def 
  @result_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



50
51
52
53
54
# File 'lib/google/apis/connectors_v2/classes.rb', line 50

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