google-cloud-recommendation_engine-v1beta1 0.8.2 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/client.rb +15 -6
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/operations.rb +13 -5
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/client.rb +15 -6
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/operations.rb +11 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/client.rb +9 -3
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest/client.rb +9 -3
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/client.rb +5 -1
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/rest/client.rb +5 -1
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/client.rb +13 -5
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/operations.rb +13 -5
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/client.rb +13 -5
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/operations.rb +11 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/version.rb +1 -1
- data/lib/google/cloud/recommendationengine/v1beta1/catalog_pb.rb +1 -1
- data/lib/google/cloud/recommendationengine/v1beta1/catalog_service_pb.rb +1 -1
- data/lib/google/cloud/recommendationengine/v1beta1/import_pb.rb +1 -1
- data/lib/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service_pb.rb +1 -1
- data/lib/google/cloud/recommendationengine/v1beta1/prediction_service_pb.rb +1 -1
- data/lib/google/cloud/recommendationengine/v1beta1/user_event_pb.rb +1 -1
- data/lib/google/cloud/recommendationengine/v1beta1/user_event_service_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +18 -10
- data/proto_docs/google/api/resource.rb +7 -2
- metadata +4 -116
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8447b575e2aade0f32c64e856654c4c9a5cdda0c480cc2872b4df130db8239b
|
4
|
+
data.tar.gz: b160ba8f280d697ac07581a49cdee82a08d3c28bdbe2b2db7e4c75958eeca9e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d55e09b8abe7ce321773ecf6f6996e9949dd06914ef7c9c901eb0372b5d9abe4f7b1f5dcd37462284d437a1fa0019e960c0e8018983a68415f97c4f5f8ab442
|
7
|
+
data.tar.gz: 9b68e1d4f80852b55e61a58c382e27ee283ab23c623d9e89f1a078a523128c232acc8fa809bf6354c2a1b5d49f7d454740aa1d78ca1da1d50b9496efa2082642
|
data/README.md
CHANGED
@@ -40,7 +40,7 @@ response = client.create_catalog_item request
|
|
40
40
|
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-recommendation_engine-v1beta1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
|
-
See also the [Product Documentation](https://cloud.google.com/recommendations
|
43
|
+
See also the [Product Documentation](https://cloud.google.com/recommendations)
|
44
44
|
for general usage information.
|
45
45
|
|
46
46
|
## Enabling Logging
|
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
76
76
|
|
77
77
|
## Supported Ruby Versions
|
78
78
|
|
79
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.7+.
|
80
80
|
|
81
81
|
Google provides official support for Ruby versions that are actively supported
|
82
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -30,6 +30,9 @@ module Google
|
|
30
30
|
# Service for ingesting catalog information of the customer's website.
|
31
31
|
#
|
32
32
|
class Client
|
33
|
+
# @private
|
34
|
+
API_VERSION = ""
|
35
|
+
|
33
36
|
# @private
|
34
37
|
DEFAULT_ENDPOINT_TEMPLATE = "recommendationengine.$UNIVERSE_DOMAIN$"
|
35
38
|
|
@@ -262,10 +265,11 @@ module Google
|
|
262
265
|
# Customize the options with defaults
|
263
266
|
metadata = @config.rpcs.create_catalog_item.metadata.to_h
|
264
267
|
|
265
|
-
# Set x-goog-api-client
|
268
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
266
269
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
267
270
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
268
271
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
272
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
269
273
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
270
274
|
|
271
275
|
header_params = {}
|
@@ -348,10 +352,11 @@ module Google
|
|
348
352
|
# Customize the options with defaults
|
349
353
|
metadata = @config.rpcs.get_catalog_item.metadata.to_h
|
350
354
|
|
351
|
-
# Set x-goog-api-client
|
355
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
352
356
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
353
357
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
354
358
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
359
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
355
360
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
356
361
|
|
357
362
|
header_params = {}
|
@@ -445,10 +450,11 @@ module Google
|
|
445
450
|
# Customize the options with defaults
|
446
451
|
metadata = @config.rpcs.list_catalog_items.metadata.to_h
|
447
452
|
|
448
|
-
# Set x-goog-api-client
|
453
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
449
454
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
450
455
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
451
456
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
457
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
452
458
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
453
459
|
|
454
460
|
header_params = {}
|
@@ -539,10 +545,11 @@ module Google
|
|
539
545
|
# Customize the options with defaults
|
540
546
|
metadata = @config.rpcs.update_catalog_item.metadata.to_h
|
541
547
|
|
542
|
-
# Set x-goog-api-client
|
548
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
543
549
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
544
550
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
545
551
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
552
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
546
553
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
547
554
|
|
548
555
|
header_params = {}
|
@@ -625,10 +632,11 @@ module Google
|
|
625
632
|
# Customize the options with defaults
|
626
633
|
metadata = @config.rpcs.delete_catalog_item.metadata.to_h
|
627
634
|
|
628
|
-
# Set x-goog-api-client
|
635
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
629
636
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
630
637
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
631
638
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
639
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
632
640
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
633
641
|
|
634
642
|
header_params = {}
|
@@ -731,10 +739,11 @@ module Google
|
|
731
739
|
# Customize the options with defaults
|
732
740
|
metadata = @config.rpcs.import_catalog_items.metadata.to_h
|
733
741
|
|
734
|
-
# Set x-goog-api-client
|
742
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
735
743
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
736
744
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
737
745
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
746
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
738
747
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
739
748
|
|
740
749
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module CatalogService
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "recommendationengine.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -191,10 +194,11 @@ module Google
|
|
191
194
|
# Customize the options with defaults
|
192
195
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
193
196
|
|
194
|
-
# Set x-goog-api-client
|
197
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
195
198
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
196
199
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
197
200
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
201
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
198
202
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
199
203
|
|
200
204
|
header_params = {}
|
@@ -287,10 +291,11 @@ module Google
|
|
287
291
|
# Customize the options with defaults
|
288
292
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
289
293
|
|
290
|
-
# Set x-goog-api-client
|
294
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
291
295
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
292
296
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
293
297
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
298
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
294
299
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
295
300
|
|
296
301
|
header_params = {}
|
@@ -376,10 +381,11 @@ module Google
|
|
376
381
|
# Customize the options with defaults
|
377
382
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
378
383
|
|
379
|
-
# Set x-goog-api-client
|
384
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
380
385
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
381
386
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
382
387
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
388
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
383
389
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
390
|
|
385
391
|
header_params = {}
|
@@ -470,10 +476,11 @@ module Google
|
|
470
476
|
# Customize the options with defaults
|
471
477
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
472
478
|
|
473
|
-
# Set x-goog-api-client
|
479
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
474
480
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
475
481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
476
482
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
483
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
477
484
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
478
485
|
|
479
486
|
header_params = {}
|
@@ -574,10 +581,11 @@ module Google
|
|
574
581
|
# Customize the options with defaults
|
575
582
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
576
583
|
|
577
|
-
# Set x-goog-api-client
|
584
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
578
585
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
579
586
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
580
587
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
588
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
581
589
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
582
590
|
|
583
591
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# Service for ingesting catalog information of the customer's website.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "recommendationengine.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -254,12 +257,13 @@ module Google
|
|
254
257
|
# Customize the options with defaults
|
255
258
|
call_metadata = @config.rpcs.create_catalog_item.metadata.to_h
|
256
259
|
|
257
|
-
# Set x-goog-api-client
|
260
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
258
261
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
259
262
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
260
263
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION,
|
261
264
|
transports_version_send: [:rest]
|
262
265
|
|
266
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
263
267
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
264
268
|
|
265
269
|
options.apply_defaults timeout: @config.rpcs.create_catalog_item.timeout,
|
@@ -333,12 +337,13 @@ module Google
|
|
333
337
|
# Customize the options with defaults
|
334
338
|
call_metadata = @config.rpcs.get_catalog_item.metadata.to_h
|
335
339
|
|
336
|
-
# Set x-goog-api-client
|
340
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
337
341
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
338
342
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
339
343
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION,
|
340
344
|
transports_version_send: [:rest]
|
341
345
|
|
346
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
342
347
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
343
348
|
|
344
349
|
options.apply_defaults timeout: @config.rpcs.get_catalog_item.timeout,
|
@@ -423,12 +428,13 @@ module Google
|
|
423
428
|
# Customize the options with defaults
|
424
429
|
call_metadata = @config.rpcs.list_catalog_items.metadata.to_h
|
425
430
|
|
426
|
-
# Set x-goog-api-client
|
431
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
427
432
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
428
433
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
429
434
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION,
|
430
435
|
transports_version_send: [:rest]
|
431
436
|
|
437
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
432
438
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
433
439
|
|
434
440
|
options.apply_defaults timeout: @config.rpcs.list_catalog_items.timeout,
|
@@ -510,12 +516,13 @@ module Google
|
|
510
516
|
# Customize the options with defaults
|
511
517
|
call_metadata = @config.rpcs.update_catalog_item.metadata.to_h
|
512
518
|
|
513
|
-
# Set x-goog-api-client
|
519
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
514
520
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
515
521
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
516
522
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION,
|
517
523
|
transports_version_send: [:rest]
|
518
524
|
|
525
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
519
526
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
520
527
|
|
521
528
|
options.apply_defaults timeout: @config.rpcs.update_catalog_item.timeout,
|
@@ -589,12 +596,13 @@ module Google
|
|
589
596
|
# Customize the options with defaults
|
590
597
|
call_metadata = @config.rpcs.delete_catalog_item.metadata.to_h
|
591
598
|
|
592
|
-
# Set x-goog-api-client
|
599
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
593
600
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
594
601
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
595
602
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION,
|
596
603
|
transports_version_send: [:rest]
|
597
604
|
|
605
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
598
606
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
599
607
|
|
600
608
|
options.apply_defaults timeout: @config.rpcs.delete_catalog_item.timeout,
|
@@ -688,12 +696,13 @@ module Google
|
|
688
696
|
# Customize the options with defaults
|
689
697
|
call_metadata = @config.rpcs.import_catalog_items.metadata.to_h
|
690
698
|
|
691
|
-
# Set x-goog-api-client
|
699
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
692
700
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
693
701
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
694
702
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION,
|
695
703
|
transports_version_send: [:rest]
|
696
704
|
|
705
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
697
706
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
698
707
|
|
699
708
|
options.apply_defaults timeout: @config.rpcs.import_catalog_items.timeout,
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "recommendationengine.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -181,12 +184,13 @@ module Google
|
|
181
184
|
# Customize the options with defaults
|
182
185
|
call_metadata = @config.rpcs.list_operations.metadata.to_h
|
183
186
|
|
184
|
-
# Set x-goog-api-client
|
187
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
185
188
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
186
189
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
187
190
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION,
|
188
191
|
transports_version_send: [:rest]
|
189
192
|
|
193
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
190
194
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
191
195
|
|
192
196
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
@@ -269,12 +273,13 @@ module Google
|
|
269
273
|
# Customize the options with defaults
|
270
274
|
call_metadata = @config.rpcs.get_operation.metadata.to_h
|
271
275
|
|
272
|
-
# Set x-goog-api-client
|
276
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
273
277
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
274
278
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
275
279
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION,
|
276
280
|
transports_version_send: [:rest]
|
277
281
|
|
282
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
278
283
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
279
284
|
|
280
285
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
@@ -351,12 +356,13 @@ module Google
|
|
351
356
|
# Customize the options with defaults
|
352
357
|
call_metadata = @config.rpcs.delete_operation.metadata.to_h
|
353
358
|
|
354
|
-
# Set x-goog-api-client
|
359
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
355
360
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
356
361
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
357
362
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION,
|
358
363
|
transports_version_send: [:rest]
|
359
364
|
|
365
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
360
366
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
367
|
|
362
368
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
@@ -438,12 +444,13 @@ module Google
|
|
438
444
|
# Customize the options with defaults
|
439
445
|
call_metadata = @config.rpcs.cancel_operation.metadata.to_h
|
440
446
|
|
441
|
-
# Set x-goog-api-client
|
447
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
442
448
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
443
449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
444
450
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION,
|
445
451
|
transports_version_send: [:rest]
|
446
452
|
|
453
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
447
454
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
448
455
|
|
449
456
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# key. You can register up to 20 API keys per project.
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
API_VERSION = ""
|
39
|
+
|
37
40
|
# @private
|
38
41
|
DEFAULT_ENDPOINT_TEMPLATE = "recommendationengine.$UNIVERSE_DOMAIN$"
|
39
42
|
|
@@ -237,10 +240,11 @@ module Google
|
|
237
240
|
# Customize the options with defaults
|
238
241
|
metadata = @config.rpcs.create_prediction_api_key_registration.metadata.to_h
|
239
242
|
|
240
|
-
# Set x-goog-api-client
|
243
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
241
244
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
242
245
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
243
246
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
247
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
244
248
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
245
249
|
|
246
250
|
header_params = {}
|
@@ -332,10 +336,11 @@ module Google
|
|
332
336
|
# Customize the options with defaults
|
333
337
|
metadata = @config.rpcs.list_prediction_api_key_registrations.metadata.to_h
|
334
338
|
|
335
|
-
# Set x-goog-api-client
|
339
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
336
340
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
337
341
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
338
342
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
343
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
339
344
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
340
345
|
|
341
346
|
header_params = {}
|
@@ -419,10 +424,11 @@ module Google
|
|
419
424
|
# Customize the options with defaults
|
420
425
|
metadata = @config.rpcs.delete_prediction_api_key_registration.metadata.to_h
|
421
426
|
|
422
|
-
# Set x-goog-api-client
|
427
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
423
428
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
424
429
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
425
430
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
431
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
426
432
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
427
433
|
|
428
434
|
header_params = {}
|
data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest/client.rb
CHANGED
@@ -36,6 +36,9 @@ module Google
|
|
36
36
|
# key. You can register up to 20 API keys per project.
|
37
37
|
#
|
38
38
|
class Client
|
39
|
+
# @private
|
40
|
+
API_VERSION = ""
|
41
|
+
|
39
42
|
# @private
|
40
43
|
DEFAULT_ENDPOINT_TEMPLATE = "recommendationengine.$UNIVERSE_DOMAIN$"
|
41
44
|
|
@@ -229,12 +232,13 @@ module Google
|
|
229
232
|
# Customize the options with defaults
|
230
233
|
call_metadata = @config.rpcs.create_prediction_api_key_registration.metadata.to_h
|
231
234
|
|
232
|
-
# Set x-goog-api-client
|
235
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
233
236
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
234
237
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
235
238
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION,
|
236
239
|
transports_version_send: [:rest]
|
237
240
|
|
241
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
238
242
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
239
243
|
|
240
244
|
options.apply_defaults timeout: @config.rpcs.create_prediction_api_key_registration.timeout,
|
@@ -317,12 +321,13 @@ module Google
|
|
317
321
|
# Customize the options with defaults
|
318
322
|
call_metadata = @config.rpcs.list_prediction_api_key_registrations.metadata.to_h
|
319
323
|
|
320
|
-
# Set x-goog-api-client
|
324
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
321
325
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
322
326
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
323
327
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION,
|
324
328
|
transports_version_send: [:rest]
|
325
329
|
|
330
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
326
331
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
327
332
|
|
328
333
|
options.apply_defaults timeout: @config.rpcs.list_prediction_api_key_registrations.timeout,
|
@@ -397,12 +402,13 @@ module Google
|
|
397
402
|
# Customize the options with defaults
|
398
403
|
call_metadata = @config.rpcs.delete_prediction_api_key_registration.metadata.to_h
|
399
404
|
|
400
|
-
# Set x-goog-api-client
|
405
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
401
406
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
402
407
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
403
408
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION,
|
404
409
|
transports_version_send: [:rest]
|
405
410
|
|
411
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
406
412
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
407
413
|
|
408
414
|
options.apply_defaults timeout: @config.rpcs.delete_prediction_api_key_registration.timeout,
|
@@ -30,6 +30,9 @@ module Google
|
|
30
30
|
# Service for making recommendation prediction.
|
31
31
|
#
|
32
32
|
class Client
|
33
|
+
# @private
|
34
|
+
API_VERSION = ""
|
35
|
+
|
33
36
|
# @private
|
34
37
|
DEFAULT_ENDPOINT_TEMPLATE = "recommendationengine.$UNIVERSE_DOMAIN$"
|
35
38
|
|
@@ -314,10 +317,11 @@ module Google
|
|
314
317
|
# Customize the options with defaults
|
315
318
|
metadata = @config.rpcs.predict.metadata.to_h
|
316
319
|
|
317
|
-
# Set x-goog-api-client
|
320
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
318
321
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
319
322
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
320
323
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
324
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
321
325
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
322
326
|
|
323
327
|
header_params = {}
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# Service for making recommendation prediction.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "recommendationengine.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -306,12 +309,13 @@ module Google
|
|
306
309
|
# Customize the options with defaults
|
307
310
|
call_metadata = @config.rpcs.predict.metadata.to_h
|
308
311
|
|
309
|
-
# Set x-goog-api-client
|
312
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
310
313
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
311
314
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
312
315
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION,
|
313
316
|
transports_version_send: [:rest]
|
314
317
|
|
318
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
315
319
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
316
320
|
|
317
321
|
options.apply_defaults timeout: @config.rpcs.predict.timeout,
|
@@ -30,6 +30,9 @@ module Google
|
|
30
30
|
# Service for ingesting end user actions on the customer website.
|
31
31
|
#
|
32
32
|
class Client
|
33
|
+
# @private
|
34
|
+
API_VERSION = ""
|
35
|
+
|
33
36
|
# @private
|
34
37
|
DEFAULT_ENDPOINT_TEMPLATE = "recommendationengine.$UNIVERSE_DOMAIN$"
|
35
38
|
|
@@ -257,10 +260,11 @@ module Google
|
|
257
260
|
# Customize the options with defaults
|
258
261
|
metadata = @config.rpcs.write_user_event.metadata.to_h
|
259
262
|
|
260
|
-
# Set x-goog-api-client
|
263
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
261
264
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
262
265
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
263
266
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
267
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
264
268
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
265
269
|
|
266
270
|
header_params = {}
|
@@ -358,10 +362,11 @@ module Google
|
|
358
362
|
# Customize the options with defaults
|
359
363
|
metadata = @config.rpcs.collect_user_event.metadata.to_h
|
360
364
|
|
361
|
-
# Set x-goog-api-client
|
365
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
362
366
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
363
367
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
364
368
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
369
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
365
370
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
366
371
|
|
367
372
|
header_params = {}
|
@@ -486,10 +491,11 @@ module Google
|
|
486
491
|
# Customize the options with defaults
|
487
492
|
metadata = @config.rpcs.list_user_events.metadata.to_h
|
488
493
|
|
489
|
-
# Set x-goog-api-client
|
494
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
490
495
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
491
496
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
492
497
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
498
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
493
499
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
494
500
|
|
495
501
|
header_params = {}
|
@@ -607,10 +613,11 @@ module Google
|
|
607
613
|
# Customize the options with defaults
|
608
614
|
metadata = @config.rpcs.purge_user_events.metadata.to_h
|
609
615
|
|
610
|
-
# Set x-goog-api-client
|
616
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
611
617
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
612
618
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
613
619
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
620
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
614
621
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
615
622
|
|
616
623
|
header_params = {}
|
@@ -718,10 +725,11 @@ module Google
|
|
718
725
|
# Customize the options with defaults
|
719
726
|
metadata = @config.rpcs.import_user_events.metadata.to_h
|
720
727
|
|
721
|
-
# Set x-goog-api-client
|
728
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
722
729
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
723
730
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
724
731
|
gapic_version: ::Google::Cloud::RecommendationEngine::V1beta1::VERSION
|
732
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
725
733
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
726
734
|
|
727
735
|
header_params = {}
|