google-cloud-recommendation_engine-v1beta1 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18034d005b58dc867dce5358c4bb055465a61adcbd37719e9931c6e6b4718faf
4
- data.tar.gz: a7ae76acd6694f49e07212ece8a375cb65eaebc7efa5df9e27f0ece6608ae692
3
+ metadata.gz: ba48a9cf081b59929553c52fd4bcdbfe4f6a0a50aa2dc87a600a287df055a548
4
+ data.tar.gz: 22719c17e5e354048227b81480437f9d215a100ced10462e78fd741d8ee97d83
5
5
  SHA512:
6
- metadata.gz: 97cf9761beb2520124a17dc9247ce77a290d78aee04c0db4a5d6d4a61f8dd5bb1d07a206f7245ef7ed22e8a7d99f9d8ed8d3b3cf21ff2915f40af0a716d44097
7
- data.tar.gz: e8f83f6da6ce636e9a34c24c8a47fb1d2996f821959c23953dd501f893d9af3b2ab18a90941a881ef8fafb51a5e0c0d627d29b8603e05f68fc4129d46908d6e5
6
+ metadata.gz: 4e42040389428f7122891a98ca5e75251fd9a564542e4cccad20c894e348246252aef0533ba90778b9986e1b0f85b1446be1bdee951492c1c09732801f16b11c
7
+ data.tar.gz: cefb17db663bd03ca7dda91f58ddb190c5952255b71006d88cabb4cd31e98d5ac1ef8b570e8ded942b961b7b0c2d9adf3a0e9315599c4ffafa8d4bfda9bf52bd
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all CatalogService clients:
47
- #
48
- # ::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all CatalogService clients
47
+ # ::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -124,19 +123,15 @@ module Google
124
123
  ##
125
124
  # Create a new CatalogService client object.
126
125
  #
127
- # ## Examples
128
- #
129
- # To create a new CatalogService client with the default
130
- # configuration:
126
+ # @example
131
127
  #
132
- # client = ::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.new
128
+ # # Create a client using the default configuration
129
+ # client = ::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.new
133
130
  #
134
- # To create a new CatalogService client with a custom
135
- # configuration:
136
- #
137
- # client = ::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.new do |config|
138
- # config.timeout = 10.0
139
- # end
131
+ # # Create a client using a custom configuration
132
+ # client = ::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.new do |config|
133
+ # config.timeout = 10.0
134
+ # end
140
135
  #
141
136
  # @yield [config] Configure the CatalogService client.
142
137
  # @yieldparam config [Client::Configuration]
@@ -156,10 +151,9 @@ module Google
156
151
 
157
152
  # Create credentials
158
153
  credentials = @config.credentials
159
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
154
+ # Use self-signed JWT if the endpoint is unchanged from default,
160
155
  # but only if the default endpoint does not have a region prefix.
161
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
162
- @config.endpoint == Client.configure.endpoint &&
156
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
163
157
  !@config.endpoint.split(".").first.include?("-")
164
158
  credentials ||= Credentials.default scope: @config.scope,
165
159
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -250,7 +244,9 @@ module Google
250
244
  options.apply_defaults timeout: @config.rpcs.create_catalog_item.timeout,
251
245
  metadata: metadata,
252
246
  retry_policy: @config.rpcs.create_catalog_item.retry_policy
253
- options.apply_defaults metadata: @config.metadata,
247
+
248
+ options.apply_defaults timeout: @config.timeout,
249
+ metadata: @config.metadata,
254
250
  retry_policy: @config.retry_policy
255
251
 
256
252
  @catalog_service_stub.call_rpc :create_catalog_item, request, options: options do |response, operation|
@@ -317,7 +313,9 @@ module Google
317
313
  options.apply_defaults timeout: @config.rpcs.get_catalog_item.timeout,
318
314
  metadata: metadata,
319
315
  retry_policy: @config.rpcs.get_catalog_item.retry_policy
320
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
321
319
  retry_policy: @config.retry_policy
322
320
 
