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.



97
98
99
# File 'lib/google/apis/connectors_v2/classes.rb', line 97

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

Instance Attribute Details

#descriptionString

Brief Description of action Corresponds to the JSON property description

Returns:

  • (String)


65
66
67
# File 'lib/google/apis/connectors_v2/classes.rb', line 65

def description
  @description
end

#display_nameString

Display Name of action to be shown on client side Corresponds to the JSON property displayName

Returns:

  • (String)


70
71
72
# File 'lib/google/apis/connectors_v2/classes.rb', line 70

def display_name
  @display_name
end

#input_json_schemaGoogle::Apis::ConnectorsV2::JsonSchema

JsonSchema representation of schema metadata Corresponds to the JSON property inputJsonSchema



75
76
77
# File 'lib/google/apis/connectors_v2/classes.rb', line 75

def input_json_schema
  @input_json_schema
end

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

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



80
81
82
# File 'lib/google/apis/connectors_v2/classes.rb', line 80

def input_parameters
  @input_parameters
end

#nameString

Name of the action. Corresponds to the JSON property name

Returns:

  • (String)


85
86
87
# File 'lib/google/apis/connectors_v2/classes.rb', line 85

def name
  @name
end

#result_json_schemaGoogle::Apis::ConnectorsV2::JsonSchema

JsonSchema representation of schema metadata Corresponds to the JSON property resultJsonSchema



90
91
92
# File 'lib/google/apis/connectors_v2/classes.rb', line 90

def result_json_schema
  @result_json_schema
end

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

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



95
96
97
# File 'lib/google/apis/connectors_v2/classes.rb', line 95

def 
  @result_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



102
103
104
105
106
107
108
109
110
# File 'lib/google/apis/connectors_v2/classes.rb', line 102

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