google-cloud-redis-v1 0.14.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc7fd9a6c21126c8c1b55ca541db6e11671d58a96876453ae02d8cb379cb7b37
4
- data.tar.gz: ffc874cf6de0b090c0d032303f28ca5f94e294cd2f81fce48ef28be622d54be4
3
+ metadata.gz: f00771cc042504423e43831b51d098d5dd8bb2906d6018d9488f6a2cae39777e
4
+ data.tar.gz: 38a501bbd806f31c419e2c26f2701aba6c8aa4aa07736618d91c027058ecf843
5
5
  SHA512:
6
- metadata.gz: 8ebec96baa8731da4b3d9dd29df88093c4b8810e2979492df01d9eba949095281e45013b05dc64c5799f323493b13e98a08c3c158c3a9abc55c75ddf5e0832f5
7
- data.tar.gz: b27cb8018e0a3bc4d1e2a367891239a182f1fda75a801f55feb03f375d31eed153802776cfd52925de0c0b48ac1d8c3b593daf9018b373947162259439c583e3
6
+ metadata.gz: 39c92f2209a9b0b03eb3bc89a4f11801d0b789f0898e4e016848ee0384f7ab2afa59a6c0f6c2204740163051b86c321ec82fd6804e3bc4cca90bec2e17fe3a3a
7
+ data.tar.gz: '0384506cfb05e0f906bc2a02d8f6529c4fff6f6a877d10d9f00fc564cf8bbd970ee1a48f98115959a18833a49e4be40bd304431b51e39933a5257ec007d9d601'
@@ -45,6 +45,9 @@ module Google
45
45
  # * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
46
46
  #
47
47
  class Client
48
+ # @private
49
+ API_VERSION = ""
50
+
48
51
  # @private
49
52
  DEFAULT_ENDPOINT_TEMPLATE = "redis.$UNIVERSE_DOMAIN$"
50
53
 
@@ -306,10 +309,11 @@ module Google
306
309
  # Customize the options with defaults
307
310
  metadata = @config.rpcs.list_instances.metadata.to_h
308
311
 
309
- # Set x-goog-api-client and x-goog-user-project headers
312
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
310
313
  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::Redis::V1::VERSION
316
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
313
317
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
314
318
 
315
319
  header_params = {}
@@ -394,10 +398,11 @@ module Google
394
398
  # Customize the options with defaults
395
399
  metadata = @config.rpcs.get_instance.metadata.to_h
396
400
 
397
- # Set x-goog-api-client and x-goog-user-project headers
401
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
398
402
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
399
403
  lib_name: @config.lib_name, lib_version: @config.lib_version,
400
404
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
405
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
401
406
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
402
407
 
403
408
  header_params = {}
@@ -483,10 +488,11 @@ module Google
483
488
  # Customize the options with defaults
484
489
  metadata = @config.rpcs.get_instance_auth_string.metadata.to_h
485
490
 
486
- # Set x-goog-api-client and x-goog-user-project headers
491
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
487
492
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
488
493
  lib_name: @config.lib_name, lib_version: @config.lib_version,
489
494
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
495
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
490
496
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
491
497
 
492
498
  header_params = {}
@@ -599,10 +605,11 @@ module Google
599
605
  # Customize the options with defaults
600
606
  metadata = @config.rpcs.create_instance.metadata.to_h
601
607
 
602
- # Set x-goog-api-client and x-goog-user-project headers
608
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
603
609
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
604
610
  lib_name: @config.lib_name, lib_version: @config.lib_version,
605
611
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
612
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
606
613
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
607
614
 
608
615
  header_params = {}
@@ -707,10 +714,11 @@ module Google
707
714
  # Customize the options with defaults
708
715
  metadata = @config.rpcs.update_instance.metadata.to_h
709
716
 
710
- # Set x-goog-api-client and x-goog-user-project headers
717
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
711
718
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
712
719
  lib_name: @config.lib_name, lib_version: @config.lib_version,
713
720
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
721
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
714
722
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
715
723
 
716
724
  header_params = {}
@@ -805,10 +813,11 @@ module Google
805
813
  # Customize the options with defaults
806
814
  metadata = @config.rpcs.upgrade_instance.metadata.to_h
807
815
 
808
- # Set x-goog-api-client and x-goog-user-project headers
816
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
809
817
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
810
818
  lib_name: @config.lib_name, lib_version: @config.lib_version,
811
819
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
820
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
812
821
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
813
822
 
814
823
  header_params = {}
@@ -909,10 +918,11 @@ module Google
909
918
  # Customize the options with defaults
910
919
  metadata = @config.rpcs.import_instance.metadata.to_h
