google-cloud-redis-v1 0.14.0 → 1.0.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 +0 -1
- data/lib/google/cloud/redis/v1/cloud_redis/client.rb +25 -11
- data/lib/google/cloud/redis/v1/cloud_redis/operations.rb +13 -5
- data/lib/google/cloud/redis/v1/cloud_redis/rest/client.rb +25 -11
- data/lib/google/cloud/redis/v1/cloud_redis/rest/operations.rb +11 -4
- data/lib/google/cloud/redis/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +18 -10
- data/proto_docs/google/api/resource.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4de9312dd801b2793f1c057351c9ced1586bfa8d023032d4c7760e2f468b33f
|
4
|
+
data.tar.gz: 3eedbbeb1603f74cbef3c9ee7d907afee3973f5441d81471fae90f0377fdf6f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2891a8e7b9a15ddbc10e548ae4ba8c0178b196bf023476ca3424e03ce82be113b4fe920c4c2d49bb1eb0c07d44cdf4914e3cc09e2d658b5ac0b77d3a327b023e
|
7
|
+
data.tar.gz: 7f1ea433d2a49003fc387c75c909da2af19f0830e97843d93f32df1115121750fce7b3bcaddb4c43a32d49db242c46fac929ccb94fedd1aa7892388767e93d84
|
data/README.md
CHANGED
@@ -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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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,
|
@@ -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
|
-
#
|
298
|
-
#
|
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
|
-
#
|
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
|
-
#
|
317
|
-
#
|
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'.
|
128
|
-
#
|
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-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.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-
|
11
|
+
date: 2024-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|