323
321
  @catalog_service_stub.call_rpc :get_catalog_item, request, options: options do |response, operation|
@@ -391,7 +389,9 @@ module Google
391
389
  options.apply_defaults timeout: @config.rpcs.list_catalog_items.timeout,
392
390
  metadata: metadata,
393
391
  retry_policy: @config.rpcs.list_catalog_items.retry_policy
394
- options.apply_defaults metadata: @config.metadata,
392
+
393
+ options.apply_defaults timeout: @config.timeout,
394
+ metadata: @config.metadata,
395
395
  retry_policy: @config.retry_policy
396
396
 
397
397
  @catalog_service_stub.call_rpc :list_catalog_items, request, options: options do |response, operation|
@@ -466,7 +466,9 @@ module Google
466
466
  options.apply_defaults timeout: @config.rpcs.update_catalog_item.timeout,
467
467
  metadata: metadata,
468
468
  retry_policy: @config.rpcs.update_catalog_item.retry_policy
469
- options.apply_defaults metadata: @config.metadata,
469
+
470
+ options.apply_defaults timeout: @config.timeout,
471
+ metadata: @config.metadata,
470
472
  retry_policy: @config.retry_policy
471
473
 
472
474
  @catalog_service_stub.call_rpc :update_catalog_item, request, options: options do |response, operation|
@@ -533,7 +535,9 @@ module Google
533
535
  options.apply_defaults timeout: @config.rpcs.delete_catalog_item.timeout,
534
536
  metadata: metadata,
535
537
  retry_policy: @config.rpcs.delete_catalog_item.retry_policy
536
- options.apply_defaults metadata: @config.metadata,
538
+
539
+ options.apply_defaults timeout: @config.timeout,
540
+ metadata: @config.metadata,
537
541
  retry_policy: @config.retry_policy
538
542
 
539
543
  @catalog_service_stub.call_rpc :delete_catalog_item, request, options: options do |response, operation|
@@ -613,7 +617,9 @@ module Google
613
617
  options.apply_defaults timeout: @config.rpcs.import_catalog_items.timeout,
614
618
  metadata: metadata,
615
619
  retry_policy: @config.rpcs.import_catalog_items.retry_policy
616
- options.apply_defaults metadata: @config.metadata,
620
+
621
+ options.apply_defaults timeout: @config.timeout,
622
+ metadata: @config.metadata,
617
623
  retry_policy: @config.retry_policy
618
624
 
619
625
  @catalog_service_stub.call_rpc :import_catalog_items, request, options: options do |response, operation|
@@ -638,22 +644,21 @@ module Google
638
644
  # Configuration can be applied globally to all clients, or to a single client
639
645
  # on construction.
640
646
  #
641
- # # Examples
642
- #
643
- # To modify the global config, setting the timeout for create_catalog_item
644
- # to 20 seconds, and all remaining timeouts to 10 seconds:
645
- #
646
- # ::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.configure do |config|
647
- # config.timeout = 10.0
648
- # config.rpcs.create_catalog_item.timeout = 20.0
649
- # end
650
- #
651
- # To apply the above configuration only to a new client:
652
- #
653
- # client = ::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.new do |config|
654
- # config.timeout = 10.0
655
- # config.rpcs.create_catalog_item.timeout = 20.0
656
- # end
647
+ # @example
648
+ #
649
+ # # Modify the global config, setting the timeout for
650
+ # # create_catalog_item to 20 seconds,
651
+ # # and all remaining timeouts to 10 seconds.
652
+ # ::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.configure do |config|
653
+ # config.timeout = 10.0
654
+ # config.rpcs.create_catalog_item.timeout = 20.0
655
+ # end
656
+ #
657
+ # # Apply the above configuration only to a new client.
658
+ # client = ::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.new do |config|
659
+ # config.timeout = 10.0
660
+ # config.rpcs.create_catalog_item.timeout = 20.0
661
+ # end
657
662
  #
658
663
  # @!attribute [rw] endpoint