911
920
 
912
- # Set x-goog-api-client and x-goog-user-project headers
921
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
913
922
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
914
923
  lib_name: @config.lib_name, lib_version: @config.lib_version,
915
924
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
925
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
916
926
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
917
927
 
918
928
  header_params = {}
@@ -1011,10 +1021,11 @@ module Google
1011
1021
  # Customize the options with defaults
1012
1022
  metadata = @config.rpcs.export_instance.metadata.to_h
1013
1023
 
1014
- # Set x-goog-api-client and x-goog-user-project headers
1024
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1015
1025
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1016
1026
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1017
1027
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
1028
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1018
1029
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1019
1030
 
1020
1031
  header_params = {}
@@ -1110,10 +1121,11 @@ module Google
1110
1121
  # Customize the options with defaults
1111
1122
  metadata = @config.rpcs.failover_instance.metadata.to_h
1112
1123
 
1113
- # Set x-goog-api-client and x-goog-user-project headers
1124
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1114
1125
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1115
1126
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1116
1127
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
1128
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1117
1129
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1118
1130
 
1119
1131
  header_params = {}
@@ -1206,10 +1218,11 @@ module Google
1206
1218
  # Customize the options with defaults
1207
1219
  metadata = @config.rpcs.delete_instance.metadata.to_h
1208
1220
 
1209
- # Set x-goog-api-client and x-goog-user-project headers
1221
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1210
1222
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1211
1223
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1212
1224
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
1225
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1213
1226
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1214
1227
 
1215
1228
  header_params = {}
@@ -1309,10 +1322,11 @@ module Google
1309
1322
  # Customize the options with defaults
1310
1323
  metadata = @config.rpcs.reschedule_maintenance.metadata.to_h
1311
1324
 
1312
- # Set x-goog-api-client and x-goog-user-project headers
1325
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1313
1326
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1314
1327
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1315
1328
  gapic_version: ::Google::Cloud::Redis::V1::VERSION
1329
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1316
1330
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1317
1331
 
1318
1332
  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::V1::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::V1::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::V1::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::V1::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::V1::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,
@@ -47,6 +47,9 @@ module Google
47
47
  # * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
48
48
  #
49
49
  class Client
50
+ # @private
51
+ API_VERSION = ""
52
+
50
53
  # @private
51
54
  DEFAULT_ENDPOINT_TEMPLATE = "redis.$UNIVERSE_DOMAIN$"
52
55
 
@@ -299,12 +302,13 @@ module Google
299
302
  # Customize the options with defaults
300
303
  call_metadata = @config.rpcs.list_instances.metadata.to_h
301
304
 
302
- # Set x-goog-api-client and x-goog-user-project headers
305
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
303
306
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
304
307
  lib_name: @config.lib_name, lib_version: @config.lib_version,
305
308
  gapic_version: ::Google::Cloud::Redis::V1::VERSION,
306
309
  transports_version_send: [:rest]
307
310
 
311
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
308
312
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
309
313
 
310
314
  options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
@@ -379,12 +383,13 @@ module Google
379
383
  # Customize the options with defaults
380
384
  call_metadata = @config.rpcs.get_instance.metadata.to_h
381
385
 
382
- # Set x-goog-api-client and x-goog-user-project headers
386
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
383
387
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
384
388
  lib_name: @config.lib_name, lib_version: @config.lib_version,
385
389
  gapic_version: ::Google::Cloud::Redis::V1::VERSION,
386
390
  transports_version_send: [:rest]
387
391
 
392
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
388
393
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
389
394
 
390
395
  options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
@@ -461,12 +466,13 @@ module Google
461
466
  # Customize the options with defaults
462
467
  call_metadata = @config.rpcs.get_instance_auth_string.metadata.to_h
463
468
 
464
- # Set x-goog-api-client and x-goog-user-project headers
469
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
465
470
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
466
471
  lib_name: @config.lib_name, lib_version: @config.lib_version,
467
472
  gapic_version: ::Google::Cloud::Redis::V1::VERSION,
468
473
  transports_version_send: [:rest]
469
474
 
475
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
470
476
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
471
477
 
472
478
  options.apply_defaults timeout: @config.rpcs.get_instance_auth_string.timeout,
@@ -570,12 +576,13 @@ module Google
570
576
  # Customize the options with defaults
571
577
  call_metadata = @config.rpcs.create_instance.metadata.to_h
572
578
 
573
- # Set x-goog-api-client and x-goog-user-project headers
579
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
574
580
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
575
581
  lib_name: @config.lib_name, lib_version: @config.lib_version,
576
582
  gapic_version: ::Google::Cloud::Redis::V1::VERSION,
