google-cloud-datastore-v1 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/datastore/v1/datastore/client.rb +27 -9
- data/lib/google/cloud/datastore/v1/datastore/rest/client.rb +27 -9
- data/lib/google/cloud/datastore/v1/datastore/rest/service_stub.rb +78 -50
- data/lib/google/cloud/datastore/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +19 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bce4adc08222050a5cd91ebe7fb5682dc14923137451cfee856feab22847a84a
|
4
|
+
data.tar.gz: 14943719fad88e1d8ced850cd73f4b00a152082f50f1c8d4bc27312c9a62482f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c54259e5a7eafc81e52c8f72f0a5aca0060f68937b5ed618ba5b71bb2e2f057d2f0b83ee3be4a0a21f0aa094719524a78c1c05d358190b401dff9937c997719
|
7
|
+
data.tar.gz: eb4168dc576d1beb42637ec9e61452974d3c1650a089674c922c78b45cf46cab2f8743c6c71c6aeb4d35adfb0eaad07b0005e4e1fa426be26a5ecb5bb7b422c2
|
data/README.md
CHANGED
@@ -43,33 +43,43 @@ for class and method documentation.
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/datastore)
|
44
44
|
for general usage information.
|
45
45
|
|
46
|
-
##
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
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:
|
55
73
|
|
56
74
|
```ruby
|
75
|
+
require "google/cloud/datastore/v1"
|
57
76
|
require "logger"
|
58
77
|
|
59
|
-
|
60
|
-
|
61
|
-
def logger
|
62
|
-
LOGGER
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
67
|
-
module GRPC
|
68
|
-
extend MyLogger
|
78
|
+
client = ::Google::Cloud::Datastore::V1::Datastore::Client.new do |config|
|
79
|
+
config.logger = Logger.new "my-app.log"
|
69
80
|
end
|
70
81
|
```
|
71
82
|
|
72
|
-
|
73
83
|
## Google Cloud Samples
|
74
84
|
|
75
85
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
@@ -188,8 +188,28 @@ module Google
|
|
188
188
|
universe_domain: @config.universe_domain,
|
189
189
|
channel_args: @config.channel_args,
|
190
190
|
interceptors: @config.interceptors,
|
191
|
-
channel_pool_config: @config.channel_pool
|
191
|
+
channel_pool_config: @config.channel_pool,
|
192
|
+
logger: @config.logger
|
192
193
|
)
|
194
|
+
|
195
|
+
@datastore_stub.stub_logger&.info do |entry|
|
196
|
+
entry.set_system_name
|
197
|
+
entry.set_service
|
198
|
+
entry.message = "Created client for #{entry.service}"
|
199
|
+
entry.set_credentials_fields credentials
|
200
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
201
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
202
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
##
|
207
|
+
# The logger used for request/response debug logging.
|
208
|
+
#
|
209
|
+
# @return [Logger]
|
210
|
+
#
|
211
|
+
def logger
|
212
|
+
@datastore_stub.logger
|
193
213
|
end
|
194
214
|
|
195
215
|
# Service calls
|
@@ -293,7 +313,6 @@ module Google
|
|
293
313
|
|
294
314
|
@datastore_stub.call_rpc :lookup, request, options: options do |response, operation|
|
295
315
|
yield response, operation if block_given?
|
296
|
-
return response
|
297
316
|
end
|
298
317
|
rescue ::GRPC::BadStatus => e
|
299
318
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -407,7 +426,6 @@ module Google
|
|
407
426
|
|
408
427
|
@datastore_stub.call_rpc :run_query, request, options: options do |response, operation|
|
409
428
|
yield response, operation if block_given?
|
410
|
-
return response
|
411
429
|
end
|
412
430
|
rescue ::GRPC::BadStatus => e
|
413
431
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -515,7 +533,6 @@ module Google
|
|
515
533
|
|
516
534
|
@datastore_stub.call_rpc :run_aggregation_query, request, options: options do |response, operation|
|
517
535
|
yield response, operation if block_given?
|
518
|
-
return response
|
519
536
|
end
|
520
537
|
rescue ::GRPC::BadStatus => e
|
521
538
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -611,7 +628,6 @@ module Google
|
|
611
628
|
|
612
629
|
@datastore_stub.call_rpc :begin_transaction, request, options: options do |response, operation|
|
613
630
|
yield response, operation if block_given?
|
614
|
-
return response
|
615
631
|
end
|
616
632
|
rescue ::GRPC::BadStatus => e
|
617
633
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -731,7 +747,6 @@ module Google
|
|
731
747
|
|
732
748
|
@datastore_stub.call_rpc :commit, request, options: options do |response, operation|
|
733
749
|
yield response, operation if block_given?
|
734
|
-
return response
|
735
750
|
end
|
736
751
|
rescue ::GRPC::BadStatus => e
|
737
752
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -828,7 +843,6 @@ module Google
|
|
828
843
|
|
829
844
|
@datastore_stub.call_rpc :rollback, request, options: options do |response, operation|
|
830
845
|
yield response, operation if block_given?
|
831
|
-
return response
|
832
846
|
end
|
833
847
|
rescue ::GRPC::BadStatus => e
|
834
848
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -926,7 +940,6 @@ module Google
|
|
926
940
|
|
927
941
|
@datastore_stub.call_rpc :allocate_ids, request, options: options do |response, operation|
|
928
942
|
yield response, operation if block_given?
|
929
|
-
return response
|
930
943
|
end
|
931
944
|
rescue ::GRPC::BadStatus => e
|
932
945
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1024,7 +1037,6 @@ module Google
|
|
1024
1037
|
|
1025
1038
|
@datastore_stub.call_rpc :reserve_ids, request, options: options do |response, operation|
|
1026
1039
|
yield response, operation if block_given?
|
1027
|
-
return response
|
1028
1040
|
end
|
1029
1041
|
rescue ::GRPC::BadStatus => e
|
1030
1042
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1113,6 +1125,11 @@ module Google
|
|
1113
1125
|
# default endpoint URL. The default value of nil uses the environment
|
1114
1126
|
# universe (usually the default "googleapis.com" universe).
|
1115
1127
|
# @return [::String,nil]
|
1128
|
+
# @!attribute [rw] logger
|
1129
|
+
# A custom logger to use for request/response debug logging, or the value
|
1130
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
1131
|
+
# explicitly disable logging.
|
1132
|
+
# @return [::Logger,:default,nil]
|
1116
1133
|
#
|
1117
1134
|
class Configuration
|
1118
1135
|
extend ::Gapic::Config
|
@@ -1137,6 +1154,7 @@ module Google
|
|
1137
1154
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1138
1155
|
config_attr :quota_project, nil, ::String, nil
|
1139
1156
|
config_attr :universe_domain, nil, ::String, nil
|
1157
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
1140
1158
|
|
1141
1159
|
# @private
|
1142
1160
|
def initialize parent_config = nil
|
@@ -181,8 +181,28 @@ module Google
|
|
181
181
|
endpoint: @config.endpoint,
|
182
182
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
183
183
|
universe_domain: @config.universe_domain,
|
184
|
-
credentials: credentials
|
184
|
+
credentials: credentials,
|
185
|
+
logger: @config.logger
|
185
186
|
)
|
187
|
+
|
188
|
+
@datastore_stub.logger(stub: true)&.info do |entry|
|
189
|
+
entry.set_system_name
|
190
|
+
entry.set_service
|
191
|
+
entry.message = "Created client for #{entry.service}"
|
192
|
+
entry.set_credentials_fields credentials
|
193
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
194
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
195
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
##
|
200
|
+
# The logger used for request/response debug logging.
|
201
|
+
#
|
202
|
+
# @return [Logger]
|
203
|
+
#
|
204
|
+
def logger
|
205
|
+
@datastore_stub.logger
|
186
206
|
end
|
187
207
|
|
188
208
|
# Service calls
|
@@ -276,7 +296,6 @@ module Google
|
|
276
296
|
|
277
297
|
@datastore_stub.lookup request, options do |result, operation|
|
278
298
|
yield result, operation if block_given?
|
279
|
-
return result
|
280
299
|
end
|
281
300
|
rescue ::Gapic::Rest::Error => e
|
282
301
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -380,7 +399,6 @@ module Google
|
|
380
399
|
|
381
400
|
@datastore_stub.run_query request, options do |result, operation|
|
382
401
|
yield result, operation if block_given?
|
383
|
-
return result
|
384
402
|
end
|
385
403
|
rescue ::Gapic::Rest::Error => e
|
386
404
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -478,7 +496,6 @@ module Google
|
|
478
496
|
|
479
497
|
@datastore_stub.run_aggregation_query request, options do |result, operation|
|
480
498
|
yield result, operation if block_given?
|
481
|
-
return result
|
482
499
|
end
|
483
500
|
rescue ::Gapic::Rest::Error => e
|
484
501
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -564,7 +581,6 @@ module Google
|
|
564
581
|
|
565
582
|
@datastore_stub.begin_transaction request, options do |result, operation|
|
566
583
|
yield result, operation if block_given?
|
567
|
-
return result
|
568
584
|
end
|
569
585
|
rescue ::Gapic::Rest::Error => e
|
570
586
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -674,7 +690,6 @@ module Google
|
|
674
690
|
|
675
691
|
@datastore_stub.commit request, options do |result, operation|
|
676
692
|
yield result, operation if block_given?
|
677
|
-
return result
|
678
693
|
end
|
679
694
|
rescue ::Gapic::Rest::Error => e
|
680
695
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -761,7 +776,6 @@ module Google
|
|
761
776
|
|
762
777
|
@datastore_stub.rollback request, options do |result, operation|
|
763
778
|
yield result, operation if block_given?
|
764
|
-
return result
|
765
779
|
end
|
766
780
|
rescue ::Gapic::Rest::Error => e
|
767
781
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -849,7 +863,6 @@ module Google
|
|
849
863
|
|
850
864
|
@datastore_stub.allocate_ids request, options do |result, operation|
|
851
865
|
yield result, operation if block_given?
|
852
|
-
return result
|
853
866
|
end
|
854
867
|
rescue ::Gapic::Rest::Error => e
|
855
868
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -937,7 +950,6 @@ module Google
|
|
937
950
|
|
938
951
|
@datastore_stub.reserve_ids request, options do |result, operation|
|
939
952
|
yield result, operation if block_given?
|
940
|
-
return result
|
941
953
|
end
|
942
954
|
rescue ::Gapic::Rest::Error => e
|
943
955
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1017,6 +1029,11 @@ module Google
|
|
1017
1029
|
# default endpoint URL. The default value of nil uses the environment
|
1018
1030
|
# universe (usually the default "googleapis.com" universe).
|
1019
1031
|
# @return [::String,nil]
|
1032
|
+
# @!attribute [rw] logger
|
1033
|
+
# A custom logger to use for request/response debug logging, or the value
|
1034
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
1035
|
+
# explicitly disable logging.
|
1036
|
+
# @return [::Logger,:default,nil]
|
1020
1037
|
#
|
1021
1038
|
class Configuration
|
1022
1039
|
extend ::Gapic::Config
|
@@ -1038,6 +1055,7 @@ module Google
|
|
1038
1055
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1039
1056
|
config_attr :quota_project, nil, ::String, nil
|
1040
1057
|
config_attr :universe_domain, nil, ::String, nil
|
1058
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
1041
1059
|
|
1042
1060
|
# @private
|
1043
1061
|
def initialize parent_config = nil
|
@@ -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 lookup 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: "lookup",
|
93
106
|
options: options
|
94
107
|
)
|
95
108
|
operation = ::Gapic::Rest::TransportOperation.new response
|
96
109
|
result = ::Google::Cloud::Datastore::V1::LookupResponse.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: "run_query",
|
131
146
|
options: options
|
132
147
|
)
|
133
148
|
operation = ::Gapic::Rest::TransportOperation.new response
|
134
149
|
result = ::Google::Cloud::Datastore::V1::RunQueryResponse.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: "run_aggregation_query",
|
169
186
|
options: options
|
170
187
|
)
|
171
188
|
operation = ::Gapic::Rest::TransportOperation.new response
|
172
189
|
result = ::Google::Cloud::Datastore::V1::RunAggregationQueryResponse.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: "begin_transaction",
|
207
226
|
options: options
|
208
227
|
)
|
209
228
|
operation = ::Gapic::Rest::TransportOperation.new response
|
210
229
|
result = ::Google::Cloud::Datastore::V1::BeginTransactionResponse.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: "commit",
|
245
266
|
options: options
|
246
267
|
)
|
247
268
|
operation = ::Gapic::Rest::TransportOperation.new response
|
248
269
|
result = ::Google::Cloud::Datastore::V1::CommitResponse.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: "rollback",
|
283
306
|
options: options
|
284
307
|
)
|
285
308
|
operation = ::Gapic::Rest::TransportOperation.new response
|
286
309
|
result = ::Google::Cloud::Datastore::V1::RollbackResponse.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
|
##
|
@@ -315,16 +339,18 @@ module Google
|
|
315
339
|
|
316
340
|
response = @client_stub.make_http_request(
|
317
341
|
verb,
|
318
|
-
uri:
|
319
|
-
body:
|
320
|
-
params:
|
342
|
+
uri: uri,
|
343
|
+
body: body || "",
|
344
|
+
params: query_string_params,
|
345
|
+
method_name: "allocate_ids",
|
321
346
|
options: options
|
322
347
|
)
|
323
348
|
operation = ::Gapic::Rest::TransportOperation.new response
|
324
349
|
result = ::Google::Cloud::Datastore::V1::AllocateIdsResponse.decode_json response.body, ignore_unknown_fields: true
|
325
|
-
|
326
|
-
|
327
|
-
|
350
|
+
catch :response do
|
351
|
+
yield result, operation if block_given?
|
352
|
+
result
|
353
|
+
end
|
328
354
|
end
|
329
355
|
|
330
356
|
##
|
@@ -353,16 +379,18 @@ module Google
|
|
353
379
|
|
354
380
|
response = @client_stub.make_http_request(
|
355
381
|
verb,
|
356
|
-
uri:
|
357
|
-
body:
|
358
|
-
params:
|
382
|
+
uri: uri,
|
383
|
+
body: body || "",
|
384
|
+
params: query_string_params,
|
385
|
+
method_name: "reserve_ids",
|
359
386
|
options: options
|
360
387
|
)
|
361
388
|
operation = ::Gapic::Rest::TransportOperation.new response
|
362
389
|
result = ::Google::Cloud::Datastore::V1::ReserveIdsResponse.decode_json response.body, ignore_unknown_fields: true
|
363
|
-
|
364
|
-
|
365
|
-
|
390
|
+
catch :response do
|
391
|
+
yield result, operation if block_given?
|
392
|
+
result
|
393
|
+
end
|
366
394
|
end
|
367
395
|
|
368
396
|
##
|
@@ -306,9 +306,28 @@ module Google
|
|
306
306
|
# @!attribute [rw] common
|
307
307
|
# @return [::Google::Api::CommonLanguageSettings]
|
308
308
|
# Some settings.
|
309
|
+
# @!attribute [rw] renamed_services
|
310
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
311
|
+
# Map of service names to renamed services. Keys are the package relative
|
312
|
+
# service names and values are the name to be used for the service client
|
313
|
+
# and call options.
|
314
|
+
#
|
315
|
+
# publishing:
|
316
|
+
# go_settings:
|
317
|
+
# renamed_services:
|
318
|
+
# Publisher: TopicAdmin
|
309
319
|
class GoSettings
|
310
320
|
include ::Google::Protobuf::MessageExts
|
311
321
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
322
|
+
|
323
|
+
# @!attribute [rw] key
|
324
|
+
# @return [::String]
|
325
|
+
# @!attribute [rw] value
|
326
|
+
# @return [::String]
|
327
|
+
class RenamedServicesEntry
|
328
|
+
include ::Google::Protobuf::MessageExts
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
330
|
+
end
|
312
331
|
end
|
313
332
|
|
314
333
|
# Describes the generator configuration for a method.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-datastore-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.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-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.24.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.24.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
|
-
rubygems_version: 3.5.
|
111
|
+
rubygems_version: 3.5.23
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: Accesses the schemaless NoSQL database to provide fully managed, robust,
|