659
664
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -45,13 +45,12 @@ module Google
45
45
  # See {::Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistry::Client::Configuration}
46
46
  # for a description of the configuration fields.
47
47
  #
48
- # ## Example
48
+ # @example
49
49
  #
50
- # To modify the configuration for all PredictionApiKeyRegistry clients:
51
- #
52
- # ::Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistry::Client.configure do |config|
53
- # config.timeout = 10.0
54
- # end
50
+ # # Modify the configuration for all PredictionApiKeyRegistry clients
51
+ # ::Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistry::Client.configure do |config|
52
+ # config.timeout = 10.0
53
+ # end
55
54
  #
56
55
  # @yield [config] Configure the Client client.
57
56
  # @yieldparam config [Client::Configuration]
@@ -113,19 +112,15 @@ module Google
113
112
  ##
114
113
  # Create a new PredictionApiKeyRegistry client object.
115
114
  #
116
- # ## Examples
117
- #
118
- # To create a new PredictionApiKeyRegistry client with the default
119
- # configuration:
120
- #
121
- # client = ::Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistry::Client.new
115
+ # @example
122
116
  #
123
- # To create a new PredictionApiKeyRegistry client with a custom
124
- # configuration:
117
+ # # Create a client using the default configuration
118
+ # client = ::Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistry::Client.new
125
119
  #
126
- # client = ::Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistry::Client.new do |config|
127
- # config.timeout = 10.0
128
- # end
120
+ # # Create a client using a custom configuration
121
+ # client = ::Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistry::Client.new do |config|
122
+ # config.timeout = 10.0
123
+ # end
129
124
  #
130
125
  # @yield [config] Configure the PredictionApiKeyRegistry client.
131
126
  # @yieldparam config [Client::Configuration]
@@ -145,10 +140,9 @@ module Google
145
140
 
146
141
  # Create credentials
147
142
  credentials = @config.credentials
148
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
143
+ # Use self-signed JWT if the endpoint is unchanged from default,
149
144
  # but only if the default endpoint does not have a region prefix.
150
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
151
- @config.endpoint == Client.configure.endpoint &&
145
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
152
146
  !@config.endpoint.split(".").first.include?("-")
153
147
  credentials ||= Credentials.default scope: @config.scope,
154
148
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -227,7 +221,9 @@ module Google
227
221
  options.apply_defaults timeout: @config.rpcs.create_prediction_api_key_registration.timeout,
228
222
  metadata: metadata,
229
223
  retry_policy: @config.rpcs.create_prediction_api_key_registration.retry_policy
230
- options.apply_defaults metadata: @config.metadata,
224
+
225
+ options.apply_defaults timeout: @config.timeout,
226
+ metadata: @config.metadata,
231
227
  retry_policy: @config.retry_policy
232
228
 
233
229
  @prediction_api_key_registry_stub.call_rpc :create_prediction_api_key_registration, request, options: options do |response, operation|
@@ -299,7 +295,9 @@ module Google
299
295
  options.apply_defaults timeout: @config.rpcs.list_prediction_api_key_registrations.timeout,
300
296
  metadata: metadata,
301
297
  retry_policy: @config.rpcs.list_prediction_api_key_registrations.retry_policy
302
- options.apply_defaults metadata: @config.metadata,
298
+
299
+ options.apply_defaults timeout: @config.timeout,
300
+ metadata: @config.metadata,
303
301
  retry_policy: @config.retry_policy
304
302
 
305
303
  @prediction_api_key_registry_stub.call_rpc :list_prediction_api_key_registrations, request, options: options do |response, operation|
@@ -367,7 +365,9 @@ module Google
367
365
  options.apply_defaults timeout: @config.rpcs.delete_prediction_api_key_registration.timeout,
368
366
  metadata: metadata,
369
367
  retry_policy: @config.rpcs.delete_prediction_api_key_registration.retry_policy
370
- options.apply_defaults metadata: @config.metadata,
368
+
369
+ options.apply_defaults timeout: @config.timeout,
370
+ metadata: @config.metadata,
371
371
  retry_policy: @config.retry_policy
