google-apis-dialogflow_v3 0.104.0 → 0.106.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.
@@ -85,6 +85,9 @@ module Google
|
|
85
85
|
# Lists information about the supported locations for this service.
|
86
86
|
# @param [String] name
|
87
87
|
# The resource that owns the locations collection, if applicable.
|
88
|
+
# @param [Array<String>, String] extra_location_types
|
89
|
+
# Optional. A list of extra location types that should be used as conditions for
|
90
|
+
# controlling the visibility of the locations.
|
88
91
|
# @param [String] filter
|
89
92
|
# A filter to narrow down results to a preferred subset. The filtering language
|
90
93
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
@@ -112,11 +115,12 @@ module Google
|
|
112
115
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
113
116
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
114
117
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
115
|
-
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
118
|
+
def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
116
119
|
command = make_simple_command(:get, 'v3/{+name}/locations', options)
|
117
120
|
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudLocationListLocationsResponse::Representation
|
118
121
|
command.response_class = Google::Apis::DialogflowV3::GoogleCloudLocationListLocationsResponse
|
119
122
|
command.params['name'] = name unless name.nil?
|
123
|
+
command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
|
120
124
|
command.query['filter'] = filter unless filter.nil?
|
121
125
|
command.query['pageSize'] = page_size unless page_size.nil?
|
122
126
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -3491,6 +3495,593 @@ module Google
|
|
3491
3495
|
execute_or_queue_command(command, &block)
|
3492
3496
|
end
|
3493
3497
|
|
3498
|
+
# Creates a playbook in a specified agent.
|
3499
|
+
# @param [String] parent
|
3500
|
+
# Required. The agent to create a playbook for. Format: `projects//locations//
|
3501
|
+
# agents/`.
|
3502
|
+
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Playbook] google_cloud_dialogflow_cx_v3_playbook_object
|
3503
|
+
# @param [String] fields
|
3504
|
+
# Selector specifying which fields to include in a partial response.
|
3505
|
+
# @param [String] quota_user
|
3506
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3507
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3508
|
+
# @param [Google::Apis::RequestOptions] options
|
3509
|
+
# Request-specific options
|
3510
|
+
#
|
3511
|
+
# @yield [result, err] Result & error if block supplied
|
3512
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Playbook] parsed result object
|
3513
|
+
# @yieldparam err [StandardError] error object if request failed
|
3514
|
+
#
|
3515
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Playbook]
|
3516
|
+
#
|
3517
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3518
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3519
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3520
|
+
def create_project_location_agent_playbook(parent, google_cloud_dialogflow_cx_v3_playbook_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3521
|
+
command = make_simple_command(:post, 'v3/{+parent}/playbooks', options)
|
3522
|
+
command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Playbook::Representation
|
3523
|
+
command.request_object = google_cloud_dialogflow_cx_v3_playbook_object
|
3524
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Playbook::Representation
|
3525
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Playbook
|
3526
|
+
command.params['parent'] = parent unless parent.nil?
|
3527
|
+
command.query['fields'] = fields unless fields.nil?
|
3528
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3529
|
+
execute_or_queue_command(command, &block)
|
3530
|
+
end
|
3531
|
+
|
3532
|
+
# Deletes a specified playbook.
|
3533
|
+
# @param [String] name
|
3534
|
+
# Required. The name of the playbook to delete. Format: `projects//locations//
|
3535
|
+
# agents//playbooks/`.
|
3536
|
+
# @param [String] fields
|
3537
|
+
# Selector specifying which fields to include in a partial response.
|
3538
|
+
# @param [String] quota_user
|
3539
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3540
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3541
|
+
# @param [Google::Apis::RequestOptions] options
|
3542
|
+
# Request-specific options
|
3543
|
+
#
|
3544
|
+
# @yield [result, err] Result & error if block supplied
|
3545
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
|
3546
|
+
# @yieldparam err [StandardError] error object if request failed
|
3547
|
+
#
|
3548
|
+
# @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
|
3549
|
+
#
|
3550
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3551
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3552
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3553
|
+
def delete_project_location_agent_playbook(name, fields: nil, quota_user: nil, options: nil, &block)
|
3554
|
+
command = make_simple_command(:delete, 'v3/{+name}', options)
|
3555
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
|
3556
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
|
3557
|
+
command.params['name'] = name unless name.nil?
|
3558
|
+
command.query['fields'] = fields unless fields.nil?
|
3559
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3560
|
+
execute_or_queue_command(command, &block)
|
3561
|
+
end
|
3562
|
+
|
3563
|
+
# Exports the specified playbook to a binary file. Note that resources (e.g.
|
3564
|
+
# examples, tools) that the playbook references will also be exported.
|
3565
|
+
# @param [String] name
|
3566
|
+
# Required. The name of the playbook to export. Format: `projects//locations//
|
3567
|
+
# agents//playbooks/`.
|
3568
|
+
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExportPlaybookRequest] google_cloud_dialogflow_cx_v3_export_playbook_request_object
|
3569
|
+
# @param [String] fields
|
3570
|
+
# Selector specifying which fields to include in a partial response.
|
3571
|
+
# @param [String] quota_user
|
3572
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3573
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3574
|
+
# @param [Google::Apis::RequestOptions] options
|
3575
|
+
# Request-specific options
|
3576
|
+
#
|
3577
|
+
# @yield [result, err] Result & error if block supplied
|
3578
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
|
3579
|
+
# @yieldparam err [StandardError] error object if request failed
|
3580
|
+
#
|
3581
|
+
# @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
|
3582
|
+
#
|
3583
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3584
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3585
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3586
|
+
def export_project_location_agent_playbook(name, google_cloud_dialogflow_cx_v3_export_playbook_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3587
|
+
command = make_simple_command(:post, 'v3/{+name}:export', options)
|
3588
|
+
command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExportPlaybookRequest::Representation
|
3589
|
+
command.request_object = google_cloud_dialogflow_cx_v3_export_playbook_request_object
|
3590
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
|
3591
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
|
3592
|
+
command.params['name'] = name unless name.nil?
|
3593
|
+
command.query['fields'] = fields unless fields.nil?
|
3594
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3595
|
+
execute_or_queue_command(command, &block)
|
3596
|
+
end
|
3597
|
+
|
3598
|
+
# Retrieves the specified Playbook.
|
3599
|
+
# @param [String] name
|
3600
|
+
# Required. The name of the playbook. Format: `projects//locations//agents//
|
3601
|
+
# playbooks/`.
|
3602
|
+
# @param [String] fields
|
3603
|
+
# Selector specifying which fields to include in a partial response.
|
3604
|
+
# @param [String] quota_user
|
3605
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3606
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3607
|
+
# @param [Google::Apis::RequestOptions] options
|
3608
|
+
# Request-specific options
|
3609
|
+
#
|
3610
|
+
# @yield [result, err] Result & error if block supplied
|
3611
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Playbook] parsed result object
|
3612
|
+
# @yieldparam err [StandardError] error object if request failed
|
3613
|
+
#
|
3614
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Playbook]
|
3615
|
+
#
|
3616
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3617
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3618
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3619
|
+
def get_project_location_agent_playbook(name, fields: nil, quota_user: nil, options: nil, &block)
|
3620
|
+
command = make_simple_command(:get, 'v3/{+name}', options)
|
3621
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Playbook::Representation
|
3622
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Playbook
|
3623
|
+
command.params['name'] = name unless name.nil?
|
3624
|
+
command.query['fields'] = fields unless fields.nil?
|
3625
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3626
|
+
execute_or_queue_command(command, &block)
|
3627
|
+
end
|
3628
|
+
|
3629
|
+
# Imports the specified playbook to the specified agent from a binary file.
|
3630
|
+
# @param [String] parent
|
3631
|
+
# Required. The agent to import the playbook into. Format: `projects//locations//
|
3632
|
+
# agents/`.
|
3633
|
+
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ImportPlaybookRequest] google_cloud_dialogflow_cx_v3_import_playbook_request_object
|
3634
|
+
# @param [String] fields
|
3635
|
+
# Selector specifying which fields to include in a partial response.
|
3636
|
+
# @param [String] quota_user
|
3637
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3638
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3639
|
+
# @param [Google::Apis::RequestOptions] options
|
3640
|
+
# Request-specific options
|
3641
|
+
#
|
3642
|
+
# @yield [result, err] Result & error if block supplied
|
3643
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
|
3644
|
+
# @yieldparam err [StandardError] error object if request failed
|
3645
|
+
#
|
3646
|
+
# @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
|
3647
|
+
#
|
3648
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3649
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3650
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3651
|
+
def import_project_location_agent_playbook(parent, google_cloud_dialogflow_cx_v3_import_playbook_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3652
|
+
command = make_simple_command(:post, 'v3/{+parent}/playbooks:import', options)
|
3653
|
+
command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ImportPlaybookRequest::Representation
|
3654
|
+
command.request_object = google_cloud_dialogflow_cx_v3_import_playbook_request_object
|
3655
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
|
3656
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
|
3657
|
+
command.params['parent'] = parent unless parent.nil?
|
3658
|
+
command.query['fields'] = fields unless fields.nil?
|
3659
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3660
|
+
execute_or_queue_command(command, &block)
|
3661
|
+
end
|
3662
|
+
|
3663
|
+
# Returns a list of playbooks in the specified agent.
|
3664
|
+
# @param [String] parent
|
3665
|
+
# Required. The agent to list playbooks from. Format: `projects//locations//
|
3666
|
+
# agents/`.
|
3667
|
+
# @param [Fixnum] page_size
|
3668
|
+
# The maximum number of items to return in a single page. By default 100 and at
|
3669
|
+
# most 1000.
|
3670
|
+
# @param [String] page_token
|
3671
|
+
# The next_page_token value returned from a previous list request.
|
3672
|
+
# @param [String] fields
|
3673
|
+
# Selector specifying which fields to include in a partial response.
|
3674
|
+
# @param [String] quota_user
|
3675
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3676
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3677
|
+
# @param [Google::Apis::RequestOptions] options
|
3678
|
+
# Request-specific options
|
3679
|
+
#
|
3680
|
+
# @yield [result, err] Result & error if block supplied
|
3681
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPlaybooksResponse] parsed result object
|
3682
|
+
# @yieldparam err [StandardError] error object if request failed
|
3683
|
+
#
|
3684
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPlaybooksResponse]
|
3685
|
+
#
|
3686
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3687
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3688
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3689
|
+
def list_project_location_agent_playbooks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3690
|
+
command = make_simple_command(:get, 'v3/{+parent}/playbooks', options)
|
3691
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPlaybooksResponse::Representation
|
3692
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPlaybooksResponse
|
3693
|
+
command.params['parent'] = parent unless parent.nil?
|
3694
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3695
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3696
|
+
command.query['fields'] = fields unless fields.nil?
|
3697
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3698
|
+
execute_or_queue_command(command, &block)
|
3699
|
+
end
|
3700
|
+
|
3701
|
+
# Updates the specified Playbook.
|
3702
|
+
# @param [String] name
|
3703
|
+
# The unique identifier of the playbook. Format: `projects//locations//agents//
|
3704
|
+
# playbooks/`.
|
3705
|
+
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Playbook] google_cloud_dialogflow_cx_v3_playbook_object
|
3706
|
+
# @param [String] update_mask
|
3707
|
+
# The mask to control which fields get updated. If the mask is not present, all
|
3708
|
+
# fields will be updated.
|
3709
|
+
# @param [String] fields
|
3710
|
+
# Selector specifying which fields to include in a partial response.
|
3711
|
+
# @param [String] quota_user
|
3712
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3713
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3714
|
+
# @param [Google::Apis::RequestOptions] options
|
3715
|
+
# Request-specific options
|
3716
|
+
#
|
3717
|
+
# @yield [result, err] Result & error if block supplied
|
3718
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Playbook] parsed result object
|
3719
|
+
# @yieldparam err [StandardError] error object if request failed
|
3720
|
+
#
|
3721
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Playbook]
|
3722
|
+
#
|
3723
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3724
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3725
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3726
|
+
def patch_project_location_agent_playbook(name, google_cloud_dialogflow_cx_v3_playbook_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3727
|
+
command = make_simple_command(:patch, 'v3/{+name}', options)
|
3728
|
+
command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Playbook::Representation
|
3729
|
+
command.request_object = google_cloud_dialogflow_cx_v3_playbook_object
|
3730
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Playbook::Representation
|
3731
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Playbook
|
3732
|
+
command.params['name'] = name unless name.nil?
|
3733
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3734
|
+
command.query['fields'] = fields unless fields.nil?
|
3735
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3736
|
+
execute_or_queue_command(command, &block)
|
3737
|
+
end
|
3738
|
+
|
3739
|
+
# Creates an example in the specified playbook.
|
3740
|
+
# @param [String] parent
|
3741
|
+
# Required. The playbook to create an example for. Format: `projects//locations//
|
3742
|
+
# agents//playbooks/`.
|
3743
|
+
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Example] google_cloud_dialogflow_cx_v3_example_object
|
3744
|
+
# @param [String] fields
|
3745
|
+
# Selector specifying which fields to include in a partial response.
|
3746
|
+
# @param [String] quota_user
|
3747
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3748
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3749
|
+
# @param [Google::Apis::RequestOptions] options
|
3750
|
+
# Request-specific options
|
3751
|
+
#
|
3752
|
+
# @yield [result, err] Result & error if block supplied
|
3753
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Example] parsed result object
|
3754
|
+
# @yieldparam err [StandardError] error object if request failed
|
3755
|
+
#
|
3756
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Example]
|
3757
|
+
#
|
3758
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3759
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3760
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3761
|
+
def create_project_location_agent_playbook_example(parent, google_cloud_dialogflow_cx_v3_example_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3762
|
+
command = make_simple_command(:post, 'v3/{+parent}/examples', options)
|
3763
|
+
command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Example::Representation
|
3764
|
+
command.request_object = google_cloud_dialogflow_cx_v3_example_object
|
3765
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Example::Representation
|
3766
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Example
|
3767
|
+
command.params['parent'] = parent unless parent.nil?
|
3768
|
+
command.query['fields'] = fields unless fields.nil?
|
3769
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3770
|
+
execute_or_queue_command(command, &block)
|
3771
|
+
end
|
3772
|
+
|
3773
|
+
# Deletes the specified example.
|
3774
|
+
# @param [String] name
|
3775
|
+
# Required. The name of the example to delete. Format: `projects//locations//
|
3776
|
+
# agents//playbooks//examples/`.
|
3777
|
+
# @param [String] fields
|
3778
|
+
# Selector specifying which fields to include in a partial response.
|
3779
|
+
# @param [String] quota_user
|
3780
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3781
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3782
|
+
# @param [Google::Apis::RequestOptions] options
|
3783
|
+
# Request-specific options
|
3784
|
+
#
|
3785
|
+
# @yield [result, err] Result & error if block supplied
|
3786
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
|
3787
|
+
# @yieldparam err [StandardError] error object if request failed
|
3788
|
+
#
|
3789
|
+
# @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
|
3790
|
+
#
|
3791
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3792
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3793
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3794
|
+
def delete_project_location_agent_playbook_example(name, fields: nil, quota_user: nil, options: nil, &block)
|
3795
|
+
command = make_simple_command(:delete, 'v3/{+name}', options)
|
3796
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
|
3797
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
|
3798
|
+
command.params['name'] = name unless name.nil?
|
3799
|
+
command.query['fields'] = fields unless fields.nil?
|
3800
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3801
|
+
execute_or_queue_command(command, &block)
|
3802
|
+
end
|
3803
|
+
|
3804
|
+
# Retrieves the specified example.
|
3805
|
+
# @param [String] name
|
3806
|
+
# Required. The name of the example. Format: `projects//locations//agents//
|
3807
|
+
# playbooks//examples/`.
|
3808
|
+
# @param [String] fields
|
3809
|
+
# Selector specifying which fields to include in a partial response.
|
3810
|
+
# @param [String] quota_user
|
3811
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3812
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3813
|
+
# @param [Google::Apis::RequestOptions] options
|
3814
|
+
# Request-specific options
|
3815
|
+
#
|
3816
|
+
# @yield [result, err] Result & error if block supplied
|
3817
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Example] parsed result object
|
3818
|
+
# @yieldparam err [StandardError] error object if request failed
|
3819
|
+
#
|
3820
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Example]
|
3821
|
+
#
|
3822
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3823
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3824
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3825
|
+
def get_project_location_agent_playbook_example(name, fields: nil, quota_user: nil, options: nil, &block)
|
3826
|
+
command = make_simple_command(:get, 'v3/{+name}', options)
|
3827
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Example::Representation
|
3828
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Example
|
3829
|
+
command.params['name'] = name unless name.nil?
|
3830
|
+
command.query['fields'] = fields unless fields.nil?
|
3831
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3832
|
+
execute_or_queue_command(command, &block)
|
3833
|
+
end
|
3834
|
+
|
3835
|
+
# Returns a list of examples in the specified playbook.
|
3836
|
+
# @param [String] parent
|
3837
|
+
# Required. The playbook to list the examples from. Format: `projects//locations/
|
3838
|
+
# /agents//playbooks/`.
|
3839
|
+
# @param [String] language_code
|
3840
|
+
# Optional. The language to list examples for. If not specified, list all
|
3841
|
+
# examples under the playbook. Note: languages must be enabled in the agent
|
3842
|
+
# before they can be used.
|
3843
|
+
# @param [Fixnum] page_size
|
3844
|
+
# Optional. The maximum number of items to return in a single page. By default
|
3845
|
+
# 100 and at most 1000.
|
3846
|
+
# @param [String] page_token
|
3847
|
+
# Optional. The next_page_token value returned from a previous list request.
|
3848
|
+
# @param [String] fields
|
3849
|
+
# Selector specifying which fields to include in a partial response.
|
3850
|
+
# @param [String] quota_user
|
3851
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3852
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3853
|
+
# @param [Google::Apis::RequestOptions] options
|
3854
|
+
# Request-specific options
|
3855
|
+
#
|
3856
|
+
# @yield [result, err] Result & error if block supplied
|
3857
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListExamplesResponse] parsed result object
|
3858
|
+
# @yieldparam err [StandardError] error object if request failed
|
3859
|
+
#
|
3860
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListExamplesResponse]
|
3861
|
+
#
|
3862
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3863
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3864
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3865
|
+
def list_project_location_agent_playbook_examples(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3866
|
+
command = make_simple_command(:get, 'v3/{+parent}/examples', options)
|
3867
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListExamplesResponse::Representation
|
3868
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListExamplesResponse
|
3869
|
+
command.params['parent'] = parent unless parent.nil?
|
3870
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
3871
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3872
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3873
|
+
command.query['fields'] = fields unless fields.nil?
|
3874
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3875
|
+
execute_or_queue_command(command, &block)
|
3876
|
+
end
|
3877
|
+
|
3878
|
+
# Update the specified example.
|
3879
|
+
# @param [String] name
|
3880
|
+
# The unique identifier of the playbook example. Format: `projects//locations//
|
3881
|
+
# agents//playbooks//examples/`.
|
3882
|
+
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Example] google_cloud_dialogflow_cx_v3_example_object
|
3883
|
+
# @param [String] update_mask
|
3884
|
+
# Optional. The mask to control which fields get updated. If the mask is not
|
3885
|
+
# present, all fields will be updated.
|
3886
|
+
# @param [String] fields
|
3887
|
+
# Selector specifying which fields to include in a partial response.
|
3888
|
+
# @param [String] quota_user
|
3889
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3890
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3891
|
+
# @param [Google::Apis::RequestOptions] options
|
3892
|
+
# Request-specific options
|
3893
|
+
#
|
3894
|
+
# @yield [result, err] Result & error if block supplied
|
3895
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Example] parsed result object
|
3896
|
+
# @yieldparam err [StandardError] error object if request failed
|
3897
|
+
#
|
3898
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Example]
|
3899
|
+
#
|
3900
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3901
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3902
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3903
|
+
def patch_project_location_agent_playbook_example(name, google_cloud_dialogflow_cx_v3_example_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3904
|
+
command = make_simple_command(:patch, 'v3/{+name}', options)
|
3905
|
+
command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Example::Representation
|
3906
|
+
command.request_object = google_cloud_dialogflow_cx_v3_example_object
|
3907
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Example::Representation
|
3908
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Example
|
3909
|
+
command.params['name'] = name unless name.nil?
|
3910
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3911
|
+
command.query['fields'] = fields unless fields.nil?
|
3912
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3913
|
+
execute_or_queue_command(command, &block)
|
3914
|
+
end
|
3915
|
+
|
3916
|
+
# Creates a version for the specified Playbook.
|
3917
|
+
# @param [String] parent
|
3918
|
+
# Required. The playbook to create a version for. Format: `projects//locations//
|
3919
|
+
# agents//playbooks/`.
|
3920
|
+
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PlaybookVersion] google_cloud_dialogflow_cx_v3_playbook_version_object
|
3921
|
+
# @param [String] fields
|
3922
|
+
# Selector specifying which fields to include in a partial response.
|
3923
|
+
# @param [String] quota_user
|
3924
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3925
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3926
|
+
# @param [Google::Apis::RequestOptions] options
|
3927
|
+
# Request-specific options
|
3928
|
+
#
|
3929
|
+
# @yield [result, err] Result & error if block supplied
|
3930
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PlaybookVersion] parsed result object
|
3931
|
+
# @yieldparam err [StandardError] error object if request failed
|
3932
|
+
#
|
3933
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PlaybookVersion]
|
3934
|
+
#
|
3935
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3936
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3937
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3938
|
+
def create_project_location_agent_playbook_version(parent, google_cloud_dialogflow_cx_v3_playbook_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3939
|
+
command = make_simple_command(:post, 'v3/{+parent}/versions', options)
|
3940
|
+
command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PlaybookVersion::Representation
|
3941
|
+
command.request_object = google_cloud_dialogflow_cx_v3_playbook_version_object
|
3942
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PlaybookVersion::Representation
|
3943
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PlaybookVersion
|
3944
|
+
command.params['parent'] = parent unless parent.nil?
|
3945
|
+
command.query['fields'] = fields unless fields.nil?
|
3946
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3947
|
+
execute_or_queue_command(command, &block)
|
3948
|
+
end
|
3949
|
+
|
3950
|
+
# Deletes the specified version of the Playbook.
|
3951
|
+
# @param [String] name
|
3952
|
+
# Required. The name of the playbook version to delete. Format: `projects//
|
3953
|
+
# locations//agents//playbooks//versions/`.
|
3954
|
+
# @param [String] fields
|
3955
|
+
# Selector specifying which fields to include in a partial response.
|
3956
|
+
# @param [String] quota_user
|
3957
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3958
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3959
|
+
# @param [Google::Apis::RequestOptions] options
|
3960
|
+
# Request-specific options
|
3961
|
+
#
|
3962
|
+
# @yield [result, err] Result & error if block supplied
|
3963
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
|
3964
|
+
# @yieldparam err [StandardError] error object if request failed
|
3965
|
+
#
|
3966
|
+
# @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
|
3967
|
+
#
|
3968
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3969
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3970
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3971
|
+
def delete_project_location_agent_playbook_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
3972
|
+
command = make_simple_command(:delete, 'v3/{+name}', options)
|
3973
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
|
3974
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
|
3975
|
+
command.params['name'] = name unless name.nil?
|
3976
|
+
command.query['fields'] = fields unless fields.nil?
|
3977
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3978
|
+
execute_or_queue_command(command, &block)
|
3979
|
+
end
|
3980
|
+
|
3981
|
+
# Retrieves the specified version of the Playbook.
|
3982
|
+
# @param [String] name
|
3983
|
+
# Required. The name of the playbook version. Format: `projects//locations//
|
3984
|
+
# agents//playbooks//versions/`.
|
3985
|
+
# @param [String] fields
|
3986
|
+
# Selector specifying which fields to include in a partial response.
|
3987
|
+
# @param [String] quota_user
|
3988
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3989
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3990
|
+
# @param [Google::Apis::RequestOptions] options
|
3991
|
+
# Request-specific options
|
3992
|
+
#
|
3993
|
+
# @yield [result, err] Result & error if block supplied
|
3994
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PlaybookVersion] parsed result object
|
3995
|
+
# @yieldparam err [StandardError] error object if request failed
|
3996
|
+
#
|
3997
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PlaybookVersion]
|
3998
|
+
#
|
3999
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4000
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4001
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4002
|
+
def get_project_location_agent_playbook_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
4003
|
+
command = make_simple_command(:get, 'v3/{+name}', options)
|
4004
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PlaybookVersion::Representation
|
4005
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PlaybookVersion
|
4006
|
+
command.params['name'] = name unless name.nil?
|
4007
|
+
command.query['fields'] = fields unless fields.nil?
|
4008
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4009
|
+
execute_or_queue_command(command, &block)
|
4010
|
+
end
|
4011
|
+
|
4012
|
+
# Lists versions for the specified Playbook.
|
4013
|
+
# @param [String] parent
|
4014
|
+
# Required. The playbook to list versions for. Format: `projects//locations//
|
4015
|
+
# agents//playbooks/`.
|
4016
|
+
# @param [Fixnum] page_size
|
4017
|
+
# Optional. The maximum number of items to return in a single page. By default
|
4018
|
+
# 100 and at most 1000.
|
4019
|
+
# @param [String] page_token
|
4020
|
+
# Optional. The next_page_token value returned from a previous list request.
|
4021
|
+
# @param [String] fields
|
4022
|
+
# Selector specifying which fields to include in a partial response.
|
4023
|
+
# @param [String] quota_user
|
4024
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4025
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4026
|
+
# @param [Google::Apis::RequestOptions] options
|
4027
|
+
# Request-specific options
|
4028
|
+
#
|
4029
|
+
# @yield [result, err] Result & error if block supplied
|
4030
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse] parsed result object
|
4031
|
+
# @yieldparam err [StandardError] error object if request failed
|
4032
|
+
#
|
4033
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse]
|
4034
|
+
#
|
4035
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4036
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4037
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4038
|
+
def list_project_location_agent_playbook_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4039
|
+
command = make_simple_command(:get, 'v3/{+parent}/versions', options)
|
4040
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse::Representation
|
4041
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPlaybookVersionsResponse
|
4042
|
+
command.params['parent'] = parent unless parent.nil?
|
4043
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
4044
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
4045
|
+
command.query['fields'] = fields unless fields.nil?
|
4046
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4047
|
+
execute_or_queue_command(command, &block)
|
4048
|
+
end
|
4049
|
+
|
4050
|
+
# Retrieves the specified version of the Playbook and stores it as the current
|
4051
|
+
# playbook draft, returning the playbook with resources updated.
|
4052
|
+
# @param [String] name
|
4053
|
+
# Required. The name of the playbook version. Format: `projects//locations//
|
4054
|
+
# agents//playbooks//versions/`.
|
4055
|
+
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestorePlaybookVersionRequest] google_cloud_dialogflow_cx_v3_restore_playbook_version_request_object
|
4056
|
+
# @param [String] fields
|
4057
|
+
# Selector specifying which fields to include in a partial response.
|
4058
|
+
# @param [String] quota_user
|
4059
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4060
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4061
|
+
# @param [Google::Apis::RequestOptions] options
|
4062
|
+
# Request-specific options
|
4063
|
+
#
|
4064
|
+
# @yield [result, err] Result & error if block supplied
|
4065
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse] parsed result object
|
4066
|
+
# @yieldparam err [StandardError] error object if request failed
|
4067
|
+
#
|
4068
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse]
|
4069
|
+
#
|
4070
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4071
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4072
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4073
|
+
def restore_project_location_agent_playbook_version(name, google_cloud_dialogflow_cx_v3_restore_playbook_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4074
|
+
command = make_simple_command(:post, 'v3/{+name}:restore', options)
|
4075
|
+
command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestorePlaybookVersionRequest::Representation
|
4076
|
+
command.request_object = google_cloud_dialogflow_cx_v3_restore_playbook_version_request_object
|
4077
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse::Representation
|
4078
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestorePlaybookVersionResponse
|
4079
|
+
command.params['name'] = name unless name.nil?
|
4080
|
+
command.query['fields'] = fields unless fields.nil?
|
4081
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4082
|
+
execute_or_queue_command(command, &block)
|
4083
|
+
end
|
4084
|
+
|
3494
4085
|
# Processes a natural language query and returns structured, actionable data as
|
3495
4086
|
# a result. This method is not idempotent, because it may cause session entity
|
3496
4087
|
# types to be updated, which in turn might affect results of future queries.
|
@@ -4330,6 +4921,183 @@ module Google
|
|
4330
4921
|
execute_or_queue_command(command, &block)
|
4331
4922
|
end
|
4332
4923
|
|
4924
|
+
# Creates a Tool in the specified agent.
|
4925
|
+
# @param [String] parent
|
4926
|
+
# Required. The agent to create a Tool for. Format: `projects//locations//agents/
|
4927
|
+
# `.
|
4928
|
+
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool] google_cloud_dialogflow_cx_v3_tool_object
|
4929
|
+
# @param [String] fields
|
4930
|
+
# Selector specifying which fields to include in a partial response.
|
4931
|
+
# @param [String] quota_user
|
4932
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4933
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4934
|
+
# @param [Google::Apis::RequestOptions] options
|
4935
|
+
# Request-specific options
|
4936
|
+
#
|
4937
|
+
# @yield [result, err] Result & error if block supplied
|
4938
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool] parsed result object
|
4939
|
+
# @yieldparam err [StandardError] error object if request failed
|
4940
|
+
#
|
4941
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool]
|
4942
|
+
#
|
4943
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4944
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4945
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4946
|
+
def create_project_location_agent_tool(parent, google_cloud_dialogflow_cx_v3_tool_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4947
|
+
command = make_simple_command(:post, 'v3/{+parent}/tools', options)
|
4948
|
+
command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool::Representation
|
4949
|
+
command.request_object = google_cloud_dialogflow_cx_v3_tool_object
|
4950
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool::Representation
|
4951
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool
|
4952
|
+
command.params['parent'] = parent unless parent.nil?
|
4953
|
+
command.query['fields'] = fields unless fields.nil?
|
4954
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4955
|
+
execute_or_queue_command(command, &block)
|
4956
|
+
end
|
4957
|
+
|
4958
|
+
# Deletes a specified Tool.
|
4959
|
+
# @param [String] name
|
4960
|
+
# Required. The name of the Tool to be deleted. Format: `projects//locations//
|
4961
|
+
# agents//tools/`.
|
4962
|
+
# @param [Boolean] force
|
4963
|
+
# This field has no effect for Tools not being used. For Tools that are used: *
|
4964
|
+
# If `force` is set to false, an error will be returned with message indicating
|
4965
|
+
# the referenced resources. * If `force` is set to true, Dialogflow will remove
|
4966
|
+
# the tool, as well as any references to the tool.
|
4967
|
+
# @param [String] fields
|
4968
|
+
# Selector specifying which fields to include in a partial response.
|
4969
|
+
# @param [String] quota_user
|
4970
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4971
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4972
|
+
# @param [Google::Apis::RequestOptions] options
|
4973
|
+
# Request-specific options
|
4974
|
+
#
|
4975
|
+
# @yield [result, err] Result & error if block supplied
|
4976
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
|
4977
|
+
# @yieldparam err [StandardError] error object if request failed
|
4978
|
+
#
|
4979
|
+
# @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
|
4980
|
+
#
|
4981
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4982
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4983
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4984
|
+
def delete_project_location_agent_tool(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4985
|
+
command = make_simple_command(:delete, 'v3/{+name}', options)
|
4986
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
|
4987
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
|
4988
|
+
command.params['name'] = name unless name.nil?
|
4989
|
+
command.query['force'] = force unless force.nil?
|
4990
|
+
command.query['fields'] = fields unless fields.nil?
|
4991
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4992
|
+
execute_or_queue_command(command, &block)
|
4993
|
+
end
|
4994
|
+
|
4995
|
+
# Retrieves the specified Tool.
|
4996
|
+
# @param [String] name
|
4997
|
+
# Required. The name of the Tool. Format: `projects//locations//agents//tools/`.
|
4998
|
+
# @param [String] fields
|
4999
|
+
# Selector specifying which fields to include in a partial response.
|
5000
|
+
# @param [String] quota_user
|
5001
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5002
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5003
|
+
# @param [Google::Apis::RequestOptions] options
|
5004
|
+
# Request-specific options
|
5005
|
+
#
|
5006
|
+
# @yield [result, err] Result & error if block supplied
|
5007
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool] parsed result object
|
5008
|
+
# @yieldparam err [StandardError] error object if request failed
|
5009
|
+
#
|
5010
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool]
|
5011
|
+
#
|
5012
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5013
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5014
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5015
|
+
def get_project_location_agent_tool(name, fields: nil, quota_user: nil, options: nil, &block)
|
5016
|
+
command = make_simple_command(:get, 'v3/{+name}', options)
|
5017
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool::Representation
|
5018
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool
|
5019
|
+
command.params['name'] = name unless name.nil?
|
5020
|
+
command.query['fields'] = fields unless fields.nil?
|
5021
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5022
|
+
execute_or_queue_command(command, &block)
|
5023
|
+
end
|
5024
|
+
|
5025
|
+
# Returns a list of Tools in the specified agent.
|
5026
|
+
# @param [String] parent
|
5027
|
+
# Required. The agent to list the Tools from. Format: `projects//locations//
|
5028
|
+
# agents/`.
|
5029
|
+
# @param [Fixnum] page_size
|
5030
|
+
# The maximum number of items to return in a single page. By default 100 and at
|
5031
|
+
# most 1000.
|
5032
|
+
# @param [String] page_token
|
5033
|
+
# The next_page_token value returned from a previous list request.
|
5034
|
+
# @param [String] fields
|
5035
|
+
# Selector specifying which fields to include in a partial response.
|
5036
|
+
# @param [String] quota_user
|
5037
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5038
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5039
|
+
# @param [Google::Apis::RequestOptions] options
|
5040
|
+
# Request-specific options
|
5041
|
+
#
|
5042
|
+
# @yield [result, err] Result & error if block supplied
|
5043
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListToolsResponse] parsed result object
|
5044
|
+
# @yieldparam err [StandardError] error object if request failed
|
5045
|
+
#
|
5046
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListToolsResponse]
|
5047
|
+
#
|
5048
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5049
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5050
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5051
|
+
def list_project_location_agent_tools(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5052
|
+
command = make_simple_command(:get, 'v3/{+parent}/tools', options)
|
5053
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListToolsResponse::Representation
|
5054
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListToolsResponse
|
5055
|
+
command.params['parent'] = parent unless parent.nil?
|
5056
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
5057
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5058
|
+
command.query['fields'] = fields unless fields.nil?
|
5059
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5060
|
+
execute_or_queue_command(command, &block)
|
5061
|
+
end
|
5062
|
+
|
5063
|
+
# Update the specified Tool.
|
5064
|
+
# @param [String] name
|
5065
|
+
# The unique identifier of the Tool. Format: `projects//locations//agents//tools/
|
5066
|
+
# `.
|
5067
|
+
# @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool] google_cloud_dialogflow_cx_v3_tool_object
|
5068
|
+
# @param [String] update_mask
|
5069
|
+
# The mask to control which fields get updated. If the mask is not present, all
|
5070
|
+
# fields will be updated.
|
5071
|
+
# @param [String] fields
|
5072
|
+
# Selector specifying which fields to include in a partial response.
|
5073
|
+
# @param [String] quota_user
|
5074
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5075
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5076
|
+
# @param [Google::Apis::RequestOptions] options
|
5077
|
+
# Request-specific options
|
5078
|
+
#
|
5079
|
+
# @yield [result, err] Result & error if block supplied
|
5080
|
+
# @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool] parsed result object
|
5081
|
+
# @yieldparam err [StandardError] error object if request failed
|
5082
|
+
#
|
5083
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool]
|
5084
|
+
#
|
5085
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5086
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5087
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5088
|
+
def patch_project_location_agent_tool(name, google_cloud_dialogflow_cx_v3_tool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5089
|
+
command = make_simple_command(:patch, 'v3/{+name}', options)
|
5090
|
+
command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool::Representation
|
5091
|
+
command.request_object = google_cloud_dialogflow_cx_v3_tool_object
|
5092
|
+
command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool::Representation
|
5093
|
+
command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Tool
|
5094
|
+
command.params['name'] = name unless name.nil?
|
5095
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
5096
|
+
command.query['fields'] = fields unless fields.nil?
|
5097
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5098
|
+
execute_or_queue_command(command, &block)
|
5099
|
+
end
|
5100
|
+
|
4333
5101
|
# Creates an TransitionRouteGroup in the specified flow. Note: You should always
|
4334
5102
|
# train a flow prior to sending it queries. See the [training documentation](
|
4335
5103
|
# https://cloud.google.com/dialogflow/cx/docs/concept/training).
|