Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolConnectorToolAction

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

Overview

Configuration of a Connection operation for the tool to use.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ToolConnectorToolAction

Returns a new instance of GoogleCloudDialogflowV2ToolConnectorToolAction.



19167
19168
19169
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19167

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

Instance Attribute Details

#connection_action_idString

ID of a Connection action for the tool to use. Corresponds to the JSON property connectionActionId

Returns:

  • (String)


19148
19149
19150
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19148

def connection_action_id
  @connection_action_id
end

#entity_operationGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolConnectorToolActionEntityOperation

Entity CRUD operation specification. Corresponds to the JSON property entityOperation



19153
19154
19155
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19153

def entity_operation
  @entity_operation
end

#input_fieldsArray<String>

Optional. Entity fields to use as inputs for the operation. If no fields are specified, all fields of the Entity will be used. Corresponds to the JSON property inputFields

Returns:

  • (Array<String>)


19159
19160
19161
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19159

def input_fields
  @input_fields
end

#output_fieldsArray<String>

Optional. Entity fields to return from the operation. If no fields are specified, all fields of the Entity will be returned. Corresponds to the JSON property outputFields

Returns:

  • (Array<String>)


19165
19166
19167
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19165

def output_fields
  @output_fields
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19172
19173
19174
19175
19176
19177
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 19172

def update!(**args)
  @connection_action_id = args[:connection_action_id] if args.key?(:connection_action_id)
  @entity_operation = args[:entity_operation] if args.key?(:entity_operation)
  @input_fields = args[:input_fields] if args.key?(:input_fields)
  @output_fields = args[:output_fields] if args.key?(:output_fields)
end