Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolConnectorToolAction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/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) ⇒ GoogleCloudDialogflowV2beta1ToolConnectorToolAction

Returns a new instance of GoogleCloudDialogflowV2beta1ToolConnectorToolAction.



23869
23870
23871
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23869

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)


23850
23851
23852
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23850

def connection_action_id
  @connection_action_id
end

#entity_operationGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolConnectorToolActionEntityOperation

Entity CRUD operation specification. Corresponds to the JSON property entityOperation



23855
23856
23857
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23855

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>)


23861
23862
23863
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23861

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>)


23867
23868
23869
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23867

def output_fields
  @output_fields
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23874
23875
23876
23877
23878
23879
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23874

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