google-cloud-memcache-v1beta2 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91bf192b96040627805e8cd460327d3869a86a74bfb6db5d77d0a14b63d278be
4
- data.tar.gz: f9d7d75068eda528cc6ae2173985e0ae4d701f157c73039388da70fd215d541f
3
+ metadata.gz: 81b2144f905c79db0e000e2d34dce16e717e17a08702ba77673bfae297d39f43
4
+ data.tar.gz: 047ffa0de0e1dab1f364a481ed189200e440de86679c58d8f4312a71aa3dbeff
5
5
  SHA512:
6
- metadata.gz: a9176bf7f27f96c87a4415d52b0eb729f062f87003aa4f2224fe01a6698e36c02fe0836bb30dd2030701105802f2df8bf1d293ae9b74a97ed4269508db6102b6
7
- data.tar.gz: 333a285cc12eb70377ec051662db2e9a87a22e884f5976565a42a0f8ad00c961442c1e422c985337661fb08cf304e793e8c7ef65398d14374ca4d5f061b22473
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
- API Client library for the Google Cloud Memorystore for Memcached API
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
- # # iterate over all elements by calling #each, and the enumerable
266
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
459
- # # object to check the status of an operation, cancel it, or wait
460
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
557
- # # object to check the status of an operation, cancel it, or wait
558
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
658
- # # object to check the status of an operation, cancel it, or wait
659
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
753
- # # object to check the status of an operation, cancel it, or wait
754
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
854
- # # object to check the status of an operation, cancel it, or wait
855
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
955
- # # object to check the status of an operation, cancel it, or wait
956
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1056
- # # object to check the status of an operation, cancel it, or wait
1057
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
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 "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil