google-apis-dialogflow_v2 0.112.0 → 0.114.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10044,6 +10044,13 @@ module Google
|
|
|
10044
10044
|
# The standard list page size.
|
|
10045
10045
|
# @param [String] page_token
|
|
10046
10046
|
# The standard list page token.
|
|
10047
|
+
# @param [Boolean] return_partial_success
|
|
10048
|
+
# When set to `true`, operations that are reachable are returned as normal, and
|
|
10049
|
+
# those that are unreachable are returned in the [ListOperationsResponse.
|
|
10050
|
+
# unreachable] field. This can only be `true` when reading across collections e.
|
|
10051
|
+
# g. when `parent` is set to `"projects/example/locations/-"`. This field is not
|
|
10052
|
+
# by default supported and will result in an `UNIMPLEMENTED` error if set unless
|
|
10053
|
+
# explicitly documented otherwise in service or product specific documentation.
|
|
10047
10054
|
# @param [String] fields
|
|
10048
10055
|
# Selector specifying which fields to include in a partial response.
|
|
10049
10056
|
# @param [String] quota_user
|
|
@@ -10061,7 +10068,7 @@ module Google
|
|
|
10061
10068
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10062
10069
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10063
10070
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10064
|
-
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
10071
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
10065
10072
|
command = make_simple_command(:get, 'v2/{+name}/operations', options)
|
|
10066
10073
|
command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningListOperationsResponse::Representation
|
|
10067
10074
|
command.response_class = Google::Apis::DialogflowV2::GoogleLongrunningListOperationsResponse
|
|
@@ -10069,6 +10076,7 @@ module Google
|
|
|
10069
10076
|
command.query['filter'] = filter unless filter.nil?
|
|
10070
10077
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
10071
10078
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
10079
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
10072
10080
|
command.query['fields'] = fields unless fields.nil?
|
|
10073
10081
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10074
10082
|
execute_or_queue_command(command, &block)
|
|
@@ -10349,6 +10357,186 @@ module Google
|
|
|
10349
10357
|
execute_or_queue_command(command, &block)
|
|
10350
10358
|
end
|
|
10351
10359
|
|
|
10360
|
+
# Creates a tool.
|
|
10361
|
+
# @param [String] parent
|
|
10362
|
+
# Required. The project/location to create tool for. Format: `projects//
|
|
10363
|
+
# locations/`
|
|
10364
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool] google_cloud_dialogflow_v2_tool_object
|
|
10365
|
+
# @param [String] tool_id
|
|
10366
|
+
# Optional. The ID to use for the tool, which will become the final component of
|
|
10367
|
+
# the tool's resource name. The tool ID must be compliant with the regression
|
|
10368
|
+
# formula `a-zA-Z*` with the characters length in range of [3,64]. If the field
|
|
10369
|
+
# is not provide, an Id will be auto-generated. If the field is provided, the
|
|
10370
|
+
# caller is responsible for 1. the uniqueness of the ID, otherwise the request
|
|
10371
|
+
# will be rejected. 2. the consistency for whether to use custom ID or not under
|
|
10372
|
+
# a project to better ensure uniqueness.
|
|
10373
|
+
# @param [String] fields
|
|
10374
|
+
# Selector specifying which fields to include in a partial response.
|
|
10375
|
+
# @param [String] quota_user
|
|
10376
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
10377
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10378
|
+
# @param [Google::Apis::RequestOptions] options
|
|
10379
|
+
# Request-specific options
|
|
10380
|
+
#
|
|
10381
|
+
# @yield [result, err] Result & error if block supplied
|
|
10382
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool] parsed result object
|
|
10383
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
10384
|
+
#
|
|
10385
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool]
|
|
10386
|
+
#
|
|
10387
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10388
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10389
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10390
|
+
def create_project_location_tool(parent, google_cloud_dialogflow_v2_tool_object = nil, tool_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
10391
|
+
command = make_simple_command(:post, 'v2/{+parent}/tools', options)
|
|
10392
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool::Representation
|
|
10393
|
+
command.request_object = google_cloud_dialogflow_v2_tool_object
|
|
10394
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool::Representation
|
|
10395
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool
|
|
10396
|
+
command.params['parent'] = parent unless parent.nil?
|
|
10397
|
+
command.query['toolId'] = tool_id unless tool_id.nil?
|
|
10398
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10399
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10400
|
+
execute_or_queue_command(command, &block)
|
|
10401
|
+
end
|
|
10402
|
+
|
|
10403
|
+
# Deletes a tool.
|
|
10404
|
+
# @param [String] name
|
|
10405
|
+
# Required. The tool resource name to delete. Format: `projects//locations//
|
|
10406
|
+
# tools/`
|
|
10407
|
+
# @param [String] fields
|
|
10408
|
+
# Selector specifying which fields to include in a partial response.
|
|
10409
|
+
# @param [String] quota_user
|
|
10410
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
10411
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10412
|
+
# @param [Google::Apis::RequestOptions] options
|
|
10413
|
+
# Request-specific options
|
|
10414
|
+
#
|
|
10415
|
+
# @yield [result, err] Result & error if block supplied
|
|
10416
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleProtobufEmpty] parsed result object
|
|
10417
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
10418
|
+
#
|
|
10419
|
+
# @return [Google::Apis::DialogflowV2::GoogleProtobufEmpty]
|
|
10420
|
+
#
|
|
10421
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10422
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10423
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10424
|
+
def delete_project_location_tool(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
10425
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
10426
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation
|
|
10427
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty
|
|
10428
|
+
command.params['name'] = name unless name.nil?
|
|
10429
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10430
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10431
|
+
execute_or_queue_command(command, &block)
|
|
10432
|
+
end
|
|
10433
|
+
|
|
10434
|
+
# Retrieves a tool.
|
|
10435
|
+
# @param [String] name
|
|
10436
|
+
# Required. The tool resource name to retrieve. Format: `projects//locations//
|
|
10437
|
+
# tools/`
|
|
10438
|
+
# @param [String] fields
|
|
10439
|
+
# Selector specifying which fields to include in a partial response.
|
|
10440
|
+
# @param [String] quota_user
|
|
10441
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
10442
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10443
|
+
# @param [Google::Apis::RequestOptions] options
|
|
10444
|
+
# Request-specific options
|
|
10445
|
+
#
|
|
10446
|
+
# @yield [result, err] Result & error if block supplied
|
|
10447
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool] parsed result object
|
|
10448
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
10449
|
+
#
|
|
10450
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool]
|
|
10451
|
+
#
|
|
10452
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10453
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10454
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10455
|
+
def get_project_location_tool(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
10456
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
10457
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool::Representation
|
|
10458
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool
|
|
10459
|
+
command.params['name'] = name unless name.nil?
|
|
10460
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10461
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10462
|
+
execute_or_queue_command(command, &block)
|
|
10463
|
+
end
|
|
10464
|
+
|
|
10465
|
+
# Lists tools.
|
|
10466
|
+
# @param [String] parent
|
|
10467
|
+
# Required. The project/location to list tools for. Format: `projects//locations/
|
|
10468
|
+
# `
|
|
10469
|
+
# @param [Fixnum] page_size
|
|
10470
|
+
# Optional. Maximum number of conversation models to return in a single page.
|
|
10471
|
+
# Default to 10.
|
|
10472
|
+
# @param [String] page_token
|
|
10473
|
+
# Optional. The next_page_token value returned from a previous list request.
|
|
10474
|
+
# @param [String] fields
|
|
10475
|
+
# Selector specifying which fields to include in a partial response.
|
|
10476
|
+
# @param [String] quota_user
|
|
10477
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
10478
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10479
|
+
# @param [Google::Apis::RequestOptions] options
|
|
10480
|
+
# Request-specific options
|
|
10481
|
+
#
|
|
10482
|
+
# @yield [result, err] Result & error if block supplied
|
|
10483
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListToolsResponse] parsed result object
|
|
10484
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
10485
|
+
#
|
|
10486
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListToolsResponse]
|
|
10487
|
+
#
|
|
10488
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10489
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10490
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10491
|
+
def list_project_location_tools(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
10492
|
+
command = make_simple_command(:get, 'v2/{+parent}/tools', options)
|
|
10493
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListToolsResponse::Representation
|
|
10494
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListToolsResponse
|
|
10495
|
+
command.params['parent'] = parent unless parent.nil?
|
|
10496
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
10497
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
10498
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10499
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10500
|
+
execute_or_queue_command(command, &block)
|
|
10501
|
+
end
|
|
10502
|
+
|
|
10503
|
+
# Updates a tool.
|
|
10504
|
+
# @param [String] name
|
|
10505
|
+
# Output only. Identifier. The resource name of the tool. Format: `projects//
|
|
10506
|
+
# locations//tools/`.
|
|
10507
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool] google_cloud_dialogflow_v2_tool_object
|
|
10508
|
+
# @param [String] update_mask
|
|
10509
|
+
# Optional. The list of fields to update.
|
|
10510
|
+
# @param [String] fields
|
|
10511
|
+
# Selector specifying which fields to include in a partial response.
|
|
10512
|
+
# @param [String] quota_user
|
|
10513
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
10514
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10515
|
+
# @param [Google::Apis::RequestOptions] options
|
|
10516
|
+
# Request-specific options
|
|
10517
|
+
#
|
|
10518
|
+
# @yield [result, err] Result & error if block supplied
|
|
10519
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool] parsed result object
|
|
10520
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
10521
|
+
#
|
|
10522
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool]
|
|
10523
|
+
#
|
|
10524
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10525
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10526
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10527
|
+
def patch_project_location_tool(name, google_cloud_dialogflow_v2_tool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
10528
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
|
10529
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool::Representation
|
|
10530
|
+
command.request_object = google_cloud_dialogflow_v2_tool_object
|
|
10531
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool::Representation
|
|
10532
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Tool
|
|
10533
|
+
command.params['name'] = name unless name.nil?
|
|
10534
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
10535
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10536
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10537
|
+
execute_or_queue_command(command, &block)
|
|
10538
|
+
end
|
|
10539
|
+
|
|
10352
10540
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
10353
10541
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
10354
10542
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
@@ -10427,6 +10615,13 @@ module Google
|
|
|
10427
10615
|
# The standard list page size.
|
|
10428
10616
|
# @param [String] page_token
|
|
10429
10617
|
# The standard list page token.
|
|
10618
|
+
# @param [Boolean] return_partial_success
|
|
10619
|
+
# When set to `true`, operations that are reachable are returned as normal, and
|
|
10620
|
+
# those that are unreachable are returned in the [ListOperationsResponse.
|
|
10621
|
+
# unreachable] field. This can only be `true` when reading across collections e.
|
|
10622
|
+
# g. when `parent` is set to `"projects/example/locations/-"`. This field is not
|
|
10623
|
+
# by default supported and will result in an `UNIMPLEMENTED` error if set unless
|
|
10624
|
+
# explicitly documented otherwise in service or product specific documentation.
|
|
10430
10625
|
# @param [String] fields
|
|
10431
10626
|
# Selector specifying which fields to include in a partial response.
|
|
10432
10627
|
# @param [String] quota_user
|
|
@@ -10444,7 +10639,7 @@ module Google
|
|
|
10444
10639
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10445
10640
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10446
10641
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10447
|
-
def list_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
10642
|
+
def list_project_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
10448
10643
|
command = make_simple_command(:get, 'v2/{+name}/operations', options)
|
|
10449
10644
|
command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningListOperationsResponse::Representation
|
|
10450
10645
|
command.response_class = Google::Apis::DialogflowV2::GoogleLongrunningListOperationsResponse
|
|
@@ -10452,6 +10647,7 @@ module Google
|
|
|
10452
10647
|
command.query['filter'] = filter unless filter.nil?
|
|
10453
10648
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
10454
10649
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
10650
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
10455
10651
|
command.query['fields'] = fields unless fields.nil?
|
|
10456
10652
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10457
10653
|
execute_or_queue_command(command, &block)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-dialogflow_v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.114.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.114.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|