372
372
 
373
373
  @prediction_api_key_registry_stub.call_rpc :delete_prediction_api_key_registration, request, options: options do |response, operation|
@@ -391,22 +391,21 @@ module Google
391
391
  # Configuration can be applied globally to all clients, or to a single client
392
392
  # on construction.
393
393
  #
394
- # # Examples
395
- #
396
- # To modify the global config, setting the timeout for create_prediction_api_key_registration
397
- # to 20 seconds, and all remaining timeouts to 10 seconds:
398
- #
399
- # ::Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistry::Client.configure do |config|
400
- # config.timeout = 10.0
401
- # config.rpcs.create_prediction_api_key_registration.timeout = 20.0
402
- # end
403
- #
404
- # To apply the above configuration only to a new client:
405
- #
406
- # client = ::Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistry::Client.new do |config|
407
- # config.timeout = 10.0
408
- # config.rpcs.create_prediction_api_key_registration.timeout = 20.0
409
- # end
394
+ # @example
395
+ #
396
+ # # Modify the global config, setting the timeout for
397
+ # # create_prediction_api_key_registration to 20 seconds,
398
+ # # and all remaining timeouts to 10 seconds.
399
+ # ::Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistry::Client.configure do |config|
400
+ # config.timeout = 10.0
401
+ # config.rpcs.create_prediction_api_key_registration.timeout = 20.0
402
+ # end
403
+ #
404
+ # # Apply the above configuration only to a new client.
405
+ # client = ::Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistry::Client.new do |config|
406
+ # config.timeout = 10.0
407
+ # config.rpcs.create_prediction_api_key_registration.timeout = 20.0
408
+ # end
410
409
  #
411
410
  # @!attribute [rw] endpoint
412
411
  # The hostname or hostname:port of the service endpoint.
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::RecommendationEngine::V1beta1::PredictionService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all PredictionService clients:
47
- #
48
- # ::Google::Cloud::RecommendationEngine::V1beta1::PredictionService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all PredictionService clients
47
+ # ::Google::Cloud::RecommendationEngine::V1beta1::PredictionService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -99,19 +98,15 @@ module Google
99
98
  ##
100
99
  # Create a new PredictionService client object.
101
100
  #
102
- # ## Examples
103
- #
104
- # To create a new PredictionService client with the default
105
- # configuration:
101
+ # @example
106
102
  #
107
- # client = ::Google::Cloud::RecommendationEngine::V1beta1::PredictionService::Client.new
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::RecommendationEngine::V1beta1::PredictionService::Client.new
108
105
  #
109
- # To create a new PredictionService client with a custom
110
- # configuration:
111
- #
112
- # client = ::Google::Cloud::RecommendationEngine::V1beta1::PredictionService::Client.new do |config|
113
- # config.timeout = 10.0
114
- # end
106
+ # # Create a client using a custom configuration
107
+ # client = ::Google::Cloud::RecommendationEngine::V1beta1::PredictionService::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
115
110
  #
116
111
  # @yield [config] Configure the PredictionService client.
117
112
  # @yieldparam config [Client::Configuration]
@@ -131,10 +126,9 @@ module Google
131
126
 
132
127
  # Create credentials
133
128
  credentials = @config.credentials
134
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
129
+ # Use self-signed JWT if the endpoint is unchanged from default,
135
130
  # but only if the default endpoint does not have a region prefix.
136
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
137
- @config.endpoint == Client.configure.endpoint &&
131
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
138
132
  !@config.endpoint.split(".").first.include?("-")
139
133
  credentials ||= Credentials.default scope: @config.scope,
140
134
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -300,7 +294,9 @@ module Google
300
294
  options.apply_defaults timeout: @config.rpcs.predict.timeout,
301
295
  metadata: metadata,
302
296
  retry_policy: @config.rpcs.predict.retry_policy
303
- options.apply_defaults metadata: @config.metadata,
297
+
298
+ options.apply_defaults timeout: @config.timeout,
299
+ metadata: @config.metadata,
304
300
  retry_policy: @config.retry_policy
305
301
 
306
302
  @prediction_service_stub.call_rpc :predict, request, options: options do |response, operation|
@@ -325,22 +321,21 @@ module Google
325
321
  # Configuration can be applied globally to all clients, or to a single client
326
322
  # on construction.
327
323
  #
328
- # # Examples
329
- #
330
- # To modify the global config, setting the timeout for predict
331
- # to 20 seconds, and all remaining timeouts to 10 seconds:
332
- #
333
- # ::Google::Cloud::RecommendationEngine::V1beta1::PredictionService::Client.configure do |config|
334
- # config.timeout = 10.0
335
- # config.rpcs.predict.timeout = 20.0
336
- # end
337
- #
338
- # To apply the above configuration only to a new client:
339
- #
340
- # client = ::Google::Cloud::RecommendationEngine::V1beta1::PredictionService::Client.new do |config|
341
- # config.timeout = 10.0
342
- # config.rpcs.predict.timeout = 20.0
343
- # end
324
+ # @example
325
+ #
326
+ # # Modify the global config, setting the timeout for
327
+ # # predict to 20 seconds,
328
+ # # and all remaining timeouts to 10 seconds.
329
+ # ::Google::Cloud::RecommendationEngine::V1beta1::PredictionService::Client.configure do |config|
330
+ # config.timeout = 10.0
331
+ # config.rpcs.predict.timeout = 20.0
332
+ # end
333
+ #
334
+ # # Apply the above configuration only to a new client.
335
+ # client = ::Google::Cloud::RecommendationEngine::V1beta1::PredictionService::Client.new do |config|
336
+ # config.timeout = 10.0
337
+ # config.rpcs.predict.timeout = 20.0
338
+ # end
344
339
  #
345
340
  # @!attribute [rw] endpoint
346
341
  # The hostname or hostname:port of the service endpoint.
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all UserEventService clients:
47
- #
48
- # ::Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all UserEventService clients
47
+ # ::Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -119,19 +118,15 @@ module Google
119
118
  ##
120
119
  # Create a new UserEventService client object.
121
120
  #
122
- # ## Examples
123
- #
124
- # To create a new UserEventService client with the default
125
- # configuration:
126
- #
127
- # client = ::Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client.new
121
+ # @example
128
122
  #
129
- # To create a new UserEventService client with a custom
130
- # configuration:
123
+ # # Create a client using the default configuration
124
+ # client = ::Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client.new
131
125
  #
132
- # client = ::Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client.new do |config|
133
- # config.timeout = 10.0
134
- # end
126
+ # # Create a client using a custom configuration
127
+ # client = ::Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client.new do |config|
128
+ # config.timeout = 10.0
129
+ # end
135
130
  #
136
131
  # @yield [config] Configure the UserEventService client.
137
132
  # @yieldparam config [Client::Configuration]
@@ -151,10 +146,9 @@ module Google
151
146
 
152
147
  # Create credentials
153
148
  credentials = @config.credentials
154
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
149
+ # Use self-signed JWT if the endpoint is unchanged from default,
155
150
  # but only if the default endpoint does not have a region prefix.
156
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
157
- @config.endpoint == Client.configure.endpoint &&
151
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
158
152
  !@config.endpoint.split(".").first.include?("-")
159
153
  credentials ||= Credentials.default scope: @config.scope,
160
154
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -245,7 +239,9 @@ module Google
245
239
  options.apply_defaults timeout: @config.rpcs.write_user_event.timeout,
246
240
  metadata: metadata,
247
241
  retry_policy: @config.rpcs.write_user_event.retry_policy
248
- options.apply_defaults metadata: @config.metadata,
242
+
243
+ options.apply_defaults timeout: @config.timeout,
244
+ metadata: @config.metadata,
249
245
  retry_policy: @config.retry_policy
250
246
 
251
247
  @user_event_service_stub.call_rpc :write_user_event, request, options: options do |response, operation|
