google-cloud-redis-v1beta1 0.13.0 → 0.13.1

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: 73696cd040eb88ed81b40ce9904e0a154bb7b3fd8606571b72b892b8a26d8448
4
- data.tar.gz: 41e05885c81a04e3a28644fb303801bdea7c2dc134fc8d32feda6ee6b3d820f4
3
+ metadata.gz: ab202203bcdc6064f3203d0e059055ee570f6650ae14458ea865ab40917a6e98
4
+ data.tar.gz: 4ae6fd8499d6bd2ce484663456ac27716cd519223f50ae9e081cb1eebe093194
5
5
  SHA512:
6
- metadata.gz: 2d909bb5d98c6388397ba28f1451551f49e67845f82d91298f1f62006f4cc5be7fe9b31731633eb10c777c464f8a302bc1462f67efcfbb742147adbf5606a2f6
7
- data.tar.gz: 45838cef912d045c0e8d87931347f1cb19377e4a2c33ff4825c3c6815419d8c3760b6b7305cfc855235016d020cc0caade7c51a21f59148e46e9ffe64ef01592
6
+ metadata.gz: 1a9d2906dfb93a2452711493308b037b284af934dfcc1e13301e29744b12b736ee9f00e9d6fcc010fa419036c3f2f497c8049cf1a99d21c80ab6929f2dbfff07
7
+ data.tar.gz: 3b6a50e3b369abca2f08dfd10f347098cb9aaa10448380910922abe56683437e9008afedee2ac592b14b9fa31f5c5d968e45a9a13a2a616030caa414c6d3a03a
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  Creates and manages Redis instances on the Google Cloud Platform.
4
4
 
5
- Creates and manages Redis instances on the Google Cloud Platform.
6
5
 
7
6
  https://github.com/googleapis/google-cloud-ruby
8
7
 
@@ -44,6 +44,9 @@ module Google
44
44
  # * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
45
45
  #
46
46
  class Client
47
+ # @private
48
+ API_VERSION = ""
49
+
47
50
  # @private
48
51
  DEFAULT_ENDPOINT_TEMPLATE = "redis.$UNIVERSE_DOMAIN$"
49
52
 
@@ -288,10 +291,11 @@ module Google
288
291
  # Customize the options with defaults
289
292
  metadata = @config.rpcs.list_instances.metadata.to_h
290
293
 
291
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
292
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
293
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
294
297
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
295
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
296
300
 
297
301
  header_params = {}
@@ -376,10 +380,11 @@ module Google
376
380
  # Customize the options with defaults
377
381
  metadata = @config.rpcs.get_instance.metadata.to_h
378
382
 
379
- # Set x-goog-api-client and x-goog-user-project headers
383
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
384
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
385
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
386
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
387
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
388
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
389
 
385
390
  header_params = {}
@@ -465,10 +470,11 @@ module Google
465
470
  # Customize the options with defaults
466
471
  metadata = @config.rpcs.get_instance_auth_string.metadata.to_h
467
472
 
468
- # Set x-goog-api-client and x-goog-user-project headers
473
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
469
474
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
470
475
  lib_name: @config.lib_name, lib_version: @config.lib_version,
471
476
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
477
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
472
478
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
473
479
 
474
480
  header_params = {}
@@ -581,10 +587,11 @@ module Google
581
587
  # Customize the options with defaults
582
588
  metadata = @config.rpcs.create_instance.metadata.to_h
583
589
 
584
- # Set x-goog-api-client and x-goog-user-project headers
590
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
585
591
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
586
592
  lib_name: @config.lib_name, lib_version: @config.lib_version,
587
593
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
594
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
588
595
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
589
596
 
590
597
  header_params = {}
@@ -689,10 +696,11 @@ module Google
689
696
  # Customize the options with defaults
690
697
  metadata = @config.rpcs.update_instance.metadata.to_h
691
698
 
692
- # Set x-goog-api-client and x-goog-user-project headers
699
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
693
700
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
694
701
  lib_name: @config.lib_name, lib_version: @config.lib_version,
695
702
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
703
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
696
704
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
697
705
 
698
706
  header_params = {}
@@ -787,10 +795,11 @@ module Google
787
795
  # Customize the options with defaults
788
796
  metadata = @config.rpcs.upgrade_instance.metadata.to_h
789
797
 
790
- # Set x-goog-api-client and x-goog-user-project headers
798
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
791
799
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
792
800
  lib_name: @config.lib_name, lib_version: @config.lib_version,
793
801
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
802
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
794
803
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
795
804
 
796
805
  header_params = {}
@@ -891,10 +900,11 @@ module Google
891
900
  # Customize the options with defaults
892
901
  metadata = @config.rpcs.import_instance.metadata.to_h
893
902
 
894
- # Set x-goog-api-client and x-goog-user-project headers
903
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
895
904
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
896
905
  lib_name: @config.lib_name, lib_version: @config.lib_version,
897
906
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
907
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
898
908
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
899
909
 
900
910
  header_params = {}
@@ -993,10 +1003,11 @@ module Google
993
1003
  # Customize the options with defaults
994
1004
  metadata = @config.rpcs.export_instance.metadata.to_h
