google-cloud-contact_center_insights-v1 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/client.rb +3385 -196
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/operations.rb +3 -10
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb +122 -0
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/client.rb +3158 -186
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/operations.rb +3 -10
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/service_stub.rb +2116 -272
- data/lib/google/cloud/contact_center_insights/v1/version.rb +1 -1
- data/lib/google/cloud/contactcenterinsights/v1/contact_center_insights_pb.rb +70 -1
- data/lib/google/cloud/contactcenterinsights/v1/contact_center_insights_services_pb.rb +65 -3
- data/lib/google/cloud/contactcenterinsights/v1/resources_pb.rb +21 -1
- data/proto_docs/google/api/client.rb +20 -0
- data/proto_docs/google/cloud/contactcenterinsights/v1/contact_center_insights.rb +1165 -3
- data/proto_docs/google/cloud/contactcenterinsights/v1/resources.rb +496 -7
- data/proto_docs/google/longrunning/operations.rb +19 -14
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +24 -3
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/contactcenterinsights/v1/contact_center_insights_pb"
|
21
|
+
require "google/iam/v1"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -171,6 +172,13 @@ module Google
|
|
171
172
|
interceptors: @config.interceptors,
|
172
173
|
channel_pool_config: @config.channel_pool
|
173
174
|
)
|
175
|
+
|
176
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
177
|
+
config.credentials = credentials
|
178
|
+
config.quota_project = @quota_project_id
|
179
|
+
config.endpoint = @contact_center_insights_stub.endpoint
|
180
|
+
config.universe_domain = @contact_center_insights_stub.universe_domain
|
181
|
+
end
|
174
182
|
end
|
175
183
|
|
176
184
|
##
|
@@ -180,6 +188,13 @@ module Google
|
|
180
188
|
#
|
181
189
|
attr_reader :operations_client
|
182
190
|
|
191
|
+
##
|
192
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
193
|
+
#
|
194
|
+
# @return [Google::Iam::V1::IAMPolicy::Client]
|
195
|
+
#
|
196
|
+
attr_reader :iam_policy_client
|
197
|
+
|
183
198
|
# Service calls
|
184
199
|
|
185
200
|
##
|
@@ -3572,31 +3587,36 @@ module Google
|
|
3572
3587
|
end
|
3573
3588
|
|
3574
3589
|
##
|
3575
|
-
#
|
3590
|
+
# Creates a analysis rule.
|
3576
3591
|
#
|
3577
|
-
# @overload
|
3578
|
-
# Pass arguments to `
|
3579
|
-
# {::Google::Cloud::ContactCenterInsights::V1::
|
3592
|
+
# @overload create_analysis_rule(request, options = nil)
|
3593
|
+
# Pass arguments to `create_analysis_rule` via a request object, either of type
|
3594
|
+
# {::Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRuleRequest} or an equivalent Hash.
|
3580
3595
|
#
|
3581
|
-
# @param request [::Google::Cloud::ContactCenterInsights::V1::
|
3596
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRuleRequest, ::Hash]
|
3582
3597
|
# A request object representing the call parameters. Required. To specify no
|
3583
3598
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3584
3599
|
# @param options [::Gapic::CallOptions, ::Hash]
|
3585
3600
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3586
3601
|
#
|
3587
|
-
# @overload
|
3588
|
-
# Pass arguments to `
|
3602
|
+
# @overload create_analysis_rule(parent: nil, analysis_rule: nil)
|
3603
|
+
# Pass arguments to `create_analysis_rule` via keyword arguments. Note that at
|
3589
3604
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
3590
3605
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3591
3606
|
#
|
3592
|
-
# @param
|
3593
|
-
# Required. The
|
3607
|
+
# @param parent [::String]
|
3608
|
+
# Required. The parent resource of the analysis rule. Required. The location
|
3609
|
+
# to create a analysis rule for. Format: `projects/<Project
|
3610
|
+
# ID>/locations/<Location ID>` or `projects/<Project
|
3611
|
+
# Number>/locations/<Location ID>`
|
3612
|
+
# @param analysis_rule [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule, ::Hash]
|
3613
|
+
# Required. The analysis rule resource to create.
|
3594
3614
|
#
|
3595
3615
|
# @yield [response, operation] Access the result along with the RPC operation
|
3596
|
-
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::
|
3616
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
3597
3617
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3598
3618
|
#
|
3599
|
-
# @return [::Google::Cloud::ContactCenterInsights::V1::
|
3619
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
3600
3620
|
#
|
3601
3621
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3602
3622
|
#
|
@@ -3607,24 +3627,24 @@ module Google
|
|
3607
3627
|
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
3608
3628
|
#
|
3609
3629
|
# # Create a request. To set request fields, pass in keyword arguments.
|
3610
|
-
# request = Google::Cloud::ContactCenterInsights::V1::
|
3630
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRuleRequest.new
|
3611
3631
|
#
|
3612
|
-
# # Call the
|
3613
|
-
# result = client.
|
3632
|
+
# # Call the create_analysis_rule method.
|
3633
|
+
# result = client.create_analysis_rule request
|
3614
3634
|
#
|
3615
|
-
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::
|
3635
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::AnalysisRule.
|
3616
3636
|
# p result
|
3617
3637
|
#
|
3618
|
-
def
|
3638
|
+
def create_analysis_rule request, options = nil
|
3619
3639
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3620
3640
|
|
3621
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::
|
3641
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRuleRequest
|
3622
3642
|
|
3623
3643
|
# Converts hash and nil to an options object
|
3624
3644
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3625
3645
|
|
3626
3646
|
# Customize the options with defaults
|
3627
|
-
metadata = @config.rpcs.
|
3647
|
+
metadata = @config.rpcs.create_analysis_rule.metadata.to_h
|
3628
3648
|
|
3629
3649
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3630
3650
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -3634,22 +3654,22 @@ module Google
|
|
3634
3654
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3635
3655
|
|
3636
3656
|
header_params = {}
|
3637
|
-
if request.
|
3638
|
-
header_params["
|
3657
|
+
if request.parent
|
3658
|
+
header_params["parent"] = request.parent
|
3639
3659
|
end
|
3640
3660
|
|
3641
3661
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3642
3662
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3643
3663
|
|
3644
|
-
options.apply_defaults timeout: @config.rpcs.
|
3664
|
+
options.apply_defaults timeout: @config.rpcs.create_analysis_rule.timeout,
|
3645
3665
|
metadata: metadata,
|
3646
|
-
retry_policy: @config.rpcs.
|
3666
|
+
retry_policy: @config.rpcs.create_analysis_rule.retry_policy
|
3647
3667
|
|
3648
3668
|
options.apply_defaults timeout: @config.timeout,
|
3649
3669
|
metadata: @config.metadata,
|
3650
3670
|
retry_policy: @config.retry_policy
|
3651
3671
|
|
3652
|
-
@contact_center_insights_stub.call_rpc :
|
3672
|
+
@contact_center_insights_stub.call_rpc :create_analysis_rule, request, options: options do |response, operation|
|
3653
3673
|
yield response, operation if block_given?
|
3654
3674
|
return response
|
3655
3675
|
end
|
@@ -3658,38 +3678,31 @@ module Google
|
|
3658
3678
|
end
|
3659
3679
|
|
3660
3680
|
##
|
3661
|
-
#
|
3662
|
-
# be thrown if the location has resources already created before the
|
3663
|
-
# initialization. Once the encryption specification is initialized at a
|
3664
|
-
# location, it is immutable and all newly created resources under the
|
3665
|
-
# location will be encrypted with the existing specification.
|
3681
|
+
# Get a analysis rule.
|
3666
3682
|
#
|
3667
|
-
# @overload
|
3668
|
-
# Pass arguments to `
|
3669
|
-
# {::Google::Cloud::ContactCenterInsights::V1::
|
3683
|
+
# @overload get_analysis_rule(request, options = nil)
|
3684
|
+
# Pass arguments to `get_analysis_rule` via a request object, either of type
|
3685
|
+
# {::Google::Cloud::ContactCenterInsights::V1::GetAnalysisRuleRequest} or an equivalent Hash.
|
3670
3686
|
#
|
3671
|
-
# @param request [::Google::Cloud::ContactCenterInsights::V1::
|
3687
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::GetAnalysisRuleRequest, ::Hash]
|
3672
3688
|
# A request object representing the call parameters. Required. To specify no
|
3673
3689
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3674
3690
|
# @param options [::Gapic::CallOptions, ::Hash]
|
3675
3691
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3676
3692
|
#
|
3677
|
-
# @overload
|
3678
|
-
# Pass arguments to `
|
3693
|
+
# @overload get_analysis_rule(name: nil)
|
3694
|
+
# Pass arguments to `get_analysis_rule` via keyword arguments. Note that at
|
3679
3695
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
3680
3696
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3681
3697
|
#
|
3682
|
-
# @param
|
3683
|
-
# Required. The
|
3684
|
-
# the kms key is in the same region as the endpoint. The same key will be
|
3685
|
-
# used for all provisioned resources, if encryption is available. If the
|
3686
|
-
# kms_key_name is left empty, no encryption will be enforced.
|
3698
|
+
# @param name [::String]
|
3699
|
+
# Required. The name of the AnalysisRule to get.
|
3687
3700
|
#
|
3688
3701
|
# @yield [response, operation] Access the result along with the RPC operation
|
3689
|
-
# @yieldparam response [::
|
3702
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
3690
3703
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3691
3704
|
#
|
3692
|
-
# @return [::
|
3705
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
3693
3706
|
#
|
3694
3707
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3695
3708
|
#
|
@@ -3700,31 +3713,24 @@ module Google
|
|
3700
3713
|
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
3701
3714
|
#
|
3702
3715
|
# # Create a request. To set request fields, pass in keyword arguments.
|
3703
|
-
# request = Google::Cloud::ContactCenterInsights::V1::
|
3716
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetAnalysisRuleRequest.new
|
3704
3717
|
#
|
3705
|
-
# # Call the
|
3706
|
-
# result = client.
|
3718
|
+
# # Call the get_analysis_rule method.
|
3719
|
+
# result = client.get_analysis_rule request
|
3707
3720
|
#
|
3708
|
-
# # The returned object is of type
|
3709
|
-
#
|
3710
|
-
# # Here is how to wait for a response.
|
3711
|
-
# result.wait_until_done! timeout: 60
|
3712
|
-
# if result.response?
|
3713
|
-
# p result.response
|
3714
|
-
# else
|
3715
|
-
# puts "No response received."
|
3716
|
-
# end
|
3721
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::AnalysisRule.
|
3722
|
+
# p result
|
3717
3723
|
#
|
3718
|
-
def
|
3724
|
+
def get_analysis_rule request, options = nil
|
3719
3725
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3720
3726
|
|
3721
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::
|
3727
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetAnalysisRuleRequest
|
3722
3728
|
|
3723
3729
|
# Converts hash and nil to an options object
|
3724
3730
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3725
3731
|
|
3726
3732
|
# Customize the options with defaults
|
3727
|
-
metadata = @config.rpcs.
|
3733
|
+
metadata = @config.rpcs.get_analysis_rule.metadata.to_h
|
3728
3734
|
|
3729
3735
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3730
3736
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -3734,23 +3740,22 @@ module Google
|
|
3734
3740
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3735
3741
|
|
3736
3742
|
header_params = {}
|
3737
|
-
if request.
|
3738
|
-
header_params["
|
3743
|
+
if request.name
|
3744
|
+
header_params["name"] = request.name
|
3739
3745
|
end
|
3740
3746
|
|
3741
3747
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3742
3748
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3743
3749
|
|
3744
|
-
options.apply_defaults timeout: @config.rpcs.
|
3750
|
+
options.apply_defaults timeout: @config.rpcs.get_analysis_rule.timeout,
|
3745
3751
|
metadata: metadata,
|
3746
|
-
retry_policy: @config.rpcs.
|
3752
|
+
retry_policy: @config.rpcs.get_analysis_rule.retry_policy
|
3747
3753
|
|
3748
3754
|
options.apply_defaults timeout: @config.timeout,
|
3749
3755
|
metadata: @config.metadata,
|
3750
3756
|
retry_policy: @config.retry_policy
|
3751
3757
|
|
3752
|
-
@contact_center_insights_stub.call_rpc :
|
3753
|
-
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3758
|
+
@contact_center_insights_stub.call_rpc :get_analysis_rule, request, options: options do |response, operation|
|
3754
3759
|
yield response, operation if block_given?
|
3755
3760
|
return response
|
3756
3761
|
end
|
@@ -3759,36 +3764,40 @@ module Google
|
|
3759
3764
|
end
|
3760
3765
|
|
3761
3766
|
##
|
3762
|
-
#
|
3767
|
+
# Lists analysis rules.
|
3763
3768
|
#
|
3764
|
-
# @overload
|
3765
|
-
# Pass arguments to `
|
3766
|
-
# {::Google::Cloud::ContactCenterInsights::V1::
|
3769
|
+
# @overload list_analysis_rules(request, options = nil)
|
3770
|
+
# Pass arguments to `list_analysis_rules` via a request object, either of type
|
3771
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesRequest} or an equivalent Hash.
|
3767
3772
|
#
|
3768
|
-
# @param request [::Google::Cloud::ContactCenterInsights::V1::
|
3773
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesRequest, ::Hash]
|
3769
3774
|
# A request object representing the call parameters. Required. To specify no
|
3770
3775
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3771
3776
|
# @param options [::Gapic::CallOptions, ::Hash]
|
3772
3777
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3773
3778
|
#
|
3774
|
-
# @overload
|
3775
|
-
# Pass arguments to `
|
3779
|
+
# @overload list_analysis_rules(parent: nil, page_size: nil, page_token: nil)
|
3780
|
+
# Pass arguments to `list_analysis_rules` via keyword arguments. Note that at
|
3776
3781
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
3777
3782
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3778
3783
|
#
|
3779
3784
|
# @param parent [::String]
|
3780
|
-
# Required. The parent resource of the
|
3781
|
-
#
|
3782
|
-
#
|
3783
|
-
#
|
3784
|
-
#
|
3785
|
-
#
|
3785
|
+
# Required. The parent resource of the analysis rules.
|
3786
|
+
# @param page_size [::Integer]
|
3787
|
+
# Optional. The maximum number of analysis rule to return in the response. If
|
3788
|
+
# this value is zero, the service will select a default size. A call may
|
3789
|
+
# return fewer objects than requested. A non-empty `next_page_token` in the
|
3790
|
+
# response indicates that more data is available.
|
3791
|
+
# @param page_token [::String]
|
3792
|
+
# Optional. The value returned by the last `ListAnalysisRulesResponse`;
|
3793
|
+
# indicates that this is a continuation of a prior `ListAnalysisRules` call
|
3794
|
+
# and the system should return the next page of data.
|
3786
3795
|
#
|
3787
3796
|
# @yield [response, operation] Access the result along with the RPC operation
|
3788
|
-
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::
|
3797
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::AnalysisRule>]
|
3789
3798
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3790
3799
|
#
|
3791
|
-
# @return [::Google::Cloud::ContactCenterInsights::V1::
|
3800
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::AnalysisRule>]
|
3792
3801
|
#
|
3793
3802
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3794
3803
|
#
|
@@ -3799,24 +3808,28 @@ module Google
|
|
3799
3808
|
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
3800
3809
|
#
|
3801
3810
|
# # Create a request. To set request fields, pass in keyword arguments.
|
3802
|
-
# request = Google::Cloud::ContactCenterInsights::V1::
|
3811
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesRequest.new
|
3803
3812
|
#
|
3804
|
-
# # Call the
|
3805
|
-
# result = client.
|
3813
|
+
# # Call the list_analysis_rules method.
|
3814
|
+
# result = client.list_analysis_rules request
|
3806
3815
|
#
|
3807
|
-
# # The returned object is of type
|
3808
|
-
#
|
3816
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3817
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3818
|
+
# result.each do |item|
|
3819
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::AnalysisRule.
|
3820
|
+
# p item
|
3821
|
+
# end
|
3809
3822
|
#
|
3810
|
-
def
|
3823
|
+
def list_analysis_rules request, options = nil
|
3811
3824
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3812
3825
|
|
3813
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::
|
3826
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesRequest
|
3814
3827
|
|
3815
3828
|
# Converts hash and nil to an options object
|
3816
3829
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3817
3830
|
|
3818
3831
|
# Customize the options with defaults
|
3819
|
-
metadata = @config.rpcs.
|
3832
|
+
metadata = @config.rpcs.list_analysis_rules.metadata.to_h
|
3820
3833
|
|
3821
3834
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3822
3835
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -3833,15 +3846,16 @@ module Google
|
|
3833
3846
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3834
3847
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3835
3848
|
|
3836
|
-
options.apply_defaults timeout: @config.rpcs.
|
3849
|
+
options.apply_defaults timeout: @config.rpcs.list_analysis_rules.timeout,
|
3837
3850
|
metadata: metadata,
|
3838
|
-
retry_policy: @config.rpcs.
|
3851
|
+
retry_policy: @config.rpcs.list_analysis_rules.retry_policy
|
3839
3852
|
|
3840
3853
|
options.apply_defaults timeout: @config.timeout,
|
3841
3854
|
metadata: @config.metadata,
|
3842
3855
|
retry_policy: @config.retry_policy
|
3843
3856
|
|
3844
|
-
@contact_center_insights_stub.call_rpc :
|
3857
|
+
@contact_center_insights_stub.call_rpc :list_analysis_rules, request, options: options do |response, operation|
|
3858
|
+
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_analysis_rules, request, response, operation, options
|
3845
3859
|
yield response, operation if block_given?
|
3846
3860
|
return response
|
3847
3861
|
end
|
@@ -3850,31 +3864,35 @@ module Google
|
|
3850
3864
|
end
|
3851
3865
|
|
3852
3866
|
##
|
3853
|
-
#
|
3867
|
+
# Updates a analysis rule.
|
3854
3868
|
#
|
3855
|
-
# @overload
|
3856
|
-
# Pass arguments to `
|
3857
|
-
# {::Google::Cloud::ContactCenterInsights::V1::
|
3869
|
+
# @overload update_analysis_rule(request, options = nil)
|
3870
|
+
# Pass arguments to `update_analysis_rule` via a request object, either of type
|
3871
|
+
# {::Google::Cloud::ContactCenterInsights::V1::UpdateAnalysisRuleRequest} or an equivalent Hash.
|
3858
3872
|
#
|
3859
|
-
# @param request [::Google::Cloud::ContactCenterInsights::V1::
|
3873
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::UpdateAnalysisRuleRequest, ::Hash]
|
3860
3874
|
# A request object representing the call parameters. Required. To specify no
|
3861
3875
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3862
3876
|
# @param options [::Gapic::CallOptions, ::Hash]
|
3863
3877
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3864
3878
|
#
|
3865
|
-
# @overload
|
3866
|
-
# Pass arguments to `
|
3879
|
+
# @overload update_analysis_rule(analysis_rule: nil, update_mask: nil)
|
3880
|
+
# Pass arguments to `update_analysis_rule` via keyword arguments. Note that at
|
3867
3881
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
3868
3882
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3869
3883
|
#
|
3870
|
-
# @param
|
3871
|
-
# Required. The
|
3884
|
+
# @param analysis_rule [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule, ::Hash]
|
3885
|
+
# Required. The new analysis rule.
|
3886
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
3887
|
+
# Optional. The list of fields to be updated.
|
3888
|
+
# If the update_mask is not provided, the update will be applied to all
|
3889
|
+
# fields.
|
3872
3890
|
#
|
3873
3891
|
# @yield [response, operation] Access the result along with the RPC operation
|
3874
|
-
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::
|
3892
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
3875
3893
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3876
3894
|
#
|
3877
|
-
# @return [::Google::Cloud::ContactCenterInsights::V1::
|
3895
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
3878
3896
|
#
|
3879
3897
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3880
3898
|
#
|
@@ -3885,24 +3903,24 @@ module Google
|
|
3885
3903
|
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
3886
3904
|
#
|
3887
3905
|
# # Create a request. To set request fields, pass in keyword arguments.
|
3888
|
-
# request = Google::Cloud::ContactCenterInsights::V1::
|
3906
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UpdateAnalysisRuleRequest.new
|
3889
3907
|
#
|
3890
|
-
# # Call the
|
3891
|
-
# result = client.
|
3908
|
+
# # Call the update_analysis_rule method.
|
3909
|
+
# result = client.update_analysis_rule request
|
3892
3910
|
#
|
3893
|
-
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::
|
3911
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::AnalysisRule.
|
3894
3912
|
# p result
|
3895
3913
|
#
|
3896
|
-
def
|
3914
|
+
def update_analysis_rule request, options = nil
|
3897
3915
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3898
3916
|
|
3899
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::
|
3917
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::UpdateAnalysisRuleRequest
|
3900
3918
|
|
3901
3919
|
# Converts hash and nil to an options object
|
3902
3920
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3903
3921
|
|
3904
3922
|
# Customize the options with defaults
|
3905
|
-
metadata = @config.rpcs.
|
3923
|
+
metadata = @config.rpcs.update_analysis_rule.metadata.to_h
|
3906
3924
|
|
3907
3925
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3908
3926
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -3912,22 +3930,22 @@ module Google
|
|
3912
3930
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3913
3931
|
|
3914
3932
|
header_params = {}
|
3915
|
-
if request.name
|
3916
|
-
header_params["name"] = request.name
|
3933
|
+
if request.analysis_rule&.name
|
3934
|
+
header_params["analysis_rule.name"] = request.analysis_rule.name
|
3917
3935
|
end
|
3918
3936
|
|
3919
3937
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3920
3938
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3921
3939
|
|
3922
|
-
options.apply_defaults timeout: @config.rpcs.
|
3940
|
+
options.apply_defaults timeout: @config.rpcs.update_analysis_rule.timeout,
|
3923
3941
|
metadata: metadata,
|
3924
|
-
retry_policy: @config.rpcs.
|
3942
|
+
retry_policy: @config.rpcs.update_analysis_rule.retry_policy
|
3925
3943
|
|
3926
3944
|
options.apply_defaults timeout: @config.timeout,
|
3927
3945
|
metadata: @config.metadata,
|
3928
3946
|
retry_policy: @config.retry_policy
|
3929
3947
|
|
3930
|
-
@contact_center_insights_stub.call_rpc :
|
3948
|
+
@contact_center_insights_stub.call_rpc :update_analysis_rule, request, options: options do |response, operation|
|
3931
3949
|
yield response, operation if block_given?
|
3932
3950
|
return response
|
3933
3951
|
end
|
@@ -3936,40 +3954,31 @@ module Google
|
|
3936
3954
|
end
|
3937
3955
|
|
3938
3956
|
##
|
3939
|
-
#
|
3957
|
+
# Deletes a analysis rule.
|
3940
3958
|
#
|
3941
|
-
# @overload
|
3942
|
-
# Pass arguments to `
|
3943
|
-
# {::Google::Cloud::ContactCenterInsights::V1::
|
3959
|
+
# @overload delete_analysis_rule(request, options = nil)
|
3960
|
+
# Pass arguments to `delete_analysis_rule` via a request object, either of type
|
3961
|
+
# {::Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRuleRequest} or an equivalent Hash.
|
3944
3962
|
#
|
3945
|
-
# @param request [::Google::Cloud::ContactCenterInsights::V1::
|
3963
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRuleRequest, ::Hash]
|
3946
3964
|
# A request object representing the call parameters. Required. To specify no
|
3947
3965
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3948
3966
|
# @param options [::Gapic::CallOptions, ::Hash]
|
3949
3967
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3950
3968
|
#
|
3951
|
-
# @overload
|
3952
|
-
# Pass arguments to `
|
3969
|
+
# @overload delete_analysis_rule(name: nil)
|
3970
|
+
# Pass arguments to `delete_analysis_rule` via keyword arguments. Note that at
|
3953
3971
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
3954
3972
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3955
3973
|
#
|
3956
|
-
# @param
|
3957
|
-
# Required. The
|
3958
|
-
# @param page_size [::Integer]
|
3959
|
-
# The maximum number of views to return in the response. If this
|
3960
|
-
# value is zero, the service will select a default size. A call may return
|
3961
|
-
# fewer objects than requested. A non-empty `next_page_token` in the response
|
3962
|
-
# indicates that more data is available.
|
3963
|
-
# @param page_token [::String]
|
3964
|
-
# The value returned by the last `ListViewsResponse`; indicates
|
3965
|
-
# that this is a continuation of a prior `ListViews` call and
|
3966
|
-
# the system should return the next page of data.
|
3974
|
+
# @param name [::String]
|
3975
|
+
# Required. The name of the analysis rule to delete.
|
3967
3976
|
#
|
3968
3977
|
# @yield [response, operation] Access the result along with the RPC operation
|
3969
|
-
# @yieldparam response [::
|
3978
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
3970
3979
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3971
3980
|
#
|
3972
|
-
# @return [::
|
3981
|
+
# @return [::Google::Protobuf::Empty]
|
3973
3982
|
#
|
3974
3983
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3975
3984
|
#
|
@@ -3980,28 +3989,24 @@ module Google
|
|
3980
3989
|
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
3981
3990
|
#
|
3982
3991
|
# # Create a request. To set request fields, pass in keyword arguments.
|
3983
|
-
# request = Google::Cloud::ContactCenterInsights::V1::
|
3992
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRuleRequest.new
|
3984
3993
|
#
|
3985
|
-
# # Call the
|
3986
|
-
# result = client.
|
3994
|
+
# # Call the delete_analysis_rule method.
|
3995
|
+
# result = client.delete_analysis_rule request
|
3987
3996
|
#
|
3988
|
-
# # The returned object is of type
|
3989
|
-
#
|
3990
|
-
# result.each do |item|
|
3991
|
-
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::View.
|
3992
|
-
# p item
|
3993
|
-
# end
|
3997
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
3998
|
+
# p result
|
3994
3999
|
#
|
3995
|
-
def
|
4000
|
+
def delete_analysis_rule request, options = nil
|
3996
4001
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3997
4002
|
|
3998
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::
|
4003
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRuleRequest
|
3999
4004
|
|
4000
4005
|
# Converts hash and nil to an options object
|
4001
4006
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4002
4007
|
|
4003
4008
|
# Customize the options with defaults
|
4004
|
-
metadata = @config.rpcs.
|
4009
|
+
metadata = @config.rpcs.delete_analysis_rule.metadata.to_h
|
4005
4010
|
|
4006
4011
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4007
4012
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -4011,23 +4016,22 @@ module Google
|
|
4011
4016
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4012
4017
|
|
4013
4018
|
header_params = {}
|
4014
|
-
if request.
|
4015
|
-
header_params["
|
4019
|
+
if request.name
|
4020
|
+
header_params["name"] = request.name
|
4016
4021
|
end
|
4017
4022
|
|
4018
4023
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4019
4024
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4020
4025
|
|
4021
|
-
options.apply_defaults timeout: @config.rpcs.
|
4026
|
+
options.apply_defaults timeout: @config.rpcs.delete_analysis_rule.timeout,
|
4022
4027
|
metadata: metadata,
|
4023
|
-
retry_policy: @config.rpcs.
|
4028
|
+
retry_policy: @config.rpcs.delete_analysis_rule.retry_policy
|
4024
4029
|
|
4025
4030
|
options.apply_defaults timeout: @config.timeout,
|
4026
4031
|
metadata: @config.metadata,
|
4027
4032
|
retry_policy: @config.retry_policy
|
4028
4033
|
|
4029
|
-
@contact_center_insights_stub.call_rpc :
|
4030
|
-
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_views, request, response, operation, options
|
4034
|
+
@contact_center_insights_stub.call_rpc :delete_analysis_rule, request, options: options do |response, operation|
|
4031
4035
|
yield response, operation if block_given?
|
4032
4036
|
return response
|
4033
4037
|
end
|
@@ -4036,33 +4040,31 @@ module Google
|
|
4036
4040
|
end
|
4037
4041
|
|
4038
4042
|
##
|
4039
|
-
#
|
4043
|
+
# Gets location-level encryption key specification.
|
4040
4044
|
#
|
4041
|
-
# @overload
|
4042
|
-
# Pass arguments to `
|
4043
|
-
# {::Google::Cloud::ContactCenterInsights::V1::
|
4045
|
+
# @overload get_encryption_spec(request, options = nil)
|
4046
|
+
# Pass arguments to `get_encryption_spec` via a request object, either of type
|
4047
|
+
# {::Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest} or an equivalent Hash.
|
4044
4048
|
#
|
4045
|
-
# @param request [::Google::Cloud::ContactCenterInsights::V1::
|
4049
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest, ::Hash]
|
4046
4050
|
# A request object representing the call parameters. Required. To specify no
|
4047
4051
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4048
4052
|
# @param options [::Gapic::CallOptions, ::Hash]
|
4049
4053
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4050
4054
|
#
|
4051
|
-
# @overload
|
4052
|
-
# Pass arguments to `
|
4055
|
+
# @overload get_encryption_spec(name: nil)
|
4056
|
+
# Pass arguments to `get_encryption_spec` via keyword arguments. Note that at
|
4053
4057
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
4054
4058
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
4055
4059
|
#
|
4056
|
-
# @param
|
4057
|
-
# Required. The
|
4058
|
-
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
4059
|
-
# The list of fields to be updated.
|
4060
|
+
# @param name [::String]
|
4061
|
+
# Required. The name of the encryption spec resource to get.
|
4060
4062
|
#
|
4061
4063
|
# @yield [response, operation] Access the result along with the RPC operation
|
4062
|
-
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::
|
4064
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec]
|
4063
4065
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4064
4066
|
#
|
4065
|
-
# @return [::Google::Cloud::ContactCenterInsights::V1::
|
4067
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec]
|
4066
4068
|
#
|
4067
4069
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4068
4070
|
#
|
@@ -4073,24 +4075,24 @@ module Google
|
|
4073
4075
|
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4074
4076
|
#
|
4075
4077
|
# # Create a request. To set request fields, pass in keyword arguments.
|
4076
|
-
# request = Google::Cloud::ContactCenterInsights::V1::
|
4078
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest.new
|
4077
4079
|
#
|
4078
|
-
# # Call the
|
4079
|
-
# result = client.
|
4080
|
+
# # Call the get_encryption_spec method.
|
4081
|
+
# result = client.get_encryption_spec request
|
4080
4082
|
#
|
4081
|
-
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::
|
4083
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::EncryptionSpec.
|
4082
4084
|
# p result
|
4083
4085
|
#
|
4084
|
-
def
|
4086
|
+
def get_encryption_spec request, options = nil
|
4085
4087
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4086
4088
|
|
4087
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::
|
4089
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest
|
4088
4090
|
|
4089
4091
|
# Converts hash and nil to an options object
|
4090
4092
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4091
4093
|
|
4092
4094
|
# Customize the options with defaults
|
4093
|
-
metadata = @config.rpcs.
|
4095
|
+
metadata = @config.rpcs.get_encryption_spec.metadata.to_h
|
4094
4096
|
|
4095
4097
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4096
4098
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -4100,22 +4102,22 @@ module Google
|
|
4100
4102
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4101
4103
|
|
4102
4104
|
header_params = {}
|
4103
|
-
if request.
|
4104
|
-
header_params["
|
4105
|
+
if request.name
|
4106
|
+
header_params["name"] = request.name
|
4105
4107
|
end
|
4106
4108
|
|
4107
4109
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4108
4110
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4109
4111
|
|
4110
|
-
options.apply_defaults timeout: @config.rpcs.
|
4112
|
+
options.apply_defaults timeout: @config.rpcs.get_encryption_spec.timeout,
|
4111
4113
|
metadata: metadata,
|
4112
|
-
retry_policy: @config.rpcs.
|
4114
|
+
retry_policy: @config.rpcs.get_encryption_spec.retry_policy
|
4113
4115
|
|
4114
4116
|
options.apply_defaults timeout: @config.timeout,
|
4115
4117
|
metadata: @config.metadata,
|
4116
4118
|
retry_policy: @config.retry_policy
|
4117
4119
|
|
4118
|
-
@contact_center_insights_stub.call_rpc :
|
4120
|
+
@contact_center_insights_stub.call_rpc :get_encryption_spec, request, options: options do |response, operation|
|
4119
4121
|
yield response, operation if block_given?
|
4120
4122
|
return response
|
4121
4123
|
end
|
@@ -4124,31 +4126,38 @@ module Google
|
|
4124
4126
|
end
|
4125
4127
|
|
4126
4128
|
##
|
4127
|
-
#
|
4129
|
+
# Initializes a location-level encryption key specification. An error will
|
4130
|
+
# result if the location has resources already created before the
|
4131
|
+
# initialization. After the encryption specification is initialized at a
|
4132
|
+
# location, it is immutable and all newly created resources under the
|
4133
|
+
# location will be encrypted with the existing specification.
|
4128
4134
|
#
|
4129
|
-
# @overload
|
4130
|
-
# Pass arguments to `
|
4131
|
-
# {::Google::Cloud::ContactCenterInsights::V1::
|
4135
|
+
# @overload initialize_encryption_spec(request, options = nil)
|
4136
|
+
# Pass arguments to `initialize_encryption_spec` via a request object, either of type
|
4137
|
+
# {::Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest} or an equivalent Hash.
|
4132
4138
|
#
|
4133
|
-
# @param request [::Google::Cloud::ContactCenterInsights::V1::
|
4139
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest, ::Hash]
|
4134
4140
|
# A request object representing the call parameters. Required. To specify no
|
4135
4141
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4136
4142
|
# @param options [::Gapic::CallOptions, ::Hash]
|
4137
4143
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4138
4144
|
#
|
4139
|
-
# @overload
|
4140
|
-
# Pass arguments to `
|
4145
|
+
# @overload initialize_encryption_spec(encryption_spec: nil)
|
4146
|
+
# Pass arguments to `initialize_encryption_spec` via keyword arguments. Note that at
|
4141
4147
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
4142
4148
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
4143
4149
|
#
|
4144
|
-
# @param
|
4145
|
-
# Required. The
|
4150
|
+
# @param encryption_spec [::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec, ::Hash]
|
4151
|
+
# Required. The encryption spec used for CMEK encryption. It is required that
|
4152
|
+
# the kms key is in the same region as the endpoint. The same key will be
|
4153
|
+
# used for all provisioned resources, if encryption is available. If the
|
4154
|
+
# `kms_key_name` field is left empty, no encryption will be enforced.
|
4146
4155
|
#
|
4147
4156
|
# @yield [response, operation] Access the result along with the RPC operation
|
4148
|
-
# @yieldparam response [::
|
4157
|
+
# @yieldparam response [::Gapic::Operation]
|
4149
4158
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4150
4159
|
#
|
4151
|
-
# @return [::
|
4160
|
+
# @return [::Gapic::Operation]
|
4152
4161
|
#
|
4153
4162
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4154
4163
|
#
|
@@ -4159,24 +4168,2861 @@ module Google
|
|
4159
4168
|
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4160
4169
|
#
|
4161
4170
|
# # Create a request. To set request fields, pass in keyword arguments.
|
4162
|
-
# request = Google::Cloud::ContactCenterInsights::V1::
|
4171
|
+
# request = Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest.new
|
4163
4172
|
#
|
4164
|
-
# # Call the
|
4165
|
-
# result = client.
|
4173
|
+
# # Call the initialize_encryption_spec method.
|
4174
|
+
# result = client.initialize_encryption_spec request
|
4175
|
+
#
|
4176
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
4177
|
+
# # check the status of an operation, cancel it, or wait for results.
|
4178
|
+
# # Here is how to wait for a response.
|
4179
|
+
# result.wait_until_done! timeout: 60
|
4180
|
+
# if result.response?
|
4181
|
+
# p result.response
|
4182
|
+
# else
|
4183
|
+
# puts "No response received."
|
4184
|
+
# end
|
4185
|
+
#
|
4186
|
+
def initialize_encryption_spec request, options = nil
|
4187
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4188
|
+
|
4189
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest
|
4190
|
+
|
4191
|
+
# Converts hash and nil to an options object
|
4192
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4193
|
+
|
4194
|
+
# Customize the options with defaults
|
4195
|
+
metadata = @config.rpcs.initialize_encryption_spec.metadata.to_h
|
4196
|
+
|
4197
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4198
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4199
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4200
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4201
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4202
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4203
|
+
|
4204
|
+
header_params = {}
|
4205
|
+
if request.encryption_spec&.name
|
4206
|
+
header_params["encryption_spec.name"] = request.encryption_spec.name
|
4207
|
+
end
|
4208
|
+
|
4209
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4210
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4211
|
+
|
4212
|
+
options.apply_defaults timeout: @config.rpcs.initialize_encryption_spec.timeout,
|
4213
|
+
metadata: metadata,
|
4214
|
+
retry_policy: @config.rpcs.initialize_encryption_spec.retry_policy
|
4215
|
+
|
4216
|
+
options.apply_defaults timeout: @config.timeout,
|
4217
|
+
metadata: @config.metadata,
|
4218
|
+
retry_policy: @config.retry_policy
|
4219
|
+
|
4220
|
+
@contact_center_insights_stub.call_rpc :initialize_encryption_spec, request, options: options do |response, operation|
|
4221
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4222
|
+
yield response, operation if block_given?
|
4223
|
+
return response
|
4224
|
+
end
|
4225
|
+
rescue ::GRPC::BadStatus => e
|
4226
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4227
|
+
end
|
4228
|
+
|
4229
|
+
##
|
4230
|
+
# Creates a view.
|
4231
|
+
#
|
4232
|
+
# @overload create_view(request, options = nil)
|
4233
|
+
# Pass arguments to `create_view` via a request object, either of type
|
4234
|
+
# {::Google::Cloud::ContactCenterInsights::V1::CreateViewRequest} or an equivalent Hash.
|
4235
|
+
#
|
4236
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::CreateViewRequest, ::Hash]
|
4237
|
+
# A request object representing the call parameters. Required. To specify no
|
4238
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4239
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4240
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4241
|
+
#
|
4242
|
+
# @overload create_view(parent: nil, view: nil)
|
4243
|
+
# Pass arguments to `create_view` via keyword arguments. Note that at
|
4244
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4245
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4246
|
+
#
|
4247
|
+
# @param parent [::String]
|
4248
|
+
# Required. The parent resource of the view. Required. The location to create
|
4249
|
+
# a view for.
|
4250
|
+
# Format: `projects/<Project ID>/locations/<Location ID>` or
|
4251
|
+
# `projects/<Project Number>/locations/<Location ID>`
|
4252
|
+
# @param view [::Google::Cloud::ContactCenterInsights::V1::View, ::Hash]
|
4253
|
+
# Required. The view resource to create.
|
4254
|
+
#
|
4255
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4256
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::View]
|
4257
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4258
|
+
#
|
4259
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::View]
|
4260
|
+
#
|
4261
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4262
|
+
#
|
4263
|
+
# @example Basic example
|
4264
|
+
# require "google/cloud/contact_center_insights/v1"
|
4265
|
+
#
|
4266
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4267
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4268
|
+
#
|
4269
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4270
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreateViewRequest.new
|
4271
|
+
#
|
4272
|
+
# # Call the create_view method.
|
4273
|
+
# result = client.create_view request
|
4274
|
+
#
|
4275
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::View.
|
4276
|
+
# p result
|
4277
|
+
#
|
4278
|
+
def create_view request, options = nil
|
4279
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4280
|
+
|
4281
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::CreateViewRequest
|
4282
|
+
|
4283
|
+
# Converts hash and nil to an options object
|
4284
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4285
|
+
|
4286
|
+
# Customize the options with defaults
|
4287
|
+
metadata = @config.rpcs.create_view.metadata.to_h
|
4288
|
+
|
4289
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4290
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4291
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4292
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4293
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4294
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4295
|
+
|
4296
|
+
header_params = {}
|
4297
|
+
if request.parent
|
4298
|
+
header_params["parent"] = request.parent
|
4299
|
+
end
|
4300
|
+
|
4301
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4302
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4303
|
+
|
4304
|
+
options.apply_defaults timeout: @config.rpcs.create_view.timeout,
|
4305
|
+
metadata: metadata,
|
4306
|
+
retry_policy: @config.rpcs.create_view.retry_policy
|
4307
|
+
|
4308
|
+
options.apply_defaults timeout: @config.timeout,
|
4309
|
+
metadata: @config.metadata,
|
4310
|
+
retry_policy: @config.retry_policy
|
4311
|
+
|
4312
|
+
@contact_center_insights_stub.call_rpc :create_view, request, options: options do |response, operation|
|
4313
|
+
yield response, operation if block_given?
|
4314
|
+
return response
|
4315
|
+
end
|
4316
|
+
rescue ::GRPC::BadStatus => e
|
4317
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4318
|
+
end
|
4319
|
+
|
4320
|
+
##
|
4321
|
+
# Gets a view.
|
4322
|
+
#
|
4323
|
+
# @overload get_view(request, options = nil)
|
4324
|
+
# Pass arguments to `get_view` via a request object, either of type
|
4325
|
+
# {::Google::Cloud::ContactCenterInsights::V1::GetViewRequest} or an equivalent Hash.
|
4326
|
+
#
|
4327
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::GetViewRequest, ::Hash]
|
4328
|
+
# A request object representing the call parameters. Required. To specify no
|
4329
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4330
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4331
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4332
|
+
#
|
4333
|
+
# @overload get_view(name: nil)
|
4334
|
+
# Pass arguments to `get_view` via keyword arguments. Note that at
|
4335
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4336
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4337
|
+
#
|
4338
|
+
# @param name [::String]
|
4339
|
+
# Required. The name of the view to get.
|
4340
|
+
#
|
4341
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4342
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::View]
|
4343
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4344
|
+
#
|
4345
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::View]
|
4346
|
+
#
|
4347
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4348
|
+
#
|
4349
|
+
# @example Basic example
|
4350
|
+
# require "google/cloud/contact_center_insights/v1"
|
4351
|
+
#
|
4352
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4353
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4354
|
+
#
|
4355
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4356
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetViewRequest.new
|
4357
|
+
#
|
4358
|
+
# # Call the get_view method.
|
4359
|
+
# result = client.get_view request
|
4360
|
+
#
|
4361
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::View.
|
4362
|
+
# p result
|
4363
|
+
#
|
4364
|
+
def get_view request, options = nil
|
4365
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4366
|
+
|
4367
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetViewRequest
|
4368
|
+
|
4369
|
+
# Converts hash and nil to an options object
|
4370
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4371
|
+
|
4372
|
+
# Customize the options with defaults
|
4373
|
+
metadata = @config.rpcs.get_view.metadata.to_h
|
4374
|
+
|
4375
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4376
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4377
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4378
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4379
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4380
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4381
|
+
|
4382
|
+
header_params = {}
|
4383
|
+
if request.name
|
4384
|
+
header_params["name"] = request.name
|
4385
|
+
end
|
4386
|
+
|
4387
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4388
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4389
|
+
|
4390
|
+
options.apply_defaults timeout: @config.rpcs.get_view.timeout,
|
4391
|
+
metadata: metadata,
|
4392
|
+
retry_policy: @config.rpcs.get_view.retry_policy
|
4393
|
+
|
4394
|
+
options.apply_defaults timeout: @config.timeout,
|
4395
|
+
metadata: @config.metadata,
|
4396
|
+
retry_policy: @config.retry_policy
|
4397
|
+
|
4398
|
+
@contact_center_insights_stub.call_rpc :get_view, request, options: options do |response, operation|
|
4399
|
+
yield response, operation if block_given?
|
4400
|
+
return response
|
4401
|
+
end
|
4402
|
+
rescue ::GRPC::BadStatus => e
|
4403
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4404
|
+
end
|
4405
|
+
|
4406
|
+
##
|
4407
|
+
# Lists views.
|
4408
|
+
#
|
4409
|
+
# @overload list_views(request, options = nil)
|
4410
|
+
# Pass arguments to `list_views` via a request object, either of type
|
4411
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ListViewsRequest} or an equivalent Hash.
|
4412
|
+
#
|
4413
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ListViewsRequest, ::Hash]
|
4414
|
+
# A request object representing the call parameters. Required. To specify no
|
4415
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4416
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4417
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4418
|
+
#
|
4419
|
+
# @overload list_views(parent: nil, page_size: nil, page_token: nil)
|
4420
|
+
# Pass arguments to `list_views` via keyword arguments. Note that at
|
4421
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4422
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4423
|
+
#
|
4424
|
+
# @param parent [::String]
|
4425
|
+
# Required. The parent resource of the views.
|
4426
|
+
# @param page_size [::Integer]
|
4427
|
+
# The maximum number of views to return in the response. If this
|
4428
|
+
# value is zero, the service will select a default size. A call may return
|
4429
|
+
# fewer objects than requested. A non-empty `next_page_token` in the response
|
4430
|
+
# indicates that more data is available.
|
4431
|
+
# @param page_token [::String]
|
4432
|
+
# The value returned by the last `ListViewsResponse`; indicates
|
4433
|
+
# that this is a continuation of a prior `ListViews` call and
|
4434
|
+
# the system should return the next page of data.
|
4435
|
+
#
|
4436
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4437
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::View>]
|
4438
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4439
|
+
#
|
4440
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::View>]
|
4441
|
+
#
|
4442
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4443
|
+
#
|
4444
|
+
# @example Basic example
|
4445
|
+
# require "google/cloud/contact_center_insights/v1"
|
4446
|
+
#
|
4447
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4448
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4449
|
+
#
|
4450
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4451
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListViewsRequest.new
|
4452
|
+
#
|
4453
|
+
# # Call the list_views method.
|
4454
|
+
# result = client.list_views request
|
4455
|
+
#
|
4456
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
4457
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
4458
|
+
# result.each do |item|
|
4459
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::View.
|
4460
|
+
# p item
|
4461
|
+
# end
|
4462
|
+
#
|
4463
|
+
def list_views request, options = nil
|
4464
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4465
|
+
|
4466
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ListViewsRequest
|
4467
|
+
|
4468
|
+
# Converts hash and nil to an options object
|
4469
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4470
|
+
|
4471
|
+
# Customize the options with defaults
|
4472
|
+
metadata = @config.rpcs.list_views.metadata.to_h
|
4473
|
+
|
4474
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4475
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4476
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4477
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4478
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4479
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4480
|
+
|
4481
|
+
header_params = {}
|
4482
|
+
if request.parent
|
4483
|
+
header_params["parent"] = request.parent
|
4484
|
+
end
|
4485
|
+
|
4486
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4487
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4488
|
+
|
4489
|
+
options.apply_defaults timeout: @config.rpcs.list_views.timeout,
|
4490
|
+
metadata: metadata,
|
4491
|
+
retry_policy: @config.rpcs.list_views.retry_policy
|
4492
|
+
|
4493
|
+
options.apply_defaults timeout: @config.timeout,
|
4494
|
+
metadata: @config.metadata,
|
4495
|
+
retry_policy: @config.retry_policy
|
4496
|
+
|
4497
|
+
@contact_center_insights_stub.call_rpc :list_views, request, options: options do |response, operation|
|
4498
|
+
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_views, request, response, operation, options
|
4499
|
+
yield response, operation if block_given?
|
4500
|
+
return response
|
4501
|
+
end
|
4502
|
+
rescue ::GRPC::BadStatus => e
|
4503
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4504
|
+
end
|
4505
|
+
|
4506
|
+
##
|
4507
|
+
# Updates a view.
|
4508
|
+
#
|
4509
|
+
# @overload update_view(request, options = nil)
|
4510
|
+
# Pass arguments to `update_view` via a request object, either of type
|
4511
|
+
# {::Google::Cloud::ContactCenterInsights::V1::UpdateViewRequest} or an equivalent Hash.
|
4512
|
+
#
|
4513
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::UpdateViewRequest, ::Hash]
|
4514
|
+
# A request object representing the call parameters. Required. To specify no
|
4515
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4516
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4517
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4518
|
+
#
|
4519
|
+
# @overload update_view(view: nil, update_mask: nil)
|
4520
|
+
# Pass arguments to `update_view` via keyword arguments. Note that at
|
4521
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4522
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4523
|
+
#
|
4524
|
+
# @param view [::Google::Cloud::ContactCenterInsights::V1::View, ::Hash]
|
4525
|
+
# Required. The new view.
|
4526
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
4527
|
+
# The list of fields to be updated.
|
4528
|
+
#
|
4529
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4530
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::View]
|
4531
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4532
|
+
#
|
4533
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::View]
|
4534
|
+
#
|
4535
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4536
|
+
#
|
4537
|
+
# @example Basic example
|
4538
|
+
# require "google/cloud/contact_center_insights/v1"
|
4539
|
+
#
|
4540
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4541
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4542
|
+
#
|
4543
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4544
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UpdateViewRequest.new
|
4545
|
+
#
|
4546
|
+
# # Call the update_view method.
|
4547
|
+
# result = client.update_view request
|
4548
|
+
#
|
4549
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::View.
|
4550
|
+
# p result
|
4551
|
+
#
|
4552
|
+
def update_view request, options = nil
|
4553
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4554
|
+
|
4555
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::UpdateViewRequest
|
4556
|
+
|
4557
|
+
# Converts hash and nil to an options object
|
4558
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4559
|
+
|
4560
|
+
# Customize the options with defaults
|
4561
|
+
metadata = @config.rpcs.update_view.metadata.to_h
|
4562
|
+
|
4563
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4564
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4565
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4566
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4567
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4568
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4569
|
+
|
4570
|
+
header_params = {}
|
4571
|
+
if request.view&.name
|
4572
|
+
header_params["view.name"] = request.view.name
|
4573
|
+
end
|
4574
|
+
|
4575
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4576
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4577
|
+
|
4578
|
+
options.apply_defaults timeout: @config.rpcs.update_view.timeout,
|
4579
|
+
metadata: metadata,
|
4580
|
+
retry_policy: @config.rpcs.update_view.retry_policy
|
4581
|
+
|
4582
|
+
options.apply_defaults timeout: @config.timeout,
|
4583
|
+
metadata: @config.metadata,
|
4584
|
+
retry_policy: @config.retry_policy
|
4585
|
+
|
4586
|
+
@contact_center_insights_stub.call_rpc :update_view, request, options: options do |response, operation|
|
4587
|
+
yield response, operation if block_given?
|
4588
|
+
return response
|
4589
|
+
end
|
4590
|
+
rescue ::GRPC::BadStatus => e
|
4591
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4592
|
+
end
|
4593
|
+
|
4594
|
+
##
|
4595
|
+
# Deletes a view.
|
4596
|
+
#
|
4597
|
+
# @overload delete_view(request, options = nil)
|
4598
|
+
# Pass arguments to `delete_view` via a request object, either of type
|
4599
|
+
# {::Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest} or an equivalent Hash.
|
4600
|
+
#
|
4601
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest, ::Hash]
|
4602
|
+
# A request object representing the call parameters. Required. To specify no
|
4603
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4604
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4605
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4606
|
+
#
|
4607
|
+
# @overload delete_view(name: nil)
|
4608
|
+
# Pass arguments to `delete_view` via keyword arguments. Note that at
|
4609
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4610
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4611
|
+
#
|
4612
|
+
# @param name [::String]
|
4613
|
+
# Required. The name of the view to delete.
|
4614
|
+
#
|
4615
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4616
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
4617
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4618
|
+
#
|
4619
|
+
# @return [::Google::Protobuf::Empty]
|
4620
|
+
#
|
4621
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4622
|
+
#
|
4623
|
+
# @example Basic example
|
4624
|
+
# require "google/cloud/contact_center_insights/v1"
|
4625
|
+
#
|
4626
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4627
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4628
|
+
#
|
4629
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4630
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest.new
|
4631
|
+
#
|
4632
|
+
# # Call the delete_view method.
|
4633
|
+
# result = client.delete_view request
|
4634
|
+
#
|
4635
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
4636
|
+
# p result
|
4637
|
+
#
|
4638
|
+
def delete_view request, options = nil
|
4639
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4640
|
+
|
4641
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest
|
4642
|
+
|
4643
|
+
# Converts hash and nil to an options object
|
4644
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4645
|
+
|
4646
|
+
# Customize the options with defaults
|
4647
|
+
metadata = @config.rpcs.delete_view.metadata.to_h
|
4648
|
+
|
4649
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4650
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4651
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4652
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4653
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4654
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4655
|
+
|
4656
|
+
header_params = {}
|
4657
|
+
if request.name
|
4658
|
+
header_params["name"] = request.name
|
4659
|
+
end
|
4660
|
+
|
4661
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4662
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4663
|
+
|
4664
|
+
options.apply_defaults timeout: @config.rpcs.delete_view.timeout,
|
4665
|
+
metadata: metadata,
|
4666
|
+
retry_policy: @config.rpcs.delete_view.retry_policy
|
4667
|
+
|
4668
|
+
options.apply_defaults timeout: @config.timeout,
|
4669
|
+
metadata: @config.metadata,
|
4670
|
+
retry_policy: @config.retry_policy
|
4671
|
+
|
4672
|
+
@contact_center_insights_stub.call_rpc :delete_view, request, options: options do |response, operation|
|
4673
|
+
yield response, operation if block_given?
|
4674
|
+
return response
|
4675
|
+
end
|
4676
|
+
rescue ::GRPC::BadStatus => e
|
4677
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4678
|
+
end
|
4679
|
+
|
4680
|
+
##
|
4681
|
+
# Query metrics.
|
4682
|
+
#
|
4683
|
+
# @overload query_metrics(request, options = nil)
|
4684
|
+
# Pass arguments to `query_metrics` via a request object, either of type
|
4685
|
+
# {::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest} or an equivalent Hash.
|
4686
|
+
#
|
4687
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest, ::Hash]
|
4688
|
+
# A request object representing the call parameters. Required. To specify no
|
4689
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4690
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4691
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4692
|
+
#
|
4693
|
+
# @overload query_metrics(location: nil, filter: nil, time_granularity: nil, dimensions: nil, measure_mask: nil)
|
4694
|
+
# Pass arguments to `query_metrics` via keyword arguments. Note that at
|
4695
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4696
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4697
|
+
#
|
4698
|
+
# @param location [::String]
|
4699
|
+
# Required. The location of the data.
|
4700
|
+
# "projects/\\{project}/locations/\\{location}"
|
4701
|
+
# @param filter [::String]
|
4702
|
+
# Required. Filter to select a subset of conversations to compute the
|
4703
|
+
# metrics. Must specify a window of the conversation create time to compute
|
4704
|
+
# the metrics. The returned metrics will be from the range [DATE(starting
|
4705
|
+
# create time), DATE(ending create time)).
|
4706
|
+
# @param time_granularity [::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest::TimeGranularity]
|
4707
|
+
# The time granularity of each data point in the time series.
|
4708
|
+
# Defaults to NONE if this field is unspecified.
|
4709
|
+
# @param dimensions [::Array<::Google::Cloud::ContactCenterInsights::V1::Dimension, ::Hash>]
|
4710
|
+
# The dimensions that determine the grouping key for the query. Defaults to
|
4711
|
+
# no dimension if this field is unspecified. If a dimension is specified,
|
4712
|
+
# its key must also be specified. Each dimension's key must be unique.
|
4713
|
+
#
|
4714
|
+
# If a time granularity is also specified, metric values in the dimension
|
4715
|
+
# will be bucketed by this granularity.
|
4716
|
+
#
|
4717
|
+
# Up to one dimension is supported for now.
|
4718
|
+
# @param measure_mask [::Google::Protobuf::FieldMask, ::Hash]
|
4719
|
+
# Measures to return. Defaults to all measures if this field is unspecified.
|
4720
|
+
# A valid mask should traverse from the `measure` field from the response.
|
4721
|
+
# For example, a path from a measure mask to get the conversation count is
|
4722
|
+
# "conversation_measure.count".
|
4723
|
+
#
|
4724
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4725
|
+
# @yieldparam response [::Gapic::Operation]
|
4726
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4727
|
+
#
|
4728
|
+
# @return [::Gapic::Operation]
|
4729
|
+
#
|
4730
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4731
|
+
#
|
4732
|
+
# @example Basic example
|
4733
|
+
# require "google/cloud/contact_center_insights/v1"
|
4734
|
+
#
|
4735
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4736
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4737
|
+
#
|
4738
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4739
|
+
# request = Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest.new
|
4740
|
+
#
|
4741
|
+
# # Call the query_metrics method.
|
4742
|
+
# result = client.query_metrics request
|
4743
|
+
#
|
4744
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
4745
|
+
# # check the status of an operation, cancel it, or wait for results.
|
4746
|
+
# # Here is how to wait for a response.
|
4747
|
+
# result.wait_until_done! timeout: 60
|
4748
|
+
# if result.response?
|
4749
|
+
# p result.response
|
4750
|
+
# else
|
4751
|
+
# puts "No response received."
|
4752
|
+
# end
|
4753
|
+
#
|
4754
|
+
def query_metrics request, options = nil
|
4755
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4756
|
+
|
4757
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest
|
4758
|
+
|
4759
|
+
# Converts hash and nil to an options object
|
4760
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4761
|
+
|
4762
|
+
# Customize the options with defaults
|
4763
|
+
metadata = @config.rpcs.query_metrics.metadata.to_h
|
4764
|
+
|
4765
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4766
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4767
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4768
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4769
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4770
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4771
|
+
|
4772
|
+
header_params = {}
|
4773
|
+
if request.location
|
4774
|
+
header_params["location"] = request.location
|
4775
|
+
end
|
4776
|
+
|
4777
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4778
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4779
|
+
|
4780
|
+
options.apply_defaults timeout: @config.rpcs.query_metrics.timeout,
|
4781
|
+
metadata: metadata,
|
4782
|
+
retry_policy: @config.rpcs.query_metrics.retry_policy
|
4783
|
+
|
4784
|
+
options.apply_defaults timeout: @config.timeout,
|
4785
|
+
metadata: @config.metadata,
|
4786
|
+
retry_policy: @config.retry_policy
|
4787
|
+
|
4788
|
+
@contact_center_insights_stub.call_rpc :query_metrics, request, options: options do |response, operation|
|
4789
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4790
|
+
yield response, operation if block_given?
|
4791
|
+
return response
|
4792
|
+
end
|
4793
|
+
rescue ::GRPC::BadStatus => e
|
4794
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4795
|
+
end
|
4796
|
+
|
4797
|
+
##
|
4798
|
+
# Create a QaQuestion.
|
4799
|
+
#
|
4800
|
+
# @overload create_qa_question(request, options = nil)
|
4801
|
+
# Pass arguments to `create_qa_question` via a request object, either of type
|
4802
|
+
# {::Google::Cloud::ContactCenterInsights::V1::CreateQaQuestionRequest} or an equivalent Hash.
|
4803
|
+
#
|
4804
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::CreateQaQuestionRequest, ::Hash]
|
4805
|
+
# A request object representing the call parameters. Required. To specify no
|
4806
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4807
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4808
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4809
|
+
#
|
4810
|
+
# @overload create_qa_question(parent: nil, qa_question: nil, qa_question_id: nil)
|
4811
|
+
# Pass arguments to `create_qa_question` via keyword arguments. Note that at
|
4812
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4813
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4814
|
+
#
|
4815
|
+
# @param parent [::String]
|
4816
|
+
# Required. The parent resource of the QaQuestion.
|
4817
|
+
# @param qa_question [::Google::Cloud::ContactCenterInsights::V1::QaQuestion, ::Hash]
|
4818
|
+
# Required. The QaQuestion to create.
|
4819
|
+
# @param qa_question_id [::String]
|
4820
|
+
# Optional. A unique ID for the new question. This ID will become the final
|
4821
|
+
# component of the question's resource name. If no ID is specified, a
|
4822
|
+
# server-generated ID will be used.
|
4823
|
+
#
|
4824
|
+
# This value should be 4-64 characters and must match the regular
|
4825
|
+
# expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`.
|
4826
|
+
#
|
4827
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4828
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
4829
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4830
|
+
#
|
4831
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
4832
|
+
#
|
4833
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4834
|
+
#
|
4835
|
+
# @example Basic example
|
4836
|
+
# require "google/cloud/contact_center_insights/v1"
|
4837
|
+
#
|
4838
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4839
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4840
|
+
#
|
4841
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4842
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreateQaQuestionRequest.new
|
4843
|
+
#
|
4844
|
+
# # Call the create_qa_question method.
|
4845
|
+
# result = client.create_qa_question request
|
4846
|
+
#
|
4847
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaQuestion.
|
4848
|
+
# p result
|
4849
|
+
#
|
4850
|
+
def create_qa_question request, options = nil
|
4851
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4852
|
+
|
4853
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::CreateQaQuestionRequest
|
4854
|
+
|
4855
|
+
# Converts hash and nil to an options object
|
4856
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4857
|
+
|
4858
|
+
# Customize the options with defaults
|
4859
|
+
metadata = @config.rpcs.create_qa_question.metadata.to_h
|
4860
|
+
|
4861
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4862
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4863
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4864
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4865
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4866
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4867
|
+
|
4868
|
+
header_params = {}
|
4869
|
+
if request.parent
|
4870
|
+
header_params["parent"] = request.parent
|
4871
|
+
end
|
4872
|
+
|
4873
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4874
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4875
|
+
|
4876
|
+
options.apply_defaults timeout: @config.rpcs.create_qa_question.timeout,
|
4877
|
+
metadata: metadata,
|
4878
|
+
retry_policy: @config.rpcs.create_qa_question.retry_policy
|
4879
|
+
|
4880
|
+
options.apply_defaults timeout: @config.timeout,
|
4881
|
+
metadata: @config.metadata,
|
4882
|
+
retry_policy: @config.retry_policy
|
4883
|
+
|
4884
|
+
@contact_center_insights_stub.call_rpc :create_qa_question, request, options: options do |response, operation|
|
4885
|
+
yield response, operation if block_given?
|
4886
|
+
return response
|
4887
|
+
end
|
4888
|
+
rescue ::GRPC::BadStatus => e
|
4889
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4890
|
+
end
|
4891
|
+
|
4892
|
+
##
|
4893
|
+
# Gets a QaQuestion.
|
4894
|
+
#
|
4895
|
+
# @overload get_qa_question(request, options = nil)
|
4896
|
+
# Pass arguments to `get_qa_question` via a request object, either of type
|
4897
|
+
# {::Google::Cloud::ContactCenterInsights::V1::GetQaQuestionRequest} or an equivalent Hash.
|
4898
|
+
#
|
4899
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::GetQaQuestionRequest, ::Hash]
|
4900
|
+
# A request object representing the call parameters. Required. To specify no
|
4901
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4902
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4903
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4904
|
+
#
|
4905
|
+
# @overload get_qa_question(name: nil)
|
4906
|
+
# Pass arguments to `get_qa_question` via keyword arguments. Note that at
|
4907
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4908
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4909
|
+
#
|
4910
|
+
# @param name [::String]
|
4911
|
+
# Required. The name of the QaQuestion to get.
|
4912
|
+
#
|
4913
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4914
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
4915
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4916
|
+
#
|
4917
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
4918
|
+
#
|
4919
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4920
|
+
#
|
4921
|
+
# @example Basic example
|
4922
|
+
# require "google/cloud/contact_center_insights/v1"
|
4923
|
+
#
|
4924
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4925
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4926
|
+
#
|
4927
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4928
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetQaQuestionRequest.new
|
4929
|
+
#
|
4930
|
+
# # Call the get_qa_question method.
|
4931
|
+
# result = client.get_qa_question request
|
4932
|
+
#
|
4933
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaQuestion.
|
4934
|
+
# p result
|
4935
|
+
#
|
4936
|
+
def get_qa_question request, options = nil
|
4937
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4938
|
+
|
4939
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetQaQuestionRequest
|
4940
|
+
|
4941
|
+
# Converts hash and nil to an options object
|
4942
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4943
|
+
|
4944
|
+
# Customize the options with defaults
|
4945
|
+
metadata = @config.rpcs.get_qa_question.metadata.to_h
|
4946
|
+
|
4947
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4948
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4949
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4950
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4951
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4952
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4953
|
+
|
4954
|
+
header_params = {}
|
4955
|
+
if request.name
|
4956
|
+
header_params["name"] = request.name
|
4957
|
+
end
|
4958
|
+
|
4959
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4960
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4961
|
+
|
4962
|
+
options.apply_defaults timeout: @config.rpcs.get_qa_question.timeout,
|
4963
|
+
metadata: metadata,
|
4964
|
+
retry_policy: @config.rpcs.get_qa_question.retry_policy
|
4965
|
+
|
4966
|
+
options.apply_defaults timeout: @config.timeout,
|
4967
|
+
metadata: @config.metadata,
|
4968
|
+
retry_policy: @config.retry_policy
|
4969
|
+
|
4970
|
+
@contact_center_insights_stub.call_rpc :get_qa_question, request, options: options do |response, operation|
|
4971
|
+
yield response, operation if block_given?
|
4972
|
+
return response
|
4973
|
+
end
|
4974
|
+
rescue ::GRPC::BadStatus => e
|
4975
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4976
|
+
end
|
4977
|
+
|
4978
|
+
##
|
4979
|
+
# Updates a QaQuestion.
|
4980
|
+
#
|
4981
|
+
# @overload update_qa_question(request, options = nil)
|
4982
|
+
# Pass arguments to `update_qa_question` via a request object, either of type
|
4983
|
+
# {::Google::Cloud::ContactCenterInsights::V1::UpdateQaQuestionRequest} or an equivalent Hash.
|
4984
|
+
#
|
4985
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::UpdateQaQuestionRequest, ::Hash]
|
4986
|
+
# A request object representing the call parameters. Required. To specify no
|
4987
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4988
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4989
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4990
|
+
#
|
4991
|
+
# @overload update_qa_question(qa_question: nil, update_mask: nil)
|
4992
|
+
# Pass arguments to `update_qa_question` via keyword arguments. Note that at
|
4993
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4994
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4995
|
+
#
|
4996
|
+
# @param qa_question [::Google::Cloud::ContactCenterInsights::V1::QaQuestion, ::Hash]
|
4997
|
+
# Required. The QaQuestion to update.
|
4998
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
4999
|
+
# Required. The list of fields to be updated. All possible fields can be
|
5000
|
+
# updated by passing `*`, or a subset of the following updateable fields can
|
5001
|
+
# be provided:
|
5002
|
+
#
|
5003
|
+
# * `abbreviation`
|
5004
|
+
# * `answer_choices`
|
5005
|
+
# * `answer_instructions`
|
5006
|
+
# * `order`
|
5007
|
+
# * `question_body`
|
5008
|
+
# * `tags`
|
5009
|
+
#
|
5010
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5011
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
5012
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5013
|
+
#
|
5014
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
5015
|
+
#
|
5016
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5017
|
+
#
|
5018
|
+
# @example Basic example
|
5019
|
+
# require "google/cloud/contact_center_insights/v1"
|
5020
|
+
#
|
5021
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5022
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5023
|
+
#
|
5024
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5025
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UpdateQaQuestionRequest.new
|
5026
|
+
#
|
5027
|
+
# # Call the update_qa_question method.
|
5028
|
+
# result = client.update_qa_question request
|
5029
|
+
#
|
5030
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaQuestion.
|
5031
|
+
# p result
|
5032
|
+
#
|
5033
|
+
def update_qa_question request, options = nil
|
5034
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5035
|
+
|
5036
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::UpdateQaQuestionRequest
|
5037
|
+
|
5038
|
+
# Converts hash and nil to an options object
|
5039
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5040
|
+
|
5041
|
+
# Customize the options with defaults
|
5042
|
+
metadata = @config.rpcs.update_qa_question.metadata.to_h
|
5043
|
+
|
5044
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5045
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5046
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5047
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5048
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5049
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5050
|
+
|
5051
|
+
header_params = {}
|
5052
|
+
if request.qa_question&.name
|
5053
|
+
header_params["qa_question.name"] = request.qa_question.name
|
5054
|
+
end
|
5055
|
+
|
5056
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5057
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5058
|
+
|
5059
|
+
options.apply_defaults timeout: @config.rpcs.update_qa_question.timeout,
|
5060
|
+
metadata: metadata,
|
5061
|
+
retry_policy: @config.rpcs.update_qa_question.retry_policy
|
5062
|
+
|
5063
|
+
options.apply_defaults timeout: @config.timeout,
|
5064
|
+
metadata: @config.metadata,
|
5065
|
+
retry_policy: @config.retry_policy
|
5066
|
+
|
5067
|
+
@contact_center_insights_stub.call_rpc :update_qa_question, request, options: options do |response, operation|
|
5068
|
+
yield response, operation if block_given?
|
5069
|
+
return response
|
5070
|
+
end
|
5071
|
+
rescue ::GRPC::BadStatus => e
|
5072
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5073
|
+
end
|
5074
|
+
|
5075
|
+
##
|
5076
|
+
# Deletes a QaQuestion.
|
5077
|
+
#
|
5078
|
+
# @overload delete_qa_question(request, options = nil)
|
5079
|
+
# Pass arguments to `delete_qa_question` via a request object, either of type
|
5080
|
+
# {::Google::Cloud::ContactCenterInsights::V1::DeleteQaQuestionRequest} or an equivalent Hash.
|
5081
|
+
#
|
5082
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::DeleteQaQuestionRequest, ::Hash]
|
5083
|
+
# A request object representing the call parameters. Required. To specify no
|
5084
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5085
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5086
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5087
|
+
#
|
5088
|
+
# @overload delete_qa_question(name: nil)
|
5089
|
+
# Pass arguments to `delete_qa_question` via keyword arguments. Note that at
|
5090
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5091
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5092
|
+
#
|
5093
|
+
# @param name [::String]
|
5094
|
+
# Required. The name of the QaQuestion to delete.
|
5095
|
+
#
|
5096
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5097
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
5098
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5099
|
+
#
|
5100
|
+
# @return [::Google::Protobuf::Empty]
|
5101
|
+
#
|
5102
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5103
|
+
#
|
5104
|
+
# @example Basic example
|
5105
|
+
# require "google/cloud/contact_center_insights/v1"
|
5106
|
+
#
|
5107
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5108
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5109
|
+
#
|
5110
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5111
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeleteQaQuestionRequest.new
|
5112
|
+
#
|
5113
|
+
# # Call the delete_qa_question method.
|
5114
|
+
# result = client.delete_qa_question request
|
5115
|
+
#
|
5116
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
5117
|
+
# p result
|
5118
|
+
#
|
5119
|
+
def delete_qa_question request, options = nil
|
5120
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5121
|
+
|
5122
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::DeleteQaQuestionRequest
|
5123
|
+
|
5124
|
+
# Converts hash and nil to an options object
|
5125
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5126
|
+
|
5127
|
+
# Customize the options with defaults
|
5128
|
+
metadata = @config.rpcs.delete_qa_question.metadata.to_h
|
5129
|
+
|
5130
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5131
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5132
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5133
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5134
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5135
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5136
|
+
|
5137
|
+
header_params = {}
|
5138
|
+
if request.name
|
5139
|
+
header_params["name"] = request.name
|
5140
|
+
end
|
5141
|
+
|
5142
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5143
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5144
|
+
|
5145
|
+
options.apply_defaults timeout: @config.rpcs.delete_qa_question.timeout,
|
5146
|
+
metadata: metadata,
|
5147
|
+
retry_policy: @config.rpcs.delete_qa_question.retry_policy
|
5148
|
+
|
5149
|
+
options.apply_defaults timeout: @config.timeout,
|
5150
|
+
metadata: @config.metadata,
|
5151
|
+
retry_policy: @config.retry_policy
|
5152
|
+
|
5153
|
+
@contact_center_insights_stub.call_rpc :delete_qa_question, request, options: options do |response, operation|
|
5154
|
+
yield response, operation if block_given?
|
5155
|
+
return response
|
5156
|
+
end
|
5157
|
+
rescue ::GRPC::BadStatus => e
|
5158
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5159
|
+
end
|
5160
|
+
|
5161
|
+
##
|
5162
|
+
# Lists QaQuestions.
|
5163
|
+
#
|
5164
|
+
# @overload list_qa_questions(request, options = nil)
|
5165
|
+
# Pass arguments to `list_qa_questions` via a request object, either of type
|
5166
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsRequest} or an equivalent Hash.
|
5167
|
+
#
|
5168
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsRequest, ::Hash]
|
5169
|
+
# A request object representing the call parameters. Required. To specify no
|
5170
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5171
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5172
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5173
|
+
#
|
5174
|
+
# @overload list_qa_questions(parent: nil, page_size: nil, page_token: nil)
|
5175
|
+
# Pass arguments to `list_qa_questions` via keyword arguments. Note that at
|
5176
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5177
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5178
|
+
#
|
5179
|
+
# @param parent [::String]
|
5180
|
+
# Required. The parent resource of the questions.
|
5181
|
+
# @param page_size [::Integer]
|
5182
|
+
# Optional. The maximum number of questions to return in the response. If the
|
5183
|
+
# value is zero, the service will select a default size. A call might return
|
5184
|
+
# fewer objects than requested. A non-empty `next_page_token` in the response
|
5185
|
+
# indicates that more data is available.
|
5186
|
+
# @param page_token [::String]
|
5187
|
+
# Optional. The value returned by the last `ListQaQuestionsResponse`. This
|
5188
|
+
# value indicates that this is a continuation of a prior `ListQaQuestions`
|
5189
|
+
# call and that the system should return the next page of data.
|
5190
|
+
#
|
5191
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5192
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::QaQuestion>]
|
5193
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5194
|
+
#
|
5195
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::QaQuestion>]
|
5196
|
+
#
|
5197
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5198
|
+
#
|
5199
|
+
# @example Basic example
|
5200
|
+
# require "google/cloud/contact_center_insights/v1"
|
5201
|
+
#
|
5202
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5203
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5204
|
+
#
|
5205
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5206
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsRequest.new
|
5207
|
+
#
|
5208
|
+
# # Call the list_qa_questions method.
|
5209
|
+
# result = client.list_qa_questions request
|
5210
|
+
#
|
5211
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
5212
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
5213
|
+
# result.each do |item|
|
5214
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::QaQuestion.
|
5215
|
+
# p item
|
5216
|
+
# end
|
5217
|
+
#
|
5218
|
+
def list_qa_questions request, options = nil
|
5219
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5220
|
+
|
5221
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsRequest
|
5222
|
+
|
5223
|
+
# Converts hash and nil to an options object
|
5224
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5225
|
+
|
5226
|
+
# Customize the options with defaults
|
5227
|
+
metadata = @config.rpcs.list_qa_questions.metadata.to_h
|
5228
|
+
|
5229
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5230
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5231
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5232
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5233
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5234
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5235
|
+
|
5236
|
+
header_params = {}
|
5237
|
+
if request.parent
|
5238
|
+
header_params["parent"] = request.parent
|
5239
|
+
end
|
5240
|
+
|
5241
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5242
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5243
|
+
|
5244
|
+
options.apply_defaults timeout: @config.rpcs.list_qa_questions.timeout,
|
5245
|
+
metadata: metadata,
|
5246
|
+
retry_policy: @config.rpcs.list_qa_questions.retry_policy
|
5247
|
+
|
5248
|
+
options.apply_defaults timeout: @config.timeout,
|
5249
|
+
metadata: @config.metadata,
|
5250
|
+
retry_policy: @config.retry_policy
|
5251
|
+
|
5252
|
+
@contact_center_insights_stub.call_rpc :list_qa_questions, request, options: options do |response, operation|
|
5253
|
+
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_qa_questions, request, response, operation, options
|
5254
|
+
yield response, operation if block_given?
|
5255
|
+
return response
|
5256
|
+
end
|
5257
|
+
rescue ::GRPC::BadStatus => e
|
5258
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5259
|
+
end
|
5260
|
+
|
5261
|
+
##
|
5262
|
+
# Create a QaScorecard.
|
5263
|
+
#
|
5264
|
+
# @overload create_qa_scorecard(request, options = nil)
|
5265
|
+
# Pass arguments to `create_qa_scorecard` via a request object, either of type
|
5266
|
+
# {::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRequest} or an equivalent Hash.
|
5267
|
+
#
|
5268
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRequest, ::Hash]
|
5269
|
+
# A request object representing the call parameters. Required. To specify no
|
5270
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5271
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5272
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5273
|
+
#
|
5274
|
+
# @overload create_qa_scorecard(parent: nil, qa_scorecard: nil, qa_scorecard_id: nil)
|
5275
|
+
# Pass arguments to `create_qa_scorecard` via keyword arguments. Note that at
|
5276
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5277
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5278
|
+
#
|
5279
|
+
# @param parent [::String]
|
5280
|
+
# Required. The parent resource of the QaScorecard.
|
5281
|
+
# @param qa_scorecard [::Google::Cloud::ContactCenterInsights::V1::QaScorecard, ::Hash]
|
5282
|
+
# Required. The QaScorecard to create.
|
5283
|
+
# @param qa_scorecard_id [::String]
|
5284
|
+
# Optional. A unique ID for the new QaScorecard. This ID will become the
|
5285
|
+
# final component of the QaScorecard's resource name. If no ID is specified,
|
5286
|
+
# a server-generated ID will be used.
|
5287
|
+
#
|
5288
|
+
# This value should be 4-64 characters and must match the regular
|
5289
|
+
# expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`.
|
5290
|
+
#
|
5291
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5292
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
5293
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5294
|
+
#
|
5295
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
5296
|
+
#
|
5297
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5298
|
+
#
|
5299
|
+
# @example Basic example
|
5300
|
+
# require "google/cloud/contact_center_insights/v1"
|
5301
|
+
#
|
5302
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5303
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5304
|
+
#
|
5305
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5306
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRequest.new
|
5307
|
+
#
|
5308
|
+
# # Call the create_qa_scorecard method.
|
5309
|
+
# result = client.create_qa_scorecard request
|
5310
|
+
#
|
5311
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecard.
|
5312
|
+
# p result
|
5313
|
+
#
|
5314
|
+
def create_qa_scorecard request, options = nil
|
5315
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5316
|
+
|
5317
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRequest
|
5318
|
+
|
5319
|
+
# Converts hash and nil to an options object
|
5320
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5321
|
+
|
5322
|
+
# Customize the options with defaults
|
5323
|
+
metadata = @config.rpcs.create_qa_scorecard.metadata.to_h
|
5324
|
+
|
5325
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5326
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5327
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5328
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5329
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5330
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5331
|
+
|
5332
|
+
header_params = {}
|
5333
|
+
if request.parent
|
5334
|
+
header_params["parent"] = request.parent
|
5335
|
+
end
|
5336
|
+
|
5337
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5338
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5339
|
+
|
5340
|
+
options.apply_defaults timeout: @config.rpcs.create_qa_scorecard.timeout,
|
5341
|
+
metadata: metadata,
|
5342
|
+
retry_policy: @config.rpcs.create_qa_scorecard.retry_policy
|
5343
|
+
|
5344
|
+
options.apply_defaults timeout: @config.timeout,
|
5345
|
+
metadata: @config.metadata,
|
5346
|
+
retry_policy: @config.retry_policy
|
5347
|
+
|
5348
|
+
@contact_center_insights_stub.call_rpc :create_qa_scorecard, request, options: options do |response, operation|
|
5349
|
+
yield response, operation if block_given?
|
5350
|
+
return response
|
5351
|
+
end
|
5352
|
+
rescue ::GRPC::BadStatus => e
|
5353
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5354
|
+
end
|
5355
|
+
|
5356
|
+
##
|
5357
|
+
# Gets a QaScorecard.
|
5358
|
+
#
|
5359
|
+
# @overload get_qa_scorecard(request, options = nil)
|
5360
|
+
# Pass arguments to `get_qa_scorecard` via a request object, either of type
|
5361
|
+
# {::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRequest} or an equivalent Hash.
|
5362
|
+
#
|
5363
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRequest, ::Hash]
|
5364
|
+
# A request object representing the call parameters. Required. To specify no
|
5365
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5366
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5367
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5368
|
+
#
|
5369
|
+
# @overload get_qa_scorecard(name: nil)
|
5370
|
+
# Pass arguments to `get_qa_scorecard` via keyword arguments. Note that at
|
5371
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5372
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5373
|
+
#
|
5374
|
+
# @param name [::String]
|
5375
|
+
# Required. The name of the QaScorecard to get.
|
5376
|
+
#
|
5377
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5378
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
5379
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5380
|
+
#
|
5381
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
5382
|
+
#
|
5383
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5384
|
+
#
|
5385
|
+
# @example Basic example
|
5386
|
+
# require "google/cloud/contact_center_insights/v1"
|
5387
|
+
#
|
5388
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5389
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5390
|
+
#
|
5391
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5392
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRequest.new
|
5393
|
+
#
|
5394
|
+
# # Call the get_qa_scorecard method.
|
5395
|
+
# result = client.get_qa_scorecard request
|
5396
|
+
#
|
5397
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecard.
|
5398
|
+
# p result
|
5399
|
+
#
|
5400
|
+
def get_qa_scorecard request, options = nil
|
5401
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5402
|
+
|
5403
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRequest
|
5404
|
+
|
5405
|
+
# Converts hash and nil to an options object
|
5406
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5407
|
+
|
5408
|
+
# Customize the options with defaults
|
5409
|
+
metadata = @config.rpcs.get_qa_scorecard.metadata.to_h
|
5410
|
+
|
5411
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5412
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5413
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5414
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5415
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5416
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5417
|
+
|
5418
|
+
header_params = {}
|
5419
|
+
if request.name
|
5420
|
+
header_params["name"] = request.name
|
5421
|
+
end
|
5422
|
+
|
5423
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5424
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5425
|
+
|
5426
|
+
options.apply_defaults timeout: @config.rpcs.get_qa_scorecard.timeout,
|
5427
|
+
metadata: metadata,
|
5428
|
+
retry_policy: @config.rpcs.get_qa_scorecard.retry_policy
|
5429
|
+
|
5430
|
+
options.apply_defaults timeout: @config.timeout,
|
5431
|
+
metadata: @config.metadata,
|
5432
|
+
retry_policy: @config.retry_policy
|
5433
|
+
|
5434
|
+
@contact_center_insights_stub.call_rpc :get_qa_scorecard, request, options: options do |response, operation|
|
5435
|
+
yield response, operation if block_given?
|
5436
|
+
return response
|
5437
|
+
end
|
5438
|
+
rescue ::GRPC::BadStatus => e
|
5439
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5440
|
+
end
|
5441
|
+
|
5442
|
+
##
|
5443
|
+
# Updates a QaScorecard.
|
5444
|
+
#
|
5445
|
+
# @overload update_qa_scorecard(request, options = nil)
|
5446
|
+
# Pass arguments to `update_qa_scorecard` via a request object, either of type
|
5447
|
+
# {::Google::Cloud::ContactCenterInsights::V1::UpdateQaScorecardRequest} or an equivalent Hash.
|
5448
|
+
#
|
5449
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::UpdateQaScorecardRequest, ::Hash]
|
5450
|
+
# A request object representing the call parameters. Required. To specify no
|
5451
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5452
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5453
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5454
|
+
#
|
5455
|
+
# @overload update_qa_scorecard(qa_scorecard: nil, update_mask: nil)
|
5456
|
+
# Pass arguments to `update_qa_scorecard` via keyword arguments. Note that at
|
5457
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5458
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5459
|
+
#
|
5460
|
+
# @param qa_scorecard [::Google::Cloud::ContactCenterInsights::V1::QaScorecard, ::Hash]
|
5461
|
+
# Required. The QaScorecard to update.
|
5462
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
5463
|
+
# Required. The list of fields to be updated. All possible fields can be
|
5464
|
+
# updated by passing `*`, or a subset of the following updateable fields can
|
5465
|
+
# be provided:
|
5466
|
+
#
|
5467
|
+
# * `description`
|
5468
|
+
# * `display_name`
|
5469
|
+
#
|
5470
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5471
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
5472
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5473
|
+
#
|
5474
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
5475
|
+
#
|
5476
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5477
|
+
#
|
5478
|
+
# @example Basic example
|
5479
|
+
# require "google/cloud/contact_center_insights/v1"
|
5480
|
+
#
|
5481
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5482
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5483
|
+
#
|
5484
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5485
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UpdateQaScorecardRequest.new
|
5486
|
+
#
|
5487
|
+
# # Call the update_qa_scorecard method.
|
5488
|
+
# result = client.update_qa_scorecard request
|
5489
|
+
#
|
5490
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecard.
|
5491
|
+
# p result
|
5492
|
+
#
|
5493
|
+
def update_qa_scorecard request, options = nil
|
5494
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5495
|
+
|
5496
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::UpdateQaScorecardRequest
|
5497
|
+
|
5498
|
+
# Converts hash and nil to an options object
|
5499
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5500
|
+
|
5501
|
+
# Customize the options with defaults
|
5502
|
+
metadata = @config.rpcs.update_qa_scorecard.metadata.to_h
|
5503
|
+
|
5504
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5505
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5506
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5507
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5508
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5509
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5510
|
+
|
5511
|
+
header_params = {}
|
5512
|
+
if request.qa_scorecard&.name
|
5513
|
+
header_params["qa_scorecard.name"] = request.qa_scorecard.name
|
5514
|
+
end
|
5515
|
+
|
5516
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5517
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5518
|
+
|
5519
|
+
options.apply_defaults timeout: @config.rpcs.update_qa_scorecard.timeout,
|
5520
|
+
metadata: metadata,
|
5521
|
+
retry_policy: @config.rpcs.update_qa_scorecard.retry_policy
|
5522
|
+
|
5523
|
+
options.apply_defaults timeout: @config.timeout,
|
5524
|
+
metadata: @config.metadata,
|
5525
|
+
retry_policy: @config.retry_policy
|
5526
|
+
|
5527
|
+
@contact_center_insights_stub.call_rpc :update_qa_scorecard, request, options: options do |response, operation|
|
5528
|
+
yield response, operation if block_given?
|
5529
|
+
return response
|
5530
|
+
end
|
5531
|
+
rescue ::GRPC::BadStatus => e
|
5532
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5533
|
+
end
|
5534
|
+
|
5535
|
+
##
|
5536
|
+
# Deletes a QaScorecard.
|
5537
|
+
#
|
5538
|
+
# @overload delete_qa_scorecard(request, options = nil)
|
5539
|
+
# Pass arguments to `delete_qa_scorecard` via a request object, either of type
|
5540
|
+
# {::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRequest} or an equivalent Hash.
|
5541
|
+
#
|
5542
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRequest, ::Hash]
|
5543
|
+
# A request object representing the call parameters. Required. To specify no
|
5544
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5545
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5546
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5547
|
+
#
|
5548
|
+
# @overload delete_qa_scorecard(name: nil, force: nil)
|
5549
|
+
# Pass arguments to `delete_qa_scorecard` via keyword arguments. Note that at
|
5550
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5551
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5552
|
+
#
|
5553
|
+
# @param name [::String]
|
5554
|
+
# Required. The name of the QaScorecard to delete.
|
5555
|
+
# @param force [::Boolean]
|
5556
|
+
# Optional. If set to true, all of this QaScorecard's child resources will
|
5557
|
+
# also be deleted. Otherwise, the request will only succeed if it has none.
|
5558
|
+
#
|
5559
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5560
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
5561
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5562
|
+
#
|
5563
|
+
# @return [::Google::Protobuf::Empty]
|
5564
|
+
#
|
5565
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5566
|
+
#
|
5567
|
+
# @example Basic example
|
5568
|
+
# require "google/cloud/contact_center_insights/v1"
|
5569
|
+
#
|
5570
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5571
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5572
|
+
#
|
5573
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5574
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRequest.new
|
5575
|
+
#
|
5576
|
+
# # Call the delete_qa_scorecard method.
|
5577
|
+
# result = client.delete_qa_scorecard request
|
5578
|
+
#
|
5579
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
5580
|
+
# p result
|
5581
|
+
#
|
5582
|
+
def delete_qa_scorecard request, options = nil
|
5583
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5584
|
+
|
5585
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRequest
|
5586
|
+
|
5587
|
+
# Converts hash and nil to an options object
|
5588
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5589
|
+
|
5590
|
+
# Customize the options with defaults
|
5591
|
+
metadata = @config.rpcs.delete_qa_scorecard.metadata.to_h
|
5592
|
+
|
5593
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5594
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5595
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5596
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5597
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5598
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5599
|
+
|
5600
|
+
header_params = {}
|
5601
|
+
if request.name
|
5602
|
+
header_params["name"] = request.name
|
5603
|
+
end
|
5604
|
+
|
5605
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5606
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5607
|
+
|
5608
|
+
options.apply_defaults timeout: @config.rpcs.delete_qa_scorecard.timeout,
|
5609
|
+
metadata: metadata,
|
5610
|
+
retry_policy: @config.rpcs.delete_qa_scorecard.retry_policy
|
5611
|
+
|
5612
|
+
options.apply_defaults timeout: @config.timeout,
|
5613
|
+
metadata: @config.metadata,
|
5614
|
+
retry_policy: @config.retry_policy
|
5615
|
+
|
5616
|
+
@contact_center_insights_stub.call_rpc :delete_qa_scorecard, request, options: options do |response, operation|
|
5617
|
+
yield response, operation if block_given?
|
5618
|
+
return response
|
5619
|
+
end
|
5620
|
+
rescue ::GRPC::BadStatus => e
|
5621
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5622
|
+
end
|
5623
|
+
|
5624
|
+
##
|
5625
|
+
# Lists QaScorecards.
|
5626
|
+
#
|
5627
|
+
# @overload list_qa_scorecards(request, options = nil)
|
5628
|
+
# Pass arguments to `list_qa_scorecards` via a request object, either of type
|
5629
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsRequest} or an equivalent Hash.
|
5630
|
+
#
|
5631
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsRequest, ::Hash]
|
5632
|
+
# A request object representing the call parameters. Required. To specify no
|
5633
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5634
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5635
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5636
|
+
#
|
5637
|
+
# @overload list_qa_scorecards(parent: nil, page_size: nil, page_token: nil)
|
5638
|
+
# Pass arguments to `list_qa_scorecards` via keyword arguments. Note that at
|
5639
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5640
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5641
|
+
#
|
5642
|
+
# @param parent [::String]
|
5643
|
+
# Required. The parent resource of the scorecards.
|
5644
|
+
# @param page_size [::Integer]
|
5645
|
+
# Optional. The maximum number of scorecards to return in the response. If
|
5646
|
+
# the value is zero, the service will select a default size. A call might
|
5647
|
+
# return fewer objects than requested. A non-empty `next_page_token` in the
|
5648
|
+
# response indicates that more data is available.
|
5649
|
+
# @param page_token [::String]
|
5650
|
+
# Optional. The value returned by the last `ListQaScorecardsResponse`. This
|
5651
|
+
# value indicates that this is a continuation of a prior `ListQaScorecards`
|
5652
|
+
# call and that the system should return the next page of data.
|
5653
|
+
#
|
5654
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5655
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::QaScorecard>]
|
5656
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5657
|
+
#
|
5658
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::QaScorecard>]
|
5659
|
+
#
|
5660
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5661
|
+
#
|
5662
|
+
# @example Basic example
|
5663
|
+
# require "google/cloud/contact_center_insights/v1"
|
5664
|
+
#
|
5665
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5666
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5667
|
+
#
|
5668
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5669
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsRequest.new
|
5670
|
+
#
|
5671
|
+
# # Call the list_qa_scorecards method.
|
5672
|
+
# result = client.list_qa_scorecards request
|
5673
|
+
#
|
5674
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
5675
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
5676
|
+
# result.each do |item|
|
5677
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::QaScorecard.
|
5678
|
+
# p item
|
5679
|
+
# end
|
5680
|
+
#
|
5681
|
+
def list_qa_scorecards request, options = nil
|
5682
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5683
|
+
|
5684
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsRequest
|
5685
|
+
|
5686
|
+
# Converts hash and nil to an options object
|
5687
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5688
|
+
|
5689
|
+
# Customize the options with defaults
|
5690
|
+
metadata = @config.rpcs.list_qa_scorecards.metadata.to_h
|
5691
|
+
|
5692
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5693
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5694
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5695
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5696
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5697
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5698
|
+
|
5699
|
+
header_params = {}
|
5700
|
+
if request.parent
|
5701
|
+
header_params["parent"] = request.parent
|
5702
|
+
end
|
5703
|
+
|
5704
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5705
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5706
|
+
|
5707
|
+
options.apply_defaults timeout: @config.rpcs.list_qa_scorecards.timeout,
|
5708
|
+
metadata: metadata,
|
5709
|
+
retry_policy: @config.rpcs.list_qa_scorecards.retry_policy
|
5710
|
+
|
5711
|
+
options.apply_defaults timeout: @config.timeout,
|
5712
|
+
metadata: @config.metadata,
|
5713
|
+
retry_policy: @config.retry_policy
|
5714
|
+
|
5715
|
+
@contact_center_insights_stub.call_rpc :list_qa_scorecards, request, options: options do |response, operation|
|
5716
|
+
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_qa_scorecards, request, response, operation, options
|
5717
|
+
yield response, operation if block_given?
|
5718
|
+
return response
|
5719
|
+
end
|
5720
|
+
rescue ::GRPC::BadStatus => e
|
5721
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5722
|
+
end
|
5723
|
+
|
5724
|
+
##
|
5725
|
+
# Creates a QaScorecardRevision.
|
5726
|
+
#
|
5727
|
+
# @overload create_qa_scorecard_revision(request, options = nil)
|
5728
|
+
# Pass arguments to `create_qa_scorecard_revision` via a request object, either of type
|
5729
|
+
# {::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRevisionRequest} or an equivalent Hash.
|
5730
|
+
#
|
5731
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRevisionRequest, ::Hash]
|
5732
|
+
# A request object representing the call parameters. Required. To specify no
|
5733
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5734
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5735
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5736
|
+
#
|
5737
|
+
# @overload create_qa_scorecard_revision(parent: nil, qa_scorecard_revision: nil, qa_scorecard_revision_id: nil)
|
5738
|
+
# Pass arguments to `create_qa_scorecard_revision` via keyword arguments. Note that at
|
5739
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5740
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5741
|
+
#
|
5742
|
+
# @param parent [::String]
|
5743
|
+
# Required. The parent resource of the QaScorecardRevision.
|
5744
|
+
# @param qa_scorecard_revision [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision, ::Hash]
|
5745
|
+
# Required. The QaScorecardRevision to create.
|
5746
|
+
# @param qa_scorecard_revision_id [::String]
|
5747
|
+
# Optional. A unique ID for the new QaScorecardRevision. This ID will become
|
5748
|
+
# the final component of the QaScorecardRevision's resource name. If no ID is
|
5749
|
+
# specified, a server-generated ID will be used.
|
5750
|
+
#
|
5751
|
+
# This value should be 4-64 characters and must match the regular
|
5752
|
+
# expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`.
|
5753
|
+
#
|
5754
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5755
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
5756
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5757
|
+
#
|
5758
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
5759
|
+
#
|
5760
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5761
|
+
#
|
5762
|
+
# @example Basic example
|
5763
|
+
# require "google/cloud/contact_center_insights/v1"
|
5764
|
+
#
|
5765
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5766
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5767
|
+
#
|
5768
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5769
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRevisionRequest.new
|
5770
|
+
#
|
5771
|
+
# # Call the create_qa_scorecard_revision method.
|
5772
|
+
# result = client.create_qa_scorecard_revision request
|
5773
|
+
#
|
5774
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.
|
5775
|
+
# p result
|
5776
|
+
#
|
5777
|
+
def create_qa_scorecard_revision request, options = nil
|
5778
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5779
|
+
|
5780
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRevisionRequest
|
5781
|
+
|
5782
|
+
# Converts hash and nil to an options object
|
5783
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5784
|
+
|
5785
|
+
# Customize the options with defaults
|
5786
|
+
metadata = @config.rpcs.create_qa_scorecard_revision.metadata.to_h
|
5787
|
+
|
5788
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5789
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5790
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5791
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5792
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5793
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5794
|
+
|
5795
|
+
header_params = {}
|
5796
|
+
if request.parent
|
5797
|
+
header_params["parent"] = request.parent
|
5798
|
+
end
|
5799
|
+
|
5800
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5801
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5802
|
+
|
5803
|
+
options.apply_defaults timeout: @config.rpcs.create_qa_scorecard_revision.timeout,
|
5804
|
+
metadata: metadata,
|
5805
|
+
retry_policy: @config.rpcs.create_qa_scorecard_revision.retry_policy
|
5806
|
+
|
5807
|
+
options.apply_defaults timeout: @config.timeout,
|
5808
|
+
metadata: @config.metadata,
|
5809
|
+
retry_policy: @config.retry_policy
|
5810
|
+
|
5811
|
+
@contact_center_insights_stub.call_rpc :create_qa_scorecard_revision, request, options: options do |response, operation|
|
5812
|
+
yield response, operation if block_given?
|
5813
|
+
return response
|
5814
|
+
end
|
5815
|
+
rescue ::GRPC::BadStatus => e
|
5816
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5817
|
+
end
|
5818
|
+
|
5819
|
+
##
|
5820
|
+
# Gets a QaScorecardRevision.
|
5821
|
+
#
|
5822
|
+
# @overload get_qa_scorecard_revision(request, options = nil)
|
5823
|
+
# Pass arguments to `get_qa_scorecard_revision` via a request object, either of type
|
5824
|
+
# {::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRevisionRequest} or an equivalent Hash.
|
5825
|
+
#
|
5826
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRevisionRequest, ::Hash]
|
5827
|
+
# A request object representing the call parameters. Required. To specify no
|
5828
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5829
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5830
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5831
|
+
#
|
5832
|
+
# @overload get_qa_scorecard_revision(name: nil)
|
5833
|
+
# Pass arguments to `get_qa_scorecard_revision` via keyword arguments. Note that at
|
5834
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5835
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5836
|
+
#
|
5837
|
+
# @param name [::String]
|
5838
|
+
# Required. The name of the QaScorecardRevision to get.
|
5839
|
+
#
|
5840
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5841
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
5842
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5843
|
+
#
|
5844
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
5845
|
+
#
|
5846
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5847
|
+
#
|
5848
|
+
# @example Basic example
|
5849
|
+
# require "google/cloud/contact_center_insights/v1"
|
5850
|
+
#
|
5851
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5852
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5853
|
+
#
|
5854
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5855
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRevisionRequest.new
|
5856
|
+
#
|
5857
|
+
# # Call the get_qa_scorecard_revision method.
|
5858
|
+
# result = client.get_qa_scorecard_revision request
|
5859
|
+
#
|
5860
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.
|
5861
|
+
# p result
|
5862
|
+
#
|
5863
|
+
def get_qa_scorecard_revision request, options = nil
|
5864
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5865
|
+
|
5866
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRevisionRequest
|
5867
|
+
|
5868
|
+
# Converts hash and nil to an options object
|
5869
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5870
|
+
|
5871
|
+
# Customize the options with defaults
|
5872
|
+
metadata = @config.rpcs.get_qa_scorecard_revision.metadata.to_h
|
5873
|
+
|
5874
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5875
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5876
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5877
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5878
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5879
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5880
|
+
|
5881
|
+
header_params = {}
|
5882
|
+
if request.name
|
5883
|
+
header_params["name"] = request.name
|
5884
|
+
end
|
5885
|
+
|
5886
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5887
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5888
|
+
|
5889
|
+
options.apply_defaults timeout: @config.rpcs.get_qa_scorecard_revision.timeout,
|
5890
|
+
metadata: metadata,
|
5891
|
+
retry_policy: @config.rpcs.get_qa_scorecard_revision.retry_policy
|
5892
|
+
|
5893
|
+
options.apply_defaults timeout: @config.timeout,
|
5894
|
+
metadata: @config.metadata,
|
5895
|
+
retry_policy: @config.retry_policy
|
5896
|
+
|
5897
|
+
@contact_center_insights_stub.call_rpc :get_qa_scorecard_revision, request, options: options do |response, operation|
|
5898
|
+
yield response, operation if block_given?
|
5899
|
+
return response
|
5900
|
+
end
|
5901
|
+
rescue ::GRPC::BadStatus => e
|
5902
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5903
|
+
end
|
5904
|
+
|
5905
|
+
##
|
5906
|
+
# Fine tune one or more QaModels.
|
5907
|
+
#
|
5908
|
+
# @overload tune_qa_scorecard_revision(request, options = nil)
|
5909
|
+
# Pass arguments to `tune_qa_scorecard_revision` via a request object, either of type
|
5910
|
+
# {::Google::Cloud::ContactCenterInsights::V1::TuneQaScorecardRevisionRequest} or an equivalent Hash.
|
5911
|
+
#
|
5912
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::TuneQaScorecardRevisionRequest, ::Hash]
|
5913
|
+
# A request object representing the call parameters. Required. To specify no
|
5914
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5915
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5916
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5917
|
+
#
|
5918
|
+
# @overload tune_qa_scorecard_revision(parent: nil, filter: nil, validate_only: nil)
|
5919
|
+
# Pass arguments to `tune_qa_scorecard_revision` via keyword arguments. Note that at
|
5920
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5921
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5922
|
+
#
|
5923
|
+
# @param parent [::String]
|
5924
|
+
# Required. The parent resource for new fine tuning job instance.
|
5925
|
+
# @param filter [::String]
|
5926
|
+
# Required. Filter for selecting the feedback labels that needs to be
|
5927
|
+
# used for training.
|
5928
|
+
# This filter can be used to limit the feedback labels used for tuning to a
|
5929
|
+
# feedback labels created or updated for a specific time-window etc.
|
5930
|
+
# @param validate_only [::Boolean]
|
5931
|
+
# Optional. Run in validate only mode, no fine tuning will actually run.
|
5932
|
+
# Data quality validations like training data distributions will run.
|
5933
|
+
# Even when set to false, the data quality validations will still run but
|
5934
|
+
# once the validations complete we will proceed with the fine tune, if
|
5935
|
+
# applicable.
|
5936
|
+
#
|
5937
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5938
|
+
# @yieldparam response [::Gapic::Operation]
|
5939
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5940
|
+
#
|
5941
|
+
# @return [::Gapic::Operation]
|
5942
|
+
#
|
5943
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5944
|
+
#
|
5945
|
+
# @example Basic example
|
5946
|
+
# require "google/cloud/contact_center_insights/v1"
|
5947
|
+
#
|
5948
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5949
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5950
|
+
#
|
5951
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5952
|
+
# request = Google::Cloud::ContactCenterInsights::V1::TuneQaScorecardRevisionRequest.new
|
5953
|
+
#
|
5954
|
+
# # Call the tune_qa_scorecard_revision method.
|
5955
|
+
# result = client.tune_qa_scorecard_revision request
|
5956
|
+
#
|
5957
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
5958
|
+
# # check the status of an operation, cancel it, or wait for results.
|
5959
|
+
# # Here is how to wait for a response.
|
5960
|
+
# result.wait_until_done! timeout: 60
|
5961
|
+
# if result.response?
|
5962
|
+
# p result.response
|
5963
|
+
# else
|
5964
|
+
# puts "No response received."
|
5965
|
+
# end
|
5966
|
+
#
|
5967
|
+
def tune_qa_scorecard_revision request, options = nil
|
5968
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5969
|
+
|
5970
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::TuneQaScorecardRevisionRequest
|
5971
|
+
|
5972
|
+
# Converts hash and nil to an options object
|
5973
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5974
|
+
|
5975
|
+
# Customize the options with defaults
|
5976
|
+
metadata = @config.rpcs.tune_qa_scorecard_revision.metadata.to_h
|
5977
|
+
|
5978
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5979
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5980
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5981
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5982
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5983
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5984
|
+
|
5985
|
+
header_params = {}
|
5986
|
+
if request.parent
|
5987
|
+
header_params["parent"] = request.parent
|
5988
|
+
end
|
5989
|
+
|
5990
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5991
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5992
|
+
|
5993
|
+
options.apply_defaults timeout: @config.rpcs.tune_qa_scorecard_revision.timeout,
|
5994
|
+
metadata: metadata,
|
5995
|
+
retry_policy: @config.rpcs.tune_qa_scorecard_revision.retry_policy
|
5996
|
+
|
5997
|
+
options.apply_defaults timeout: @config.timeout,
|
5998
|
+
metadata: @config.metadata,
|
5999
|
+
retry_policy: @config.retry_policy
|
6000
|
+
|
6001
|
+
@contact_center_insights_stub.call_rpc :tune_qa_scorecard_revision, request, options: options do |response, operation|
|
6002
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
6003
|
+
yield response, operation if block_given?
|
6004
|
+
return response
|
6005
|
+
end
|
6006
|
+
rescue ::GRPC::BadStatus => e
|
6007
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6008
|
+
end
|
6009
|
+
|
6010
|
+
##
|
6011
|
+
# Deploy a QaScorecardRevision.
|
6012
|
+
#
|
6013
|
+
# @overload deploy_qa_scorecard_revision(request, options = nil)
|
6014
|
+
# Pass arguments to `deploy_qa_scorecard_revision` via a request object, either of type
|
6015
|
+
# {::Google::Cloud::ContactCenterInsights::V1::DeployQaScorecardRevisionRequest} or an equivalent Hash.
|
6016
|
+
#
|
6017
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::DeployQaScorecardRevisionRequest, ::Hash]
|
6018
|
+
# A request object representing the call parameters. Required. To specify no
|
6019
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6020
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6021
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6022
|
+
#
|
6023
|
+
# @overload deploy_qa_scorecard_revision(name: nil)
|
6024
|
+
# Pass arguments to `deploy_qa_scorecard_revision` via keyword arguments. Note that at
|
6025
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6026
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6027
|
+
#
|
6028
|
+
# @param name [::String]
|
6029
|
+
# Required. The name of the QaScorecardRevision to deploy.
|
6030
|
+
#
|
6031
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6032
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
6033
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6034
|
+
#
|
6035
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
6036
|
+
#
|
6037
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6038
|
+
#
|
6039
|
+
# @example Basic example
|
6040
|
+
# require "google/cloud/contact_center_insights/v1"
|
6041
|
+
#
|
6042
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6043
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6044
|
+
#
|
6045
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6046
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeployQaScorecardRevisionRequest.new
|
6047
|
+
#
|
6048
|
+
# # Call the deploy_qa_scorecard_revision method.
|
6049
|
+
# result = client.deploy_qa_scorecard_revision request
|
6050
|
+
#
|
6051
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.
|
6052
|
+
# p result
|
6053
|
+
#
|
6054
|
+
def deploy_qa_scorecard_revision request, options = nil
|
6055
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6056
|
+
|
6057
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::DeployQaScorecardRevisionRequest
|
6058
|
+
|
6059
|
+
# Converts hash and nil to an options object
|
6060
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6061
|
+
|
6062
|
+
# Customize the options with defaults
|
6063
|
+
metadata = @config.rpcs.deploy_qa_scorecard_revision.metadata.to_h
|
6064
|
+
|
6065
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6066
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6067
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6068
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6069
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6070
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6071
|
+
|
6072
|
+
header_params = {}
|
6073
|
+
if request.name
|
6074
|
+
header_params["name"] = request.name
|
6075
|
+
end
|
6076
|
+
|
6077
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6078
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6079
|
+
|
6080
|
+
options.apply_defaults timeout: @config.rpcs.deploy_qa_scorecard_revision.timeout,
|
6081
|
+
metadata: metadata,
|
6082
|
+
retry_policy: @config.rpcs.deploy_qa_scorecard_revision.retry_policy
|
6083
|
+
|
6084
|
+
options.apply_defaults timeout: @config.timeout,
|
6085
|
+
metadata: @config.metadata,
|
6086
|
+
retry_policy: @config.retry_policy
|
6087
|
+
|
6088
|
+
@contact_center_insights_stub.call_rpc :deploy_qa_scorecard_revision, request, options: options do |response, operation|
|
6089
|
+
yield response, operation if block_given?
|
6090
|
+
return response
|
6091
|
+
end
|
6092
|
+
rescue ::GRPC::BadStatus => e
|
6093
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6094
|
+
end
|
6095
|
+
|
6096
|
+
##
|
6097
|
+
# Undeploy a QaScorecardRevision.
|
6098
|
+
#
|
6099
|
+
# @overload undeploy_qa_scorecard_revision(request, options = nil)
|
6100
|
+
# Pass arguments to `undeploy_qa_scorecard_revision` via a request object, either of type
|
6101
|
+
# {::Google::Cloud::ContactCenterInsights::V1::UndeployQaScorecardRevisionRequest} or an equivalent Hash.
|
6102
|
+
#
|
6103
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::UndeployQaScorecardRevisionRequest, ::Hash]
|
6104
|
+
# A request object representing the call parameters. Required. To specify no
|
6105
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6106
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6107
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6108
|
+
#
|
6109
|
+
# @overload undeploy_qa_scorecard_revision(name: nil)
|
6110
|
+
# Pass arguments to `undeploy_qa_scorecard_revision` via keyword arguments. Note that at
|
6111
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6112
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6113
|
+
#
|
6114
|
+
# @param name [::String]
|
6115
|
+
# Required. The name of the QaScorecardRevision to undeploy.
|
6116
|
+
#
|
6117
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6118
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
6119
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6120
|
+
#
|
6121
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
6122
|
+
#
|
6123
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6124
|
+
#
|
6125
|
+
# @example Basic example
|
6126
|
+
# require "google/cloud/contact_center_insights/v1"
|
6127
|
+
#
|
6128
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6129
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6130
|
+
#
|
6131
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6132
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UndeployQaScorecardRevisionRequest.new
|
6133
|
+
#
|
6134
|
+
# # Call the undeploy_qa_scorecard_revision method.
|
6135
|
+
# result = client.undeploy_qa_scorecard_revision request
|
6136
|
+
#
|
6137
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.
|
6138
|
+
# p result
|
6139
|
+
#
|
6140
|
+
def undeploy_qa_scorecard_revision request, options = nil
|
6141
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6142
|
+
|
6143
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::UndeployQaScorecardRevisionRequest
|
6144
|
+
|
6145
|
+
# Converts hash and nil to an options object
|
6146
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6147
|
+
|
6148
|
+
# Customize the options with defaults
|
6149
|
+
metadata = @config.rpcs.undeploy_qa_scorecard_revision.metadata.to_h
|
6150
|
+
|
6151
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6152
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6153
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6154
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6155
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6156
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6157
|
+
|
6158
|
+
header_params = {}
|
6159
|
+
if request.name
|
6160
|
+
header_params["name"] = request.name
|
6161
|
+
end
|
6162
|
+
|
6163
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6164
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6165
|
+
|
6166
|
+
options.apply_defaults timeout: @config.rpcs.undeploy_qa_scorecard_revision.timeout,
|
6167
|
+
metadata: metadata,
|
6168
|
+
retry_policy: @config.rpcs.undeploy_qa_scorecard_revision.retry_policy
|
6169
|
+
|
6170
|
+
options.apply_defaults timeout: @config.timeout,
|
6171
|
+
metadata: @config.metadata,
|
6172
|
+
retry_policy: @config.retry_policy
|
6173
|
+
|
6174
|
+
@contact_center_insights_stub.call_rpc :undeploy_qa_scorecard_revision, request, options: options do |response, operation|
|
6175
|
+
yield response, operation if block_given?
|
6176
|
+
return response
|
6177
|
+
end
|
6178
|
+
rescue ::GRPC::BadStatus => e
|
6179
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6180
|
+
end
|
6181
|
+
|
6182
|
+
##
|
6183
|
+
# Deletes a QaScorecardRevision.
|
6184
|
+
#
|
6185
|
+
# @overload delete_qa_scorecard_revision(request, options = nil)
|
6186
|
+
# Pass arguments to `delete_qa_scorecard_revision` via a request object, either of type
|
6187
|
+
# {::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRevisionRequest} or an equivalent Hash.
|
6188
|
+
#
|
6189
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRevisionRequest, ::Hash]
|
6190
|
+
# A request object representing the call parameters. Required. To specify no
|
6191
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6192
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6193
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6194
|
+
#
|
6195
|
+
# @overload delete_qa_scorecard_revision(name: nil, force: nil)
|
6196
|
+
# Pass arguments to `delete_qa_scorecard_revision` via keyword arguments. Note that at
|
6197
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6198
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6199
|
+
#
|
6200
|
+
# @param name [::String]
|
6201
|
+
# Required. The name of the QaScorecardRevision to delete.
|
6202
|
+
# @param force [::Boolean]
|
6203
|
+
# Optional. If set to true, all of this QaScorecardRevision's child resources
|
6204
|
+
# will also be deleted. Otherwise, the request will only succeed if it has
|
6205
|
+
# none.
|
6206
|
+
#
|
6207
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6208
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
6209
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6210
|
+
#
|
6211
|
+
# @return [::Google::Protobuf::Empty]
|
6212
|
+
#
|
6213
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6214
|
+
#
|
6215
|
+
# @example Basic example
|
6216
|
+
# require "google/cloud/contact_center_insights/v1"
|
6217
|
+
#
|
6218
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6219
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6220
|
+
#
|
6221
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6222
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRevisionRequest.new
|
6223
|
+
#
|
6224
|
+
# # Call the delete_qa_scorecard_revision method.
|
6225
|
+
# result = client.delete_qa_scorecard_revision request
|
6226
|
+
#
|
6227
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
6228
|
+
# p result
|
6229
|
+
#
|
6230
|
+
def delete_qa_scorecard_revision request, options = nil
|
6231
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6232
|
+
|
6233
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRevisionRequest
|
6234
|
+
|
6235
|
+
# Converts hash and nil to an options object
|
6236
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6237
|
+
|
6238
|
+
# Customize the options with defaults
|
6239
|
+
metadata = @config.rpcs.delete_qa_scorecard_revision.metadata.to_h
|
6240
|
+
|
6241
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6242
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6243
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6244
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6245
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6246
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6247
|
+
|
6248
|
+
header_params = {}
|
6249
|
+
if request.name
|
6250
|
+
header_params["name"] = request.name
|
6251
|
+
end
|
6252
|
+
|
6253
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6254
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6255
|
+
|
6256
|
+
options.apply_defaults timeout: @config.rpcs.delete_qa_scorecard_revision.timeout,
|
6257
|
+
metadata: metadata,
|
6258
|
+
retry_policy: @config.rpcs.delete_qa_scorecard_revision.retry_policy
|
6259
|
+
|
6260
|
+
options.apply_defaults timeout: @config.timeout,
|
6261
|
+
metadata: @config.metadata,
|
6262
|
+
retry_policy: @config.retry_policy
|
6263
|
+
|
6264
|
+
@contact_center_insights_stub.call_rpc :delete_qa_scorecard_revision, request, options: options do |response, operation|
|
6265
|
+
yield response, operation if block_given?
|
6266
|
+
return response
|
6267
|
+
end
|
6268
|
+
rescue ::GRPC::BadStatus => e
|
6269
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6270
|
+
end
|
6271
|
+
|
6272
|
+
##
|
6273
|
+
# Lists all revisions under the parent QaScorecard.
|
6274
|
+
#
|
6275
|
+
# @overload list_qa_scorecard_revisions(request, options = nil)
|
6276
|
+
# Pass arguments to `list_qa_scorecard_revisions` via a request object, either of type
|
6277
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsRequest} or an equivalent Hash.
|
6278
|
+
#
|
6279
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsRequest, ::Hash]
|
6280
|
+
# A request object representing the call parameters. Required. To specify no
|
6281
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6282
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6283
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6284
|
+
#
|
6285
|
+
# @overload list_qa_scorecard_revisions(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
6286
|
+
# Pass arguments to `list_qa_scorecard_revisions` via keyword arguments. Note that at
|
6287
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6288
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6289
|
+
#
|
6290
|
+
# @param parent [::String]
|
6291
|
+
# Required. The parent resource of the scorecard revisions. To list all
|
6292
|
+
# revisions of all scorecards, substitute the QaScorecard ID with a '-'
|
6293
|
+
# character.
|
6294
|
+
# @param page_size [::Integer]
|
6295
|
+
# Optional. The maximum number of scorecard revisions to return in the
|
6296
|
+
# response. If the value is zero, the service will select a default size. A
|
6297
|
+
# call might return fewer objects than requested. A non-empty
|
6298
|
+
# `next_page_token` in the response indicates that more data is available.
|
6299
|
+
# @param page_token [::String]
|
6300
|
+
# Optional. The value returned by the last
|
6301
|
+
# `ListQaScorecardRevisionsResponse`. This value indicates that this is a
|
6302
|
+
# continuation of a prior `ListQaScorecardRevisions` call and that the system
|
6303
|
+
# should return the next page of data.
|
6304
|
+
# @param filter [::String]
|
6305
|
+
# Optional. A filter to reduce results to a specific subset. Useful for
|
6306
|
+
# querying scorecard revisions with specific properties.
|
6307
|
+
#
|
6308
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6309
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision>]
|
6310
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6311
|
+
#
|
6312
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision>]
|
6313
|
+
#
|
6314
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6315
|
+
#
|
6316
|
+
# @example Basic example
|
6317
|
+
# require "google/cloud/contact_center_insights/v1"
|
6318
|
+
#
|
6319
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6320
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6321
|
+
#
|
6322
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6323
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsRequest.new
|
6324
|
+
#
|
6325
|
+
# # Call the list_qa_scorecard_revisions method.
|
6326
|
+
# result = client.list_qa_scorecard_revisions request
|
6327
|
+
#
|
6328
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
6329
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
6330
|
+
# result.each do |item|
|
6331
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.
|
6332
|
+
# p item
|
6333
|
+
# end
|
6334
|
+
#
|
6335
|
+
def list_qa_scorecard_revisions request, options = nil
|
6336
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6337
|
+
|
6338
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsRequest
|
6339
|
+
|
6340
|
+
# Converts hash and nil to an options object
|
6341
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6342
|
+
|
6343
|
+
# Customize the options with defaults
|
6344
|
+
metadata = @config.rpcs.list_qa_scorecard_revisions.metadata.to_h
|
6345
|
+
|
6346
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6347
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6348
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6349
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6350
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6351
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6352
|
+
|
6353
|
+
header_params = {}
|
6354
|
+
if request.parent
|
6355
|
+
header_params["parent"] = request.parent
|
6356
|
+
end
|
6357
|
+
|
6358
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6359
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6360
|
+
|
6361
|
+
options.apply_defaults timeout: @config.rpcs.list_qa_scorecard_revisions.timeout,
|
6362
|
+
metadata: metadata,
|
6363
|
+
retry_policy: @config.rpcs.list_qa_scorecard_revisions.retry_policy
|
6364
|
+
|
6365
|
+
options.apply_defaults timeout: @config.timeout,
|
6366
|
+
metadata: @config.metadata,
|
6367
|
+
retry_policy: @config.retry_policy
|
6368
|
+
|
6369
|
+
@contact_center_insights_stub.call_rpc :list_qa_scorecard_revisions, request, options: options do |response, operation|
|
6370
|
+
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_qa_scorecard_revisions, request, response, operation, options
|
6371
|
+
yield response, operation if block_given?
|
6372
|
+
return response
|
6373
|
+
end
|
6374
|
+
rescue ::GRPC::BadStatus => e
|
6375
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6376
|
+
end
|
6377
|
+
|
6378
|
+
##
|
6379
|
+
# Create feedback label.
|
6380
|
+
#
|
6381
|
+
# @overload create_feedback_label(request, options = nil)
|
6382
|
+
# Pass arguments to `create_feedback_label` via a request object, either of type
|
6383
|
+
# {::Google::Cloud::ContactCenterInsights::V1::CreateFeedbackLabelRequest} or an equivalent Hash.
|
6384
|
+
#
|
6385
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::CreateFeedbackLabelRequest, ::Hash]
|
6386
|
+
# A request object representing the call parameters. Required. To specify no
|
6387
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6388
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6389
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6390
|
+
#
|
6391
|
+
# @overload create_feedback_label(parent: nil, feedback_label_id: nil, feedback_label: nil)
|
6392
|
+
# Pass arguments to `create_feedback_label` via keyword arguments. Note that at
|
6393
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6394
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6395
|
+
#
|
6396
|
+
# @param parent [::String]
|
6397
|
+
# Required. The parent resource of the feedback label.
|
6398
|
+
# @param feedback_label_id [::String]
|
6399
|
+
# Optional. The ID of the feedback label to create.
|
6400
|
+
# If one is not specified it will be generated by the server.
|
6401
|
+
# @param feedback_label [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel, ::Hash]
|
6402
|
+
# Required. The feedback label to create.
|
6403
|
+
#
|
6404
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6405
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
6406
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6407
|
+
#
|
6408
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
6409
|
+
#
|
6410
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6411
|
+
#
|
6412
|
+
# @example Basic example
|
6413
|
+
# require "google/cloud/contact_center_insights/v1"
|
6414
|
+
#
|
6415
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6416
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6417
|
+
#
|
6418
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6419
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreateFeedbackLabelRequest.new
|
6420
|
+
#
|
6421
|
+
# # Call the create_feedback_label method.
|
6422
|
+
# result = client.create_feedback_label request
|
6423
|
+
#
|
6424
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::FeedbackLabel.
|
6425
|
+
# p result
|
6426
|
+
#
|
6427
|
+
def create_feedback_label request, options = nil
|
6428
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6429
|
+
|
6430
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::CreateFeedbackLabelRequest
|
6431
|
+
|
6432
|
+
# Converts hash and nil to an options object
|
6433
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6434
|
+
|
6435
|
+
# Customize the options with defaults
|
6436
|
+
metadata = @config.rpcs.create_feedback_label.metadata.to_h
|
6437
|
+
|
6438
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6439
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6440
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6441
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6442
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6443
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6444
|
+
|
6445
|
+
header_params = {}
|
6446
|
+
if request.parent
|
6447
|
+
header_params["parent"] = request.parent
|
6448
|
+
end
|
6449
|
+
|
6450
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6451
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6452
|
+
|
6453
|
+
options.apply_defaults timeout: @config.rpcs.create_feedback_label.timeout,
|
6454
|
+
metadata: metadata,
|
6455
|
+
retry_policy: @config.rpcs.create_feedback_label.retry_policy
|
6456
|
+
|
6457
|
+
options.apply_defaults timeout: @config.timeout,
|
6458
|
+
metadata: @config.metadata,
|
6459
|
+
retry_policy: @config.retry_policy
|
6460
|
+
|
6461
|
+
@contact_center_insights_stub.call_rpc :create_feedback_label, request, options: options do |response, operation|
|
6462
|
+
yield response, operation if block_given?
|
6463
|
+
return response
|
6464
|
+
end
|
6465
|
+
rescue ::GRPC::BadStatus => e
|
6466
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6467
|
+
end
|
6468
|
+
|
6469
|
+
##
|
6470
|
+
# List feedback labels.
|
6471
|
+
#
|
6472
|
+
# @overload list_feedback_labels(request, options = nil)
|
6473
|
+
# Pass arguments to `list_feedback_labels` via a request object, either of type
|
6474
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsRequest} or an equivalent Hash.
|
6475
|
+
#
|
6476
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsRequest, ::Hash]
|
6477
|
+
# A request object representing the call parameters. Required. To specify no
|
6478
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6479
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6480
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6481
|
+
#
|
6482
|
+
# @overload list_feedback_labels(parent: nil, filter: nil, page_size: nil, page_token: nil)
|
6483
|
+
# Pass arguments to `list_feedback_labels` via keyword arguments. Note that at
|
6484
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6485
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6486
|
+
#
|
6487
|
+
# @param parent [::String]
|
6488
|
+
# Required. The parent resource of the feedback labels.
|
6489
|
+
# @param filter [::String]
|
6490
|
+
# Optional. A filter to reduce results to a specific subset. Supports
|
6491
|
+
# disjunctions (OR) and conjunctions (AND). Automatically sorts by
|
6492
|
+
# conversation ID. To sort by all feedback labels in a project see
|
6493
|
+
# ListAllFeedbackLabels.
|
6494
|
+
#
|
6495
|
+
# Supported fields:
|
6496
|
+
#
|
6497
|
+
# * `issue_model_id`
|
6498
|
+
# * `qa_question_id`
|
6499
|
+
# * `qa_scorecard_id`
|
6500
|
+
# * `min_create_time`
|
6501
|
+
# * `max_create_time`
|
6502
|
+
# * `min_update_time`
|
6503
|
+
# * `max_update_time`
|
6504
|
+
# * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING
|
6505
|
+
# @param page_size [::Integer]
|
6506
|
+
# Optional. The maximum number of feedback labels to return in the response.
|
6507
|
+
# A valid page size ranges from 0 to 100,000 inclusive. If the page size is
|
6508
|
+
# zero or unspecified, a default page size of 100 will be chosen. Note that a
|
6509
|
+
# call might return fewer results than the requested page size.
|
6510
|
+
# @param page_token [::String]
|
6511
|
+
# Optional. The value returned by the last `ListFeedbackLabelsResponse`. This
|
6512
|
+
# value indicates that this is a continuation of a prior `ListFeedbackLabels`
|
6513
|
+
# call and that the system should return the next page of data.
|
6514
|
+
#
|
6515
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6516
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel>]
|
6517
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6518
|
+
#
|
6519
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel>]
|
6520
|
+
#
|
6521
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6522
|
+
#
|
6523
|
+
# @example Basic example
|
6524
|
+
# require "google/cloud/contact_center_insights/v1"
|
6525
|
+
#
|
6526
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6527
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6528
|
+
#
|
6529
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6530
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsRequest.new
|
6531
|
+
#
|
6532
|
+
# # Call the list_feedback_labels method.
|
6533
|
+
# result = client.list_feedback_labels request
|
6534
|
+
#
|
6535
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
6536
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
6537
|
+
# result.each do |item|
|
6538
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel.
|
6539
|
+
# p item
|
6540
|
+
# end
|
6541
|
+
#
|
6542
|
+
def list_feedback_labels request, options = nil
|
6543
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6544
|
+
|
6545
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsRequest
|
6546
|
+
|
6547
|
+
# Converts hash and nil to an options object
|
6548
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6549
|
+
|
6550
|
+
# Customize the options with defaults
|
6551
|
+
metadata = @config.rpcs.list_feedback_labels.metadata.to_h
|
6552
|
+
|
6553
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6554
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6555
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6556
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6557
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6558
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6559
|
+
|
6560
|
+
header_params = {}
|
6561
|
+
if request.parent
|
6562
|
+
header_params["parent"] = request.parent
|
6563
|
+
end
|
6564
|
+
|
6565
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6566
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6567
|
+
|
6568
|
+
options.apply_defaults timeout: @config.rpcs.list_feedback_labels.timeout,
|
6569
|
+
metadata: metadata,
|
6570
|
+
retry_policy: @config.rpcs.list_feedback_labels.retry_policy
|
6571
|
+
|
6572
|
+
options.apply_defaults timeout: @config.timeout,
|
6573
|
+
metadata: @config.metadata,
|
6574
|
+
retry_policy: @config.retry_policy
|
6575
|
+
|
6576
|
+
@contact_center_insights_stub.call_rpc :list_feedback_labels, request, options: options do |response, operation|
|
6577
|
+
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_feedback_labels, request, response, operation, options
|
6578
|
+
yield response, operation if block_given?
|
6579
|
+
return response
|
6580
|
+
end
|
6581
|
+
rescue ::GRPC::BadStatus => e
|
6582
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6583
|
+
end
|
6584
|
+
|
6585
|
+
##
|
6586
|
+
# Get feedback label.
|
6587
|
+
#
|
6588
|
+
# @overload get_feedback_label(request, options = nil)
|
6589
|
+
# Pass arguments to `get_feedback_label` via a request object, either of type
|
6590
|
+
# {::Google::Cloud::ContactCenterInsights::V1::GetFeedbackLabelRequest} or an equivalent Hash.
|
6591
|
+
#
|
6592
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::GetFeedbackLabelRequest, ::Hash]
|
6593
|
+
# A request object representing the call parameters. Required. To specify no
|
6594
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6595
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6596
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6597
|
+
#
|
6598
|
+
# @overload get_feedback_label(name: nil)
|
6599
|
+
# Pass arguments to `get_feedback_label` via keyword arguments. Note that at
|
6600
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6601
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6602
|
+
#
|
6603
|
+
# @param name [::String]
|
6604
|
+
# Required. The name of the feedback label to get.
|
6605
|
+
#
|
6606
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6607
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
6608
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6609
|
+
#
|
6610
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
6611
|
+
#
|
6612
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6613
|
+
#
|
6614
|
+
# @example Basic example
|
6615
|
+
# require "google/cloud/contact_center_insights/v1"
|
6616
|
+
#
|
6617
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6618
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6619
|
+
#
|
6620
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6621
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetFeedbackLabelRequest.new
|
6622
|
+
#
|
6623
|
+
# # Call the get_feedback_label method.
|
6624
|
+
# result = client.get_feedback_label request
|
6625
|
+
#
|
6626
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::FeedbackLabel.
|
6627
|
+
# p result
|
6628
|
+
#
|
6629
|
+
def get_feedback_label request, options = nil
|
6630
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6631
|
+
|
6632
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetFeedbackLabelRequest
|
6633
|
+
|
6634
|
+
# Converts hash and nil to an options object
|
6635
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6636
|
+
|
6637
|
+
# Customize the options with defaults
|
6638
|
+
metadata = @config.rpcs.get_feedback_label.metadata.to_h
|
6639
|
+
|
6640
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6641
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6642
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6643
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6644
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6645
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6646
|
+
|
6647
|
+
header_params = {}
|
6648
|
+
if request.name
|
6649
|
+
header_params["name"] = request.name
|
6650
|
+
end
|
6651
|
+
|
6652
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6653
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6654
|
+
|
6655
|
+
options.apply_defaults timeout: @config.rpcs.get_feedback_label.timeout,
|
6656
|
+
metadata: metadata,
|
6657
|
+
retry_policy: @config.rpcs.get_feedback_label.retry_policy
|
6658
|
+
|
6659
|
+
options.apply_defaults timeout: @config.timeout,
|
6660
|
+
metadata: @config.metadata,
|
6661
|
+
retry_policy: @config.retry_policy
|
6662
|
+
|
6663
|
+
@contact_center_insights_stub.call_rpc :get_feedback_label, request, options: options do |response, operation|
|
6664
|
+
yield response, operation if block_given?
|
6665
|
+
return response
|
6666
|
+
end
|
6667
|
+
rescue ::GRPC::BadStatus => e
|
6668
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6669
|
+
end
|
6670
|
+
|
6671
|
+
##
|
6672
|
+
# Update feedback label.
|
6673
|
+
#
|
6674
|
+
# @overload update_feedback_label(request, options = nil)
|
6675
|
+
# Pass arguments to `update_feedback_label` via a request object, either of type
|
6676
|
+
# {::Google::Cloud::ContactCenterInsights::V1::UpdateFeedbackLabelRequest} or an equivalent Hash.
|
6677
|
+
#
|
6678
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::UpdateFeedbackLabelRequest, ::Hash]
|
6679
|
+
# A request object representing the call parameters. Required. To specify no
|
6680
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6681
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6682
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6683
|
+
#
|
6684
|
+
# @overload update_feedback_label(feedback_label: nil, update_mask: nil)
|
6685
|
+
# Pass arguments to `update_feedback_label` via keyword arguments. Note that at
|
6686
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6687
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6688
|
+
#
|
6689
|
+
# @param feedback_label [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel, ::Hash]
|
6690
|
+
# Required. The feedback label to update.
|
6691
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
6692
|
+
# Required. The list of fields to be updated.
|
6693
|
+
#
|
6694
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6695
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
6696
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6697
|
+
#
|
6698
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
6699
|
+
#
|
6700
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6701
|
+
#
|
6702
|
+
# @example Basic example
|
6703
|
+
# require "google/cloud/contact_center_insights/v1"
|
6704
|
+
#
|
6705
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6706
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6707
|
+
#
|
6708
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6709
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UpdateFeedbackLabelRequest.new
|
6710
|
+
#
|
6711
|
+
# # Call the update_feedback_label method.
|
6712
|
+
# result = client.update_feedback_label request
|
6713
|
+
#
|
6714
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::FeedbackLabel.
|
6715
|
+
# p result
|
6716
|
+
#
|
6717
|
+
def update_feedback_label request, options = nil
|
6718
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6719
|
+
|
6720
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::UpdateFeedbackLabelRequest
|
6721
|
+
|
6722
|
+
# Converts hash and nil to an options object
|
6723
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6724
|
+
|
6725
|
+
# Customize the options with defaults
|
6726
|
+
metadata = @config.rpcs.update_feedback_label.metadata.to_h
|
6727
|
+
|
6728
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6729
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6730
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6731
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6732
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6733
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6734
|
+
|
6735
|
+
header_params = {}
|
6736
|
+
if request.feedback_label&.name
|
6737
|
+
header_params["feedback_label.name"] = request.feedback_label.name
|
6738
|
+
end
|
6739
|
+
|
6740
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6741
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6742
|
+
|
6743
|
+
options.apply_defaults timeout: @config.rpcs.update_feedback_label.timeout,
|
6744
|
+
metadata: metadata,
|
6745
|
+
retry_policy: @config.rpcs.update_feedback_label.retry_policy
|
6746
|
+
|
6747
|
+
options.apply_defaults timeout: @config.timeout,
|
6748
|
+
metadata: @config.metadata,
|
6749
|
+
retry_policy: @config.retry_policy
|
6750
|
+
|
6751
|
+
@contact_center_insights_stub.call_rpc :update_feedback_label, request, options: options do |response, operation|
|
6752
|
+
yield response, operation if block_given?
|
6753
|
+
return response
|
6754
|
+
end
|
6755
|
+
rescue ::GRPC::BadStatus => e
|
6756
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6757
|
+
end
|
6758
|
+
|
6759
|
+
##
|
6760
|
+
# Delete feedback label.
|
6761
|
+
#
|
6762
|
+
# @overload delete_feedback_label(request, options = nil)
|
6763
|
+
# Pass arguments to `delete_feedback_label` via a request object, either of type
|
6764
|
+
# {::Google::Cloud::ContactCenterInsights::V1::DeleteFeedbackLabelRequest} or an equivalent Hash.
|
6765
|
+
#
|
6766
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::DeleteFeedbackLabelRequest, ::Hash]
|
6767
|
+
# A request object representing the call parameters. Required. To specify no
|
6768
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6769
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6770
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6771
|
+
#
|
6772
|
+
# @overload delete_feedback_label(name: nil)
|
6773
|
+
# Pass arguments to `delete_feedback_label` via keyword arguments. Note that at
|
6774
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6775
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6776
|
+
#
|
6777
|
+
# @param name [::String]
|
6778
|
+
# Required. The name of the feedback label to delete.
|
6779
|
+
#
|
6780
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6781
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
6782
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6783
|
+
#
|
6784
|
+
# @return [::Google::Protobuf::Empty]
|
6785
|
+
#
|
6786
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6787
|
+
#
|
6788
|
+
# @example Basic example
|
6789
|
+
# require "google/cloud/contact_center_insights/v1"
|
6790
|
+
#
|
6791
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6792
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6793
|
+
#
|
6794
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6795
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeleteFeedbackLabelRequest.new
|
6796
|
+
#
|
6797
|
+
# # Call the delete_feedback_label method.
|
6798
|
+
# result = client.delete_feedback_label request
|
4166
6799
|
#
|
4167
6800
|
# # The returned object is of type Google::Protobuf::Empty.
|
4168
6801
|
# p result
|
4169
6802
|
#
|
4170
|
-
def
|
6803
|
+
def delete_feedback_label request, options = nil
|
6804
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6805
|
+
|
6806
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::DeleteFeedbackLabelRequest
|
6807
|
+
|
6808
|
+
# Converts hash and nil to an options object
|
6809
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6810
|
+
|
6811
|
+
# Customize the options with defaults
|
6812
|
+
metadata = @config.rpcs.delete_feedback_label.metadata.to_h
|
6813
|
+
|
6814
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6815
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6816
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6817
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6818
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6819
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6820
|
+
|
6821
|
+
header_params = {}
|
6822
|
+
if request.name
|
6823
|
+
header_params["name"] = request.name
|
6824
|
+
end
|
6825
|
+
|
6826
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6827
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6828
|
+
|
6829
|
+
options.apply_defaults timeout: @config.rpcs.delete_feedback_label.timeout,
|
6830
|
+
metadata: metadata,
|
6831
|
+
retry_policy: @config.rpcs.delete_feedback_label.retry_policy
|
6832
|
+
|
6833
|
+
options.apply_defaults timeout: @config.timeout,
|
6834
|
+
metadata: @config.metadata,
|
6835
|
+
retry_policy: @config.retry_policy
|
6836
|
+
|
6837
|
+
@contact_center_insights_stub.call_rpc :delete_feedback_label, request, options: options do |response, operation|
|
6838
|
+
yield response, operation if block_given?
|
6839
|
+
return response
|
6840
|
+
end
|
6841
|
+
rescue ::GRPC::BadStatus => e
|
6842
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6843
|
+
end
|
6844
|
+
|
6845
|
+
##
|
6846
|
+
# List all feedback labels by project number.
|
6847
|
+
#
|
6848
|
+
# @overload list_all_feedback_labels(request, options = nil)
|
6849
|
+
# Pass arguments to `list_all_feedback_labels` via a request object, either of type
|
6850
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsRequest} or an equivalent Hash.
|
6851
|
+
#
|
6852
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsRequest, ::Hash]
|
6853
|
+
# A request object representing the call parameters. Required. To specify no
|
6854
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6855
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6856
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6857
|
+
#
|
6858
|
+
# @overload list_all_feedback_labels(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
6859
|
+
# Pass arguments to `list_all_feedback_labels` via keyword arguments. Note that at
|
6860
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6861
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6862
|
+
#
|
6863
|
+
# @param parent [::String]
|
6864
|
+
# Required. The parent resource of all feedback labels per project.
|
6865
|
+
# @param page_size [::Integer]
|
6866
|
+
# Optional. The maximum number of feedback labels to return in the response.
|
6867
|
+
# A valid page size ranges from 0 to 100,000 inclusive. If the page size is
|
6868
|
+
# zero or unspecified, a default page size of 100 will be chosen. Note that a
|
6869
|
+
# call might return fewer results than the requested page size.
|
6870
|
+
# @param page_token [::String]
|
6871
|
+
# Optional. The value returned by the last `ListAllFeedbackLabelsResponse`.
|
6872
|
+
# This value indicates that this is a continuation of a prior
|
6873
|
+
# `ListAllFeedbackLabels` call and that the system should return the next
|
6874
|
+
# page of data.
|
6875
|
+
# @param filter [::String]
|
6876
|
+
# Optional. A filter to reduce results to a specific subset in the entire
|
6877
|
+
# project. Supports disjunctions (OR) and conjunctions (AND).
|
6878
|
+
#
|
6879
|
+
# Supported fields:
|
6880
|
+
#
|
6881
|
+
# * `issue_model_id`
|
6882
|
+
# * `qa_question_id`
|
6883
|
+
# * `min_create_time`
|
6884
|
+
# * `max_create_time`
|
6885
|
+
# * `min_update_time`
|
6886
|
+
# * `max_update_time`
|
6887
|
+
# * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING
|
6888
|
+
#
|
6889
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6890
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel>]
|
6891
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6892
|
+
#
|
6893
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel>]
|
6894
|
+
#
|
6895
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6896
|
+
#
|
6897
|
+
# @example Basic example
|
6898
|
+
# require "google/cloud/contact_center_insights/v1"
|
6899
|
+
#
|
6900
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6901
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6902
|
+
#
|
6903
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6904
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsRequest.new
|
6905
|
+
#
|
6906
|
+
# # Call the list_all_feedback_labels method.
|
6907
|
+
# result = client.list_all_feedback_labels request
|
6908
|
+
#
|
6909
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
6910
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
6911
|
+
# result.each do |item|
|
6912
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel.
|
6913
|
+
# p item
|
6914
|
+
# end
|
6915
|
+
#
|
6916
|
+
def list_all_feedback_labels request, options = nil
|
6917
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6918
|
+
|
6919
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsRequest
|
6920
|
+
|
6921
|
+
# Converts hash and nil to an options object
|
6922
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6923
|
+
|
6924
|
+
# Customize the options with defaults
|
6925
|
+
metadata = @config.rpcs.list_all_feedback_labels.metadata.to_h
|
6926
|
+
|
6927
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6928
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6929
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6930
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6931
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6932
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6933
|
+
|
6934
|
+
header_params = {}
|
6935
|
+
if request.parent
|
6936
|
+
header_params["parent"] = request.parent
|
6937
|
+
end
|
6938
|
+
|
6939
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6940
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6941
|
+
|
6942
|
+
options.apply_defaults timeout: @config.rpcs.list_all_feedback_labels.timeout,
|
6943
|
+
metadata: metadata,
|
6944
|
+
retry_policy: @config.rpcs.list_all_feedback_labels.retry_policy
|
6945
|
+
|
6946
|
+
options.apply_defaults timeout: @config.timeout,
|
6947
|
+
metadata: @config.metadata,
|
6948
|
+
retry_policy: @config.retry_policy
|
6949
|
+
|
6950
|
+
@contact_center_insights_stub.call_rpc :list_all_feedback_labels, request, options: options do |response, operation|
|
6951
|
+
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_all_feedback_labels, request, response, operation, options
|
6952
|
+
yield response, operation if block_given?
|
6953
|
+
return response
|
6954
|
+
end
|
6955
|
+
rescue ::GRPC::BadStatus => e
|
6956
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6957
|
+
end
|
6958
|
+
|
6959
|
+
##
|
6960
|
+
# Upload feedback labels in bulk.
|
6961
|
+
#
|
6962
|
+
# @overload bulk_upload_feedback_labels(request, options = nil)
|
6963
|
+
# Pass arguments to `bulk_upload_feedback_labels` via a request object, either of type
|
6964
|
+
# {::Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest} or an equivalent Hash.
|
6965
|
+
#
|
6966
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest, ::Hash]
|
6967
|
+
# A request object representing the call parameters. Required. To specify no
|
6968
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6969
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6970
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6971
|
+
#
|
6972
|
+
# @overload bulk_upload_feedback_labels(gcs_source: nil, parent: nil, validate_only: nil)
|
6973
|
+
# Pass arguments to `bulk_upload_feedback_labels` via keyword arguments. Note that at
|
6974
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6975
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6976
|
+
#
|
6977
|
+
# @param gcs_source [::Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest::GcsSource, ::Hash]
|
6978
|
+
# A cloud storage bucket source.
|
6979
|
+
# @param parent [::String]
|
6980
|
+
# Required. The parent resource for new feedback labels.
|
6981
|
+
# @param validate_only [::Boolean]
|
6982
|
+
# Optional. If set, upload will not happen and the labels will be validated.
|
6983
|
+
# If not set, then default behavior will be to upload the labels after
|
6984
|
+
# validation is complete.
|
6985
|
+
#
|
6986
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6987
|
+
# @yieldparam response [::Gapic::Operation]
|
6988
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6989
|
+
#
|
6990
|
+
# @return [::Gapic::Operation]
|
6991
|
+
#
|
6992
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6993
|
+
#
|
6994
|
+
# @example Basic example
|
6995
|
+
# require "google/cloud/contact_center_insights/v1"
|
6996
|
+
#
|
6997
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6998
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6999
|
+
#
|
7000
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
7001
|
+
# request = Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest.new
|
7002
|
+
#
|
7003
|
+
# # Call the bulk_upload_feedback_labels method.
|
7004
|
+
# result = client.bulk_upload_feedback_labels request
|
7005
|
+
#
|
7006
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
7007
|
+
# # check the status of an operation, cancel it, or wait for results.
|
7008
|
+
# # Here is how to wait for a response.
|
7009
|
+
# result.wait_until_done! timeout: 60
|
7010
|
+
# if result.response?
|
7011
|
+
# p result.response
|
7012
|
+
# else
|
7013
|
+
# puts "No response received."
|
7014
|
+
# end
|
7015
|
+
#
|
7016
|
+
def bulk_upload_feedback_labels request, options = nil
|
4171
7017
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4172
7018
|
|
4173
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::
|
7019
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest
|
4174
7020
|
|
4175
7021
|
# Converts hash and nil to an options object
|
4176
7022
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4177
7023
|
|
4178
7024
|
# Customize the options with defaults
|
4179
|
-
metadata = @config.rpcs.
|
7025
|
+
metadata = @config.rpcs.bulk_upload_feedback_labels.metadata.to_h
|
4180
7026
|
|
4181
7027
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4182
7028
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -4186,22 +7032,148 @@ module Google
|
|
4186
7032
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4187
7033
|
|
4188
7034
|
header_params = {}
|
4189
|
-
if request.
|
4190
|
-
header_params["
|
7035
|
+
if request.parent
|
7036
|
+
header_params["parent"] = request.parent
|
4191
7037
|
end
|
4192
7038
|
|
4193
7039
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4194
7040
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4195
7041
|
|
4196
|
-
options.apply_defaults timeout: @config.rpcs.
|
7042
|
+
options.apply_defaults timeout: @config.rpcs.bulk_upload_feedback_labels.timeout,
|
4197
7043
|
metadata: metadata,
|
4198
|
-
retry_policy: @config.rpcs.
|
7044
|
+
retry_policy: @config.rpcs.bulk_upload_feedback_labels.retry_policy
|
4199
7045
|
|
4200
7046
|
options.apply_defaults timeout: @config.timeout,
|
4201
7047
|
metadata: @config.metadata,
|
4202
7048
|
retry_policy: @config.retry_policy
|
4203
7049
|
|
4204
|
-
@contact_center_insights_stub.call_rpc :
|
7050
|
+
@contact_center_insights_stub.call_rpc :bulk_upload_feedback_labels, request, options: options do |response, operation|
|
7051
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
7052
|
+
yield response, operation if block_given?
|
7053
|
+
return response
|
7054
|
+
end
|
7055
|
+
rescue ::GRPC::BadStatus => e
|
7056
|
+
raise ::Google::Cloud::Error.from_error(e)
|
7057
|
+
end
|
7058
|
+
|
7059
|
+
##
|
7060
|
+
# Download feedback labels in bulk.
|
7061
|
+
#
|
7062
|
+
# @overload bulk_download_feedback_labels(request, options = nil)
|
7063
|
+
# Pass arguments to `bulk_download_feedback_labels` via a request object, either of type
|
7064
|
+
# {::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest} or an equivalent Hash.
|
7065
|
+
#
|
7066
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest, ::Hash]
|
7067
|
+
# A request object representing the call parameters. Required. To specify no
|
7068
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
7069
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
7070
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
7071
|
+
#
|
7072
|
+
# @overload bulk_download_feedback_labels(gcs_destination: nil, parent: nil, filter: nil, max_download_count: nil, feedback_label_type: nil, conversation_filter: nil, template_qa_scorecard_id: nil)
|
7073
|
+
# Pass arguments to `bulk_download_feedback_labels` via keyword arguments. Note that at
|
7074
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
7075
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
7076
|
+
#
|
7077
|
+
# @param gcs_destination [::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest::GcsDestination, ::Hash]
|
7078
|
+
# A cloud storage bucket destination.
|
7079
|
+
# @param parent [::String]
|
7080
|
+
# Required. The parent resource for new feedback labels.
|
7081
|
+
# @param filter [::String]
|
7082
|
+
# Optional. A filter to reduce results to a specific subset. Supports
|
7083
|
+
# disjunctions (OR) and conjunctions (AND).
|
7084
|
+
#
|
7085
|
+
# Supported fields:
|
7086
|
+
#
|
7087
|
+
# * `issue_model_id`
|
7088
|
+
# * `qa_question_id`
|
7089
|
+
# * `qa_scorecard_id`
|
7090
|
+
# * `min_create_time`
|
7091
|
+
# * `max_create_time`
|
7092
|
+
# * `min_update_time`
|
7093
|
+
# * `max_update_time`
|
7094
|
+
# * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING
|
7095
|
+
# @param max_download_count [::Integer]
|
7096
|
+
# Optional. Limits the maximum number of feedback labels that will be
|
7097
|
+
# downloaded. The first `N` feedback labels will be downloaded.
|
7098
|
+
# @param feedback_label_type [::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest::FeedbackLabelType]
|
7099
|
+
# Optional. The type of feedback labels that will be downloaded.
|
7100
|
+
# @param conversation_filter [::String]
|
7101
|
+
# Optional. Filter parent conversations to download feedback labels for.
|
7102
|
+
# When specified, the feedback labels will be downloaded for the
|
7103
|
+
# conversations that match the filter.
|
7104
|
+
# If `template_qa_scorecard_id` is set, all the conversations that match the
|
7105
|
+
# filter will be paired with the questions under the scorecard for labeling.
|
7106
|
+
# @param template_qa_scorecard_id [::Array<::String>]
|
7107
|
+
# Optional. If set, a template for labeling conversations and scorecard
|
7108
|
+
# questions will be created from the conversation_filter and the questions
|
7109
|
+
# under the scorecard(s). The feedback label `filter` will be ignored.
|
7110
|
+
#
|
7111
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
7112
|
+
# @yieldparam response [::Gapic::Operation]
|
7113
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
7114
|
+
#
|
7115
|
+
# @return [::Gapic::Operation]
|
7116
|
+
#
|
7117
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
7118
|
+
#
|
7119
|
+
# @example Basic example
|
7120
|
+
# require "google/cloud/contact_center_insights/v1"
|
7121
|
+
#
|
7122
|
+
# # Create a client object. The client can be reused for multiple calls.
|
7123
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
7124
|
+
#
|
7125
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
7126
|
+
# request = Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest.new
|
7127
|
+
#
|
7128
|
+
# # Call the bulk_download_feedback_labels method.
|
7129
|
+
# result = client.bulk_download_feedback_labels request
|
7130
|
+
#
|
7131
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
7132
|
+
# # check the status of an operation, cancel it, or wait for results.
|
7133
|
+
# # Here is how to wait for a response.
|
7134
|
+
# result.wait_until_done! timeout: 60
|
7135
|
+
# if result.response?
|
7136
|
+
# p result.response
|
7137
|
+
# else
|
7138
|
+
# puts "No response received."
|
7139
|
+
# end
|
7140
|
+
#
|
7141
|
+
def bulk_download_feedback_labels request, options = nil
|
7142
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
7143
|
+
|
7144
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest
|
7145
|
+
|
7146
|
+
# Converts hash and nil to an options object
|
7147
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
7148
|
+
|
7149
|
+
# Customize the options with defaults
|
7150
|
+
metadata = @config.rpcs.bulk_download_feedback_labels.metadata.to_h
|
7151
|
+
|
7152
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
7153
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
7154
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
7155
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
7156
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
7157
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
7158
|
+
|
7159
|
+
header_params = {}
|
7160
|
+
if request.parent
|
7161
|
+
header_params["parent"] = request.parent
|
7162
|
+
end
|
7163
|
+
|
7164
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
7165
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
7166
|
+
|
7167
|
+
options.apply_defaults timeout: @config.rpcs.bulk_download_feedback_labels.timeout,
|
7168
|
+
metadata: metadata,
|
7169
|
+
retry_policy: @config.rpcs.bulk_download_feedback_labels.retry_policy
|
7170
|
+
|
7171
|
+
options.apply_defaults timeout: @config.timeout,
|
7172
|
+
metadata: @config.metadata,
|
7173
|
+
retry_policy: @config.retry_policy
|
7174
|
+
|
7175
|
+
@contact_center_insights_stub.call_rpc :bulk_download_feedback_labels, request, options: options do |response, operation|
|
7176
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4205
7177
|
yield response, operation if block_given?
|
4206
7178
|
return response
|
4207
7179
|
end
|
@@ -4543,6 +7515,31 @@ module Google
|
|
4543
7515
|
#
|
4544
7516
|
attr_reader :update_settings
|
4545
7517
|
##
|
7518
|
+
# RPC-specific configuration for `create_analysis_rule`
|
7519
|
+
# @return [::Gapic::Config::Method]
|
7520
|
+
#
|
7521
|
+
attr_reader :create_analysis_rule
|
7522
|
+
##
|
7523
|
+
# RPC-specific configuration for `get_analysis_rule`
|
7524
|
+
# @return [::Gapic::Config::Method]
|
7525
|
+
#
|
7526
|
+
attr_reader :get_analysis_rule
|
7527
|
+
##
|
7528
|
+
# RPC-specific configuration for `list_analysis_rules`
|
7529
|
+
# @return [::Gapic::Config::Method]
|
7530
|
+
#
|
7531
|
+
attr_reader :list_analysis_rules
|
7532
|
+
##
|
7533
|
+
# RPC-specific configuration for `update_analysis_rule`
|
7534
|
+
# @return [::Gapic::Config::Method]
|
7535
|
+
#
|
7536
|
+
attr_reader :update_analysis_rule
|
7537
|
+
##
|
7538
|
+
# RPC-specific configuration for `delete_analysis_rule`
|
7539
|
+
# @return [::Gapic::Config::Method]
|
7540
|
+
#
|
7541
|
+
attr_reader :delete_analysis_rule
|
7542
|
+
##
|
4546
7543
|
# RPC-specific configuration for `get_encryption_spec`
|
4547
7544
|
# @return [::Gapic::Config::Method]
|
4548
7545
|
#
|
@@ -4577,6 +7574,136 @@ module Google
|
|
4577
7574
|
# @return [::Gapic::Config::Method]
|
4578
7575
|
#
|
4579
7576
|
attr_reader :delete_view
|
7577
|
+
##
|
7578
|
+
# RPC-specific configuration for `query_metrics`
|
7579
|
+
# @return [::Gapic::Config::Method]
|
7580
|
+
#
|
7581
|
+
attr_reader :query_metrics
|
7582
|
+
##
|
7583
|
+
# RPC-specific configuration for `create_qa_question`
|
7584
|
+
# @return [::Gapic::Config::Method]
|
7585
|
+
#
|
7586
|
+
attr_reader :create_qa_question
|
7587
|
+
##
|
7588
|
+
# RPC-specific configuration for `get_qa_question`
|
7589
|
+
# @return [::Gapic::Config::Method]
|
7590
|
+
#
|
7591
|
+
attr_reader :get_qa_question
|
7592
|
+
##
|
7593
|
+
# RPC-specific configuration for `update_qa_question`
|
7594
|
+
# @return [::Gapic::Config::Method]
|
7595
|
+
#
|
7596
|
+
attr_reader :update_qa_question
|
7597
|
+
##
|
7598
|
+
# RPC-specific configuration for `delete_qa_question`
|
7599
|
+
# @return [::Gapic::Config::Method]
|
7600
|
+
#
|
7601
|
+
attr_reader :delete_qa_question
|
7602
|
+
##
|
7603
|
+
# RPC-specific configuration for `list_qa_questions`
|
7604
|
+
# @return [::Gapic::Config::Method]
|
7605
|
+
#
|
7606
|
+
attr_reader :list_qa_questions
|
7607
|
+
##
|
7608
|
+
# RPC-specific configuration for `create_qa_scorecard`
|
7609
|
+
# @return [::Gapic::Config::Method]
|
7610
|
+
#
|
7611
|
+
attr_reader :create_qa_scorecard
|
7612
|
+
##
|
7613
|
+
# RPC-specific configuration for `get_qa_scorecard`
|
7614
|
+
# @return [::Gapic::Config::Method]
|
7615
|
+
#
|
7616
|
+
attr_reader :get_qa_scorecard
|
7617
|
+
##
|
7618
|
+
# RPC-specific configuration for `update_qa_scorecard`
|
7619
|
+
# @return [::Gapic::Config::Method]
|
7620
|
+
#
|
7621
|
+
attr_reader :update_qa_scorecard
|
7622
|
+
##
|
7623
|
+
# RPC-specific configuration for `delete_qa_scorecard`
|
7624
|
+
# @return [::Gapic::Config::Method]
|
7625
|
+
#
|
7626
|
+
attr_reader :delete_qa_scorecard
|
7627
|
+
##
|
7628
|
+
# RPC-specific configuration for `list_qa_scorecards`
|
7629
|
+
# @return [::Gapic::Config::Method]
|
7630
|
+
#
|
7631
|
+
attr_reader :list_qa_scorecards
|
7632
|
+
##
|
7633
|
+
# RPC-specific configuration for `create_qa_scorecard_revision`
|
7634
|
+
# @return [::Gapic::Config::Method]
|
7635
|
+
#
|
7636
|
+
attr_reader :create_qa_scorecard_revision
|
7637
|
+
##
|
7638
|
+
# RPC-specific configuration for `get_qa_scorecard_revision`
|
7639
|
+
# @return [::Gapic::Config::Method]
|
7640
|
+
#
|
7641
|
+
attr_reader :get_qa_scorecard_revision
|
7642
|
+
##
|
7643
|
+
# RPC-specific configuration for `tune_qa_scorecard_revision`
|
7644
|
+
# @return [::Gapic::Config::Method]
|
7645
|
+
#
|
7646
|
+
attr_reader :tune_qa_scorecard_revision
|
7647
|
+
##
|
7648
|
+
# RPC-specific configuration for `deploy_qa_scorecard_revision`
|
7649
|
+
# @return [::Gapic::Config::Method]
|
7650
|
+
#
|
7651
|
+
attr_reader :deploy_qa_scorecard_revision
|
7652
|
+
##
|
7653
|
+
# RPC-specific configuration for `undeploy_qa_scorecard_revision`
|
7654
|
+
# @return [::Gapic::Config::Method]
|
7655
|
+
#
|
7656
|
+
attr_reader :undeploy_qa_scorecard_revision
|
7657
|
+
##
|
7658
|
+
# RPC-specific configuration for `delete_qa_scorecard_revision`
|
7659
|
+
# @return [::Gapic::Config::Method]
|
7660
|
+
#
|
7661
|
+
attr_reader :delete_qa_scorecard_revision
|
7662
|
+
##
|
7663
|
+
# RPC-specific configuration for `list_qa_scorecard_revisions`
|
7664
|
+
# @return [::Gapic::Config::Method]
|
7665
|
+
#
|
7666
|
+
attr_reader :list_qa_scorecard_revisions
|
7667
|
+
##
|
7668
|
+
# RPC-specific configuration for `create_feedback_label`
|
7669
|
+
# @return [::Gapic::Config::Method]
|
7670
|
+
#
|
7671
|
+
attr_reader :create_feedback_label
|
7672
|
+
##
|
7673
|
+
# RPC-specific configuration for `list_feedback_labels`
|
7674
|
+
# @return [::Gapic::Config::Method]
|
7675
|
+
#
|
7676
|
+
attr_reader :list_feedback_labels
|
7677
|
+
##
|
7678
|
+
# RPC-specific configuration for `get_feedback_label`
|
7679
|
+
# @return [::Gapic::Config::Method]
|
7680
|
+
#
|
7681
|
+
attr_reader :get_feedback_label
|
7682
|
+
##
|
7683
|
+
# RPC-specific configuration for `update_feedback_label`
|
7684
|
+
# @return [::Gapic::Config::Method]
|
7685
|
+
#
|
7686
|
+
attr_reader :update_feedback_label
|
7687
|
+
##
|
7688
|
+
# RPC-specific configuration for `delete_feedback_label`
|
7689
|
+
# @return [::Gapic::Config::Method]
|
7690
|
+
#
|
7691
|
+
attr_reader :delete_feedback_label
|
7692
|
+
##
|
7693
|
+
# RPC-specific configuration for `list_all_feedback_labels`
|
7694
|
+
# @return [::Gapic::Config::Method]
|
7695
|
+
#
|
7696
|
+
attr_reader :list_all_feedback_labels
|
7697
|
+
##
|
7698
|
+
# RPC-specific configuration for `bulk_upload_feedback_labels`
|
7699
|
+
# @return [::Gapic::Config::Method]
|
7700
|
+
#
|
7701
|
+
attr_reader :bulk_upload_feedback_labels
|
7702
|
+
##
|
7703
|
+
# RPC-specific configuration for `bulk_download_feedback_labels`
|
7704
|
+
# @return [::Gapic::Config::Method]
|
7705
|
+
#
|
7706
|
+
attr_reader :bulk_download_feedback_labels
|
4580
7707
|
|
4581
7708
|
# @private
|
4582
7709
|
def initialize parent_rpcs = nil
|
@@ -4652,6 +7779,16 @@ module Google
|
|
4652
7779
|
@get_settings = ::Gapic::Config::Method.new get_settings_config
|
4653
7780
|
update_settings_config = parent_rpcs.update_settings if parent_rpcs.respond_to? :update_settings
|
4654
7781
|
@update_settings = ::Gapic::Config::Method.new update_settings_config
|
7782
|
+
create_analysis_rule_config = parent_rpcs.create_analysis_rule if parent_rpcs.respond_to? :create_analysis_rule
|
7783
|
+
@create_analysis_rule = ::Gapic::Config::Method.new create_analysis_rule_config
|
7784
|
+
get_analysis_rule_config = parent_rpcs.get_analysis_rule if parent_rpcs.respond_to? :get_analysis_rule
|
7785
|
+
@get_analysis_rule = ::Gapic::Config::Method.new get_analysis_rule_config
|
7786
|
+
list_analysis_rules_config = parent_rpcs.list_analysis_rules if parent_rpcs.respond_to? :list_analysis_rules
|
7787
|
+
@list_analysis_rules = ::Gapic::Config::Method.new list_analysis_rules_config
|
7788
|
+
update_analysis_rule_config = parent_rpcs.update_analysis_rule if parent_rpcs.respond_to? :update_analysis_rule
|
7789
|
+
@update_analysis_rule = ::Gapic::Config::Method.new update_analysis_rule_config
|
7790
|
+
delete_analysis_rule_config = parent_rpcs.delete_analysis_rule if parent_rpcs.respond_to? :delete_analysis_rule
|
7791
|
+
@delete_analysis_rule = ::Gapic::Config::Method.new delete_analysis_rule_config
|
4655
7792
|
get_encryption_spec_config = parent_rpcs.get_encryption_spec if parent_rpcs.respond_to? :get_encryption_spec
|
4656
7793
|
@get_encryption_spec = ::Gapic::Config::Method.new get_encryption_spec_config
|
4657
7794
|
initialize_encryption_spec_config = parent_rpcs.initialize_encryption_spec if parent_rpcs.respond_to? :initialize_encryption_spec
|
@@ -4666,6 +7803,58 @@ module Google
|
|
4666
7803
|
@update_view = ::Gapic::Config::Method.new update_view_config
|
4667
7804
|
delete_view_config = parent_rpcs.delete_view if parent_rpcs.respond_to? :delete_view
|
4668
7805
|
@delete_view = ::Gapic::Config::Method.new delete_view_config
|
7806
|
+
query_metrics_config = parent_rpcs.query_metrics if parent_rpcs.respond_to? :query_metrics
|
7807
|
+
@query_metrics = ::Gapic::Config::Method.new query_metrics_config
|
7808
|
+
create_qa_question_config = parent_rpcs.create_qa_question if parent_rpcs.respond_to? :create_qa_question
|
7809
|
+
@create_qa_question = ::Gapic::Config::Method.new create_qa_question_config
|
7810
|
+
get_qa_question_config = parent_rpcs.get_qa_question if parent_rpcs.respond_to? :get_qa_question
|
7811
|
+
@get_qa_question = ::Gapic::Config::Method.new get_qa_question_config
|
7812
|
+
update_qa_question_config = parent_rpcs.update_qa_question if parent_rpcs.respond_to? :update_qa_question
|
7813
|
+
@update_qa_question = ::Gapic::Config::Method.new update_qa_question_config
|
7814
|
+
delete_qa_question_config = parent_rpcs.delete_qa_question if parent_rpcs.respond_to? :delete_qa_question
|
7815
|
+
@delete_qa_question = ::Gapic::Config::Method.new delete_qa_question_config
|
7816
|
+
list_qa_questions_config = parent_rpcs.list_qa_questions if parent_rpcs.respond_to? :list_qa_questions
|
7817
|
+
@list_qa_questions = ::Gapic::Config::Method.new list_qa_questions_config
|
7818
|
+
create_qa_scorecard_config = parent_rpcs.create_qa_scorecard if parent_rpcs.respond_to? :create_qa_scorecard
|
7819
|
+
@create_qa_scorecard = ::Gapic::Config::Method.new create_qa_scorecard_config
|
7820
|
+
get_qa_scorecard_config = parent_rpcs.get_qa_scorecard if parent_rpcs.respond_to? :get_qa_scorecard
|
7821
|
+
@get_qa_scorecard = ::Gapic::Config::Method.new get_qa_scorecard_config
|
7822
|
+
update_qa_scorecard_config = parent_rpcs.update_qa_scorecard if parent_rpcs.respond_to? :update_qa_scorecard
|
7823
|
+
@update_qa_scorecard = ::Gapic::Config::Method.new update_qa_scorecard_config
|
7824
|
+
delete_qa_scorecard_config = parent_rpcs.delete_qa_scorecard if parent_rpcs.respond_to? :delete_qa_scorecard
|
7825
|
+
@delete_qa_scorecard = ::Gapic::Config::Method.new delete_qa_scorecard_config
|
7826
|
+
list_qa_scorecards_config = parent_rpcs.list_qa_scorecards if parent_rpcs.respond_to? :list_qa_scorecards
|
7827
|
+
@list_qa_scorecards = ::Gapic::Config::Method.new list_qa_scorecards_config
|
7828
|
+
create_qa_scorecard_revision_config = parent_rpcs.create_qa_scorecard_revision if parent_rpcs.respond_to? :create_qa_scorecard_revision
|
7829
|
+
@create_qa_scorecard_revision = ::Gapic::Config::Method.new create_qa_scorecard_revision_config
|
7830
|
+
get_qa_scorecard_revision_config = parent_rpcs.get_qa_scorecard_revision if parent_rpcs.respond_to? :get_qa_scorecard_revision
|
7831
|
+
@get_qa_scorecard_revision = ::Gapic::Config::Method.new get_qa_scorecard_revision_config
|
7832
|
+
tune_qa_scorecard_revision_config = parent_rpcs.tune_qa_scorecard_revision if parent_rpcs.respond_to? :tune_qa_scorecard_revision
|
7833
|
+
@tune_qa_scorecard_revision = ::Gapic::Config::Method.new tune_qa_scorecard_revision_config
|
7834
|
+
deploy_qa_scorecard_revision_config = parent_rpcs.deploy_qa_scorecard_revision if parent_rpcs.respond_to? :deploy_qa_scorecard_revision
|
7835
|
+
@deploy_qa_scorecard_revision = ::Gapic::Config::Method.new deploy_qa_scorecard_revision_config
|
7836
|
+
undeploy_qa_scorecard_revision_config = parent_rpcs.undeploy_qa_scorecard_revision if parent_rpcs.respond_to? :undeploy_qa_scorecard_revision
|
7837
|
+
@undeploy_qa_scorecard_revision = ::Gapic::Config::Method.new undeploy_qa_scorecard_revision_config
|
7838
|
+
delete_qa_scorecard_revision_config = parent_rpcs.delete_qa_scorecard_revision if parent_rpcs.respond_to? :delete_qa_scorecard_revision
|
7839
|
+
@delete_qa_scorecard_revision = ::Gapic::Config::Method.new delete_qa_scorecard_revision_config
|
7840
|
+
list_qa_scorecard_revisions_config = parent_rpcs.list_qa_scorecard_revisions if parent_rpcs.respond_to? :list_qa_scorecard_revisions
|
7841
|
+
@list_qa_scorecard_revisions = ::Gapic::Config::Method.new list_qa_scorecard_revisions_config
|
7842
|
+
create_feedback_label_config = parent_rpcs.create_feedback_label if parent_rpcs.respond_to? :create_feedback_label
|
7843
|
+
@create_feedback_label = ::Gapic::Config::Method.new create_feedback_label_config
|
7844
|
+
list_feedback_labels_config = parent_rpcs.list_feedback_labels if parent_rpcs.respond_to? :list_feedback_labels
|
7845
|
+
@list_feedback_labels = ::Gapic::Config::Method.new list_feedback_labels_config
|
7846
|
+
get_feedback_label_config = parent_rpcs.get_feedback_label if parent_rpcs.respond_to? :get_feedback_label
|
7847
|
+
@get_feedback_label = ::Gapic::Config::Method.new get_feedback_label_config
|
7848
|
+
update_feedback_label_config = parent_rpcs.update_feedback_label if parent_rpcs.respond_to? :update_feedback_label
|
7849
|
+
@update_feedback_label = ::Gapic::Config::Method.new update_feedback_label_config
|
7850
|
+
delete_feedback_label_config = parent_rpcs.delete_feedback_label if parent_rpcs.respond_to? :delete_feedback_label
|
7851
|
+
@delete_feedback_label = ::Gapic::Config::Method.new delete_feedback_label_config
|
7852
|
+
list_all_feedback_labels_config = parent_rpcs.list_all_feedback_labels if parent_rpcs.respond_to? :list_all_feedback_labels
|
7853
|
+
@list_all_feedback_labels = ::Gapic::Config::Method.new list_all_feedback_labels_config
|
7854
|
+
bulk_upload_feedback_labels_config = parent_rpcs.bulk_upload_feedback_labels if parent_rpcs.respond_to? :bulk_upload_feedback_labels
|
7855
|
+
@bulk_upload_feedback_labels = ::Gapic::Config::Method.new bulk_upload_feedback_labels_config
|
7856
|
+
bulk_download_feedback_labels_config = parent_rpcs.bulk_download_feedback_labels if parent_rpcs.respond_to? :bulk_download_feedback_labels
|
7857
|
+
@bulk_download_feedback_labels = ::Gapic::Config::Method.new bulk_download_feedback_labels_config
|
4669
7858
|
|
4670
7859
|
yield self if block_given?
|
4671
7860
|
end
|