577
583
  transports_version_send: [:rest]
578
584
 
585
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
579
586
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
580
587
 
581
588
  options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
@@ -671,12 +678,13 @@ module Google
671
678
  # Customize the options with defaults
672
679
  call_metadata = @config.rpcs.update_instance.metadata.to_h
673
680
 
674
- # Set x-goog-api-client and x-goog-user-project headers
681
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
675
682
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
676
683
  lib_name: @config.lib_name, lib_version: @config.lib_version,
677
684
  gapic_version: ::Google::Cloud::Redis::V1::VERSION,
678
685
  transports_version_send: [:rest]
679
686
 
687
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
680
688
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
681
689
 
682
690
  options.apply_defaults timeout: @config.rpcs.update_instance.timeout,
@@ -762,12 +770,13 @@ module Google
762
770
  # Customize the options with defaults
763
771
  call_metadata = @config.rpcs.upgrade_instance.metadata.to_h
764
772
 
765
- # Set x-goog-api-client and x-goog-user-project headers
773
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
766
774
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
767
775
  lib_name: @config.lib_name, lib_version: @config.lib_version,
768
776
  gapic_version: ::Google::Cloud::Redis::V1::VERSION,
769
777
  transports_version_send: [:rest]
770
778
 
779
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
771
780
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
772
781
 
773
782
  options.apply_defaults timeout: @config.rpcs.upgrade_instance.timeout,
@@ -859,12 +868,13 @@ module Google
859
868
  # Customize the options with defaults
860
869
  call_metadata = @config.rpcs.import_instance.metadata.to_h
861
870
 
862
- # Set x-goog-api-client and x-goog-user-project headers
871
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
863
872
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
864
873
  lib_name: @config.lib_name, lib_version: @config.lib_version,
865
874
  gapic_version: ::Google::Cloud::Redis::V1::VERSION,
866
875
  transports_version_send: [:rest]
867
876
 
877
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
868
878
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
869
879
 
870
880
  options.apply_defaults timeout: @config.rpcs.import_instance.timeout,
@@ -954,12 +964,13 @@ module Google
954
964
  # Customize the options with defaults
955
965
  call_metadata = @config.rpcs.export_instance.metadata.to_h
956
966
 
957
- # Set x-goog-api-client and x-goog-user-project headers
967
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
958
968
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
959
969
  lib_name: @config.lib_name, lib_version: @config.lib_version,
960
970
  gapic_version: ::Google::Cloud::Redis::V1::VERSION,
961
971
  transports_version_send: [:rest]
962
972
 
973
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
963
974
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
964
975
 
965
976
  options.apply_defaults timeout: @config.rpcs.export_instance.timeout,
@@ -1046,12 +1057,13 @@ module Google
1046
1057
  # Customize the options with defaults
1047
1058
  call_metadata = @config.rpcs.failover_instance.metadata.to_h
1048
1059
 
1049
- # Set x-goog-api-client and x-goog-user-project headers
1060
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1050
1061
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1051
1062
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1052
1063
  gapic_version: ::Google::Cloud::Redis::V1::VERSION,
1053
1064
  transports_version_send: [:rest]
1054
1065
 
1066
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1055
1067
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1056
1068
 
1057
1069
  options.apply_defaults timeout: @config.rpcs.failover_instance.timeout,
@@ -1135,12 +1147,13 @@ module Google
1135
1147
  # Customize the options with defaults
1136
1148
  call_metadata = @config.rpcs.delete_instance.metadata.to_h
1137
1149
 
1138
- # Set x-goog-api-client and x-goog-user-project headers
1150
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1139
1151
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1140
1152
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1141
1153
  gapic_version: ::Google::Cloud::Redis::V1::VERSION,
1142
1154
  transports_version_send: [:rest]
1143
1155
 
1156
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1144
1157
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1145
1158
 
1146
1159
  options.apply_defaults timeout: @config.rpcs.delete_instance.timeout,
@@ -1231,12 +1244,13 @@ module Google
1231
1244
  # Customize the options with defaults
1232
1245
  call_metadata = @config.rpcs.reschedule_maintenance.metadata.to_h
1233
1246
 
1234
- # Set x-goog-api-client and x-goog-user-project headers
1247
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1235
1248
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1236
1249
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1237
1250
  gapic_version: ::Google::Cloud::Redis::V1::VERSION,
1238
1251
  transports_version_send: [:rest]
1239
1252
 
1253
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1240
1254
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1241
1255
 
1242
1256
  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::V1::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::V1::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::V1::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::V1::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 V1
24
- VERSION = "0.14.0"
24
+ VERSION = "1.0.0"
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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-redis-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common