995
1005
 
996
- # Set x-goog-api-client and x-goog-user-project headers
1006
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
997
1007
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
998
1008
  lib_name: @config.lib_name, lib_version: @config.lib_version,
999
1009
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
1010
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1000
1011
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1001
1012
 
1002
1013
  header_params = {}
@@ -1092,10 +1103,11 @@ module Google
1092
1103
  # Customize the options with defaults
1093
1104
  metadata = @config.rpcs.failover_instance.metadata.to_h
1094
1105
 
1095
- # Set x-goog-api-client and x-goog-user-project headers
1106
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1096
1107
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1097
1108
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1098
1109
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
1110
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1099
1111
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1100
1112
 
1101
1113
  header_params = {}
@@ -1188,10 +1200,11 @@ module Google
1188
1200
  # Customize the options with defaults
1189
1201
  metadata = @config.rpcs.delete_instance.metadata.to_h
1190
1202
 
1191
- # Set x-goog-api-client and x-goog-user-project headers
1203
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1192
1204
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1193
1205
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1194
1206
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
1207
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1195
1208
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1196
1209
 
1197
1210
  header_params = {}
@@ -1290,10 +1303,11 @@ module Google
1290
1303
  # Customize the options with defaults
1291
1304
  metadata = @config.rpcs.reschedule_maintenance.metadata.to_h
1292
1305
 
1293
- # Set x-goog-api-client and x-goog-user-project headers
1306
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1294
1307
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1295
1308
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1296
1309
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION
1310
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1297
1311
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1298
1312
 
1299
1313
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module CloudRedis
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 = "redis.$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 and x-goog-user-project headers
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::Redis::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 and x-goog-user-project headers
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::Redis::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 and x-goog-user-project headers
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::Redis::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 and x-goog-user-project headers
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::Redis::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 and x-goog-user-project headers
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::Redis::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,
@@ -46,6 +46,9 @@ module Google
46
46
  # * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
47
47
  #
48
48
  class Client
49
+ # @private
50
+ API_VERSION = ""
51
+
49
52
  # @private
50
53
  DEFAULT_ENDPOINT_TEMPLATE = "redis.$UNIVERSE_DOMAIN$"
51
54
 
@@ -280,12 +283,13 @@ module Google
280
283
  # Customize the options with defaults
281
284
  call_metadata = @config.rpcs.list_instances.metadata.to_h
282
285
 
283
- # Set x-goog-api-client and x-goog-user-project headers
286
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
284
287
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
285
288
  lib_name: @config.lib_name, lib_version: @config.lib_version,
286
289
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION,
287
290
  transports_version_send: [:rest]
288
291
 
292
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
289
293
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
290
294
 
291
295
  options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
@@ -360,12 +364,13 @@ module Google
360
364
  # Customize the options with defaults
361
365
  call_metadata = @config.rpcs.get_instance.metadata.to_h
362
366
 
363
- # Set x-goog-api-client and x-goog-user-project headers
367
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
364
368
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
365
369
  lib_name: @config.lib_name, lib_version: @config.lib_version,
366
370
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION,
367
371
  transports_version_send: [:rest]
368
372
 
373
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
369
374
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
370
375
 
371
376
  options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
@@ -442,12 +447,13 @@ module Google
442
447
  # Customize the options with defaults
443
448
  call_metadata = @config.rpcs.get_instance_auth_string.metadata.to_h
444
449
 
445
- # Set x-goog-api-client and x-goog-user-project headers
450
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
446
451
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
447
452
  lib_name: @config.lib_name, lib_version: @config.lib_version,
448
453
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION,
449
454
  transports_version_send: [:rest]
450
455
 
456
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
451
457
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
452
458
 
453
459
  options.apply_defaults timeout: @config.rpcs.get_instance_auth_string.timeout,
@@ -551,12 +557,13 @@ module Google
551
557
  # Customize the options with defaults
552
558
  call_metadata = @config.rpcs.create_instance.metadata.to_h
553
559
 
554
- # Set x-goog-api-client and x-goog-user-project headers
560
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
555
561
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
556
562
  lib_name: @config.lib_name, lib_version: @config.lib_version,
557
563
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION,
558
564
  transports_version_send: [:rest]
559
565
 
566
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
560
567
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
561
568
 
562
569
  options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
@@ -652,12 +659,13 @@ module Google
652
659
  # Customize the options with defaults
653
660
  call_metadata = @config.rpcs.update_instance.metadata.to_h
654
661
 
655
- # Set x-goog-api-client and x-goog-user-project headers
662
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
656
663
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
657
664
  lib_name: @config.lib_name, lib_version: @config.lib_version,
658
665
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION,
659
666
  transports_version_send: [:rest]
660
667
 
668
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
661
669
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
662
670
 
663
671
  options.apply_defaults timeout: @config.rpcs.update_instance.timeout,
@@ -743,12 +751,13 @@ module Google
743
751
  # Customize the options with defaults
744
752
  call_metadata = @config.rpcs.upgrade_instance.metadata.to_h
745
753
 
