google-cloud-memorystore-v1beta 0.1.0 → 0.3.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 +37 -1
- data/lib/google/cloud/memorystore/v1beta/memorystore/rest/client.rb +38 -7
- data/lib/google/cloud/memorystore/v1beta/memorystore/rest/operations.rb +47 -28
- data/lib/google/cloud/memorystore/v1beta/memorystore/rest/service_stub.rb +62 -38
- data/lib/google/cloud/memorystore/v1beta/version.rb +1 -1
- data/proto_docs/google/cloud/memorystore/v1beta/memorystore.rb +4 -0
- data/proto_docs/google/longrunning/operations.rb +4 -0
- metadata +6 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a87ad6b36b3485f3c5ce4eb934127ba5c97ef51f85b29085f207508f6e10df82
|
4
|
+
data.tar.gz: be7be07e643099ebc8ff202fd5c611c4afd98c2b534d36e1d003b6a795883bb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0bed9b1d80cb3f64b4caf0eba9dfd635b546d6769dcf463862586efd37289eeda75e4cd8f341c14d062c4606e06cada348df4494a60cb7f182c5f80a32d37a9
|
7
|
+
data.tar.gz: 856de1be95589c5f42c8f3b961c492d5e68cb48118983c6d173ab7504b0f6c94476d1dab477ec4fb375a1b27545ce593d3c86aaf3ebb040d5d0a31db231d7fc9
|
data/README.md
CHANGED
@@ -43,6 +43,42 @@ for class and method documentation.
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/memorystore/docs/valkey)
|
44
44
|
for general usage information.
|
45
45
|
|
46
|
+
## Debug Logging
|
47
|
+
|
48
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
49
|
+
your application's integration with the API. When logging is activated, key
|
50
|
+
events such as requests and responses, along with data payloads and metadata
|
51
|
+
such as headers and client configuration, are logged to the standard error
|
52
|
+
stream.
|
53
|
+
|
54
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
55
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
56
|
+
customers, private keys, or other security data that could be compromising if
|
57
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
58
|
+
the principle of least access. Google also recommends that Client Library Debug
|
59
|
+
Logging be enabled only temporarily during active debugging, and not used
|
60
|
+
permanently in production.
|
61
|
+
|
62
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
63
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
64
|
+
list of client library gem names. This will select the default logging behavior,
|
65
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
66
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
67
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
68
|
+
results in logs appearing alongside your application logs in the
|
69
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
70
|
+
|
71
|
+
You can customize logging by modifying the `logger` configuration when
|
72
|
+
constructing a client object. For example:
|
73
|
+
|
74
|
+
```ruby
|
75
|
+
require "google/cloud/memorystore/v1beta"
|
76
|
+
require "logger"
|
77
|
+
|
78
|
+
client = ::Google::Cloud::Memorystore::V1beta::Memorystore::Rest::Client.new do |config|
|
79
|
+
config.logger = Logger.new "my-app.log"
|
80
|
+
end
|
81
|
+
```
|
46
82
|
|
47
83
|
## Google Cloud Samples
|
48
84
|
|
@@ -50,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
50
86
|
|
51
87
|
## Supported Ruby Versions
|
52
88
|
|
53
|
-
This library is supported on Ruby
|
89
|
+
This library is supported on Ruby 3.0+.
|
54
90
|
|
55
91
|
Google provides official support for Ruby versions that are actively supported
|
56
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -179,15 +179,27 @@ module Google
|
|
179
179
|
endpoint: @config.endpoint,
|
180
180
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
181
181
|
universe_domain: @config.universe_domain,
|
182
|
-
credentials: credentials
|
182
|
+
credentials: credentials,
|
183
|
+
logger: @config.logger
|
183
184
|
)
|
184
185
|
|
186
|
+
@memorystore_stub.logger(stub: true)&.info do |entry|
|
187
|
+
entry.set_system_name
|
188
|
+
entry.set_service
|
189
|
+
entry.message = "Created client for #{entry.service}"
|
190
|
+
entry.set_credentials_fields credentials
|
191
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
192
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
193
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
194
|
+
end
|
195
|
+
|
185
196
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
186
197
|
config.credentials = credentials
|
187
198
|
config.quota_project = @quota_project_id
|
188
199
|
config.endpoint = @memorystore_stub.endpoint
|
189
200
|
config.universe_domain = @memorystore_stub.universe_domain
|
190
201
|
config.bindings_override = @config.bindings_override
|
202
|
+
config.logger = @memorystore_stub.logger if config.respond_to? :logger=
|
191
203
|
end
|
192
204
|
end
|
193
205
|
|
@@ -205,6 +217,15 @@ module Google
|
|
205
217
|
#
|
206
218
|
attr_reader :location_client
|
207
219
|
|
220
|
+
##
|
221
|
+
# The logger used for request/response debug logging.
|
222
|
+
#
|
223
|
+
# @return [Logger]
|
224
|
+
#
|
225
|
+
def logger
|
226
|
+
@memorystore_stub.logger
|
227
|
+
end
|
228
|
+
|
208
229
|
# Service calls
|
209
230
|
|
210
231
|
##
|
@@ -295,7 +316,6 @@ module Google
|
|
295
316
|
|
296
317
|
@memorystore_stub.list_instances request, options do |result, operation|
|
297
318
|
yield result, operation if block_given?
|
298
|
-
return result
|
299
319
|
end
|
300
320
|
rescue ::Gapic::Rest::Error => e
|
301
321
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -375,7 +395,6 @@ module Google
|
|
375
395
|
|
376
396
|
@memorystore_stub.get_instance request, options do |result, operation|
|
377
397
|
yield result, operation if block_given?
|
378
|
-
return result
|
379
398
|
end
|
380
399
|
rescue ::Gapic::Rest::Error => e
|
381
400
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -490,7 +509,7 @@ module Google
|
|
490
509
|
@memorystore_stub.create_instance request, options do |result, operation|
|
491
510
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
492
511
|
yield result, operation if block_given?
|
493
|
-
|
512
|
+
throw :response, result
|
494
513
|
end
|
495
514
|
rescue ::Gapic::Rest::Error => e
|
496
515
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -594,7 +613,7 @@ module Google
|
|
594
613
|
@memorystore_stub.update_instance request, options do |result, operation|
|
595
614
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
596
615
|
yield result, operation if block_given?
|
597
|
-
|
616
|
+
throw :response, result
|
598
617
|
end
|
599
618
|
rescue ::Gapic::Rest::Error => e
|
600
619
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -696,7 +715,7 @@ module Google
|
|
696
715
|
@memorystore_stub.delete_instance request, options do |result, operation|
|
697
716
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
698
717
|
yield result, operation if block_given?
|
699
|
-
|
718
|
+
throw :response, result
|
700
719
|
end
|
701
720
|
rescue ::Gapic::Rest::Error => e
|
702
721
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -777,7 +796,6 @@ module Google
|
|
777
796
|
|
778
797
|
@memorystore_stub.get_certificate_authority request, options do |result, operation|
|
779
798
|
yield result, operation if block_given?
|
780
|
-
return result
|
781
799
|
end
|
782
800
|
rescue ::Gapic::Rest::Error => e
|
783
801
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -825,6 +843,13 @@ module Google
|
|
825
843
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
826
844
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
827
845
|
# * (`nil`) indicating no credentials
|
846
|
+
#
|
847
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
848
|
+
# external source for authentication to Google Cloud, you must validate it before
|
849
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
850
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
851
|
+
# For more information, refer to [Validate credential configurations from external
|
852
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
828
853
|
# @return [::Object]
|
829
854
|
# @!attribute [rw] scope
|
830
855
|
# The OAuth scopes
|
@@ -857,6 +882,11 @@ module Google
|
|
857
882
|
# default endpoint URL. The default value of nil uses the environment
|
858
883
|
# universe (usually the default "googleapis.com" universe).
|
859
884
|
# @return [::String,nil]
|
885
|
+
# @!attribute [rw] logger
|
886
|
+
# A custom logger to use for request/response debug logging, or the value
|
887
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
888
|
+
# explicitly disable logging.
|
889
|
+
# @return [::Logger,:default,nil]
|
860
890
|
#
|
861
891
|
class Configuration
|
862
892
|
extend ::Gapic::Config
|
@@ -885,6 +915,7 @@ module Google
|
|
885
915
|
# by the host service.
|
886
916
|
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
887
917
|
config_attr :bindings_override, {}, ::Hash, nil
|
918
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
888
919
|
|
889
920
|
# @private
|
890
921
|
def initialize parent_config = nil
|
@@ -196,7 +196,7 @@ module Google
|
|
196
196
|
@operations_stub.list_operations request, options do |result, operation|
|
197
197
|
result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options
|
198
198
|
yield result, operation if block_given?
|
199
|
-
|
199
|
+
throw :response, result
|
200
200
|
end
|
201
201
|
rescue ::Gapic::Rest::Error => e
|
202
202
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -285,7 +285,7 @@ module Google
|
|
285
285
|
@operations_stub.get_operation request, options do |result, operation|
|
286
286
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
287
287
|
yield result, operation if block_given?
|
288
|
-
|
288
|
+
throw :response, result
|
289
289
|
end
|
290
290
|
rescue ::Gapic::Rest::Error => e
|
291
291
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -367,7 +367,6 @@ module Google
|
|
367
367
|
|
368
368
|
@operations_stub.delete_operation request, options do |result, operation|
|
369
369
|
yield result, operation if block_given?
|
370
|
-
return result
|
371
370
|
end
|
372
371
|
rescue ::Gapic::Rest::Error => e
|
373
372
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -456,7 +455,6 @@ module Google
|
|
456
455
|
|
457
456
|
@operations_stub.cancel_operation request, options do |result, operation|
|
458
457
|
yield result, operation if block_given?
|
459
|
-
return result
|
460
458
|
end
|
461
459
|
rescue ::Gapic::Rest::Error => e
|
462
460
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -504,6 +502,13 @@ module Google
|
|
504
502
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
505
503
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
506
504
|
# * (`nil`) indicating no credentials
|
505
|
+
#
|
506
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
507
|
+
# external source for authentication to Google Cloud, you must validate it before
|
508
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
509
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
510
|
+
# For more information, refer to [Validate credential configurations from external
|
511
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
507
512
|
# @return [::Object]
|
508
513
|
# @!attribute [rw] scope
|
509
514
|
# The OAuth scopes
|
@@ -536,6 +541,11 @@ module Google
|
|
536
541
|
# default endpoint URL. The default value of nil uses the environment
|
537
542
|
# universe (usually the default "googleapis.com" universe).
|
538
543
|
# @return [::String,nil]
|
544
|
+
# @!attribute [rw] logger
|
545
|
+
# A custom logger to use for request/response debug logging, or the value
|
546
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
547
|
+
# explicitly disable logging.
|
548
|
+
# @return [::Logger,:default,nil]
|
539
549
|
#
|
540
550
|
class Configuration
|
541
551
|
extend ::Gapic::Config
|
@@ -557,6 +567,7 @@ module Google
|
|
557
567
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
558
568
|
config_attr :quota_project, nil, ::String, nil
|
559
569
|
config_attr :universe_domain, nil, ::String, nil
|
570
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
560
571
|
|
561
572
|
# @private
|
562
573
|
def initialize parent_config = nil
|
@@ -676,16 +687,18 @@ module Google
|
|
676
687
|
|
677
688
|
response = @client_stub.make_http_request(
|
678
689
|
verb,
|
679
|
-
uri:
|
680
|
-
body:
|
681
|
-
params:
|
690
|
+
uri: uri,
|
691
|
+
body: body || "",
|
692
|
+
params: query_string_params,
|
693
|
+
method_name: "list_operations",
|
682
694
|
options: options
|
683
695
|
)
|
684
696
|
operation = ::Gapic::Rest::TransportOperation.new response
|
685
697
|
result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true
|
686
|
-
|
687
|
-
|
688
|
-
|
698
|
+
catch :response do
|
699
|
+
yield result, operation if block_given?
|
700
|
+
result
|
701
|
+
end
|
689
702
|
end
|
690
703
|
|
691
704
|
##
|
@@ -714,16 +727,18 @@ module Google
|
|
714
727
|
|
715
728
|
response = @client_stub.make_http_request(
|
716
729
|
verb,
|
717
|
-
uri:
|
718
|
-
body:
|
719
|
-
params:
|
730
|
+
uri: uri,
|
731
|
+
body: body || "",
|
732
|
+
params: query_string_params,
|
733
|
+
method_name: "get_operation",
|
720
734
|
options: options
|
721
735
|
)
|
722
736
|
operation = ::Gapic::Rest::TransportOperation.new response
|
723
737
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
724
|
-
|
725
|
-
|
726
|
-
|
738
|
+
catch :response do
|
739
|
+
yield result, operation if block_given?
|
740
|
+
result
|
741
|
+
end
|
727
742
|
end
|
728
743
|
|
729
744
|
##
|
@@ -752,16 +767,18 @@ module Google
|
|
752
767
|
|
753
768
|
response = @client_stub.make_http_request(
|
754
769
|
verb,
|
755
|
-
uri:
|
756
|
-
body:
|
757
|
-
params:
|
770
|
+
uri: uri,
|
771
|
+
body: body || "",
|
772
|
+
params: query_string_params,
|
773
|
+
method_name: "delete_operation",
|
758
774
|
options: options
|
759
775
|
)
|
760
776
|
operation = ::Gapic::Rest::TransportOperation.new response
|
761
777
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
762
|
-
|
763
|
-
|
764
|
-
|
778
|
+
catch :response do
|
779
|
+
yield result, operation if block_given?
|
780
|
+
result
|
781
|
+
end
|
765
782
|
end
|
766
783
|
|
767
784
|
##
|
@@ -790,16 +807,18 @@ module Google
|
|
790
807
|
|
791
808
|
response = @client_stub.make_http_request(
|
792
809
|
verb,
|
793
|
-
uri:
|
794
|
-
body:
|
795
|
-
params:
|
810
|
+
uri: uri,
|
811
|
+
body: body || "",
|
812
|
+
params: query_string_params,
|
813
|
+
method_name: "cancel_operation",
|
796
814
|
options: options
|
797
815
|
)
|
798
816
|
operation = ::Gapic::Rest::TransportOperation.new response
|
799
817
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
800
|
-
|
801
|
-
|
802
|
-
|
818
|
+
catch :response do
|
819
|
+
yield result, operation if block_given?
|
820
|
+
result
|
821
|
+
end
|
803
822
|
end
|
804
823
|
|
805
824
|
##
|
@@ -30,7 +30,8 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
|
33
|
+
# @private
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
34
35
|
# These require statements are intentionally placed here to initialize
|
35
36
|
# the REST modules only when it's required.
|
36
37
|
require "gapic/rest"
|
@@ -40,7 +41,9 @@ module Google
|
|
40
41
|
universe_domain: universe_domain,
|
41
42
|
credentials: credentials,
|
42
43
|
numeric_enums: true,
|
43
|
-
|
44
|
+
service_name: self.class,
|
45
|
+
raise_faraday_errors: false,
|
46
|
+
logger: logger
|
44
47
|
end
|
45
48
|
|
46
49
|
##
|
@@ -61,6 +64,15 @@ module Google
|
|
61
64
|
@client_stub.endpoint
|
62
65
|
end
|
63
66
|
|
67
|
+
##
|
68
|
+
# The logger used for request/response debug logging.
|
69
|
+
#
|
70
|
+
# @return [Logger]
|
71
|
+
#
|
72
|
+
def logger stub: false
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
74
|
+
end
|
75
|
+
|
64
76
|
##
|
65
77
|
# Baseline implementation for the list_instances REST call
|
66
78
|
#
|
@@ -87,16 +99,18 @@ module Google
|
|
87
99
|
|
88
100
|
response = @client_stub.make_http_request(
|
89
101
|
verb,
|
90
|
-
uri:
|
91
|
-
body:
|
92
|
-
params:
|
102
|
+
uri: uri,
|
103
|
+
body: body || "",
|
104
|
+
params: query_string_params,
|
105
|
+
method_name: "list_instances",
|
93
106
|
options: options
|
94
107
|
)
|
95
108
|
operation = ::Gapic::Rest::TransportOperation.new response
|
96
109
|
result = ::Google::Cloud::Memorystore::V1beta::ListInstancesResponse.decode_json response.body, ignore_unknown_fields: true
|
97
|
-
|
98
|
-
|
99
|
-
|
110
|
+
catch :response do
|
111
|
+
yield result, operation if block_given?
|
112
|
+
result
|
113
|
+
end
|
100
114
|
end
|
101
115
|
|
102
116
|
##
|
@@ -125,16 +139,18 @@ module Google
|
|
125
139
|
|
126
140
|
response = @client_stub.make_http_request(
|
127
141
|
verb,
|
128
|
-
uri:
|
129
|
-
body:
|
130
|
-
params:
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "get_instance",
|
131
146
|
options: options
|
132
147
|
)
|
133
148
|
operation = ::Gapic::Rest::TransportOperation.new response
|
134
149
|
result = ::Google::Cloud::Memorystore::V1beta::Instance.decode_json response.body, ignore_unknown_fields: true
|
135
|
-
|
136
|
-
|
137
|
-
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
138
154
|
end
|
139
155
|
|
140
156
|
##
|
@@ -163,16 +179,18 @@ module Google
|
|
163
179
|
|
164
180
|
response = @client_stub.make_http_request(
|
165
181
|
verb,
|
166
|
-
uri:
|
167
|
-
body:
|
168
|
-
params:
|
182
|
+
uri: uri,
|
183
|
+
body: body || "",
|
184
|
+
params: query_string_params,
|
185
|
+
method_name: "create_instance",
|
169
186
|
options: options
|
170
187
|
)
|
171
188
|
operation = ::Gapic::Rest::TransportOperation.new response
|
172
189
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
173
|
-
|
174
|
-
|
175
|
-
|
190
|
+
catch :response do
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
176
194
|
end
|
177
195
|
|
178
196
|
##
|
@@ -201,16 +219,18 @@ module Google
|
|
201
219
|
|
202
220
|
response = @client_stub.make_http_request(
|
203
221
|
verb,
|
204
|
-
uri:
|
205
|
-
body:
|
206
|
-
params:
|
222
|
+
uri: uri,
|
223
|
+
body: body || "",
|
224
|
+
params: query_string_params,
|
225
|
+
method_name: "update_instance",
|
207
226
|
options: options
|
208
227
|
)
|
209
228
|
operation = ::Gapic::Rest::TransportOperation.new response
|
210
229
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
211
|
-
|
212
|
-
|
213
|
-
|
230
|
+
catch :response do
|
231
|
+
yield result, operation if block_given?
|
232
|
+
result
|
233
|
+
end
|
214
234
|
end
|
215
235
|
|
216
236
|
##
|
@@ -239,16 +259,18 @@ module Google
|
|
239
259
|
|
240
260
|
response = @client_stub.make_http_request(
|
241
261
|
verb,
|
242
|
-
uri:
|
243
|
-
body:
|
244
|
-
params:
|
262
|
+
uri: uri,
|
263
|
+
body: body || "",
|
264
|
+
params: query_string_params,
|
265
|
+
method_name: "delete_instance",
|
245
266
|
options: options
|
246
267
|
)
|
247
268
|
operation = ::Gapic::Rest::TransportOperation.new response
|
248
269
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
249
|
-
|
250
|
-
|
251
|
-
|
270
|
+
catch :response do
|
271
|
+
yield result, operation if block_given?
|
272
|
+
result
|
273
|
+
end
|
252
274
|
end
|
253
275
|
|
254
276
|
##
|
@@ -277,16 +299,18 @@ module Google
|
|
277
299
|
|
278
300
|
response = @client_stub.make_http_request(
|
279
301
|
verb,
|
280
|
-
uri:
|
281
|
-
body:
|
282
|
-
params:
|
302
|
+
uri: uri,
|
303
|
+
body: body || "",
|
304
|
+
params: query_string_params,
|
305
|
+
method_name: "get_certificate_authority",
|
283
306
|
options: options
|
284
307
|
)
|
285
308
|
operation = ::Gapic::Rest::TransportOperation.new response
|
286
309
|
result = ::Google::Cloud::Memorystore::V1beta::CertificateAuthority.decode_json response.body, ignore_unknown_fields: true
|
287
|
-
|
288
|
-
|
289
|
-
|
310
|
+
catch :response do
|
311
|
+
yield result, operation if block_given?
|
312
|
+
result
|
313
|
+
end
|
290
314
|
end
|
291
315
|
|
292
316
|
##
|
@@ -135,9 +135,13 @@ module Google
|
|
135
135
|
# @return [::Google::Cloud::Memorystore::V1beta::PscAutoConnection]
|
136
136
|
# Detailed information of a PSC connection that is created through
|
137
137
|
# service connectivity automation.
|
138
|
+
#
|
139
|
+
# Note: The following fields are mutually exclusive: `psc_auto_connection`, `psc_connection`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
138
140
|
# @!attribute [rw] psc_connection
|
139
141
|
# @return [::Google::Cloud::Memorystore::V1beta::PscConnection]
|
140
142
|
# Detailed information of a PSC connection that is created by the user.
|
143
|
+
#
|
144
|
+
# Note: The following fields are mutually exclusive: `psc_connection`, `psc_auto_connection`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
141
145
|
class ConnectionDetail
|
142
146
|
include ::Google::Protobuf::MessageExts
|
143
147
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -40,6 +40,8 @@ module Google
|
|
40
40
|
# @!attribute [rw] error
|
41
41
|
# @return [::Google::Rpc::Status]
|
42
42
|
# The error result of the operation in case of failure or cancellation.
|
43
|
+
#
|
44
|
+
# Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
43
45
|
# @!attribute [rw] response
|
44
46
|
# @return [::Google::Protobuf::Any]
|
45
47
|
# The normal, successful response of the operation. If the original
|
@@ -50,6 +52,8 @@ module Google
|
|
50
52
|
# is the original method name. For example, if the original method name
|
51
53
|
# is `TakeSnapshot()`, the inferred response type is
|
52
54
|
# `TakeSnapshotResponse`.
|
55
|
+
#
|
56
|
+
# Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
53
57
|
class Operation
|
54
58
|
include ::Google::Protobuf::MessageExts
|
55
59
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-memorystore-v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: gapic-common
|
@@ -16,7 +15,7 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
18
|
+
version: 0.25.0
|
20
19
|
- - "<"
|
21
20
|
- !ruby/object:Gem::Version
|
22
21
|
version: 2.a
|
@@ -26,7 +25,7 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
28
|
+
version: 0.25.0
|
30
29
|
- - "<"
|
31
30
|
- !ruby/object:Gem::Version
|
32
31
|
version: 2.a
|
@@ -109,7 +108,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
109
108
|
licenses:
|
110
109
|
- Apache-2.0
|
111
110
|
metadata: {}
|
112
|
-
post_install_message:
|
113
111
|
rdoc_options: []
|
114
112
|
require_paths:
|
115
113
|
- lib
|
@@ -117,15 +115,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
115
|
requirements:
|
118
116
|
- - ">="
|
119
117
|
- !ruby/object:Gem::Version
|
120
|
-
version: '
|
118
|
+
version: '3.0'
|
121
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
120
|
requirements:
|
123
121
|
- - ">="
|
124
122
|
- !ruby/object:Gem::Version
|
125
123
|
version: '0'
|
126
124
|
requirements: []
|
127
|
-
rubygems_version: 3.
|
128
|
-
signing_key:
|
125
|
+
rubygems_version: 3.6.2
|
129
126
|
specification_version: 4
|
130
127
|
summary: API Client library for the Memorystore V1BETA API
|
131
128
|
test_files: []
|