google-cloud-memcache-v1beta2 0.4.0 → 0.5.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/v1beta2/bindings_override.rb +102 -0
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache/client.rb +32 -34
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache/operations.rb +12 -14
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache/rest/client.rb +1043 -0
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache/rest/operations.rb +793 -0
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache/rest/service_stub.rb +585 -0
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache/rest.rb +68 -0
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache.rb +7 -1
- data/lib/google/cloud/memcache/v1beta2/rest.rb +38 -0
- data/lib/google/cloud/memcache/v1beta2/version.rb +1 -1
- data/lib/google/cloud/memcache/v1beta2.rb +7 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +17 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81b2144f905c79db0e000e2d34dce16e717e17a08702ba77673bfae297d39f43
|
4
|
+
data.tar.gz: 047ffa0de0e1dab1f364a481ed189200e440de86679c58d8f4312a71aa3dbeff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d5a059338bd05d84e1adb9ddcd9523ffa7c04b8cf7bf7c0cb46e50c3372da7e09268f62af195c280173ea17c1499b8d2956b7c92e42bbb606a6838b7cb9c393
|
7
|
+
data.tar.gz: 83173c7140b895800ba0cc17331f27af8fafc70fb94f4751ed7bd465d59047eed4da978eba162dfca3deec3adb1e290ea2b9c8b176d8e892f12df6659944ea40
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Google Cloud Memorystore for Memcached API
|
2
2
|
|
3
|
-
|
3
|
+
Google Cloud Memorystore for Memcached API is used for creating and managing Memcached instances in GCP.
|
4
4
|
|
5
5
|
Google Cloud Memorystore for Memcached API is used for creating and managing Memcached instances in GCP.
|
6
6
|
|
@@ -0,0 +1,102 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/config"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Memcache
|
24
|
+
##
|
25
|
+
# @example Loading just the REST part of this package, including all its services, and instantiating a REST client
|
26
|
+
#
|
27
|
+
# require "google/cloud/memcache/v1beta2/rest"
|
28
|
+
# client = ::Google::Cloud::Memcache::V1beta2::CloudMemcache::Rest::Client.new
|
29
|
+
#
|
30
|
+
module V1beta2
|
31
|
+
##
|
32
|
+
# @private
|
33
|
+
# Initialize the mixin bindings configuration
|
34
|
+
#
|
35
|
+
def self.configure
|
36
|
+
@configure ||= begin
|
37
|
+
namespace = ["Google", "Cloud", "Memcache"]
|
38
|
+
parent_config = while namespace.any?
|
39
|
+
parent_name = namespace.join "::"
|
40
|
+
parent_const = const_get parent_name
|
41
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
42
|
+
namespace.pop
|
43
|
+
end
|
44
|
+
|
45
|
+
default_config = Configuration.new parent_config
|
46
|
+
default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
|
47
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
48
|
+
uri_method: :get,
|
49
|
+
uri_template: "/v1beta2/{name}",
|
50
|
+
matches: [
|
51
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
52
|
+
],
|
53
|
+
body: nil
|
54
|
+
)
|
55
|
+
]
|
56
|
+
default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
|
57
|
+
|
58
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
59
|
+
uri_method: :get,
|
60
|
+
uri_template: "/v1beta2/{name}/locations",
|
61
|
+
matches: [
|
62
|
+
["name", %r{^projects/[^/]+/?$}, false]
|
63
|
+
],
|
64
|
+
body: nil
|
65
|
+
)
|
66
|
+
]
|
67
|
+
default_config
|
68
|
+
end
|
69
|
+
yield @configure if block_given?
|
70
|
+
@configure
|
71
|
+
end
|
72
|
+
|
73
|
+
##
|
74
|
+
# @private
|
75
|
+
# Configuration class for the google.cloud.memcache.v1beta2 package.
|
76
|
+
#
|
77
|
+
# This class contains common configuration for all services
|
78
|
+
# of the google.cloud.memcache.v1beta2 package.
|
79
|
+
#
|
80
|
+
# This configuration is for internal use of the client library classes,
|
81
|
+
# and it is not intended that the end-users will read or change it.
|
82
|
+
#
|
83
|
+
class Configuration
|
84
|
+
extend ::Gapic::Config
|
85
|
+
|
86
|
+
# @private
|
87
|
+
# Overrides for http bindings for the RPC of the mixins for this package.
|
88
|
+
# Services in this package should use these when creating clients for the mixin services.
|
89
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
90
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
91
|
+
|
92
|
+
# @private
|
93
|
+
def initialize parent_config = nil
|
94
|
+
@parent_config = parent_config unless parent_config.nil?
|
95
|
+
|
96
|
+
yield self if block_given?
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -261,13 +261,11 @@ module Google
|
|
261
261
|
# # Call the list_instances method.
|
262
262
|
# result = client.list_instances request
|
263
263
|
#
|
264
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
265
|
-
# #
|
266
|
-
#
|
267
|
-
# # methods are also available for managing paging directly.
|
268
|
-
# result.each do |response|
|
264
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
265
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
266
|
+
# result.each do |item|
|
269
267
|
# # Each element is of type ::Google::Cloud::Memcache::V1beta2::Instance.
|
270
|
-
# p
|
268
|
+
# p item
|
271
269
|
# end
|
272
270
|
#
|
273
271
|
def list_instances request, options = nil
|
@@ -455,14 +453,14 @@ module Google
|
|
455
453
|
# # Call the create_instance method.
|
456
454
|
# result = client.create_instance request
|
457
455
|
#
|
458
|
-
# # The returned object is of type Gapic::Operation. You can use
|
459
|
-
# #
|
460
|
-
# #
|
456
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
457
|
+
# # check the status of an operation, cancel it, or wait for results.
|
458
|
+
# # Here is how to wait for a response.
|
461
459
|
# result.wait_until_done! timeout: 60
|
462
460
|
# if result.response?
|
463
461
|
# p result.response
|
464
462
|
# else
|
465
|
-
# puts "
|
463
|
+
# puts "No response received."
|
466
464
|
# end
|
467
465
|
#
|
468
466
|
def create_instance request, options = nil
|
@@ -553,14 +551,14 @@ module Google
|
|
553
551
|
# # Call the update_instance method.
|
554
552
|
# result = client.update_instance request
|
555
553
|
#
|
556
|
-
# # The returned object is of type Gapic::Operation. You can use
|
557
|
-
# #
|
558
|
-
# #
|
554
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
555
|
+
# # check the status of an operation, cancel it, or wait for results.
|
556
|
+
# # Here is how to wait for a response.
|
559
557
|
# result.wait_until_done! timeout: 60
|
560
558
|
# if result.response?
|
561
559
|
# p result.response
|
562
560
|
# else
|
563
|
-
# puts "
|
561
|
+
# puts "No response received."
|
564
562
|
# end
|
565
563
|
#
|
566
564
|
def update_instance request, options = nil
|
@@ -654,14 +652,14 @@ module Google
|
|
654
652
|
# # Call the update_parameters method.
|
655
653
|
# result = client.update_parameters request
|
656
654
|
#
|
657
|
-
# # The returned object is of type Gapic::Operation. You can use
|
658
|
-
# #
|
659
|
-
# #
|
655
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
656
|
+
# # check the status of an operation, cancel it, or wait for results.
|
657
|
+
# # Here is how to wait for a response.
|
660
658
|
# result.wait_until_done! timeout: 60
|
661
659
|
# if result.response?
|
662
660
|
# p result.response
|
663
661
|
# else
|
664
|
-
# puts "
|
662
|
+
# puts "No response received."
|
665
663
|
# end
|
666
664
|
#
|
667
665
|
def update_parameters request, options = nil
|
@@ -749,14 +747,14 @@ module Google
|
|
749
747
|
# # Call the delete_instance method.
|
750
748
|
# result = client.delete_instance request
|
751
749
|
#
|
752
|
-
# # The returned object is of type Gapic::Operation. You can use
|
753
|
-
# #
|
754
|
-
# #
|
750
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
751
|
+
# # check the status of an operation, cancel it, or wait for results.
|
752
|
+
# # Here is how to wait for a response.
|
755
753
|
# result.wait_until_done! timeout: 60
|
756
754
|
# if result.response?
|
757
755
|
# p result.response
|
758
756
|
# else
|
759
|
-
# puts "
|
757
|
+
# puts "No response received."
|
760
758
|
# end
|
761
759
|
#
|
762
760
|
def delete_instance request, options = nil
|
@@ -850,14 +848,14 @@ module Google
|
|
850
848
|
# # Call the apply_parameters method.
|
851
849
|
# result = client.apply_parameters request
|
852
850
|
#
|
853
|
-
# # The returned object is of type Gapic::Operation. You can use
|
854
|
-
# #
|
855
|
-
# #
|
851
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
852
|
+
# # check the status of an operation, cancel it, or wait for results.
|
853
|
+
# # Here is how to wait for a response.
|
856
854
|
# result.wait_until_done! timeout: 60
|
857
855
|
# if result.response?
|
858
856
|
# p result.response
|
859
857
|
# else
|
860
|
-
# puts "
|
858
|
+
# puts "No response received."
|
861
859
|
# end
|
862
860
|
#
|
863
861
|
def apply_parameters request, options = nil
|
@@ -951,14 +949,14 @@ module Google
|
|
951
949
|
# # Call the apply_software_update method.
|
952
950
|
# result = client.apply_software_update request
|
953
951
|
#
|
954
|
-
# # The returned object is of type Gapic::Operation. You can use
|
955
|
-
# #
|
956
|
-
# #
|
952
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
953
|
+
# # check the status of an operation, cancel it, or wait for results.
|
954
|
+
# # Here is how to wait for a response.
|
957
955
|
# result.wait_until_done! timeout: 60
|
958
956
|
# if result.response?
|
959
957
|
# p result.response
|
960
958
|
# else
|
961
|
-
# puts "
|
959
|
+
# puts "No response received."
|
962
960
|
# end
|
963
961
|
#
|
964
962
|
def apply_software_update request, options = nil
|
@@ -1052,14 +1050,14 @@ module Google
|
|
1052
1050
|
# # Call the reschedule_maintenance method.
|
1053
1051
|
# result = client.reschedule_maintenance request
|
1054
1052
|
#
|
1055
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1056
|
-
# #
|
1057
|
-
# #
|
1053
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1054
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1055
|
+
# # Here is how to wait for a response.
|
1058
1056
|
# result.wait_until_done! timeout: 60
|
1059
1057
|
# if result.response?
|
1060
1058
|
# p result.response
|
1061
1059
|
# else
|
1062
|
-
# puts "
|
1060
|
+
# puts "No response received."
|
1063
1061
|
# end
|
1064
1062
|
#
|
1065
1063
|
def reschedule_maintenance request, options = nil
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|