google-cloud-memcache-v1 0.8.2 → 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 +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/memcache/v1/cloud_memcache/client.rb +19 -8
- data/lib/google/cloud/memcache/v1/cloud_memcache/operations.rb +13 -5
- data/lib/google/cloud/memcache/v1/cloud_memcache/rest/client.rb +19 -8
- data/lib/google/cloud/memcache/v1/cloud_memcache/rest/operations.rb +11 -4
- data/lib/google/cloud/memcache/v1/cloud_memcache_pb.rb +1 -1
- data/lib/google/cloud/memcache/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +4 -0
- 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: 507f0c25f1ac50020ca44a62e45a9e5d6d6772fc4cf6d9fa4bdeee538c8e357f
|
|
4
|
+
data.tar.gz: 853cd0b44893a532cce479d4ba5dd9bf9f52771b654f2eb908bcb7098959423a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d4dd45aa32d39b030b58c23e9a9923c514d592469592b6b083fd57e1d7ef7abc222b043f099aa727223015ca96ffddff5f7f3f9a70e50c30b5a8391998320d99
|
|
7
|
+
data.tar.gz: 9ddb650af00815e8490836162904e669d0e5d05fa6da1daab561947c55627357716880c82d9a16207ecc42b43670748fe0771ff3559ee9e0044ae95584fe87d8
|
data/README.md
CHANGED
|
@@ -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
|
|
@@ -45,6 +45,9 @@ module Google
|
|
|
45
45
|
# * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
|
|
46
46
|
#
|
|
47
47
|
class Client
|
|
48
|
+
# @private
|
|
49
|
+
API_VERSION = ""
|
|
50
|
+
|
|
48
51
|
# @private
|
|
49
52
|
DEFAULT_ENDPOINT_TEMPLATE = "memcache.$UNIVERSE_DOMAIN$"
|
|
50
53
|
|
|
@@ -295,10 +298,11 @@ module Google
|
|
|
295
298
|
# Customize the options with defaults
|
|
296
299
|
metadata = @config.rpcs.list_instances.metadata.to_h
|
|
297
300
|
|
|
298
|
-
# Set x-goog-api-client
|
|
301
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
299
302
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
300
303
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
301
304
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION
|
|
305
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
302
306
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
303
307
|
|
|
304
308
|
header_params = {}
|
|
@@ -383,10 +387,11 @@ module Google
|
|
|
383
387
|
# Customize the options with defaults
|
|
384
388
|
metadata = @config.rpcs.get_instance.metadata.to_h
|
|
385
389
|
|
|
386
|
-
# Set x-goog-api-client
|
|
390
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
387
391
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
388
392
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
389
393
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION
|
|
394
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
390
395
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
391
396
|
|
|
392
397
|
header_params = {}
|
|
@@ -490,10 +495,11 @@ module Google
|
|
|
490
495
|
# Customize the options with defaults
|
|
491
496
|
metadata = @config.rpcs.create_instance.metadata.to_h
|
|
492
497
|
|
|
493
|
-
# Set x-goog-api-client
|
|
498
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
494
499
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
495
500
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
496
501
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION
|
|
502
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
497
503
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
498
504
|
|
|
499
505
|
header_params = {}
|
|
@@ -588,10 +594,11 @@ module Google
|
|
|
588
594
|
# Customize the options with defaults
|
|
589
595
|
metadata = @config.rpcs.update_instance.metadata.to_h
|
|
590
596
|
|
|
591
|
-
# Set x-goog-api-client
|
|
597
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
592
598
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
593
599
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
594
600
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION
|
|
601
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
595
602
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
596
603
|
|
|
597
604
|
header_params = {}
|
|
@@ -689,10 +696,11 @@ module Google
|
|
|
689
696
|
# Customize the options with defaults
|
|
690
697
|
metadata = @config.rpcs.update_parameters.metadata.to_h
|
|
691
698
|
|
|
692
|
-
# Set x-goog-api-client
|
|
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::Memcache::V1::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 = {}
|
|
@@ -784,10 +792,11 @@ module Google
|
|
|
784
792
|
# Customize the options with defaults
|
|
785
793
|
metadata = @config.rpcs.delete_instance.metadata.to_h
|
|
786
794
|
|
|
787
|
-
# Set x-goog-api-client
|
|
795
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
788
796
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
789
797
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
790
798
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION
|
|
799
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
791
800
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
792
801
|
|
|
793
802
|
header_params = {}
|
|
@@ -885,10 +894,11 @@ module Google
|
|
|
885
894
|
# Customize the options with defaults
|
|
886
895
|
metadata = @config.rpcs.apply_parameters.metadata.to_h
|
|
887
896
|
|
|
888
|
-
# Set x-goog-api-client
|
|
897
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
889
898
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
890
899
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
891
900
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION
|
|
901
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
892
902
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
893
903
|
|
|
894
904
|
header_params = {}
|
|
@@ -986,10 +996,11 @@ module Google
|
|
|
986
996
|
# Customize the options with defaults
|
|
987
997
|
metadata = @config.rpcs.reschedule_maintenance.metadata.to_h
|
|
988
998
|
|
|
989
|
-
# Set x-goog-api-client
|
|
999
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
990
1000
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
991
1001
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
992
1002
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION
|
|
1003
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
993
1004
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
994
1005
|
|
|
995
1006
|
header_params = {}
|
|
@@ -26,6 +26,9 @@ module Google
|
|
|
26
26
|
module CloudMemcache
|
|
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 = "memcache.$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::Memcache::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::Memcache::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::Memcache::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::Memcache::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::Memcache::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/my-memcached-project/locations/us-central1/instances/my-memcached`
|
|
48
48
|
#
|
|
49
49
|
class Client
|
|
50
|
+
# @private
|
|
51
|
+
API_VERSION = ""
|
|
52
|
+
|
|
50
53
|
# @private
|
|
51
54
|
DEFAULT_ENDPOINT_TEMPLATE = "memcache.$UNIVERSE_DOMAIN$"
|
|
52
55
|
|
|
@@ -288,12 +291,13 @@ module Google
|
|
|
288
291
|
# Customize the options with defaults
|
|
289
292
|
call_metadata = @config.rpcs.list_instances.metadata.to_h
|
|
290
293
|
|
|
291
|
-
# Set x-goog-api-client
|
|
294
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
292
295
|
call_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::Memcache::V1::VERSION,
|
|
295
298
|
transports_version_send: [:rest]
|
|
296
299
|
|
|
300
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
297
301
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
298
302
|
|
|
299
303
|
options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
|
|
@@ -368,12 +372,13 @@ module Google
|
|
|
368
372
|
# Customize the options with defaults
|
|
369
373
|
call_metadata = @config.rpcs.get_instance.metadata.to_h
|
|
370
374
|
|
|
371
|
-
# Set x-goog-api-client
|
|
375
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
372
376
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
373
377
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
374
378
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION,
|
|
375
379
|
transports_version_send: [:rest]
|
|
376
380
|
|
|
381
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
377
382
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
378
383
|
|
|
379
384
|
options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
|
|
@@ -468,12 +473,13 @@ module Google
|
|
|
468
473
|
# Customize the options with defaults
|
|
469
474
|
call_metadata = @config.rpcs.create_instance.metadata.to_h
|
|
470
475
|
|
|
471
|
-
# Set x-goog-api-client
|
|
476
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
472
477
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
473
478
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
474
479
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION,
|
|
475
480
|
transports_version_send: [:rest]
|
|
476
481
|
|
|
482
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
477
483
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
478
484
|
|
|
479
485
|
options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
|
|
@@ -559,12 +565,13 @@ module Google
|
|
|
559
565
|
# Customize the options with defaults
|
|
560
566
|
call_metadata = @config.rpcs.update_instance.metadata.to_h
|
|
561
567
|
|
|
562
|
-
# Set x-goog-api-client
|
|
568
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
563
569
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
564
570
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
565
571
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION,
|
|
566
572
|
transports_version_send: [:rest]
|
|
567
573
|
|
|
574
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
568
575
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
569
576
|
|
|
570
577
|
options.apply_defaults timeout: @config.rpcs.update_instance.timeout,
|
|
@@ -653,12 +660,13 @@ module Google
|
|
|
653
660
|
# Customize the options with defaults
|
|
654
661
|
call_metadata = @config.rpcs.update_parameters.metadata.to_h
|
|
655
662
|
|
|
656
|
-
# Set x-goog-api-client
|
|
663
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
657
664
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
658
665
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
659
666
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION,
|
|
660
667
|
transports_version_send: [:rest]
|
|
661
668
|
|
|
669
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
662
670
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
663
671
|
|
|
664
672
|
options.apply_defaults timeout: @config.rpcs.update_parameters.timeout,
|
|
@@ -741,12 +749,13 @@ module Google
|
|
|
741
749
|
# Customize the options with defaults
|
|
742
750
|
call_metadata = @config.rpcs.delete_instance.metadata.to_h
|
|
743
751
|
|
|
744
|
-
# Set x-goog-api-client
|
|
752
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
745
753
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
746
754
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
747
755
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION,
|
|
748
756
|
transports_version_send: [:rest]
|
|
749
757
|
|
|
758
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
750
759
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
751
760
|
|
|
752
761
|
options.apply_defaults timeout: @config.rpcs.delete_instance.timeout,
|
|
@@ -835,12 +844,13 @@ module Google
|
|
|
835
844
|
# Customize the options with defaults
|
|
836
845
|
call_metadata = @config.rpcs.apply_parameters.metadata.to_h
|
|
837
846
|
|
|
838
|
-
# Set x-goog-api-client
|
|
847
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
839
848
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
840
849
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
841
850
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION,
|
|
842
851
|
transports_version_send: [:rest]
|
|
843
852
|
|
|
853
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
844
854
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
845
855
|
|
|
846
856
|
options.apply_defaults timeout: @config.rpcs.apply_parameters.timeout,
|
|
@@ -929,12 +939,13 @@ module Google
|
|
|
929
939
|
# Customize the options with defaults
|
|
930
940
|
call_metadata = @config.rpcs.reschedule_maintenance.metadata.to_h
|
|
931
941
|
|
|
932
|
-
# Set x-goog-api-client
|
|
942
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
933
943
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
934
944
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
935
945
|
gapic_version: ::Google::Cloud::Memcache::V1::VERSION,
|
|
936
946
|
transports_version_send: [:rest]
|
|
937
947
|
|
|
948
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
938
949
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
939
950
|
|
|
940
951
|
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 = "memcache.$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::Memcache::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::Memcache::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::Memcache::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::Memcache::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,
|
|
@@ -16,7 +16,7 @@ require 'google/type/dayofweek_pb'
|
|
|
16
16
|
require 'google/type/timeofday_pb'
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
descriptor_data = "\n-google/cloud/memcache/v1/cloud_memcache.proto\x12\x18google.cloud.memcache.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\"\xdd\r\n\x08Instance\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12>\n\x06labels\x18\x03 \x03(\x0b\x32..google.cloud.memcache.v1.Instance.LabelsEntry\x12\x1a\n\x12\x61uthorized_network\x18\x04 \x01(\t\x12\r\n\x05zones\x18\x05 \x03(\t\x12\x18\n\nnode_count\x18\x06 \x01(\x05\x42\x04\xe2\x41\x01\x02\x12H\n\x0bnode_config\x18\x07 \x01(\x0b\x32-.google.cloud.memcache.v1.Instance.NodeConfigB\x04\xe2\x41\x01\x02\x12\x43\n\x10memcache_version\x18\t \x01(\x0e\x32).google.cloud.memcache.v1.MemcacheVersion\x12@\n\nparameters\x18\x0b \x01(\x0b\x32,.google.cloud.memcache.v1.MemcacheParameters\x12\x45\n\x0ememcache_nodes\x18\x0c \x03(\x0b\x32\'.google.cloud.memcache.v1.Instance.NodeB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0bupdate_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12=\n\x05state\x18\x0f \x01(\x0e\x32(.google.cloud.memcache.v1.Instance.StateB\x04\xe2\x41\x01\x03\x12#\n\x15memcache_full_version\x18\x12 \x01(\tB\x04\xe2\x41\x01\x03\x12M\n\x11instance_messages\x18\x13 \x03(\x0b\x32\x32.google.cloud.memcache.v1.Instance.InstanceMessage\x12 \n\x12\x64iscovery_endpoint\x18\x14 \x01(\tB\x04\xe2\x41\x01\x03\x12G\n\x12maintenance_policy\x18\x15 \x01(\x0b\x32+.google.cloud.memcache.v1.MaintenancePolicy\x12Q\n\x14maintenance_schedule\x18\x16 \x01(\x0b\x32-.google.cloud.memcache.v1.MaintenanceScheduleB\x04\xe2\x41\x01\x03\x1a\x43\n\nNodeConfig\x12\x17\n\tcpu_count\x18\x01 \x01(\x05\x42\x04\xe2\x41\x01\x02\x12\x1c\n\x0ememory_size_mb\x18\x02 \x01(\x05\x42\x04\xe2\x41\x01\x02\x1a\xb4\x02\n\x04Node\x12\x15\n\x07node_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12\x12\n\x04zone\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12\x42\n\x05state\x18\x03 \x01(\x0e\x32-.google.cloud.memcache.v1.Instance.Node.StateB\x04\xe2\x41\x01\x03\x12\x12\n\x04host\x18\x04 \x01(\tB\x04\xe2\x41\x01\x03\x12\x12\n\x04port\x18\x05 \x01(\x05\x42\x04\xe2\x41\x01\x03\x12@\n\nparameters\x18\x06 \x01(\x0b\x32,.google.cloud.memcache.v1.MemcacheParameters\"S\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0c\n\x08UPDATING\x10\x04\x1a\xa9\x01\n\x0fInstanceMessage\x12\x45\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x37.google.cloud.memcache.v1.Instance.InstanceMessage.Code\x12\x0f\n\x07message\x18\x02 \x01(\t\">\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12 \n\x1cZONE_DISTRIBUTION_UNBALANCED\x10\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"o\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x1a\n\x16PERFORMING_MAINTENANCE\x10\x05:c\xea\x41`\n memcache.googleapis.com/Instance\x12<projects/{project}/locations/{location}/instances/{instance}\"\xf2\x01\n\x11MaintenancePolicy\x12\x35\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12Z\n\x19weekly_maintenance_window\x18\x04 \x03(\x0b\x32\x31.google.cloud.memcache.v1.WeeklyMaintenanceWindowB\x04\xe2\x41\x01\x02\"\xa9\x01\n\x17WeeklyMaintenanceWindow\x12)\n\x03\x64\x61y\x18\x01 \x01(\x0e\x32\x16.google.type.DayOfWeekB\x04\xe2\x41\x01\x02\x12\x30\n\nstart_time\x18\x02 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x04\xe2\x41\x01\x02\x12\x31\n\x08\x64uration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x04\xe2\x41\x01\x02\"\xc1\x01\n\x13MaintenanceSchedule\x12\x34\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x32\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12@\n\x16schedule_deadline_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\"\xe4\x02\n\x1cRescheduleMaintenanceRequest\x12;\n\x08instance\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\n memcache.googleapis.com/Instance\x12\x64\n\x0freschedule_type\x18\x02 \x01(\x0e\x32\x45.google.cloud.memcache.v1.RescheduleMaintenanceRequest.RescheduleTypeB\x04\xe2\x41\x01\x02\x12\x31\n\rschedule_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"n\n\x0eRescheduleType\x12\x1f\n\x1bRESCHEDULE_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tIMMEDIATE\x10\x01\x12\x19\n\x15NEXT_AVAILABLE_WINDOW\x10\x02\x12\x11\n\rSPECIFIC_TIME\x10\x03\"\x9b\x01\n\x14ListInstancesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"|\n\x15ListInstancesResponse\x12\x35\n\tinstances\x18\x01 \x03(\x0b\x32\".google.cloud.memcache.v1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"M\n\x12GetInstanceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\n memcache.googleapis.com/Instance\"\xaa\x01\n\x15\x43reateInstanceRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x19\n\x0binstance_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12:\n\x08instance\x18\x03 \x01(\x0b\x32\".google.cloud.memcache.v1.InstanceB\x04\xe2\x41\x01\x02\"\x8a\x01\n\x15UpdateInstanceRequest\x12\x35\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x02\x12:\n\x08instance\x18\x02 \x01(\x0b\x32\".google.cloud.memcache.v1.InstanceB\x04\xe2\x41\x01\x02\"P\n\x15\x44\x65leteInstanceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\n memcache.googleapis.com/Instance\"v\n\x16\x41pplyParametersRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\n memcache.googleapis.com/Instance\x12\x10\n\x08node_ids\x18\x02 \x03(\t\x12\x11\n\tapply_all\x18\x03 \x01(\x08\"\xcb\x01\n\x17UpdateParametersRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\n memcache.googleapis.com/Instance\x12\x35\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x02\x12@\n\nparameters\x18\x03 \x01(\x0b\x32,.google.cloud.memcache.v1.MemcacheParameters\"\x9f\x01\n\x12MemcacheParameters\x12\x10\n\x02id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12H\n\x06params\x18\x03 \x03(\x0b\x32\x38.google.cloud.memcache.v1.MemcacheParameters.ParamsEntry\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x80\x02\n\x11OperationMetadata\x12\x35\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x32\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x14\n\x06target\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03\x12\x12\n\x04verb\x18\x04 \x01(\tB\x04\xe2\x41\x01\x03\x12\x1b\n\rstatus_detail\x18\x05 \x01(\tB\x04\xe2\x41\x01\x03\x12\x1e\n\x10\x63\x61ncel_requested\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x03\x12\x19\n\x0b\x61pi_version\x18\x07 \x01(\tB\x04\xe2\x41\x01\x03\"\xd0\x01\n\x10LocationMetadata\x12]\n\x0f\x61vailable_zones\x18\x01 \x03(\x0b\x32>.google.cloud.memcache.v1.LocationMetadata.AvailableZonesEntryB\x04\xe2\x41\x01\x03\x1a]\n\x13\x41vailableZonesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.cloud.memcache.v1.ZoneMetadata:\x02\x38\x01\"\x0e\n\x0cZoneMetadata*E\n\x0fMemcacheVersion\x12 \n\x1cMEMCACHE_VERSION_UNSPECIFIED\x10\x00\x12\x10\n\x0cMEMCACHE_1_5\x10\x01\x32\xc5\x10\n\rCloudMemcache\x12\xb0\x01\n\rListInstances\x12..google.cloud.memcache.v1.ListInstancesRequest\x1a/.google.cloud.memcache.v1.ListInstancesResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/instances\x12\x9d\x01\n\x0bGetInstance\x12,.google.cloud.memcache.v1.GetInstanceRequest\x1a\".google.cloud.memcache.v1.Instance\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/instances/*}\x12\x92\x02\n\x0e\x43reateInstance\x12/.google.cloud.memcache.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xaf\x01\xca\x41O\n!google.cloud.memcache.v1.Instance\x12*google.cloud.memcache.v1.OperationMetadata\xda\x41\x1bparent,instance,instance_id\x82\xd3\xe4\x93\x02\x39\"-/v1/{parent=projects/*/locations/*}/instances:\x08instance\x12\x94\x02\n\x0eUpdateInstance\x12/.google.cloud.memcache.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xb1\x01\xca\x41O\n!google.cloud.memcache.v1.Instance\x12*google.cloud.memcache.v1.OperationMetadata\xda\x41\x14instance,update_mask\x82\xd3\xe4\x93\x02\x42\x32\x36/v1/{instance.name=projects/*/locations/*/instances/*}:\x08instance\x12\xa0\x02\n\x10UpdateParameters\x12\x31.google.cloud.memcache.v1.UpdateParametersRequest\x1a\x1d.google.longrunning.Operation\"\xb9\x01\xca\x41O\n!google.cloud.memcache.v1.Instance\x12*google.cloud.memcache.v1.OperationMetadata\xda\x41\x1bname,update_mask,parameters\x82\xd3\xe4\x93\x02\x43\x32>/v1/{name=projects/*/locations/*/instances/*}:updateParameters:\x01*\x12\xe5\x01\n\x0e\x44\x65leteInstance\x12/.google.cloud.memcache.v1.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\xca\x41\x43\n\x15google.protobuf.Empty\x12*google.cloud.memcache.v1.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/instances/*}\x12\x99\x02\n\x0f\x41pplyParameters\x12\x30.google.cloud.memcache.v1.ApplyParametersRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\xca\x41O\n!google.cloud.memcache.v1.Instance\x12*google.cloud.memcache.v1.OperationMetadata\xda\x41\x17name,node_ids,apply_all\x82\xd3\xe4\x93\x02\x42\"=/v1/{name=projects/*/locations/*/instances/*}:applyParameters:\x01*\x12\xc0\x02\n\x15RescheduleMaintenance\x12\x36.google.cloud.memcache.v1.RescheduleMaintenanceRequest\x1a\x1d.google.longrunning.Operation\"\xcf\x01\xca\x41O\n!google.cloud.memcache.v1.Instance\x12*google.cloud.memcache.v1.OperationMetadata\xda\x41(instance, reschedule_type, schedule_time\x82\xd3\xe4\x93\x02L\"G/v1/{instance=projects/*/locations/*/instances/*}:rescheduleMaintenance:\x01*\x1aK\xca\x41\x17memcache.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBn\n\x1c\x63om.google.cloud.memcache.v1B\x12\x43loudMemcacheProtoP\x01Z8cloud.google.com/go/memcache/apiv1/memcachepb;memcachepbb\x06proto3"
|
|
19
|
+
descriptor_data = "\n-google/cloud/memcache/v1/cloud_memcache.proto\x12\x18google.cloud.memcache.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\"\xcc\r\n\x08Instance\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12>\n\x06labels\x18\x03 \x03(\x0b\x32..google.cloud.memcache.v1.Instance.LabelsEntry\x12\x1a\n\x12\x61uthorized_network\x18\x04 \x01(\t\x12\r\n\x05zones\x18\x05 \x03(\t\x12\x17\n\nnode_count\x18\x06 \x01(\x05\x42\x03\xe0\x41\x02\x12G\n\x0bnode_config\x18\x07 \x01(\x0b\x32-.google.cloud.memcache.v1.Instance.NodeConfigB\x03\xe0\x41\x02\x12\x43\n\x10memcache_version\x18\t \x01(\x0e\x32).google.cloud.memcache.v1.MemcacheVersion\x12@\n\nparameters\x18\x0b \x01(\x0b\x32,.google.cloud.memcache.v1.MemcacheParameters\x12\x44\n\x0ememcache_nodes\x18\x0c \x03(\x0b\x32\'.google.cloud.memcache.v1.Instance.NodeB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x05state\x18\x0f \x01(\x0e\x32(.google.cloud.memcache.v1.Instance.StateB\x03\xe0\x41\x03\x12\"\n\x15memcache_full_version\x18\x12 \x01(\tB\x03\xe0\x41\x03\x12M\n\x11instance_messages\x18\x13 \x03(\x0b\x32\x32.google.cloud.memcache.v1.Instance.InstanceMessage\x12\x1f\n\x12\x64iscovery_endpoint\x18\x14 \x01(\tB\x03\xe0\x41\x03\x12G\n\x12maintenance_policy\x18\x15 \x01(\x0b\x32+.google.cloud.memcache.v1.MaintenancePolicy\x12P\n\x14maintenance_schedule\x18\x16 \x01(\x0b\x32-.google.cloud.memcache.v1.MaintenanceScheduleB\x03\xe0\x41\x03\x1a\x41\n\nNodeConfig\x12\x16\n\tcpu_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1b\n\x0ememory_size_mb\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x1a\xaf\x02\n\x04Node\x12\x14\n\x07node_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04zone\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x05state\x18\x03 \x01(\x0e\x32-.google.cloud.memcache.v1.Instance.Node.StateB\x03\xe0\x41\x03\x12\x11\n\x04host\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04port\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x12@\n\nparameters\x18\x06 \x01(\x0b\x32,.google.cloud.memcache.v1.MemcacheParameters\"S\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0c\n\x08UPDATING\x10\x04\x1a\xa9\x01\n\x0fInstanceMessage\x12\x45\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x37.google.cloud.memcache.v1.Instance.InstanceMessage.Code\x12\x0f\n\x07message\x18\x02 \x01(\t\">\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12 \n\x1cZONE_DISTRIBUTION_UNBALANCED\x10\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"o\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x1a\n\x16PERFORMING_MAINTENANCE\x10\x05:c\xea\x41`\n memcache.googleapis.com/Instance\x12<projects/{project}/locations/{location}/instances/{instance}\"\xef\x01\n\x11MaintenancePolicy\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12Y\n\x19weekly_maintenance_window\x18\x04 \x03(\x0b\x32\x31.google.cloud.memcache.v1.WeeklyMaintenanceWindowB\x03\xe0\x41\x02\"\xa6\x01\n\x17WeeklyMaintenanceWindow\x12(\n\x03\x64\x61y\x18\x01 \x01(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x02\x12/\n\nstart_time\x18\x02 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x02\x12\x30\n\x08\x64uration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\"\xbe\x01\n\x13MaintenanceSchedule\x12\x33\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x16schedule_deadline_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\xe2\x02\n\x1cRescheduleMaintenanceRequest\x12:\n\x08instance\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n memcache.googleapis.com/Instance\x12\x63\n\x0freschedule_type\x18\x02 \x01(\x0e\x32\x45.google.cloud.memcache.v1.RescheduleMaintenanceRequest.RescheduleTypeB\x03\xe0\x41\x02\x12\x31\n\rschedule_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"n\n\x0eRescheduleType\x12\x1f\n\x1bRESCHEDULE_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tIMMEDIATE\x10\x01\x12\x19\n\x15NEXT_AVAILABLE_WINDOW\x10\x02\x12\x11\n\rSPECIFIC_TIME\x10\x03\"\x9a\x01\n\x14ListInstancesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"|\n\x15ListInstancesResponse\x12\x35\n\tinstances\x18\x01 \x03(\x0b\x32\".google.cloud.memcache.v1.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"L\n\x12GetInstanceRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n memcache.googleapis.com/Instance\"\xa7\x01\n\x15\x43reateInstanceRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x08instance\x18\x03 \x01(\x0b\x32\".google.cloud.memcache.v1.InstanceB\x03\xe0\x41\x02\"\x88\x01\n\x15UpdateInstanceRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x39\n\x08instance\x18\x02 \x01(\x0b\x32\".google.cloud.memcache.v1.InstanceB\x03\xe0\x41\x02\"O\n\x15\x44\x65leteInstanceRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n memcache.googleapis.com/Instance\"u\n\x16\x41pplyParametersRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n memcache.googleapis.com/Instance\x12\x10\n\x08node_ids\x18\x02 \x03(\t\x12\x11\n\tapply_all\x18\x03 \x01(\x08\"\xc9\x01\n\x17UpdateParametersRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n memcache.googleapis.com/Instance\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12@\n\nparameters\x18\x03 \x01(\x0b\x32,.google.cloud.memcache.v1.MemcacheParameters\"\x9e\x01\n\x12MemcacheParameters\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12H\n\x06params\x18\x03 \x03(\x0b\x32\x38.google.cloud.memcache.v1.MemcacheParameters.ParamsEntry\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xf9\x01\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rstatus_detail\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x63\x61ncel_requested\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\xcf\x01\n\x10LocationMetadata\x12\\\n\x0f\x61vailable_zones\x18\x01 \x03(\x0b\x32>.google.cloud.memcache.v1.LocationMetadata.AvailableZonesEntryB\x03\xe0\x41\x03\x1a]\n\x13\x41vailableZonesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32&.google.cloud.memcache.v1.ZoneMetadata:\x02\x38\x01\"\x0e\n\x0cZoneMetadata*E\n\x0fMemcacheVersion\x12 \n\x1cMEMCACHE_VERSION_UNSPECIFIED\x10\x00\x12\x10\n\x0cMEMCACHE_1_5\x10\x01\x32\xc5\x10\n\rCloudMemcache\x12\xb0\x01\n\rListInstances\x12..google.cloud.memcache.v1.ListInstancesRequest\x1a/.google.cloud.memcache.v1.ListInstancesResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/instances\x12\x9d\x01\n\x0bGetInstance\x12,.google.cloud.memcache.v1.GetInstanceRequest\x1a\".google.cloud.memcache.v1.Instance\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/instances/*}\x12\x92\x02\n\x0e\x43reateInstance\x12/.google.cloud.memcache.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xaf\x01\xca\x41O\n!google.cloud.memcache.v1.Instance\x12*google.cloud.memcache.v1.OperationMetadata\xda\x41\x1bparent,instance,instance_id\x82\xd3\xe4\x93\x02\x39\"-/v1/{parent=projects/*/locations/*}/instances:\x08instance\x12\x94\x02\n\x0eUpdateInstance\x12/.google.cloud.memcache.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xb1\x01\xca\x41O\n!google.cloud.memcache.v1.Instance\x12*google.cloud.memcache.v1.OperationMetadata\xda\x41\x14instance,update_mask\x82\xd3\xe4\x93\x02\x42\x32\x36/v1/{instance.name=projects/*/locations/*/instances/*}:\x08instance\x12\xa0\x02\n\x10UpdateParameters\x12\x31.google.cloud.memcache.v1.UpdateParametersRequest\x1a\x1d.google.longrunning.Operation\"\xb9\x01\xca\x41O\n!google.cloud.memcache.v1.Instance\x12*google.cloud.memcache.v1.OperationMetadata\xda\x41\x1bname,update_mask,parameters\x82\xd3\xe4\x93\x02\x43\x32>/v1/{name=projects/*/locations/*/instances/*}:updateParameters:\x01*\x12\xe5\x01\n\x0e\x44\x65leteInstance\x12/.google.cloud.memcache.v1.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\xca\x41\x43\n\x15google.protobuf.Empty\x12*google.cloud.memcache.v1.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/instances/*}\x12\x99\x02\n\x0f\x41pplyParameters\x12\x30.google.cloud.memcache.v1.ApplyParametersRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\xca\x41O\n!google.cloud.memcache.v1.Instance\x12*google.cloud.memcache.v1.OperationMetadata\xda\x41\x17name,node_ids,apply_all\x82\xd3\xe4\x93\x02\x42\"=/v1/{name=projects/*/locations/*/instances/*}:applyParameters:\x01*\x12\xc0\x02\n\x15RescheduleMaintenance\x12\x36.google.cloud.memcache.v1.RescheduleMaintenanceRequest\x1a\x1d.google.longrunning.Operation\"\xcf\x01\xca\x41O\n!google.cloud.memcache.v1.Instance\x12*google.cloud.memcache.v1.OperationMetadata\xda\x41(instance, reschedule_type, schedule_time\x82\xd3\xe4\x93\x02L\"G/v1/{instance=projects/*/locations/*/instances/*}:rescheduleMaintenance:\x01*\x1aK\xca\x41\x17memcache.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBn\n\x1c\x63om.google.cloud.memcache.v1B\x12\x43loudMemcacheProtoP\x01Z8cloud.google.com/go/memcache/apiv1/memcachepb;memcachepbb\x06proto3"
|
|
20
20
|
|
|
21
21
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
22
22
|
|
|
@@ -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-memcache-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 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-
|
|
11
|
+
date: 2024-07-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -64,118 +64,6 @@ dependencies:
|
|
|
64
64
|
- - "<"
|
|
65
65
|
- !ruby/object:Gem::Version
|
|
66
66
|
version: 2.a
|
|
67
|
-
- !ruby/object:Gem::Dependency
|
|
68
|
-
name: google-style
|
|
69
|
-
requirement: !ruby/object:Gem::Requirement
|
|
70
|
-
requirements:
|
|
71
|
-
- - "~>"
|
|
72
|
-
- !ruby/object:Gem::Version
|
|
73
|
-
version: 1.26.3
|
|
74
|
-
type: :development
|
|
75
|
-
prerelease: false
|
|
76
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
77
|
-
requirements:
|
|
78
|
-
- - "~>"
|
|
79
|
-
- !ruby/object:Gem::Version
|
|
80
|
-
version: 1.26.3
|
|
81
|
-
- !ruby/object:Gem::Dependency
|
|
82
|
-
name: minitest
|
|
83
|
-
requirement: !ruby/object:Gem::Requirement
|
|
84
|
-
requirements:
|
|
85
|
-
- - "~>"
|
|
86
|
-
- !ruby/object:Gem::Version
|
|
87
|
-
version: '5.16'
|
|
88
|
-
type: :development
|
|
89
|
-
prerelease: false
|
|
90
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
91
|
-
requirements:
|
|
92
|
-
- - "~>"
|
|
93
|
-
- !ruby/object:Gem::Version
|
|
94
|
-
version: '5.16'
|
|
95
|
-
- !ruby/object:Gem::Dependency
|
|
96
|
-
name: minitest-focus
|
|
97
|
-
requirement: !ruby/object:Gem::Requirement
|
|
98
|
-
requirements:
|
|
99
|
-
- - "~>"
|
|
100
|
-
- !ruby/object:Gem::Version
|
|
101
|
-
version: '1.1'
|
|
102
|
-
type: :development
|
|
103
|
-
prerelease: false
|
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
105
|
-
requirements:
|
|
106
|
-
- - "~>"
|
|
107
|
-
- !ruby/object:Gem::Version
|
|
108
|
-
version: '1.1'
|
|
109
|
-
- !ruby/object:Gem::Dependency
|
|
110
|
-
name: minitest-rg
|
|
111
|
-
requirement: !ruby/object:Gem::Requirement
|
|
112
|
-
requirements:
|
|
113
|
-
- - "~>"
|
|
114
|
-
- !ruby/object:Gem::Version
|
|
115
|
-
version: '5.2'
|
|
116
|
-
type: :development
|
|
117
|
-
prerelease: false
|
|
118
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
119
|
-
requirements:
|
|
120
|
-
- - "~>"
|
|
121
|
-
- !ruby/object:Gem::Version
|
|
122
|
-
version: '5.2'
|
|
123
|
-
- !ruby/object:Gem::Dependency
|
|
124
|
-
name: rake
|
|
125
|
-
requirement: !ruby/object:Gem::Requirement
|
|
126
|
-
requirements:
|
|
127
|
-
- - ">="
|
|
128
|
-
- !ruby/object:Gem::Version
|
|
129
|
-
version: '13.0'
|
|
130
|
-
type: :development
|
|
131
|
-
prerelease: false
|
|
132
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
133
|
-
requirements:
|
|
134
|
-
- - ">="
|
|
135
|
-
- !ruby/object:Gem::Version
|
|
136
|
-
version: '13.0'
|
|
137
|
-
- !ruby/object:Gem::Dependency
|
|
138
|
-
name: redcarpet
|
|
139
|
-
requirement: !ruby/object:Gem::Requirement
|
|
140
|
-
requirements:
|
|
141
|
-
- - "~>"
|
|
142
|
-
- !ruby/object:Gem::Version
|
|
143
|
-
version: '3.0'
|
|
144
|
-
type: :development
|
|
145
|
-
prerelease: false
|
|
146
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
147
|
-
requirements:
|
|
148
|
-
- - "~>"
|
|
149
|
-
- !ruby/object:Gem::Version
|
|
150
|
-
version: '3.0'
|
|
151
|
-
- !ruby/object:Gem::Dependency
|
|
152
|
-
name: simplecov
|
|
153
|
-
requirement: !ruby/object:Gem::Requirement
|
|
154
|
-
requirements:
|
|
155
|
-
- - "~>"
|
|
156
|
-
- !ruby/object:Gem::Version
|
|
157
|
-
version: '0.18'
|
|
158
|
-
type: :development
|
|
159
|
-
prerelease: false
|
|
160
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
161
|
-
requirements:
|
|
162
|
-
- - "~>"
|
|
163
|
-
- !ruby/object:Gem::Version
|
|
164
|
-
version: '0.18'
|
|
165
|
-
- !ruby/object:Gem::Dependency
|
|
166
|
-
name: yard
|
|
167
|
-
requirement: !ruby/object:Gem::Requirement
|
|
168
|
-
requirements:
|
|
169
|
-
- - "~>"
|
|
170
|
-
- !ruby/object:Gem::Version
|
|
171
|
-
version: '0.9'
|
|
172
|
-
type: :development
|
|
173
|
-
prerelease: false
|
|
174
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
175
|
-
requirements:
|
|
176
|
-
- - "~>"
|
|
177
|
-
- !ruby/object:Gem::Version
|
|
178
|
-
version: '0.9'
|
|
179
67
|
description: Google Cloud Memorystore for Memcached API is used for creating and managing
|
|
180
68
|
Memcached instances in GCP. Note that google-cloud-memcache-v1 is a version-specific
|
|
181
69
|
client library. For most uses, we recommend installing the main client library google-cloud-memcache
|
|
@@ -232,14 +120,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
232
120
|
requirements:
|
|
233
121
|
- - ">="
|
|
234
122
|
- !ruby/object:Gem::Version
|
|
235
|
-
version: '2.
|
|
123
|
+
version: '2.7'
|
|
236
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
237
125
|
requirements:
|
|
238
126
|
- - ">="
|
|
239
127
|
- !ruby/object:Gem::Version
|
|
240
128
|
version: '0'
|
|
241
129
|
requirements: []
|
|
242
|
-
rubygems_version: 3.5.
|
|
130
|
+
rubygems_version: 3.5.6
|
|
243
131
|
signing_key:
|
|
244
132
|
specification_version: 4
|
|
245
133
|
summary: Google Cloud Memorystore for Memcached API is used for creating and managing
|