google-cloud-contact_center_insights-v1 1.0.0 → 1.1.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 +453 -6
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb +17 -0
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/client.rb +425 -6
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/service_stub.rb +239 -0
- data/lib/google/cloud/contact_center_insights/v1/version.rb +1 -1
- data/lib/google/cloud/contactcenterinsights/v1/contact_center_insights_pb.rb +13 -1
- data/lib/google/cloud/contactcenterinsights/v1/contact_center_insights_services_pb.rb +16 -2
- data/lib/google/cloud/contactcenterinsights/v1/resources_pb.rb +5 -1
- data/proto_docs/google/api/client.rb +31 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/contactcenterinsights/v1/contact_center_insights.rb +193 -5
- data/proto_docs/google/cloud/contactcenterinsights/v1/resources.rb +105 -4
- 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: a690f06263fe54ef1de743b1ca665089adc3ea7a68365e187f6cff06f652657a
|
4
|
+
data.tar.gz: 7ffeea070238fb57589ffdd9dc3d8c440c66a9efad53fbf0625f442350a1218a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cf0d3bcbf30a5ec258a99819a29d522cb3596125a30b57ec65bcce9c01e084070690234237269fcfd73b61d131ef3575211dc207793e668a69d20f9fa9e9d2c
|
7
|
+
data.tar.gz: 229d97b40a7a3d56e82b3e85083b761d91a341f830bbe0407b387032e5baedd41bd7bf14e84b29f90f4670eaf575a70c3df8f31bace1b9e5a945fbe5e8836390
|
@@ -184,6 +184,8 @@ module Google
|
|
184
184
|
|
185
185
|
##
|
186
186
|
# Creates a conversation.
|
187
|
+
# Note that this method does not support audio transcription or redaction.
|
188
|
+
# Use `conversations.upload` instead.
|
187
189
|
#
|
188
190
|
# @overload create_conversation(request, options = nil)
|
189
191
|
# Pass arguments to `create_conversation` via a request object, either of type
|
@@ -278,8 +280,8 @@ module Google
|
|
278
280
|
end
|
279
281
|
|
280
282
|
##
|
281
|
-
# Create a
|
282
|
-
# from CreateConversation by allowing audio transcription and optional DLP
|
283
|
+
# Create a long-running conversation upload operation. This method differs
|
284
|
+
# from `CreateConversation` by allowing audio transcription and optional DLP
|
283
285
|
# redaction.
|
284
286
|
#
|
285
287
|
# @overload upload_conversation(request, options = nil)
|
@@ -409,7 +411,20 @@ module Google
|
|
409
411
|
# @param conversation [::Google::Cloud::ContactCenterInsights::V1::Conversation, ::Hash]
|
410
412
|
# Required. The new values for the conversation.
|
411
413
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
412
|
-
# The list of fields to be updated.
|
414
|
+
# The list of fields to be updated. All possible fields can be updated by
|
415
|
+
# passing `*`, or a subset of the following updateable fields can be
|
416
|
+
# provided:
|
417
|
+
#
|
418
|
+
# * `agent_id`
|
419
|
+
# * `language_code`
|
420
|
+
# * `labels`
|
421
|
+
# * `metadata`
|
422
|
+
# * `quality_metadata`
|
423
|
+
# * `call_metadata`
|
424
|
+
# * `start_time`
|
425
|
+
# * `expire_time` or `ttl`
|
426
|
+
# * `data_source.gcs_source.audio_uri` or
|
427
|
+
# `data_source.dialogflow_source.audio_uri`
|
413
428
|
#
|
414
429
|
# @yield [response, operation] Access the result along with the RPC operation
|
415
430
|
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::Conversation]
|
@@ -577,7 +592,7 @@ module Google
|
|
577
592
|
# @param options [::Gapic::CallOptions, ::Hash]
|
578
593
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
579
594
|
#
|
580
|
-
# @overload list_conversations(parent: nil, page_size: nil, page_token: nil, filter: nil, view: nil)
|
595
|
+
# @overload list_conversations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, view: nil)
|
581
596
|
# Pass arguments to `list_conversations` via keyword arguments. Note that at
|
582
597
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
583
598
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -586,7 +601,7 @@ module Google
|
|
586
601
|
# Required. The parent resource of the conversation.
|
587
602
|
# @param page_size [::Integer]
|
588
603
|
# The maximum number of conversations to return in the response. A valid page
|
589
|
-
# size ranges from 0 to
|
604
|
+
# size ranges from 0 to 100,000 inclusive. If the page size is zero or
|
590
605
|
# unspecified, a default page size of 100 will be chosen. Note that a call
|
591
606
|
# might return fewer results than the requested page size.
|
592
607
|
# @param page_token [::String]
|
@@ -596,6 +611,22 @@ module Google
|
|
596
611
|
# @param filter [::String]
|
597
612
|
# A filter to reduce results to a specific subset. Useful for querying
|
598
613
|
# conversations with specific properties.
|
614
|
+
# @param order_by [::String]
|
615
|
+
# Optional. The attribute by which to order conversations in the response.
|
616
|
+
# If empty, conversations will be ordered by descending creation time.
|
617
|
+
# Supported values are one of the following:
|
618
|
+
#
|
619
|
+
# * create_time
|
620
|
+
# * customer_satisfaction_rating
|
621
|
+
# * duration
|
622
|
+
# * latest_analysis
|
623
|
+
# * start_time
|
624
|
+
# * turn_count
|
625
|
+
#
|
626
|
+
# The default sort order is ascending. To specify order, append `asc` or
|
627
|
+
# `desc` (`create_time desc`).
|
628
|
+
# For more details, see [Google AIPs
|
629
|
+
# Ordering](https://google.aip.dev/132#ordering).
|
599
630
|
# @param view [::Google::Cloud::ContactCenterInsights::V1::ConversationView]
|
600
631
|
# The level of details of the conversation. Default is `BASIC`.
|
601
632
|
#
|
@@ -1351,7 +1382,7 @@ module Google
|
|
1351
1382
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1352
1383
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1353
1384
|
#
|
1354
|
-
# @overload ingest_conversations(gcs_source: nil, transcript_object_config: nil, parent: nil, conversation_config: nil, redaction_config: nil, speech_config: nil)
|
1385
|
+
# @overload ingest_conversations(gcs_source: nil, transcript_object_config: nil, parent: nil, conversation_config: nil, redaction_config: nil, speech_config: nil, sample_size: nil)
|
1355
1386
|
# Pass arguments to `ingest_conversations` via keyword arguments. Note that at
|
1356
1387
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1357
1388
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1371,6 +1402,11 @@ module Google
|
|
1371
1402
|
# @param speech_config [::Google::Cloud::ContactCenterInsights::V1::SpeechConfig, ::Hash]
|
1372
1403
|
# Optional. Default Speech-to-Text configuration. Optional, will default to
|
1373
1404
|
# the config specified in Settings.
|
1405
|
+
# @param sample_size [::Integer]
|
1406
|
+
# Optional. If set, this fields indicates the number of objects to ingest
|
1407
|
+
# from the Cloud Storage bucket. If empty, the entire bucket will be
|
1408
|
+
# ingested. Unless they are first deleted, conversations produced through
|
1409
|
+
# sampling won't be ingested by subsequent ingest requests.
|
1374
1410
|
#
|
1375
1411
|
# @yield [response, operation] Access the result along with the RPC operation
|
1376
1412
|
# @yieldparam response [::Gapic::Operation]
|
@@ -2190,6 +2226,202 @@ module Google
|
|
2190
2226
|
raise ::Google::Cloud::Error.from_error(e)
|
2191
2227
|
end
|
2192
2228
|
|
2229
|
+
##
|
2230
|
+
# Exports an issue model to the provided destination.
|
2231
|
+
#
|
2232
|
+
# @overload export_issue_model(request, options = nil)
|
2233
|
+
# Pass arguments to `export_issue_model` via a request object, either of type
|
2234
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ExportIssueModelRequest} or an equivalent Hash.
|
2235
|
+
#
|
2236
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ExportIssueModelRequest, ::Hash]
|
2237
|
+
# A request object representing the call parameters. Required. To specify no
|
2238
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2239
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2240
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2241
|
+
#
|
2242
|
+
# @overload export_issue_model(gcs_destination: nil, name: nil)
|
2243
|
+
# Pass arguments to `export_issue_model` via keyword arguments. Note that at
|
2244
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2245
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2246
|
+
#
|
2247
|
+
# @param gcs_destination [::Google::Cloud::ContactCenterInsights::V1::ExportIssueModelRequest::GcsDestination, ::Hash]
|
2248
|
+
# Google Cloud Storage URI to export the issue model to.
|
2249
|
+
# @param name [::String]
|
2250
|
+
# Required. The issue model to export.
|
2251
|
+
#
|
2252
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2253
|
+
# @yieldparam response [::Gapic::Operation]
|
2254
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2255
|
+
#
|
2256
|
+
# @return [::Gapic::Operation]
|
2257
|
+
#
|
2258
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2259
|
+
#
|
2260
|
+
# @example Basic example
|
2261
|
+
# require "google/cloud/contact_center_insights/v1"
|
2262
|
+
#
|
2263
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2264
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
2265
|
+
#
|
2266
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2267
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ExportIssueModelRequest.new
|
2268
|
+
#
|
2269
|
+
# # Call the export_issue_model method.
|
2270
|
+
# result = client.export_issue_model request
|
2271
|
+
#
|
2272
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2273
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2274
|
+
# # Here is how to wait for a response.
|
2275
|
+
# result.wait_until_done! timeout: 60
|
2276
|
+
# if result.response?
|
2277
|
+
# p result.response
|
2278
|
+
# else
|
2279
|
+
# puts "No response received."
|
2280
|
+
# end
|
2281
|
+
#
|
2282
|
+
def export_issue_model request, options = nil
|
2283
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2284
|
+
|
2285
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ExportIssueModelRequest
|
2286
|
+
|
2287
|
+
# Converts hash and nil to an options object
|
2288
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2289
|
+
|
2290
|
+
# Customize the options with defaults
|
2291
|
+
metadata = @config.rpcs.export_issue_model.metadata.to_h
|
2292
|
+
|
2293
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2294
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2295
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2296
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
2297
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2298
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2299
|
+
|
2300
|
+
header_params = {}
|
2301
|
+
if request.name
|
2302
|
+
header_params["name"] = request.name
|
2303
|
+
end
|
2304
|
+
|
2305
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2306
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2307
|
+
|
2308
|
+
options.apply_defaults timeout: @config.rpcs.export_issue_model.timeout,
|
2309
|
+
metadata: metadata,
|
2310
|
+
retry_policy: @config.rpcs.export_issue_model.retry_policy
|
2311
|
+
|
2312
|
+
options.apply_defaults timeout: @config.timeout,
|
2313
|
+
metadata: @config.metadata,
|
2314
|
+
retry_policy: @config.retry_policy
|
2315
|
+
|
2316
|
+
@contact_center_insights_stub.call_rpc :export_issue_model, request, options: options do |response, operation|
|
2317
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2318
|
+
yield response, operation if block_given?
|
2319
|
+
return response
|
2320
|
+
end
|
2321
|
+
rescue ::GRPC::BadStatus => e
|
2322
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2323
|
+
end
|
2324
|
+
|
2325
|
+
##
|
2326
|
+
# Imports an issue model from a Cloud Storage bucket.
|
2327
|
+
#
|
2328
|
+
# @overload import_issue_model(request, options = nil)
|
2329
|
+
# Pass arguments to `import_issue_model` via a request object, either of type
|
2330
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ImportIssueModelRequest} or an equivalent Hash.
|
2331
|
+
#
|
2332
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ImportIssueModelRequest, ::Hash]
|
2333
|
+
# A request object representing the call parameters. Required. To specify no
|
2334
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2335
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2336
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2337
|
+
#
|
2338
|
+
# @overload import_issue_model(gcs_source: nil, parent: nil, create_new_model: nil)
|
2339
|
+
# Pass arguments to `import_issue_model` via keyword arguments. Note that at
|
2340
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2341
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2342
|
+
#
|
2343
|
+
# @param gcs_source [::Google::Cloud::ContactCenterInsights::V1::ImportIssueModelRequest::GcsSource, ::Hash]
|
2344
|
+
# Google Cloud Storage source message.
|
2345
|
+
# @param parent [::String]
|
2346
|
+
# Required. The parent resource of the issue model.
|
2347
|
+
# @param create_new_model [::Boolean]
|
2348
|
+
# Optional. If set to true, will create an issue model from the imported file
|
2349
|
+
# with randomly generated IDs for the issue model and corresponding issues.
|
2350
|
+
# Otherwise, replaces an existing model with the same ID as the file.
|
2351
|
+
#
|
2352
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2353
|
+
# @yieldparam response [::Gapic::Operation]
|
2354
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2355
|
+
#
|
2356
|
+
# @return [::Gapic::Operation]
|
2357
|
+
#
|
2358
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2359
|
+
#
|
2360
|
+
# @example Basic example
|
2361
|
+
# require "google/cloud/contact_center_insights/v1"
|
2362
|
+
#
|
2363
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2364
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
2365
|
+
#
|
2366
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2367
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ImportIssueModelRequest.new
|
2368
|
+
#
|
2369
|
+
# # Call the import_issue_model method.
|
2370
|
+
# result = client.import_issue_model request
|
2371
|
+
#
|
2372
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2373
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2374
|
+
# # Here is how to wait for a response.
|
2375
|
+
# result.wait_until_done! timeout: 60
|
2376
|
+
# if result.response?
|
2377
|
+
# p result.response
|
2378
|
+
# else
|
2379
|
+
# puts "No response received."
|
2380
|
+
# end
|
2381
|
+
#
|
2382
|
+
def import_issue_model request, options = nil
|
2383
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2384
|
+
|
2385
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ImportIssueModelRequest
|
2386
|
+
|
2387
|
+
# Converts hash and nil to an options object
|
2388
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2389
|
+
|
2390
|
+
# Customize the options with defaults
|
2391
|
+
metadata = @config.rpcs.import_issue_model.metadata.to_h
|
2392
|
+
|
2393
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2394
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2395
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2396
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
2397
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2398
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2399
|
+
|
2400
|
+
header_params = {}
|
2401
|
+
if request.parent
|
2402
|
+
header_params["parent"] = request.parent
|
2403
|
+
end
|
2404
|
+
|
2405
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2406
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2407
|
+
|
2408
|
+
options.apply_defaults timeout: @config.rpcs.import_issue_model.timeout,
|
2409
|
+
metadata: metadata,
|
2410
|
+
retry_policy: @config.rpcs.import_issue_model.retry_policy
|
2411
|
+
|
2412
|
+
options.apply_defaults timeout: @config.timeout,
|
2413
|
+
metadata: @config.metadata,
|
2414
|
+
retry_policy: @config.retry_policy
|
2415
|
+
|
2416
|
+
@contact_center_insights_stub.call_rpc :import_issue_model, request, options: options do |response, operation|
|
2417
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2418
|
+
yield response, operation if block_given?
|
2419
|
+
return response
|
2420
|
+
end
|
2421
|
+
rescue ::GRPC::BadStatus => e
|
2422
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2423
|
+
end
|
2424
|
+
|
2193
2425
|
##
|
2194
2426
|
# Gets an issue.
|
2195
2427
|
#
|
@@ -3339,6 +3571,193 @@ module Google
|
|
3339
3571
|
raise ::Google::Cloud::Error.from_error(e)
|
3340
3572
|
end
|
3341
3573
|
|
3574
|
+
##
|
3575
|
+
# Gets location-level encryption key specification.
|
3576
|
+
#
|
3577
|
+
# @overload get_encryption_spec(request, options = nil)
|
3578
|
+
# Pass arguments to `get_encryption_spec` via a request object, either of type
|
3579
|
+
# {::Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest} or an equivalent Hash.
|
3580
|
+
#
|
3581
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest, ::Hash]
|
3582
|
+
# A request object representing the call parameters. Required. To specify no
|
3583
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3584
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3585
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3586
|
+
#
|
3587
|
+
# @overload get_encryption_spec(name: nil)
|
3588
|
+
# Pass arguments to `get_encryption_spec` via keyword arguments. Note that at
|
3589
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3590
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3591
|
+
#
|
3592
|
+
# @param name [::String]
|
3593
|
+
# Required. The name of the encryption spec resource to get.
|
3594
|
+
#
|
3595
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3596
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec]
|
3597
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3598
|
+
#
|
3599
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec]
|
3600
|
+
#
|
3601
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3602
|
+
#
|
3603
|
+
# @example Basic example
|
3604
|
+
# require "google/cloud/contact_center_insights/v1"
|
3605
|
+
#
|
3606
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3607
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
3608
|
+
#
|
3609
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3610
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest.new
|
3611
|
+
#
|
3612
|
+
# # Call the get_encryption_spec method.
|
3613
|
+
# result = client.get_encryption_spec request
|
3614
|
+
#
|
3615
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::EncryptionSpec.
|
3616
|
+
# p result
|
3617
|
+
#
|
3618
|
+
def get_encryption_spec request, options = nil
|
3619
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3620
|
+
|
3621
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest
|
3622
|
+
|
3623
|
+
# Converts hash and nil to an options object
|
3624
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3625
|
+
|
3626
|
+
# Customize the options with defaults
|
3627
|
+
metadata = @config.rpcs.get_encryption_spec.metadata.to_h
|
3628
|
+
|
3629
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3630
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3631
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3632
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
3633
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3634
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3635
|
+
|
3636
|
+
header_params = {}
|
3637
|
+
if request.name
|
3638
|
+
header_params["name"] = request.name
|
3639
|
+
end
|
3640
|
+
|
3641
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3642
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3643
|
+
|
3644
|
+
options.apply_defaults timeout: @config.rpcs.get_encryption_spec.timeout,
|
3645
|
+
metadata: metadata,
|
3646
|
+
retry_policy: @config.rpcs.get_encryption_spec.retry_policy
|
3647
|
+
|
3648
|
+
options.apply_defaults timeout: @config.timeout,
|
3649
|
+
metadata: @config.metadata,
|
3650
|
+
retry_policy: @config.retry_policy
|
3651
|
+
|
3652
|
+
@contact_center_insights_stub.call_rpc :get_encryption_spec, request, options: options do |response, operation|
|
3653
|
+
yield response, operation if block_given?
|
3654
|
+
return response
|
3655
|
+
end
|
3656
|
+
rescue ::GRPC::BadStatus => e
|
3657
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3658
|
+
end
|
3659
|
+
|
3660
|
+
##
|
3661
|
+
# Initializes a location-level encryption key specification. An error will
|
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.
|
3666
|
+
#
|
3667
|
+
# @overload initialize_encryption_spec(request, options = nil)
|
3668
|
+
# Pass arguments to `initialize_encryption_spec` via a request object, either of type
|
3669
|
+
# {::Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest} or an equivalent Hash.
|
3670
|
+
#
|
3671
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest, ::Hash]
|
3672
|
+
# A request object representing the call parameters. Required. To specify no
|
3673
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3674
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3675
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3676
|
+
#
|
3677
|
+
# @overload initialize_encryption_spec(encryption_spec: nil)
|
3678
|
+
# Pass arguments to `initialize_encryption_spec` via keyword arguments. Note that at
|
3679
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3680
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3681
|
+
#
|
3682
|
+
# @param encryption_spec [::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec, ::Hash]
|
3683
|
+
# Required. The encryption spec used for CMEK encryption. It is required that
|
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.
|
3687
|
+
#
|
3688
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3689
|
+
# @yieldparam response [::Gapic::Operation]
|
3690
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3691
|
+
#
|
3692
|
+
# @return [::Gapic::Operation]
|
3693
|
+
#
|
3694
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3695
|
+
#
|
3696
|
+
# @example Basic example
|
3697
|
+
# require "google/cloud/contact_center_insights/v1"
|
3698
|
+
#
|
3699
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3700
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
3701
|
+
#
|
3702
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3703
|
+
# request = Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest.new
|
3704
|
+
#
|
3705
|
+
# # Call the initialize_encryption_spec method.
|
3706
|
+
# result = client.initialize_encryption_spec request
|
3707
|
+
#
|
3708
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3709
|
+
# # check the status of an operation, cancel it, or wait for results.
|
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
|
3717
|
+
#
|
3718
|
+
def initialize_encryption_spec request, options = nil
|
3719
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3720
|
+
|
3721
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest
|
3722
|
+
|
3723
|
+
# Converts hash and nil to an options object
|
3724
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3725
|
+
|
3726
|
+
# Customize the options with defaults
|
3727
|
+
metadata = @config.rpcs.initialize_encryption_spec.metadata.to_h
|
3728
|
+
|
3729
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3730
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3731
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3732
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
3733
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3734
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3735
|
+
|
3736
|
+
header_params = {}
|
3737
|
+
if request.encryption_spec&.name
|
3738
|
+
header_params["encryption_spec.name"] = request.encryption_spec.name
|
3739
|
+
end
|
3740
|
+
|
3741
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3742
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3743
|
+
|
3744
|
+
options.apply_defaults timeout: @config.rpcs.initialize_encryption_spec.timeout,
|
3745
|
+
metadata: metadata,
|
3746
|
+
retry_policy: @config.rpcs.initialize_encryption_spec.retry_policy
|
3747
|
+
|
3748
|
+
options.apply_defaults timeout: @config.timeout,
|
3749
|
+
metadata: @config.metadata,
|
3750
|
+
retry_policy: @config.retry_policy
|
3751
|
+
|
3752
|
+
@contact_center_insights_stub.call_rpc :initialize_encryption_spec, request, options: options do |response, operation|
|
3753
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3754
|
+
yield response, operation if block_given?
|
3755
|
+
return response
|
3756
|
+
end
|
3757
|
+
rescue ::GRPC::BadStatus => e
|
3758
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3759
|
+
end
|
3760
|
+
|
3342
3761
|
##
|
3343
3762
|
# Creates a view.
|
3344
3763
|
#
|
@@ -4049,6 +4468,16 @@ module Google
|
|
4049
4468
|
#
|
4050
4469
|
attr_reader :undeploy_issue_model
|
4051
4470
|
##
|
4471
|
+
# RPC-specific configuration for `export_issue_model`
|
4472
|
+
# @return [::Gapic::Config::Method]
|
4473
|
+
#
|
4474
|
+
attr_reader :export_issue_model
|
4475
|
+
##
|
4476
|
+
# RPC-specific configuration for `import_issue_model`
|
4477
|
+
# @return [::Gapic::Config::Method]
|
4478
|
+
#
|
4479
|
+
attr_reader :import_issue_model
|
4480
|
+
##
|
4052
4481
|
# RPC-specific configuration for `get_issue`
|
4053
4482
|
# @return [::Gapic::Config::Method]
|
4054
4483
|
#
|
@@ -4114,6 +4543,16 @@ module Google
|
|
4114
4543
|
#
|
4115
4544
|
attr_reader :update_settings
|
4116
4545
|
##
|
4546
|
+
# RPC-specific configuration for `get_encryption_spec`
|
4547
|
+
# @return [::Gapic::Config::Method]
|
4548
|
+
#
|
4549
|
+
attr_reader :get_encryption_spec
|
4550
|
+
##
|
4551
|
+
# RPC-specific configuration for `initialize_encryption_spec`
|
4552
|
+
# @return [::Gapic::Config::Method]
|
4553
|
+
#
|
4554
|
+
attr_reader :initialize_encryption_spec
|
4555
|
+
##
|
4117
4556
|
# RPC-specific configuration for `create_view`
|
4118
4557
|
# @return [::Gapic::Config::Method]
|
4119
4558
|
#
|
@@ -4183,6 +4622,10 @@ module Google
|
|
4183
4622
|
@deploy_issue_model = ::Gapic::Config::Method.new deploy_issue_model_config
|
4184
4623
|
undeploy_issue_model_config = parent_rpcs.undeploy_issue_model if parent_rpcs.respond_to? :undeploy_issue_model
|
4185
4624
|
@undeploy_issue_model = ::Gapic::Config::Method.new undeploy_issue_model_config
|
4625
|
+
export_issue_model_config = parent_rpcs.export_issue_model if parent_rpcs.respond_to? :export_issue_model
|
4626
|
+
@export_issue_model = ::Gapic::Config::Method.new export_issue_model_config
|
4627
|
+
import_issue_model_config = parent_rpcs.import_issue_model if parent_rpcs.respond_to? :import_issue_model
|
4628
|
+
@import_issue_model = ::Gapic::Config::Method.new import_issue_model_config
|
4186
4629
|
get_issue_config = parent_rpcs.get_issue if parent_rpcs.respond_to? :get_issue
|
4187
4630
|
@get_issue = ::Gapic::Config::Method.new get_issue_config
|
4188
4631
|
list_issues_config = parent_rpcs.list_issues if parent_rpcs.respond_to? :list_issues
|
@@ -4209,6 +4652,10 @@ module Google
|
|
4209
4652
|
@get_settings = ::Gapic::Config::Method.new get_settings_config
|
4210
4653
|
update_settings_config = parent_rpcs.update_settings if parent_rpcs.respond_to? :update_settings
|
4211
4654
|
@update_settings = ::Gapic::Config::Method.new update_settings_config
|
4655
|
+
get_encryption_spec_config = parent_rpcs.get_encryption_spec if parent_rpcs.respond_to? :get_encryption_spec
|
4656
|
+
@get_encryption_spec = ::Gapic::Config::Method.new get_encryption_spec_config
|
4657
|
+
initialize_encryption_spec_config = parent_rpcs.initialize_encryption_spec if parent_rpcs.respond_to? :initialize_encryption_spec
|
4658
|
+
@initialize_encryption_spec = ::Gapic::Config::Method.new initialize_encryption_spec_config
|
4212
4659
|
create_view_config = parent_rpcs.create_view if parent_rpcs.respond_to? :create_view
|
4213
4660
|
@create_view = ::Gapic::Config::Method.new create_view_config
|
4214
4661
|
get_view_config = parent_rpcs.get_view if parent_rpcs.respond_to? :get_view
|
@@ -83,6 +83,23 @@ module Google
|
|
83
83
|
"projects/#{project}/locations/#{location}/conversationProfiles/#{conversation_profile}"
|
84
84
|
end
|
85
85
|
|
86
|
+
##
|
87
|
+
# Create a fully-qualified EncryptionSpec resource string.
|
88
|
+
#
|
89
|
+
# The resource will be in the following format:
|
90
|
+
#
|
91
|
+
# `projects/{project}/locations/{location}/encryptionSpec`
|
92
|
+
#
|
93
|
+
# @param project [String]
|
94
|
+
# @param location [String]
|
95
|
+
#
|
96
|
+
# @return [::String]
|
97
|
+
def encryption_spec_path project:, location:
|
98
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
99
|
+
|
100
|
+
"projects/#{project}/locations/#{location}/encryptionSpec"
|
101
|
+
end
|
102
|
+
|
86
103
|
##
|
87
104
|
# Create a fully-qualified Issue resource string.
|
88
105
|
#
|