@@ -327,7 +323,9 @@ module Google
327
323
  options.apply_defaults timeout: @config.rpcs.collect_user_event.timeout,
328
324
  metadata: metadata,
329
325
  retry_policy: @config.rpcs.collect_user_event.retry_policy
330
- options.apply_defaults metadata: @config.metadata,
326
+
327
+ options.apply_defaults timeout: @config.timeout,
328
+ metadata: @config.metadata,
331
329
  retry_policy: @config.retry_policy
332
330
 
333
331
  @user_event_service_stub.call_rpc :collect_user_event, request, options: options do |response, operation|
@@ -432,7 +430,9 @@ module Google
432
430
  options.apply_defaults timeout: @config.rpcs.list_user_events.timeout,
433
431
  metadata: metadata,
434
432
  retry_policy: @config.rpcs.list_user_events.retry_policy
435
- options.apply_defaults metadata: @config.metadata,
433
+
434
+ options.apply_defaults timeout: @config.timeout,
435
+ metadata: @config.metadata,
436
436
  retry_policy: @config.retry_policy
437
437
 
438
438
  @user_event_service_stub.call_rpc :list_user_events, request, options: options do |response, operation|
@@ -527,7 +527,9 @@ module Google
527
527
  options.apply_defaults timeout: @config.rpcs.purge_user_events.timeout,
528
528
  metadata: metadata,
529
529
  retry_policy: @config.rpcs.purge_user_events.retry_policy
530
- options.apply_defaults metadata: @config.metadata,
530
+
531
+ options.apply_defaults timeout: @config.timeout,
532
+ metadata: @config.metadata,
531
533
  retry_policy: @config.retry_policy
532
534
 
533
535
  @user_event_service_stub.call_rpc :purge_user_events, request, options: options do |response, operation|
@@ -612,7 +614,9 @@ module Google
612
614
  options.apply_defaults timeout: @config.rpcs.import_user_events.timeout,
613
615
  metadata: metadata,
614
616
  retry_policy: @config.rpcs.import_user_events.retry_policy
615
- options.apply_defaults metadata: @config.metadata,
617
+
618
+ options.apply_defaults timeout: @config.timeout,
619
+ metadata: @config.metadata,
616
620
  retry_policy: @config.retry_policy
617
621
 
618
622
  @user_event_service_stub.call_rpc :import_user_events, request, options: options do |response, operation|
@@ -637,22 +641,21 @@ module Google
637
641
  # Configuration can be applied globally to all clients, or to a single client
638
642
  # on construction.
639
643
  #
640
- # # Examples
641
- #
642
- # To modify the global config, setting the timeout for write_user_event
643
- # to 20 seconds, and all remaining timeouts to 10 seconds:
644
- #
645
- # ::Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client.configure do |config|
646
- # config.timeout = 10.0
647
- # config.rpcs.write_user_event.timeout = 20.0
648
- # end
649
- #
650
- # To apply the above configuration only to a new client:
651
- #
652
- # client = ::Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client.new do |config|
653
- # config.timeout = 10.0
654
- # config.rpcs.write_user_event.timeout = 20.0
655
- # end
644
+ # @example
645
+ #
646
+ # # Modify the global config, setting the timeout for
647
+ # # write_user_event to 20 seconds,
648
+ # # and all remaining timeouts to 10 seconds.
649
+ # ::Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client.configure do |config|
650
+ # config.timeout = 10.0
651
+ # config.rpcs.write_user_event.timeout = 20.0
652
+ # end
653
+ #
654
+ # # Apply the above configuration only to a new client.
655
+ # client = ::Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Client.new do |config|
656
+ # config.timeout = 10.0
657
+ # config.rpcs.write_user_event.timeout = 20.0
658
+ # end
656
659
  #
657
660
  # @!attribute [rw] endpoint
658
661
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module RecommendationEngine
23
23
  module V1beta1
24
- VERSION = "0.3.3"
24
+ VERSION = "0.3.4"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-recommendation_engine-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a