google-cloud-contact_center_insights-v1 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/client.rb +484 -0
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb +19 -0
- data/lib/google/cloud/contact_center_insights/v1/version.rb +1 -1
- data/lib/google/cloud/contactcenterinsights/v1/contact_center_insights_pb.rb +29 -0
- data/lib/google/cloud/contactcenterinsights/v1/contact_center_insights_services_pb.rb +10 -0
- data/lib/google/cloud/contactcenterinsights/v1/resources_pb.rb +9 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/contactcenterinsights/v1/contact_center_insights.rb +81 -2
- data/proto_docs/google/cloud/contactcenterinsights/v1/resources.rb +27 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24e4cee1707cc92651cc475e2006d0a05dcbecde8d5b832904990a3a26f601e1
|
4
|
+
data.tar.gz: 1d41f19d082d188cd88bc6afc6e119c39cde3ccb3bc162c4b02f98e5f97ed216
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29daa59782066f6618348714b7b670a6f66d34d379b29c47c01717c7369f077fe069a09b1525b33e0e3a74fe45fd094c637f81adcbc3da2178f70f13dc23cc3a
|
7
|
+
data.tar.gz: f1c7f583fb2010b42aef9317023978f1af0b8b1e8299587c22668bdb7c047b0b07f3754ffc1c2ede76c74db9d913d8de61147468f642300b169a5f99d17a8e20
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -118,15 +118,6 @@ To configure your system for this, simply:
|
|
118
118
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
119
119
|
*should* only be used during development.
|
120
120
|
|
121
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
122
|
-
[dev-console]: https://console.cloud.google.com/project
|
123
|
-
|
124
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
125
|
-
|
126
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
127
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
128
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
129
|
-
|
130
121
|
## Creating a Service Account
|
131
122
|
|
132
123
|
Google Cloud requires **Service Account Credentials** to
|
@@ -137,31 +128,22 @@ If you are not running this client within
|
|
137
128
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
138
129
|
need a Google Developers service account.
|
139
130
|
|
140
|
-
1. Visit the [Google
|
131
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
141
132
|
2. Create a new project or click on an existing project.
|
142
|
-
3. Activate the
|
133
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
143
134
|
here, you will enable the APIs that your application requires.
|
144
135
|
|
145
|
-
![Enable the APIs that your application requires][enable-apis]
|
146
|
-
|
147
136
|
*Note: You may need to enable billing in order to use these services.*
|
148
137
|
|
149
138
|
4. Select **Credentials** from the side navigation.
|
150
139
|
|
151
|
-
|
152
|
-
|
153
|
-
![Create a new service account][create-new-service-account]
|
154
|
-
|
155
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
156
|
-
|
157
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
158
|
-
guided through downloading a new JSON key file.
|
140
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
141
|
+
"Service account" to be guided through downloading a new JSON key file.
|
159
142
|
|
160
143
|
If you want to re-use an existing service account, you can easily generate a
|
161
|
-
new key file. Just select the account you wish to re-use,
|
162
|
-
|
163
|
-
|
164
|
-
![Re-use an existing service account][reuse-service-account]
|
144
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
145
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
146
|
+
and then select **Add Key**.
|
165
147
|
|
166
148
|
The key file you download will be used by this library to authenticate API
|
167
149
|
requests and should be stored in a secure location.
|
@@ -140,6 +140,7 @@ module Google
|
|
140
140
|
|
141
141
|
@operations_client = Operations.new do |config|
|
142
142
|
config.credentials = credentials
|
143
|
+
config.quota_project = @quota_project_id
|
143
144
|
config.endpoint = @config.endpoint
|
144
145
|
end
|
145
146
|
|
@@ -2784,6 +2785,454 @@ module Google
|
|
2784
2785
|
raise ::Google::Cloud::Error.from_error(e)
|
2785
2786
|
end
|
2786
2787
|
|
2788
|
+
##
|
2789
|
+
# Creates a view.
|
2790
|
+
#
|
2791
|
+
# @overload create_view(request, options = nil)
|
2792
|
+
# Pass arguments to `create_view` via a request object, either of type
|
2793
|
+
# {::Google::Cloud::ContactCenterInsights::V1::CreateViewRequest} or an equivalent Hash.
|
2794
|
+
#
|
2795
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::CreateViewRequest, ::Hash]
|
2796
|
+
# A request object representing the call parameters. Required. To specify no
|
2797
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2798
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2799
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2800
|
+
#
|
2801
|
+
# @overload create_view(parent: nil, view: nil)
|
2802
|
+
# Pass arguments to `create_view` via keyword arguments. Note that at
|
2803
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2804
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2805
|
+
#
|
2806
|
+
# @param parent [::String]
|
2807
|
+
# Required. The parent resource of the view. Required. The location to create
|
2808
|
+
# a view for.
|
2809
|
+
# Format: `projects/<Project ID>/locations/<Location ID>` or
|
2810
|
+
# `projects/<Project Number>/locations/<Location ID>`
|
2811
|
+
# @param view [::Google::Cloud::ContactCenterInsights::V1::View, ::Hash]
|
2812
|
+
# Required. The view resource to create.
|
2813
|
+
#
|
2814
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2815
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::View]
|
2816
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2817
|
+
#
|
2818
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::View]
|
2819
|
+
#
|
2820
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2821
|
+
#
|
2822
|
+
# @example Basic example
|
2823
|
+
# require "google/cloud/contact_center_insights/v1"
|
2824
|
+
#
|
2825
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2826
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
2827
|
+
#
|
2828
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2829
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreateViewRequest.new
|
2830
|
+
#
|
2831
|
+
# # Call the create_view method.
|
2832
|
+
# result = client.create_view request
|
2833
|
+
#
|
2834
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::View.
|
2835
|
+
# p result
|
2836
|
+
#
|
2837
|
+
def create_view request, options = nil
|
2838
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2839
|
+
|
2840
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::CreateViewRequest
|
2841
|
+
|
2842
|
+
# Converts hash and nil to an options object
|
2843
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2844
|
+
|
2845
|
+
# Customize the options with defaults
|
2846
|
+
metadata = @config.rpcs.create_view.metadata.to_h
|
2847
|
+
|
2848
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2849
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2850
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2851
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
2852
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2853
|
+
|
2854
|
+
header_params = {}
|
2855
|
+
if request.parent
|
2856
|
+
header_params["parent"] = request.parent
|
2857
|
+
end
|
2858
|
+
|
2859
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2860
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2861
|
+
|
2862
|
+
options.apply_defaults timeout: @config.rpcs.create_view.timeout,
|
2863
|
+
metadata: metadata,
|
2864
|
+
retry_policy: @config.rpcs.create_view.retry_policy
|
2865
|
+
|
2866
|
+
options.apply_defaults timeout: @config.timeout,
|
2867
|
+
metadata: @config.metadata,
|
2868
|
+
retry_policy: @config.retry_policy
|
2869
|
+
|
2870
|
+
@contact_center_insights_stub.call_rpc :create_view, request, options: options do |response, operation|
|
2871
|
+
yield response, operation if block_given?
|
2872
|
+
return response
|
2873
|
+
end
|
2874
|
+
rescue ::GRPC::BadStatus => e
|
2875
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2876
|
+
end
|
2877
|
+
|
2878
|
+
##
|
2879
|
+
# Gets a view.
|
2880
|
+
#
|
2881
|
+
# @overload get_view(request, options = nil)
|
2882
|
+
# Pass arguments to `get_view` via a request object, either of type
|
2883
|
+
# {::Google::Cloud::ContactCenterInsights::V1::GetViewRequest} or an equivalent Hash.
|
2884
|
+
#
|
2885
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::GetViewRequest, ::Hash]
|
2886
|
+
# A request object representing the call parameters. Required. To specify no
|
2887
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2888
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2889
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2890
|
+
#
|
2891
|
+
# @overload get_view(name: nil)
|
2892
|
+
# Pass arguments to `get_view` via keyword arguments. Note that at
|
2893
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2894
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2895
|
+
#
|
2896
|
+
# @param name [::String]
|
2897
|
+
# Required. The name of the view to get.
|
2898
|
+
#
|
2899
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2900
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::View]
|
2901
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2902
|
+
#
|
2903
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::View]
|
2904
|
+
#
|
2905
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2906
|
+
#
|
2907
|
+
# @example Basic example
|
2908
|
+
# require "google/cloud/contact_center_insights/v1"
|
2909
|
+
#
|
2910
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2911
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
2912
|
+
#
|
2913
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2914
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetViewRequest.new
|
2915
|
+
#
|
2916
|
+
# # Call the get_view method.
|
2917
|
+
# result = client.get_view request
|
2918
|
+
#
|
2919
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::View.
|
2920
|
+
# p result
|
2921
|
+
#
|
2922
|
+
def get_view request, options = nil
|
2923
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2924
|
+
|
2925
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetViewRequest
|
2926
|
+
|
2927
|
+
# Converts hash and nil to an options object
|
2928
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2929
|
+
|
2930
|
+
# Customize the options with defaults
|
2931
|
+
metadata = @config.rpcs.get_view.metadata.to_h
|
2932
|
+
|
2933
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2934
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2935
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2936
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
2937
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2938
|
+
|
2939
|
+
header_params = {}
|
2940
|
+
if request.name
|
2941
|
+
header_params["name"] = request.name
|
2942
|
+
end
|
2943
|
+
|
2944
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2945
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2946
|
+
|
2947
|
+
options.apply_defaults timeout: @config.rpcs.get_view.timeout,
|
2948
|
+
metadata: metadata,
|
2949
|
+
retry_policy: @config.rpcs.get_view.retry_policy
|
2950
|
+
|
2951
|
+
options.apply_defaults timeout: @config.timeout,
|
2952
|
+
metadata: @config.metadata,
|
2953
|
+
retry_policy: @config.retry_policy
|
2954
|
+
|
2955
|
+
@contact_center_insights_stub.call_rpc :get_view, request, options: options do |response, operation|
|
2956
|
+
yield response, operation if block_given?
|
2957
|
+
return response
|
2958
|
+
end
|
2959
|
+
rescue ::GRPC::BadStatus => e
|
2960
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2961
|
+
end
|
2962
|
+
|
2963
|
+
##
|
2964
|
+
# Lists views.
|
2965
|
+
#
|
2966
|
+
# @overload list_views(request, options = nil)
|
2967
|
+
# Pass arguments to `list_views` via a request object, either of type
|
2968
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ListViewsRequest} or an equivalent Hash.
|
2969
|
+
#
|
2970
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ListViewsRequest, ::Hash]
|
2971
|
+
# A request object representing the call parameters. Required. To specify no
|
2972
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2973
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2974
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2975
|
+
#
|
2976
|
+
# @overload list_views(parent: nil, page_size: nil, page_token: nil)
|
2977
|
+
# Pass arguments to `list_views` via keyword arguments. Note that at
|
2978
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2979
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2980
|
+
#
|
2981
|
+
# @param parent [::String]
|
2982
|
+
# Required. The parent resource of the views.
|
2983
|
+
# @param page_size [::Integer]
|
2984
|
+
# The maximum number of views to return in the response. If this
|
2985
|
+
# value is zero, the service will select a default size. A call may return
|
2986
|
+
# fewer objects than requested. A non-empty `next_page_token` in the response
|
2987
|
+
# indicates that more data is available.
|
2988
|
+
# @param page_token [::String]
|
2989
|
+
# The value returned by the last `ListViewsResponse`; indicates
|
2990
|
+
# that this is a continuation of a prior `ListViews` call and
|
2991
|
+
# the system should return the next page of data.
|
2992
|
+
#
|
2993
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2994
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::View>]
|
2995
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2996
|
+
#
|
2997
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::View>]
|
2998
|
+
#
|
2999
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3000
|
+
#
|
3001
|
+
# @example Basic example
|
3002
|
+
# require "google/cloud/contact_center_insights/v1"
|
3003
|
+
#
|
3004
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3005
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
3006
|
+
#
|
3007
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3008
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListViewsRequest.new
|
3009
|
+
#
|
3010
|
+
# # Call the list_views method.
|
3011
|
+
# result = client.list_views request
|
3012
|
+
#
|
3013
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
3014
|
+
# # iterate over all elements by calling #each, and the enumerable
|
3015
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
3016
|
+
# # methods are also available for managing paging directly.
|
3017
|
+
# result.each do |response|
|
3018
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::View.
|
3019
|
+
# p response
|
3020
|
+
# end
|
3021
|
+
#
|
3022
|
+
def list_views request, options = nil
|
3023
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3024
|
+
|
3025
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ListViewsRequest
|
3026
|
+
|
3027
|
+
# Converts hash and nil to an options object
|
3028
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3029
|
+
|
3030
|
+
# Customize the options with defaults
|
3031
|
+
metadata = @config.rpcs.list_views.metadata.to_h
|
3032
|
+
|
3033
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3034
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3035
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3036
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
3037
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3038
|
+
|
3039
|
+
header_params = {}
|
3040
|
+
if request.parent
|
3041
|
+
header_params["parent"] = request.parent
|
3042
|
+
end
|
3043
|
+
|
3044
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3045
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3046
|
+
|
3047
|
+
options.apply_defaults timeout: @config.rpcs.list_views.timeout,
|
3048
|
+
metadata: metadata,
|
3049
|
+
retry_policy: @config.rpcs.list_views.retry_policy
|
3050
|
+
|
3051
|
+
options.apply_defaults timeout: @config.timeout,
|
3052
|
+
metadata: @config.metadata,
|
3053
|
+
retry_policy: @config.retry_policy
|
3054
|
+
|
3055
|
+
@contact_center_insights_stub.call_rpc :list_views, request, options: options do |response, operation|
|
3056
|
+
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_views, request, response, operation, options
|
3057
|
+
yield response, operation if block_given?
|
3058
|
+
return response
|
3059
|
+
end
|
3060
|
+
rescue ::GRPC::BadStatus => e
|
3061
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3062
|
+
end
|
3063
|
+
|
3064
|
+
##
|
3065
|
+
# Updates a view.
|
3066
|
+
#
|
3067
|
+
# @overload update_view(request, options = nil)
|
3068
|
+
# Pass arguments to `update_view` via a request object, either of type
|
3069
|
+
# {::Google::Cloud::ContactCenterInsights::V1::UpdateViewRequest} or an equivalent Hash.
|
3070
|
+
#
|
3071
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::UpdateViewRequest, ::Hash]
|
3072
|
+
# A request object representing the call parameters. Required. To specify no
|
3073
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3074
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3075
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3076
|
+
#
|
3077
|
+
# @overload update_view(view: nil, update_mask: nil)
|
3078
|
+
# Pass arguments to `update_view` via keyword arguments. Note that at
|
3079
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3080
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3081
|
+
#
|
3082
|
+
# @param view [::Google::Cloud::ContactCenterInsights::V1::View, ::Hash]
|
3083
|
+
# Required. The new view.
|
3084
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
3085
|
+
# The list of fields to be updated.
|
3086
|
+
#
|
3087
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3088
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::View]
|
3089
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3090
|
+
#
|
3091
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::View]
|
3092
|
+
#
|
3093
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3094
|
+
#
|
3095
|
+
# @example Basic example
|
3096
|
+
# require "google/cloud/contact_center_insights/v1"
|
3097
|
+
#
|
3098
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3099
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
3100
|
+
#
|
3101
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3102
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UpdateViewRequest.new
|
3103
|
+
#
|
3104
|
+
# # Call the update_view method.
|
3105
|
+
# result = client.update_view request
|
3106
|
+
#
|
3107
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::View.
|
3108
|
+
# p result
|
3109
|
+
#
|
3110
|
+
def update_view request, options = nil
|
3111
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3112
|
+
|
3113
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::UpdateViewRequest
|
3114
|
+
|
3115
|
+
# Converts hash and nil to an options object
|
3116
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3117
|
+
|
3118
|
+
# Customize the options with defaults
|
3119
|
+
metadata = @config.rpcs.update_view.metadata.to_h
|
3120
|
+
|
3121
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3122
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3123
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3124
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
3125
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3126
|
+
|
3127
|
+
header_params = {}
|
3128
|
+
if request.view&.name
|
3129
|
+
header_params["view.name"] = request.view.name
|
3130
|
+
end
|
3131
|
+
|
3132
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3133
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3134
|
+
|
3135
|
+
options.apply_defaults timeout: @config.rpcs.update_view.timeout,
|
3136
|
+
metadata: metadata,
|
3137
|
+
retry_policy: @config.rpcs.update_view.retry_policy
|
3138
|
+
|
3139
|
+
options.apply_defaults timeout: @config.timeout,
|
3140
|
+
metadata: @config.metadata,
|
3141
|
+
retry_policy: @config.retry_policy
|
3142
|
+
|
3143
|
+
@contact_center_insights_stub.call_rpc :update_view, request, options: options do |response, operation|
|
3144
|
+
yield response, operation if block_given?
|
3145
|
+
return response
|
3146
|
+
end
|
3147
|
+
rescue ::GRPC::BadStatus => e
|
3148
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3149
|
+
end
|
3150
|
+
|
3151
|
+
##
|
3152
|
+
# Deletes a view.
|
3153
|
+
#
|
3154
|
+
# @overload delete_view(request, options = nil)
|
3155
|
+
# Pass arguments to `delete_view` via a request object, either of type
|
3156
|
+
# {::Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest} or an equivalent Hash.
|
3157
|
+
#
|
3158
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest, ::Hash]
|
3159
|
+
# A request object representing the call parameters. Required. To specify no
|
3160
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3161
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3162
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3163
|
+
#
|
3164
|
+
# @overload delete_view(name: nil)
|
3165
|
+
# Pass arguments to `delete_view` via keyword arguments. Note that at
|
3166
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3167
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3168
|
+
#
|
3169
|
+
# @param name [::String]
|
3170
|
+
# Required. The name of the view to delete.
|
3171
|
+
#
|
3172
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3173
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
3174
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3175
|
+
#
|
3176
|
+
# @return [::Google::Protobuf::Empty]
|
3177
|
+
#
|
3178
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3179
|
+
#
|
3180
|
+
# @example Basic example
|
3181
|
+
# require "google/cloud/contact_center_insights/v1"
|
3182
|
+
#
|
3183
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3184
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
3185
|
+
#
|
3186
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3187
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest.new
|
3188
|
+
#
|
3189
|
+
# # Call the delete_view method.
|
3190
|
+
# result = client.delete_view request
|
3191
|
+
#
|
3192
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
3193
|
+
# p result
|
3194
|
+
#
|
3195
|
+
def delete_view request, options = nil
|
3196
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3197
|
+
|
3198
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest
|
3199
|
+
|
3200
|
+
# Converts hash and nil to an options object
|
3201
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3202
|
+
|
3203
|
+
# Customize the options with defaults
|
3204
|
+
metadata = @config.rpcs.delete_view.metadata.to_h
|
3205
|
+
|
3206
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3207
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3208
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3209
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
3210
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3211
|
+
|
3212
|
+
header_params = {}
|
3213
|
+
if request.name
|
3214
|
+
header_params["name"] = request.name
|
3215
|
+
end
|
3216
|
+
|
3217
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3218
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3219
|
+
|
3220
|
+
options.apply_defaults timeout: @config.rpcs.delete_view.timeout,
|
3221
|
+
metadata: metadata,
|
3222
|
+
retry_policy: @config.rpcs.delete_view.retry_policy
|
3223
|
+
|
3224
|
+
options.apply_defaults timeout: @config.timeout,
|
3225
|
+
metadata: @config.metadata,
|
3226
|
+
retry_policy: @config.retry_policy
|
3227
|
+
|
3228
|
+
@contact_center_insights_stub.call_rpc :delete_view, request, options: options do |response, operation|
|
3229
|
+
yield response, operation if block_given?
|
3230
|
+
return response
|
3231
|
+
end
|
3232
|
+
rescue ::GRPC::BadStatus => e
|
3233
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3234
|
+
end
|
3235
|
+
|
2787
3236
|
##
|
2788
3237
|
# Configuration class for the ContactCenterInsights API.
|
2789
3238
|
#
|
@@ -3064,6 +3513,31 @@ module Google
|
|
3064
3513
|
# @return [::Gapic::Config::Method]
|
3065
3514
|
#
|
3066
3515
|
attr_reader :update_settings
|
3516
|
+
##
|
3517
|
+
# RPC-specific configuration for `create_view`
|
3518
|
+
# @return [::Gapic::Config::Method]
|
3519
|
+
#
|
3520
|
+
attr_reader :create_view
|
3521
|
+
##
|
3522
|
+
# RPC-specific configuration for `get_view`
|
3523
|
+
# @return [::Gapic::Config::Method]
|
3524
|
+
#
|
3525
|
+
attr_reader :get_view
|
3526
|
+
##
|
3527
|
+
# RPC-specific configuration for `list_views`
|
3528
|
+
# @return [::Gapic::Config::Method]
|
3529
|
+
#
|
3530
|
+
attr_reader :list_views
|
3531
|
+
##
|
3532
|
+
# RPC-specific configuration for `update_view`
|
3533
|
+
# @return [::Gapic::Config::Method]
|
3534
|
+
#
|
3535
|
+
attr_reader :update_view
|
3536
|
+
##
|
3537
|
+
# RPC-specific configuration for `delete_view`
|
3538
|
+
# @return [::Gapic::Config::Method]
|
3539
|
+
#
|
3540
|
+
attr_reader :delete_view
|
3067
3541
|
|
3068
3542
|
# @private
|
3069
3543
|
def initialize parent_rpcs = nil
|
@@ -3125,6 +3599,16 @@ module Google
|
|
3125
3599
|
@get_settings = ::Gapic::Config::Method.new get_settings_config
|
3126
3600
|
update_settings_config = parent_rpcs.update_settings if parent_rpcs.respond_to? :update_settings
|
3127
3601
|
@update_settings = ::Gapic::Config::Method.new update_settings_config
|
3602
|
+
create_view_config = parent_rpcs.create_view if parent_rpcs.respond_to? :create_view
|
3603
|
+
@create_view = ::Gapic::Config::Method.new create_view_config
|
3604
|
+
get_view_config = parent_rpcs.get_view if parent_rpcs.respond_to? :get_view
|
3605
|
+
@get_view = ::Gapic::Config::Method.new get_view_config
|
3606
|
+
list_views_config = parent_rpcs.list_views if parent_rpcs.respond_to? :list_views
|
3607
|
+
@list_views = ::Gapic::Config::Method.new list_views_config
|
3608
|
+
update_view_config = parent_rpcs.update_view if parent_rpcs.respond_to? :update_view
|
3609
|
+
@update_view = ::Gapic::Config::Method.new update_view_config
|
3610
|
+
delete_view_config = parent_rpcs.delete_view if parent_rpcs.respond_to? :delete_view
|
3611
|
+
@delete_view = ::Gapic::Config::Method.new delete_view_config
|
3128
3612
|
|
3129
3613
|
yield self if block_given?
|
3130
3614
|
end
|
@@ -202,6 +202,25 @@ module Google
|
|
202
202
|
"projects/#{project}/locations/#{location}/settings"
|
203
203
|
end
|
204
204
|
|
205
|
+
##
|
206
|
+
# Create a fully-qualified View resource string.
|
207
|
+
#
|
208
|
+
# The resource will be in the following format:
|
209
|
+
#
|
210
|
+
# `projects/{project}/locations/{location}/views/{view}`
|
211
|
+
#
|
212
|
+
# @param project [String]
|
213
|
+
# @param location [String]
|
214
|
+
# @param view [String]
|
215
|
+
#
|
216
|
+
# @return [::String]
|
217
|
+
def view_path project:, location:, view:
|
218
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
219
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
220
|
+
|
221
|
+
"projects/#{project}/locations/#{location}/views/#{view}"
|
222
|
+
end
|
223
|
+
|
205
224
|
extend self
|
206
225
|
end
|
207
226
|
end
|
@@ -218,6 +218,29 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
218
218
|
optional :settings, :message, 1, "google.cloud.contactcenterinsights.v1.Settings"
|
219
219
|
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
220
220
|
end
|
221
|
+
add_message "google.cloud.contactcenterinsights.v1.CreateViewRequest" do
|
222
|
+
optional :parent, :string, 1
|
223
|
+
optional :view, :message, 2, "google.cloud.contactcenterinsights.v1.View"
|
224
|
+
end
|
225
|
+
add_message "google.cloud.contactcenterinsights.v1.GetViewRequest" do
|
226
|
+
optional :name, :string, 1
|
227
|
+
end
|
228
|
+
add_message "google.cloud.contactcenterinsights.v1.ListViewsRequest" do
|
229
|
+
optional :parent, :string, 1
|
230
|
+
optional :page_size, :int32, 2
|
231
|
+
optional :page_token, :string, 3
|
232
|
+
end
|
233
|
+
add_message "google.cloud.contactcenterinsights.v1.ListViewsResponse" do
|
234
|
+
repeated :views, :message, 1, "google.cloud.contactcenterinsights.v1.View"
|
235
|
+
optional :next_page_token, :string, 2
|
236
|
+
end
|
237
|
+
add_message "google.cloud.contactcenterinsights.v1.UpdateViewRequest" do
|
238
|
+
optional :view, :message, 1, "google.cloud.contactcenterinsights.v1.View"
|
239
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
240
|
+
end
|
241
|
+
add_message "google.cloud.contactcenterinsights.v1.DeleteViewRequest" do
|
242
|
+
optional :name, :string, 1
|
243
|
+
end
|
221
244
|
add_enum "google.cloud.contactcenterinsights.v1.ConversationView" do
|
222
245
|
value :CONVERSATION_VIEW_UNSPECIFIED, 0
|
223
246
|
value :BASIC, 1
|
@@ -279,6 +302,12 @@ module Google
|
|
279
302
|
UpdatePhraseMatcherRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.UpdatePhraseMatcherRequest").msgclass
|
280
303
|
GetSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.GetSettingsRequest").msgclass
|
281
304
|
UpdateSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.UpdateSettingsRequest").msgclass
|
305
|
+
CreateViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.CreateViewRequest").msgclass
|
306
|
+
GetViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.GetViewRequest").msgclass
|
307
|
+
ListViewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ListViewsRequest").msgclass
|
308
|
+
ListViewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ListViewsResponse").msgclass
|
309
|
+
UpdateViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.UpdateViewRequest").msgclass
|
310
|
+
DeleteViewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.DeleteViewRequest").msgclass
|
282
311
|
ConversationView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationView").enummodule
|
283
312
|
end
|
284
313
|
end
|
@@ -94,6 +94,16 @@ module Google
|
|
94
94
|
rpc :GetSettings, ::Google::Cloud::ContactCenterInsights::V1::GetSettingsRequest, ::Google::Cloud::ContactCenterInsights::V1::Settings
|
95
95
|
# Updates project-level settings.
|
96
96
|
rpc :UpdateSettings, ::Google::Cloud::ContactCenterInsights::V1::UpdateSettingsRequest, ::Google::Cloud::ContactCenterInsights::V1::Settings
|
97
|
+
# Creates a view.
|
98
|
+
rpc :CreateView, ::Google::Cloud::ContactCenterInsights::V1::CreateViewRequest, ::Google::Cloud::ContactCenterInsights::V1::View
|
99
|
+
# Gets a view.
|
100
|
+
rpc :GetView, ::Google::Cloud::ContactCenterInsights::V1::GetViewRequest, ::Google::Cloud::ContactCenterInsights::V1::View
|
101
|
+
# Lists views.
|
102
|
+
rpc :ListViews, ::Google::Cloud::ContactCenterInsights::V1::ListViewsRequest, ::Google::Cloud::ContactCenterInsights::V1::ListViewsResponse
|
103
|
+
# Updates a view.
|
104
|
+
rpc :UpdateView, ::Google::Cloud::ContactCenterInsights::V1::UpdateViewRequest, ::Google::Cloud::ContactCenterInsights::V1::View
|
105
|
+
# Deletes a view.
|
106
|
+
rpc :DeleteView, ::Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest, ::Google::Protobuf::Empty
|
97
107
|
end
|
98
108
|
|
99
109
|
Stub = Service.rpc_stub_class
|
@@ -5,7 +5,6 @@ require 'google/api/field_behavior_pb'
|
|
5
5
|
require 'google/api/resource_pb'
|
6
6
|
require 'google/protobuf/duration_pb'
|
7
7
|
require 'google/protobuf/timestamp_pb'
|
8
|
-
require 'google/api/annotations_pb'
|
9
8
|
require 'google/protobuf'
|
10
9
|
|
11
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -26,6 +25,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
26
25
|
optional :latest_analysis, :message, 12, "google.cloud.contactcenterinsights.v1.Analysis"
|
27
26
|
repeated :runtime_annotations, :message, 13, "google.cloud.contactcenterinsights.v1.RuntimeAnnotation"
|
28
27
|
map :dialogflow_intents, :string, :message, 18, "google.cloud.contactcenterinsights.v1.DialogflowIntent"
|
28
|
+
optional :obfuscated_user_id, :string, 21
|
29
29
|
oneof :metadata do
|
30
30
|
optional :call_metadata, :message, 7, "google.cloud.contactcenterinsights.v1.Conversation.CallMetadata"
|
31
31
|
end
|
@@ -352,6 +352,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
352
352
|
value :END_USER, 3
|
353
353
|
value :ANY_AGENT, 4
|
354
354
|
end
|
355
|
+
add_message "google.cloud.contactcenterinsights.v1.View" do
|
356
|
+
optional :name, :string, 1
|
357
|
+
optional :display_name, :string, 2
|
358
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
359
|
+
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
360
|
+
optional :value, :string, 5
|
361
|
+
end
|
355
362
|
end
|
356
363
|
end
|
357
364
|
|
@@ -414,6 +421,7 @@ module Google
|
|
414
421
|
DialogflowInteractionData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.DialogflowInteractionData").msgclass
|
415
422
|
ConversationParticipant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationParticipant").msgclass
|
416
423
|
ConversationParticipant::Role = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationParticipant.Role").enummodule
|
424
|
+
View = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.View").msgclass
|
417
425
|
end
|
418
426
|
end
|
419
427
|
end
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -710,16 +710,95 @@ module Google
|
|
710
710
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
711
711
|
end
|
712
712
|
|
713
|
+
# The request to create a view.
|
714
|
+
# @!attribute [rw] parent
|
715
|
+
# @return [::String]
|
716
|
+
# Required. The parent resource of the view. Required. The location to create
|
717
|
+
# a view for.
|
718
|
+
# Format: `projects/<Project ID>/locations/<Location ID>` or
|
719
|
+
# `projects/<Project Number>/locations/<Location ID>`
|
720
|
+
# @!attribute [rw] view
|
721
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::View]
|
722
|
+
# Required. The view resource to create.
|
723
|
+
class CreateViewRequest
|
724
|
+
include ::Google::Protobuf::MessageExts
|
725
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
726
|
+
end
|
727
|
+
|
728
|
+
# The request to get a view.
|
729
|
+
# @!attribute [rw] name
|
730
|
+
# @return [::String]
|
731
|
+
# Required. The name of the view to get.
|
732
|
+
class GetViewRequest
|
733
|
+
include ::Google::Protobuf::MessageExts
|
734
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
735
|
+
end
|
736
|
+
|
737
|
+
# The request to list views.
|
738
|
+
# @!attribute [rw] parent
|
739
|
+
# @return [::String]
|
740
|
+
# Required. The parent resource of the views.
|
741
|
+
# @!attribute [rw] page_size
|
742
|
+
# @return [::Integer]
|
743
|
+
# The maximum number of views to return in the response. If this
|
744
|
+
# value is zero, the service will select a default size. A call may return
|
745
|
+
# fewer objects than requested. A non-empty `next_page_token` in the response
|
746
|
+
# indicates that more data is available.
|
747
|
+
# @!attribute [rw] page_token
|
748
|
+
# @return [::String]
|
749
|
+
# The value returned by the last `ListViewsResponse`; indicates
|
750
|
+
# that this is a continuation of a prior `ListViews` call and
|
751
|
+
# the system should return the next page of data.
|
752
|
+
class ListViewsRequest
|
753
|
+
include ::Google::Protobuf::MessageExts
|
754
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
755
|
+
end
|
756
|
+
|
757
|
+
# The response of listing views.
|
758
|
+
# @!attribute [rw] views
|
759
|
+
# @return [::Array<::Google::Cloud::ContactCenterInsights::V1::View>]
|
760
|
+
# The views that match the request.
|
761
|
+
# @!attribute [rw] next_page_token
|
762
|
+
# @return [::String]
|
763
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
764
|
+
# If this field is omitted, there are no subsequent pages.
|
765
|
+
class ListViewsResponse
|
766
|
+
include ::Google::Protobuf::MessageExts
|
767
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
768
|
+
end
|
769
|
+
|
770
|
+
# The request to update a view.
|
771
|
+
# @!attribute [rw] view
|
772
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::View]
|
773
|
+
# Required. The new view.
|
774
|
+
# @!attribute [rw] update_mask
|
775
|
+
# @return [::Google::Protobuf::FieldMask]
|
776
|
+
# The list of fields to be updated.
|
777
|
+
class UpdateViewRequest
|
778
|
+
include ::Google::Protobuf::MessageExts
|
779
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
780
|
+
end
|
781
|
+
|
782
|
+
# The request to delete a view.
|
783
|
+
# @!attribute [rw] name
|
784
|
+
# @return [::String]
|
785
|
+
# Required. The name of the view to delete.
|
786
|
+
class DeleteViewRequest
|
787
|
+
include ::Google::Protobuf::MessageExts
|
788
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
789
|
+
end
|
790
|
+
|
713
791
|
# Represents the options for views of a conversation.
|
714
792
|
module ConversationView
|
715
793
|
# Not specified. Defaults to FULL on GetConversationRequest and BASIC for
|
716
794
|
# ListConversationsRequest.
|
717
795
|
CONVERSATION_VIEW_UNSPECIFIED = 0
|
718
796
|
|
719
|
-
# Transcript field is not populated in the response
|
797
|
+
# Transcript field is not populated in the response for Insights
|
798
|
+
# conversation.
|
720
799
|
BASIC = 1
|
721
800
|
|
722
|
-
# All fields are populated.
|
801
|
+
# All fields are populated for Insights conversation.
|
723
802
|
FULL = 2
|
724
803
|
end
|
725
804
|
end
|
@@ -85,6 +85,9 @@ module Google
|
|
85
85
|
# Output only. All the matched Dialogflow intents in the call. The key corresponds to a
|
86
86
|
# Dialogflow intent, format:
|
87
87
|
# projects/\\{project}/agent/\\{agent}/intents/\\{intent}
|
88
|
+
# @!attribute [rw] obfuscated_user_id
|
89
|
+
# @return [::String]
|
90
|
+
# Obfuscated user ID which the customer sent to us.
|
88
91
|
class Conversation
|
89
92
|
include ::Google::Protobuf::MessageExts
|
90
93
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -341,6 +344,7 @@ module Google
|
|
341
344
|
# @!attribute [rw] issue_model
|
342
345
|
# @return [::String]
|
343
346
|
# Issue model that generates the result.
|
347
|
+
# Format: projects/\\{project}/locations/\\{location}/issueModels/\\{issue_model}
|
344
348
|
# @!attribute [rw] issues
|
345
349
|
# @return [::Array<::Google::Cloud::ContactCenterInsights::V1::IssueAssignment>]
|
346
350
|
# All the matched issues.
|
@@ -1246,6 +1250,29 @@ module Google
|
|
1246
1250
|
ANY_AGENT = 4
|
1247
1251
|
end
|
1248
1252
|
end
|
1253
|
+
|
1254
|
+
# The View resource.
|
1255
|
+
# @!attribute [rw] name
|
1256
|
+
# @return [::String]
|
1257
|
+
# Immutable. The resource name of the view.
|
1258
|
+
# Format:
|
1259
|
+
# projects/\\{project}/locations/\\{location}/views/\\{view}
|
1260
|
+
# @!attribute [rw] display_name
|
1261
|
+
# @return [::String]
|
1262
|
+
# The human-readable display name of the view.
|
1263
|
+
# @!attribute [r] create_time
|
1264
|
+
# @return [::Google::Protobuf::Timestamp]
|
1265
|
+
# Output only. The time at which this view was created.
|
1266
|
+
# @!attribute [r] update_time
|
1267
|
+
# @return [::Google::Protobuf::Timestamp]
|
1268
|
+
# Output only. The most recent time at which the view was updated.
|
1269
|
+
# @!attribute [rw] value
|
1270
|
+
# @return [::String]
|
1271
|
+
# String with specific view properties.
|
1272
|
+
class View
|
1273
|
+
include ::Google::Protobuf::MessageExts
|
1274
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1275
|
+
end
|
1249
1276
|
end
|
1250
1277
|
end
|
1251
1278
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-contact_center_insights-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
213
|
- !ruby/object:Gem::Version
|
214
214
|
version: '0'
|
215
215
|
requirements: []
|
216
|
-
rubygems_version: 3.
|
216
|
+
rubygems_version: 3.3.4
|
217
217
|
signing_key:
|
218
218
|
specification_version: 4
|
219
219
|
summary: API Client library for the Contact Center AI Insights V1 API
|