746
- # Set x-goog-api-client and x-goog-user-project headers
754
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
747
755
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
748
756
  lib_name: @config.lib_name, lib_version: @config.lib_version,
749
757
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION,
750
758
  transports_version_send: [:rest]
751
759
 
760
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
752
761
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
753
762
 
754
763
  options.apply_defaults timeout: @config.rpcs.upgrade_instance.timeout,
@@ -840,12 +849,13 @@ module Google
840
849
  # Customize the options with defaults
841
850
  call_metadata = @config.rpcs.import_instance.metadata.to_h
842
851
 
843
- # Set x-goog-api-client and x-goog-user-project headers
852
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
844
853
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
845
854
  lib_name: @config.lib_name, lib_version: @config.lib_version,
846
855
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION,
847
856
  transports_version_send: [:rest]
848
857
 
858
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
849
859
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
850
860
 
851
861
  options.apply_defaults timeout: @config.rpcs.import_instance.timeout,
@@ -935,12 +945,13 @@ module Google
935
945
  # Customize the options with defaults
936
946
  call_metadata = @config.rpcs.export_instance.metadata.to_h
937
947
 
938
- # Set x-goog-api-client and x-goog-user-project headers
948
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
939
949
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
940
950
  lib_name: @config.lib_name, lib_version: @config.lib_version,
941
951
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION,
942
952
  transports_version_send: [:rest]
943
953
 
954
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
944
955
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
945
956
 
946
957
  options.apply_defaults timeout: @config.rpcs.export_instance.timeout,
@@ -1027,12 +1038,13 @@ module Google
1027
1038
  # Customize the options with defaults
1028
1039
  call_metadata = @config.rpcs.failover_instance.metadata.to_h
1029
1040
 
1030
- # Set x-goog-api-client and x-goog-user-project headers
1041
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1031
1042
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1032
1043
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1033
1044
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION,
1034
1045
  transports_version_send: [:rest]
1035
1046
 
1047
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1036
1048
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1037
1049
 
1038
1050
  options.apply_defaults timeout: @config.rpcs.failover_instance.timeout,
@@ -1116,12 +1128,13 @@ module Google
1116
1128
  # Customize the options with defaults
1117
1129
  call_metadata = @config.rpcs.delete_instance.metadata.to_h
1118
1130
 
1119
- # Set x-goog-api-client and x-goog-user-project headers
1131
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1120
1132
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1121
1133
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1122
1134
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION,
1123
1135
  transports_version_send: [:rest]
1124
1136
 
1137
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1125
1138
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1126
1139
 
1127
1140
  options.apply_defaults timeout: @config.rpcs.delete_instance.timeout,
@@ -1211,12 +1224,13 @@ module Google
1211
1224
  # Customize the options with defaults
1212
1225
  call_metadata = @config.rpcs.reschedule_maintenance.metadata.to_h
1213
1226
 
1214
- # Set x-goog-api-client and x-goog-user-project headers
1227
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1215
1228
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1216
1229
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1217
1230
  gapic_version: ::Google::Cloud::Redis::V1beta1::VERSION,
1218
1231
  transports_version_send: [:rest]
1219
1232
 
1233
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1220
1234
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1221
1235
 
1222
1236
  options.apply_defaults timeout: @config.rpcs.reschedule_maintenance.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 = "redis.$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 and x-goog-user-project headers
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::Redis::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 and x-goog-user-project headers
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::Redis::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 and x-goog-user-project headers
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::Redis::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 and x-goog-user-project headers
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::Redis::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,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Redis
23
23
  module V1beta1
24
- VERSION = "0.13.0"
24
+ VERSION = "0.13.1"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -286,6 +290,13 @@ module Google
286
290
  # @return [::String]
287
291
  # The fully qualified name of the method, for which the options below apply.
288
292
  # This is used to find the method to apply the options.
293
+ #
294
+ # Example:
295
+ #
296
+ # publishing:
297
+ # method_settings:
298
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
299
+ # # method settings for CreateFolder...
289
300
  # @!attribute [rw] long_running
290
301
  # @return [::Google::Api::MethodSettings::LongRunning]
291
302
  # Describes settings to use for long-running operations when generating
@@ -294,17 +305,14 @@ module Google
294
305
  #
295
306
  # Example of a YAML configuration::
296
307
  #
297
- # publishing:
298
- # method_settings:
308
+ # publishing:
309
+ # method_settings:
299
310
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
311
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
312
+ # initial_poll_delay: 60s # 1 minute
303
313
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
314
+ # max_poll_delay: 360s # 6 minutes
315
+ # total_poll_timeout: 54000s # 90 minutes
308
316
  # @!attribute [rw] auto_populated_fields
309
317
  # @return [::Array<::String>]
310
318
  # List of top-level fields of the request message, that should be
@@ -313,8 +321,8 @@ module Google
313
321
  #
314
322
  # Example of a YAML configuration:
315
323
  #
316
- # publishing:
317
- # method_settings:
324
+ # publishing:
325
+ # method_settings:
318
326
  # - selector: google.example.v1.ExampleService.CreateExample
319
327
  # auto_populated_fields:
320
328
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-redis-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common