google-apis-dialogflow_v2beta1 0.85.0 → 0.87.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/dialogflow_v2beta1/classes.rb +1068 -9
- data/lib/google/apis/dialogflow_v2beta1/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v2beta1/representations.rb +522 -0
- data/lib/google/apis/dialogflow_v2beta1/service.rb +364 -0
- metadata +3 -3
@@ -4053,6 +4053,40 @@ module Google
|
|
4053
4053
|
execute_or_queue_command(command, &block)
|
4054
4054
|
end
|
4055
4055
|
|
4056
|
+
# Gets knowledge assist suggestions based on historical messages.
|
4057
|
+
# @param [String] parent
|
4058
|
+
# Required. The name of the participant to fetch suggestions for. Format: `
|
4059
|
+
# projects//locations//conversations//participants/`.
|
4060
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistRequest] google_cloud_dialogflow_v2beta1_suggest_knowledge_assist_request_object
|
4061
|
+
# @param [String] fields
|
4062
|
+
# Selector specifying which fields to include in a partial response.
|
4063
|
+
# @param [String] quota_user
|
4064
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4065
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4066
|
+
# @param [Google::Apis::RequestOptions] options
|
4067
|
+
# Request-specific options
|
4068
|
+
#
|
4069
|
+
# @yield [result, err] Result & error if block supplied
|
4070
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse] parsed result object
|
4071
|
+
# @yieldparam err [StandardError] error object if request failed
|
4072
|
+
#
|
4073
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse]
|
4074
|
+
#
|
4075
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4076
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4077
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4078
|
+
def suggest_project_conversation_participant_suggestion_knowledge_assist(parent, google_cloud_dialogflow_v2beta1_suggest_knowledge_assist_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4079
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/suggestions:suggestKnowledgeAssist', options)
|
4080
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistRequest::Representation
|
4081
|
+
command.request_object = google_cloud_dialogflow_v2beta1_suggest_knowledge_assist_request_object
|
4082
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse::Representation
|
4083
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse
|
4084
|
+
command.params['parent'] = parent unless parent.nil?
|
4085
|
+
command.query['fields'] = fields unless fields.nil?
|
4086
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4087
|
+
execute_or_queue_command(command, &block)
|
4088
|
+
end
|
4089
|
+
|
4056
4090
|
# Gets smart replies for a participant based on specific historical messages.
|
4057
4091
|
# @param [String] parent
|
4058
4092
|
# Required. The name of the participant to fetch suggestion for. Format: `
|
@@ -4156,6 +4190,87 @@ module Google
|
|
4156
4190
|
execute_or_queue_command(command, &block)
|
4157
4191
|
end
|
4158
4192
|
|
4193
|
+
# Creates a generator.
|
4194
|
+
# @param [String] parent
|
4195
|
+
# Required. The project/location to create generator for. Format: `projects//
|
4196
|
+
# locations/`
|
4197
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] google_cloud_dialogflow_v2beta1_generator_object
|
4198
|
+
# @param [String] generator_id
|
4199
|
+
# Optional. The ID to use for the generator, which will become the final
|
4200
|
+
# component of the generator's resource name. The generator ID must be compliant
|
4201
|
+
# with the regression fomula `a-zA-Z*` with the characters length in range of [3,
|
4202
|
+
# 64]. If the field is not provided, an Id will be auto-generated. If the field
|
4203
|
+
# is provided, the caller is resposible for 1. the uniqueness of the ID,
|
4204
|
+
# otherwise the request will be rejected. 2. the consistency for whether to use
|
4205
|
+
# custom ID or not under a project to better ensure uniqueness.
|
4206
|
+
# @param [String] fields
|
4207
|
+
# Selector specifying which fields to include in a partial response.
|
4208
|
+
# @param [String] quota_user
|
4209
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4210
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4211
|
+
# @param [Google::Apis::RequestOptions] options
|
4212
|
+
# Request-specific options
|
4213
|
+
#
|
4214
|
+
# @yield [result, err] Result & error if block supplied
|
4215
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] parsed result object
|
4216
|
+
# @yieldparam err [StandardError] error object if request failed
|
4217
|
+
#
|
4218
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator]
|
4219
|
+
#
|
4220
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4221
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4222
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4223
|
+
def create_project_generator(parent, google_cloud_dialogflow_v2beta1_generator_object = nil, generator_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4224
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/generators', options)
|
4225
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
|
4226
|
+
command.request_object = google_cloud_dialogflow_v2beta1_generator_object
|
4227
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
|
4228
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator
|
4229
|
+
command.params['parent'] = parent unless parent.nil?
|
4230
|
+
command.query['generatorId'] = generator_id unless generator_id.nil?
|
4231
|
+
command.query['fields'] = fields unless fields.nil?
|
4232
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4233
|
+
execute_or_queue_command(command, &block)
|
4234
|
+
end
|
4235
|
+
|
4236
|
+
# Lists generators.
|
4237
|
+
# @param [String] parent
|
4238
|
+
# Required. The project/location to list generators for. Format: `projects//
|
4239
|
+
# locations/`
|
4240
|
+
# @param [Fixnum] page_size
|
4241
|
+
# Optional. Maximum number of conversation models to return in a single page.
|
4242
|
+
# Default to 10.
|
4243
|
+
# @param [String] page_token
|
4244
|
+
# Optional. The next_page_token value returned from a previous list request.
|
4245
|
+
# @param [String] fields
|
4246
|
+
# Selector specifying which fields to include in a partial response.
|
4247
|
+
# @param [String] quota_user
|
4248
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4249
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4250
|
+
# @param [Google::Apis::RequestOptions] options
|
4251
|
+
# Request-specific options
|
4252
|
+
#
|
4253
|
+
# @yield [result, err] Result & error if block supplied
|
4254
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse] parsed result object
|
4255
|
+
# @yieldparam err [StandardError] error object if request failed
|
4256
|
+
#
|
4257
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse]
|
4258
|
+
#
|
4259
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4260
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4261
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4262
|
+
def list_project_generators(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4263
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/generators', options)
|
4264
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse::Representation
|
4265
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse
|
4266
|
+
command.params['parent'] = parent unless parent.nil?
|
4267
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
4268
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
4269
|
+
command.query['fields'] = fields unless fields.nil?
|
4270
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4271
|
+
execute_or_queue_command(command, &block)
|
4272
|
+
end
|
4273
|
+
|
4159
4274
|
# Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource
|
4160
4275
|
# is deprecated; only use `projects.knowledgeBases`.
|
4161
4276
|
# @param [String] parent
|
@@ -8175,6 +8290,40 @@ module Google
|
|
8175
8290
|
execute_or_queue_command(command, &block)
|
8176
8291
|
end
|
8177
8292
|
|
8293
|
+
# Gets knowledge assist suggestions based on historical messages.
|
8294
|
+
# @param [String] parent
|
8295
|
+
# Required. The name of the participant to fetch suggestions for. Format: `
|
8296
|
+
# projects//locations//conversations//participants/`.
|
8297
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistRequest] google_cloud_dialogflow_v2beta1_suggest_knowledge_assist_request_object
|
8298
|
+
# @param [String] fields
|
8299
|
+
# Selector specifying which fields to include in a partial response.
|
8300
|
+
# @param [String] quota_user
|
8301
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
8302
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
8303
|
+
# @param [Google::Apis::RequestOptions] options
|
8304
|
+
# Request-specific options
|
8305
|
+
#
|
8306
|
+
# @yield [result, err] Result & error if block supplied
|
8307
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse] parsed result object
|
8308
|
+
# @yieldparam err [StandardError] error object if request failed
|
8309
|
+
#
|
8310
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse]
|
8311
|
+
#
|
8312
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8313
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8314
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8315
|
+
def suggest_project_location_conversation_participant_suggestion_knowledge_assist(parent, google_cloud_dialogflow_v2beta1_suggest_knowledge_assist_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
8316
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/suggestions:suggestKnowledgeAssist', options)
|
8317
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistRequest::Representation
|
8318
|
+
command.request_object = google_cloud_dialogflow_v2beta1_suggest_knowledge_assist_request_object
|
8319
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse::Representation
|
8320
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse
|
8321
|
+
command.params['parent'] = parent unless parent.nil?
|
8322
|
+
command.query['fields'] = fields unless fields.nil?
|
8323
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8324
|
+
execute_or_queue_command(command, &block)
|
8325
|
+
end
|
8326
|
+
|
8178
8327
|
# Gets smart replies for a participant based on specific historical messages.
|
8179
8328
|
# @param [String] parent
|
8180
8329
|
# Required. The name of the participant to fetch suggestion for. Format: `
|
@@ -8278,6 +8427,186 @@ module Google
|
|
8278
8427
|
execute_or_queue_command(command, &block)
|
8279
8428
|
end
|
8280
8429
|
|
8430
|
+
# Creates a generator.
|
8431
|
+
# @param [String] parent
|
8432
|
+
# Required. The project/location to create generator for. Format: `projects//
|
8433
|
+
# locations/`
|
8434
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] google_cloud_dialogflow_v2beta1_generator_object
|
8435
|
+
# @param [String] generator_id
|
8436
|
+
# Optional. The ID to use for the generator, which will become the final
|
8437
|
+
# component of the generator's resource name. The generator ID must be compliant
|
8438
|
+
# with the regression fomula `a-zA-Z*` with the characters length in range of [3,
|
8439
|
+
# 64]. If the field is not provided, an Id will be auto-generated. If the field
|
8440
|
+
# is provided, the caller is resposible for 1. the uniqueness of the ID,
|
8441
|
+
# otherwise the request will be rejected. 2. the consistency for whether to use
|
8442
|
+
# custom ID or not under a project to better ensure uniqueness.
|
8443
|
+
# @param [String] fields
|
8444
|
+
# Selector specifying which fields to include in a partial response.
|
8445
|
+
# @param [String] quota_user
|
8446
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
8447
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
8448
|
+
# @param [Google::Apis::RequestOptions] options
|
8449
|
+
# Request-specific options
|
8450
|
+
#
|
8451
|
+
# @yield [result, err] Result & error if block supplied
|
8452
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] parsed result object
|
8453
|
+
# @yieldparam err [StandardError] error object if request failed
|
8454
|
+
#
|
8455
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator]
|
8456
|
+
#
|
8457
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8458
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8459
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8460
|
+
def create_project_location_generator(parent, google_cloud_dialogflow_v2beta1_generator_object = nil, generator_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
8461
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/generators', options)
|
8462
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
|
8463
|
+
command.request_object = google_cloud_dialogflow_v2beta1_generator_object
|
8464
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
|
8465
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator
|
8466
|
+
command.params['parent'] = parent unless parent.nil?
|
8467
|
+
command.query['generatorId'] = generator_id unless generator_id.nil?
|
8468
|
+
command.query['fields'] = fields unless fields.nil?
|
8469
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8470
|
+
execute_or_queue_command(command, &block)
|
8471
|
+
end
|
8472
|
+
|
8473
|
+
# Deletes a generator.
|
8474
|
+
# @param [String] name
|
8475
|
+
# Required. The generator resource name to delete. Format: `projects//locations//
|
8476
|
+
# generators/`
|
8477
|
+
# @param [String] fields
|
8478
|
+
# Selector specifying which fields to include in a partial response.
|
8479
|
+
# @param [String] quota_user
|
8480
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
8481
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
8482
|
+
# @param [Google::Apis::RequestOptions] options
|
8483
|
+
# Request-specific options
|
8484
|
+
#
|
8485
|
+
# @yield [result, err] Result & error if block supplied
|
8486
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
8487
|
+
# @yieldparam err [StandardError] error object if request failed
|
8488
|
+
#
|
8489
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
8490
|
+
#
|
8491
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8492
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8493
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8494
|
+
def delete_project_location_generator(name, fields: nil, quota_user: nil, options: nil, &block)
|
8495
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
8496
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
8497
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
8498
|
+
command.params['name'] = name unless name.nil?
|
8499
|
+
command.query['fields'] = fields unless fields.nil?
|
8500
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8501
|
+
execute_or_queue_command(command, &block)
|
8502
|
+
end
|
8503
|
+
|
8504
|
+
# Retrieves a generator.
|
8505
|
+
# @param [String] name
|
8506
|
+
# Required. The generator resource name to retrieve. Format: `projects//
|
8507
|
+
# locations/`/generators/`
|
8508
|
+
# @param [String] fields
|
8509
|
+
# Selector specifying which fields to include in a partial response.
|
8510
|
+
# @param [String] quota_user
|
8511
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
8512
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
8513
|
+
# @param [Google::Apis::RequestOptions] options
|
8514
|
+
# Request-specific options
|
8515
|
+
#
|
8516
|
+
# @yield [result, err] Result & error if block supplied
|
8517
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] parsed result object
|
8518
|
+
# @yieldparam err [StandardError] error object if request failed
|
8519
|
+
#
|
8520
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator]
|
8521
|
+
#
|
8522
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8523
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8524
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8525
|
+
def get_project_location_generator(name, fields: nil, quota_user: nil, options: nil, &block)
|
8526
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
8527
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
|
8528
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator
|
8529
|
+
command.params['name'] = name unless name.nil?
|
8530
|
+
command.query['fields'] = fields unless fields.nil?
|
8531
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8532
|
+
execute_or_queue_command(command, &block)
|
8533
|
+
end
|
8534
|
+
|
8535
|
+
# Lists generators.
|
8536
|
+
# @param [String] parent
|
8537
|
+
# Required. The project/location to list generators for. Format: `projects//
|
8538
|
+
# locations/`
|
8539
|
+
# @param [Fixnum] page_size
|
8540
|
+
# Optional. Maximum number of conversation models to return in a single page.
|
8541
|
+
# Default to 10.
|
8542
|
+
# @param [String] page_token
|
8543
|
+
# Optional. The next_page_token value returned from a previous list request.
|
8544
|
+
# @param [String] fields
|
8545
|
+
# Selector specifying which fields to include in a partial response.
|
8546
|
+
# @param [String] quota_user
|
8547
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
8548
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
8549
|
+
# @param [Google::Apis::RequestOptions] options
|
8550
|
+
# Request-specific options
|
8551
|
+
#
|
8552
|
+
# @yield [result, err] Result & error if block supplied
|
8553
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse] parsed result object
|
8554
|
+
# @yieldparam err [StandardError] error object if request failed
|
8555
|
+
#
|
8556
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse]
|
8557
|
+
#
|
8558
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8559
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8560
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8561
|
+
def list_project_location_generators(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
8562
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/generators', options)
|
8563
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse::Representation
|
8564
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse
|
8565
|
+
command.params['parent'] = parent unless parent.nil?
|
8566
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
8567
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
8568
|
+
command.query['fields'] = fields unless fields.nil?
|
8569
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8570
|
+
execute_or_queue_command(command, &block)
|
8571
|
+
end
|
8572
|
+
|
8573
|
+
# Updates a generator.
|
8574
|
+
# @param [String] name
|
8575
|
+
# Output only. Identifier. The resource name of the generator. Format: `projects/
|
8576
|
+
# /locations//generators/`
|
8577
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] google_cloud_dialogflow_v2beta1_generator_object
|
8578
|
+
# @param [String] update_mask
|
8579
|
+
# Optional. The list of fields to update.
|
8580
|
+
# @param [String] fields
|
8581
|
+
# Selector specifying which fields to include in a partial response.
|
8582
|
+
# @param [String] quota_user
|
8583
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
8584
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
8585
|
+
# @param [Google::Apis::RequestOptions] options
|
8586
|
+
# Request-specific options
|
8587
|
+
#
|
8588
|
+
# @yield [result, err] Result & error if block supplied
|
8589
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] parsed result object
|
8590
|
+
# @yieldparam err [StandardError] error object if request failed
|
8591
|
+
#
|
8592
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator]
|
8593
|
+
#
|
8594
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8595
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8596
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8597
|
+
def patch_project_location_generator(name, google_cloud_dialogflow_v2beta1_generator_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
8598
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
8599
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
|
8600
|
+
command.request_object = google_cloud_dialogflow_v2beta1_generator_object
|
8601
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
|
8602
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator
|
8603
|
+
command.params['name'] = name unless name.nil?
|
8604
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
8605
|
+
command.query['fields'] = fields unless fields.nil?
|
8606
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8607
|
+
execute_or_queue_command(command, &block)
|
8608
|
+
end
|
8609
|
+
|
8281
8610
|
# Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource
|
8282
8611
|
# is deprecated; only use `projects.knowledgeBases`.
|
8283
8612
|
# @param [String] parent
|
@@ -8875,6 +9204,41 @@ module Google
|
|
8875
9204
|
execute_or_queue_command(command, &block)
|
8876
9205
|
end
|
8877
9206
|
|
9207
|
+
# Generates and returns a suggestion for a conversation that does not have a
|
9208
|
+
# resource created for it.
|
9209
|
+
# @param [String] parent
|
9210
|
+
# Required. The parent resource to charge for the Suggestion's generation.
|
9211
|
+
# Format: `projects//locations/`.
|
9212
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest] google_cloud_dialogflow_v2beta1_generate_stateless_suggestion_request_object
|
9213
|
+
# @param [String] fields
|
9214
|
+
# Selector specifying which fields to include in a partial response.
|
9215
|
+
# @param [String] quota_user
|
9216
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9217
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9218
|
+
# @param [Google::Apis::RequestOptions] options
|
9219
|
+
# Request-specific options
|
9220
|
+
#
|
9221
|
+
# @yield [result, err] Result & error if block supplied
|
9222
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse] parsed result object
|
9223
|
+
# @yieldparam err [StandardError] error object if request failed
|
9224
|
+
#
|
9225
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse]
|
9226
|
+
#
|
9227
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9228
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9229
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9230
|
+
def generate_project_location_stateless_suggestion(parent, google_cloud_dialogflow_v2beta1_generate_stateless_suggestion_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
9231
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/statelessSuggestion:generate', options)
|
9232
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest::Representation
|
9233
|
+
command.request_object = google_cloud_dialogflow_v2beta1_generate_stateless_suggestion_request_object
|
9234
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse::Representation
|
9235
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse
|
9236
|
+
command.params['parent'] = parent unless parent.nil?
|
9237
|
+
command.query['fields'] = fields unless fields.nil?
|
9238
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9239
|
+
execute_or_queue_command(command, &block)
|
9240
|
+
end
|
9241
|
+
|
8878
9242
|
# Generates and returns a summary for a conversation that does not have a
|
8879
9243
|
# resource created for it.
|
8880
9244
|
# @param [String] parent
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-dialogflow_v2beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.87.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.87.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|