google-cloud-datastore-admin-v1 0.7.1 → 0.8.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/datastore/admin/v1/datastore_admin/client.rb +20 -22
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/operations.rb +12 -14
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/rest/client.rb +877 -0
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/rest/operations.rb +794 -0
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/rest/service_stub.rb +409 -0
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/rest.rb +114 -0
- data/lib/google/cloud/datastore/admin/v1/datastore_admin.rb +6 -0
- data/lib/google/cloud/datastore/admin/v1/rest.rb +39 -0
- data/lib/google/cloud/datastore/admin/v1/version.rb +1 -1
- data/lib/google/cloud/datastore/admin/v1.rb +5 -0
- metadata +13 -7
@@ -0,0 +1,409 @@
|
|
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 "google/datastore/admin/v1/datastore_admin_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Datastore
|
24
|
+
module Admin
|
25
|
+
module V1
|
26
|
+
module DatastoreAdmin
|
27
|
+
module Rest
|
28
|
+
##
|
29
|
+
# REST service stub for the DatastoreAdmin service.
|
30
|
+
# Service stub contains baseline method implementations
|
31
|
+
# including transcoding, making the REST call, and deserialing the response.
|
32
|
+
#
|
33
|
+
class ServiceStub
|
34
|
+
def initialize endpoint:, credentials:
|
35
|
+
# These require statements are intentionally placed here to initialize
|
36
|
+
# the REST modules only when it's required.
|
37
|
+
require "gapic/rest"
|
38
|
+
|
39
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
|
40
|
+
numeric_enums: true,
|
41
|
+
raise_faraday_errors: false
|
42
|
+
end
|
43
|
+
|
44
|
+
##
|
45
|
+
# Baseline implementation for the export_entities REST call
|
46
|
+
#
|
47
|
+
# @param request_pb [::Google::Cloud::Datastore::Admin::V1::ExportEntitiesRequest]
|
48
|
+
# A request object representing the call parameters. Required.
|
49
|
+
# @param options [::Gapic::CallOptions]
|
50
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
51
|
+
#
|
52
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
53
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
54
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
55
|
+
#
|
56
|
+
# @return [::Google::Longrunning::Operation]
|
57
|
+
# A result object deserialized from the server's reply
|
58
|
+
def export_entities request_pb, options = nil
|
59
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
60
|
+
|
61
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_export_entities_request request_pb
|
62
|
+
query_string_params = if query_string_params.any?
|
63
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
64
|
+
else
|
65
|
+
{}
|
66
|
+
end
|
67
|
+
|
68
|
+
response = @client_stub.make_http_request(
|
69
|
+
verb,
|
70
|
+
uri: uri,
|
71
|
+
body: body || "",
|
72
|
+
params: query_string_params,
|
73
|
+
options: options
|
74
|
+
)
|
75
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
76
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
77
|
+
|
78
|
+
yield result, operation if block_given?
|
79
|
+
result
|
80
|
+
end
|
81
|
+
|
82
|
+
##
|
83
|
+
# Baseline implementation for the import_entities REST call
|
84
|
+
#
|
85
|
+
# @param request_pb [::Google::Cloud::Datastore::Admin::V1::ImportEntitiesRequest]
|
86
|
+
# A request object representing the call parameters. Required.
|
87
|
+
# @param options [::Gapic::CallOptions]
|
88
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
89
|
+
#
|
90
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
91
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
92
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
93
|
+
#
|
94
|
+
# @return [::Google::Longrunning::Operation]
|
95
|
+
# A result object deserialized from the server's reply
|
96
|
+
def import_entities request_pb, options = nil
|
97
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
98
|
+
|
99
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_import_entities_request request_pb
|
100
|
+
query_string_params = if query_string_params.any?
|
101
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
102
|
+
else
|
103
|
+
{}
|
104
|
+
end
|
105
|
+
|
106
|
+
response = @client_stub.make_http_request(
|
107
|
+
verb,
|
108
|
+
uri: uri,
|
109
|
+
body: body || "",
|
110
|
+
params: query_string_params,
|
111
|
+
options: options
|
112
|
+
)
|
113
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
114
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
115
|
+
|
116
|
+
yield result, operation if block_given?
|
117
|
+
result
|
118
|
+
end
|
119
|
+
|
120
|
+
##
|
121
|
+
# Baseline implementation for the create_index REST call
|
122
|
+
#
|
123
|
+
# @param request_pb [::Google::Cloud::Datastore::Admin::V1::CreateIndexRequest]
|
124
|
+
# A request object representing the call parameters. Required.
|
125
|
+
# @param options [::Gapic::CallOptions]
|
126
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
127
|
+
#
|
128
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
129
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
130
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
131
|
+
#
|
132
|
+
# @return [::Google::Longrunning::Operation]
|
133
|
+
# A result object deserialized from the server's reply
|
134
|
+
def create_index request_pb, options = nil
|
135
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
136
|
+
|
137
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_index_request request_pb
|
138
|
+
query_string_params = if query_string_params.any?
|
139
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
140
|
+
else
|
141
|
+
{}
|
142
|
+
end
|
143
|
+
|
144
|
+
response = @client_stub.make_http_request(
|
145
|
+
verb,
|
146
|
+
uri: uri,
|
147
|
+
body: body || "",
|
148
|
+
params: query_string_params,
|
149
|
+
options: options
|
150
|
+
)
|
151
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
152
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
153
|
+
|
154
|
+
yield result, operation if block_given?
|
155
|
+
result
|
156
|
+
end
|
157
|
+
|
158
|
+
##
|
159
|
+
# Baseline implementation for the delete_index REST call
|
160
|
+
#
|
161
|
+
# @param request_pb [::Google::Cloud::Datastore::Admin::V1::DeleteIndexRequest]
|
162
|
+
# A request object representing the call parameters. Required.
|
163
|
+
# @param options [::Gapic::CallOptions]
|
164
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
165
|
+
#
|
166
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
167
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
168
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
169
|
+
#
|
170
|
+
# @return [::Google::Longrunning::Operation]
|
171
|
+
# A result object deserialized from the server's reply
|
172
|
+
def delete_index request_pb, options = nil
|
173
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
174
|
+
|
175
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_index_request request_pb
|
176
|
+
query_string_params = if query_string_params.any?
|
177
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
178
|
+
else
|
179
|
+
{}
|
180
|
+
end
|
181
|
+
|
182
|
+
response = @client_stub.make_http_request(
|
183
|
+
verb,
|
184
|
+
uri: uri,
|
185
|
+
body: body || "",
|
186
|
+
params: query_string_params,
|
187
|
+
options: options
|
188
|
+
)
|
189
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
190
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
191
|
+
|
192
|
+
yield result, operation if block_given?
|
193
|
+
result
|
194
|
+
end
|
195
|
+
|
196
|
+
##
|
197
|
+
# Baseline implementation for the get_index REST call
|
198
|
+
#
|
199
|
+
# @param request_pb [::Google::Cloud::Datastore::Admin::V1::GetIndexRequest]
|
200
|
+
# A request object representing the call parameters. Required.
|
201
|
+
# @param options [::Gapic::CallOptions]
|
202
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
203
|
+
#
|
204
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
205
|
+
# @yieldparam result [::Google::Cloud::Datastore::Admin::V1::Index]
|
206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
207
|
+
#
|
208
|
+
# @return [::Google::Cloud::Datastore::Admin::V1::Index]
|
209
|
+
# A result object deserialized from the server's reply
|
210
|
+
def get_index request_pb, options = nil
|
211
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
212
|
+
|
213
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_index_request request_pb
|
214
|
+
query_string_params = if query_string_params.any?
|
215
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
216
|
+
else
|
217
|
+
{}
|
218
|
+
end
|
219
|
+
|
220
|
+
response = @client_stub.make_http_request(
|
221
|
+
verb,
|
222
|
+
uri: uri,
|
223
|
+
body: body || "",
|
224
|
+
params: query_string_params,
|
225
|
+
options: options
|
226
|
+
)
|
227
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
228
|
+
result = ::Google::Cloud::Datastore::Admin::V1::Index.decode_json response.body, ignore_unknown_fields: true
|
229
|
+
|
230
|
+
yield result, operation if block_given?
|
231
|
+
result
|
232
|
+
end
|
233
|
+
|
234
|
+
##
|
235
|
+
# Baseline implementation for the list_indexes REST call
|
236
|
+
#
|
237
|
+
# @param request_pb [::Google::Cloud::Datastore::Admin::V1::ListIndexesRequest]
|
238
|
+
# A request object representing the call parameters. Required.
|
239
|
+
# @param options [::Gapic::CallOptions]
|
240
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
241
|
+
#
|
242
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
243
|
+
# @yieldparam result [::Google::Cloud::Datastore::Admin::V1::ListIndexesResponse]
|
244
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
245
|
+
#
|
246
|
+
# @return [::Google::Cloud::Datastore::Admin::V1::ListIndexesResponse]
|
247
|
+
# A result object deserialized from the server's reply
|
248
|
+
def list_indexes request_pb, options = nil
|
249
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
250
|
+
|
251
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_indexes_request request_pb
|
252
|
+
query_string_params = if query_string_params.any?
|
253
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
254
|
+
else
|
255
|
+
{}
|
256
|
+
end
|
257
|
+
|
258
|
+
response = @client_stub.make_http_request(
|
259
|
+
verb,
|
260
|
+
uri: uri,
|
261
|
+
body: body || "",
|
262
|
+
params: query_string_params,
|
263
|
+
options: options
|
264
|
+
)
|
265
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
266
|
+
result = ::Google::Cloud::Datastore::Admin::V1::ListIndexesResponse.decode_json response.body, ignore_unknown_fields: true
|
267
|
+
|
268
|
+
yield result, operation if block_given?
|
269
|
+
result
|
270
|
+
end
|
271
|
+
|
272
|
+
##
|
273
|
+
# @private
|
274
|
+
#
|
275
|
+
# GRPC transcoding helper method for the export_entities REST call
|
276
|
+
#
|
277
|
+
# @param request_pb [::Google::Cloud::Datastore::Admin::V1::ExportEntitiesRequest]
|
278
|
+
# A request object representing the call parameters. Required.
|
279
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
280
|
+
# Uri, Body, Query string parameters
|
281
|
+
def self.transcode_export_entities_request request_pb
|
282
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
283
|
+
.with_bindings(
|
284
|
+
uri_method: :post,
|
285
|
+
uri_template: "/v1/projects/{project_id}:export",
|
286
|
+
body: "*",
|
287
|
+
matches: [
|
288
|
+
["project_id", %r{^[^/]+/?$}, false]
|
289
|
+
]
|
290
|
+
)
|
291
|
+
transcoder.transcode request_pb
|
292
|
+
end
|
293
|
+
|
294
|
+
##
|
295
|
+
# @private
|
296
|
+
#
|
297
|
+
# GRPC transcoding helper method for the import_entities REST call
|
298
|
+
#
|
299
|
+
# @param request_pb [::Google::Cloud::Datastore::Admin::V1::ImportEntitiesRequest]
|
300
|
+
# A request object representing the call parameters. Required.
|
301
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
302
|
+
# Uri, Body, Query string parameters
|
303
|
+
def self.transcode_import_entities_request request_pb
|
304
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
305
|
+
.with_bindings(
|
306
|
+
uri_method: :post,
|
307
|
+
uri_template: "/v1/projects/{project_id}:import",
|
308
|
+
body: "*",
|
309
|
+
matches: [
|
310
|
+
["project_id", %r{^[^/]+/?$}, false]
|
311
|
+
]
|
312
|
+
)
|
313
|
+
transcoder.transcode request_pb
|
314
|
+
end
|
315
|
+
|
316
|
+
##
|
317
|
+
# @private
|
318
|
+
#
|
319
|
+
# GRPC transcoding helper method for the create_index REST call
|
320
|
+
#
|
321
|
+
# @param request_pb [::Google::Cloud::Datastore::Admin::V1::CreateIndexRequest]
|
322
|
+
# A request object representing the call parameters. Required.
|
323
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
324
|
+
# Uri, Body, Query string parameters
|
325
|
+
def self.transcode_create_index_request request_pb
|
326
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
327
|
+
.with_bindings(
|
328
|
+
uri_method: :post,
|
329
|
+
uri_template: "/v1/projects/{project_id}/indexes",
|
330
|
+
body: "index",
|
331
|
+
matches: [
|
332
|
+
["project_id", %r{^[^/]+/?$}, false]
|
333
|
+
]
|
334
|
+
)
|
335
|
+
transcoder.transcode request_pb
|
336
|
+
end
|
337
|
+
|
338
|
+
##
|
339
|
+
# @private
|
340
|
+
#
|
341
|
+
# GRPC transcoding helper method for the delete_index REST call
|
342
|
+
#
|
343
|
+
# @param request_pb [::Google::Cloud::Datastore::Admin::V1::DeleteIndexRequest]
|
344
|
+
# A request object representing the call parameters. Required.
|
345
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
346
|
+
# Uri, Body, Query string parameters
|
347
|
+
def self.transcode_delete_index_request request_pb
|
348
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
349
|
+
.with_bindings(
|
350
|
+
uri_method: :delete,
|
351
|
+
uri_template: "/v1/projects/{project_id}/indexes/{index_id}",
|
352
|
+
matches: [
|
353
|
+
["project_id", %r{^[^/]+/?$}, false],
|
354
|
+
["index_id", %r{^[^/]+/?$}, false]
|
355
|
+
]
|
356
|
+
)
|
357
|
+
transcoder.transcode request_pb
|
358
|
+
end
|
359
|
+
|
360
|
+
##
|
361
|
+
# @private
|
362
|
+
#
|
363
|
+
# GRPC transcoding helper method for the get_index REST call
|
364
|
+
#
|
365
|
+
# @param request_pb [::Google::Cloud::Datastore::Admin::V1::GetIndexRequest]
|
366
|
+
# A request object representing the call parameters. Required.
|
367
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
368
|
+
# Uri, Body, Query string parameters
|
369
|
+
def self.transcode_get_index_request request_pb
|
370
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
371
|
+
.with_bindings(
|
372
|
+
uri_method: :get,
|
373
|
+
uri_template: "/v1/projects/{project_id}/indexes/{index_id}",
|
374
|
+
matches: [
|
375
|
+
["project_id", %r{^[^/]+/?$}, false],
|
376
|
+
["index_id", %r{^[^/]+/?$}, false]
|
377
|
+
]
|
378
|
+
)
|
379
|
+
transcoder.transcode request_pb
|
380
|
+
end
|
381
|
+
|
382
|
+
##
|
383
|
+
# @private
|
384
|
+
#
|
385
|
+
# GRPC transcoding helper method for the list_indexes REST call
|
386
|
+
#
|
387
|
+
# @param request_pb [::Google::Cloud::Datastore::Admin::V1::ListIndexesRequest]
|
388
|
+
# A request object representing the call parameters. Required.
|
389
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
390
|
+
# Uri, Body, Query string parameters
|
391
|
+
def self.transcode_list_indexes_request request_pb
|
392
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
393
|
+
.with_bindings(
|
394
|
+
uri_method: :get,
|
395
|
+
uri_template: "/v1/projects/{project_id}/indexes",
|
396
|
+
matches: [
|
397
|
+
["project_id", %r{^[^/]+/?$}, false]
|
398
|
+
]
|
399
|
+
)
|
400
|
+
transcoder.transcode request_pb
|
401
|
+
end
|
402
|
+
end
|
403
|
+
end
|
404
|
+
end
|
405
|
+
end
|
406
|
+
end
|
407
|
+
end
|
408
|
+
end
|
409
|
+
end
|
@@ -0,0 +1,114 @@
|
|
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/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/datastore/admin/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/datastore/admin/v1/datastore_admin/credentials"
|
26
|
+
require "google/cloud/datastore/admin/v1/datastore_admin/rest/operations"
|
27
|
+
require "google/cloud/datastore/admin/v1/datastore_admin/rest/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module Datastore
|
32
|
+
module Admin
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# Google Cloud Datastore Admin API
|
36
|
+
#
|
37
|
+
#
|
38
|
+
# The Datastore Admin API provides several admin services for Cloud Datastore.
|
39
|
+
#
|
40
|
+
# -----------------------------------------------------------------------------
|
41
|
+
# ## Concepts
|
42
|
+
#
|
43
|
+
# Project, namespace, kind, and entity as defined in the Google Cloud Datastore
|
44
|
+
# API.
|
45
|
+
#
|
46
|
+
# Operation: An Operation represents work being performed in the background.
|
47
|
+
#
|
48
|
+
# EntityFilter: Allows specifying a subset of entities in a project. This is
|
49
|
+
# specified as a combination of kinds and namespaces (either or both of which
|
50
|
+
# may be all).
|
51
|
+
#
|
52
|
+
# -----------------------------------------------------------------------------
|
53
|
+
# ## Services
|
54
|
+
#
|
55
|
+
# # Export/Import
|
56
|
+
#
|
57
|
+
# The Export/Import service provides the ability to copy all or a subset of
|
58
|
+
# entities to/from Google Cloud Storage.
|
59
|
+
#
|
60
|
+
# Exported data may be imported into Cloud Datastore for any Google Cloud
|
61
|
+
# Platform project. It is not restricted to the export source project. It is
|
62
|
+
# possible to export from one project and then import into another.
|
63
|
+
#
|
64
|
+
# Exported data can also be loaded into Google BigQuery for analysis.
|
65
|
+
#
|
66
|
+
# Exports and imports are performed asynchronously. An Operation resource is
|
67
|
+
# created for each export/import. The state (including any errors encountered)
|
68
|
+
# of the export/import may be queried via the Operation resource.
|
69
|
+
#
|
70
|
+
# # Index
|
71
|
+
#
|
72
|
+
# The index service manages Cloud Datastore composite indexes.
|
73
|
+
#
|
74
|
+
# Index creation and deletion are performed asynchronously.
|
75
|
+
# An Operation resource is created for each such asynchronous operation.
|
76
|
+
# The state of the operation (including any errors encountered)
|
77
|
+
# may be queried via the Operation resource.
|
78
|
+
#
|
79
|
+
# # Operation
|
80
|
+
#
|
81
|
+
# The Operations collection provides a record of actions performed for the
|
82
|
+
# specified project (including any operations in progress). Operations are not
|
83
|
+
# created directly but through calls on other collections or resources.
|
84
|
+
#
|
85
|
+
# An operation that is not yet done may be cancelled. The request to cancel is
|
86
|
+
# asynchronous and the operation may continue to run for some time after the
|
87
|
+
# request to cancel is made.
|
88
|
+
#
|
89
|
+
# An operation that is done may be deleted so that it is no longer listed as
|
90
|
+
# part of the Operation collection.
|
91
|
+
#
|
92
|
+
# ListOperations returns all pending operations, but not completed operations.
|
93
|
+
#
|
94
|
+
# Operations are created by service DatastoreAdmin,
|
95
|
+
# but are accessed via service google.longrunning.Operations.
|
96
|
+
#
|
97
|
+
# To load this service and instantiate a REST client:
|
98
|
+
#
|
99
|
+
# require "google/cloud/datastore/admin/v1/datastore_admin/rest"
|
100
|
+
# client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Rest::Client.new
|
101
|
+
#
|
102
|
+
module DatastoreAdmin
|
103
|
+
# Client for the REST transport
|
104
|
+
module Rest
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
114
|
+
require "google/cloud/datastore/admin/v1/datastore_admin/rest/helpers" if ::File.file? helper_path
|
@@ -25,6 +25,7 @@ require "google/cloud/datastore/admin/v1/version"
|
|
25
25
|
require "google/cloud/datastore/admin/v1/datastore_admin/credentials"
|
26
26
|
require "google/cloud/datastore/admin/v1/datastore_admin/operations"
|
27
27
|
require "google/cloud/datastore/admin/v1/datastore_admin/client"
|
28
|
+
require "google/cloud/datastore/admin/v1/datastore_admin/rest"
|
28
29
|
|
29
30
|
module Google
|
30
31
|
module Cloud
|
@@ -99,6 +100,11 @@ module Google
|
|
99
100
|
# require "google/cloud/datastore/admin/v1/datastore_admin"
|
100
101
|
# client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.new
|
101
102
|
#
|
103
|
+
# @example Load this service and instantiate a REST client
|
104
|
+
#
|
105
|
+
# require "google/cloud/datastore/admin/v1/datastore_admin/rest"
|
106
|
+
# client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Rest::Client.new
|
107
|
+
#
|
102
108
|
module DatastoreAdmin
|
103
109
|
end
|
104
110
|
end
|
@@ -0,0 +1,39 @@
|
|
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 "google/cloud/datastore/admin/v1/datastore_admin/rest"
|
20
|
+
require "google/cloud/datastore/admin/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Datastore
|
25
|
+
module Admin
|
26
|
+
##
|
27
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
#
|
31
|
+
# require "google/cloud/datastore/admin/v1/rest"
|
32
|
+
# client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Rest::Client.new
|
33
|
+
#
|
34
|
+
module V1
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -31,6 +31,11 @@ module Google
|
|
31
31
|
# require "google/cloud/datastore/admin/v1"
|
32
32
|
# client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.new
|
33
33
|
#
|
34
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
35
|
+
#
|
36
|
+
# require "google/cloud/datastore/admin/v1"
|
37
|
+
# client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Rest::Client.new
|
38
|
+
#
|
34
39
|
module V1
|
35
40
|
end
|
36
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-datastore-admin-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.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: 2023-
|
11
|
+
date: 2023-03-08 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.18.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.18.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.26.
|
53
|
+
version: 1.26.3
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.26.
|
60
|
+
version: 1.26.3
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -176,6 +176,11 @@ files:
|
|
176
176
|
- lib/google/cloud/datastore/admin/v1/datastore_admin/client.rb
|
177
177
|
- lib/google/cloud/datastore/admin/v1/datastore_admin/credentials.rb
|
178
178
|
- lib/google/cloud/datastore/admin/v1/datastore_admin/operations.rb
|
179
|
+
- lib/google/cloud/datastore/admin/v1/datastore_admin/rest.rb
|
180
|
+
- lib/google/cloud/datastore/admin/v1/datastore_admin/rest/client.rb
|
181
|
+
- lib/google/cloud/datastore/admin/v1/datastore_admin/rest/operations.rb
|
182
|
+
- lib/google/cloud/datastore/admin/v1/datastore_admin/rest/service_stub.rb
|
183
|
+
- lib/google/cloud/datastore/admin/v1/rest.rb
|
179
184
|
- lib/google/cloud/datastore/admin/v1/version.rb
|
180
185
|
- lib/google/datastore/admin/v1/datastore_admin_pb.rb
|
181
186
|
- lib/google/datastore/admin/v1/datastore_admin_services_pb.rb
|
@@ -217,5 +222,6 @@ requirements: []
|
|
217
222
|
rubygems_version: 3.4.2
|
218
223
|
signing_key:
|
219
224
|
specification_version: 4
|
220
|
-
summary:
|
225
|
+
summary: Accesses the schemaless NoSQL database to provide fully managed, robust,
|
226
|
+
scalable storage for your application.
|
221
227
|
test_files: []
|