google-cloud-datastore-admin-v1 0.9.1 → 0.10.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/lib/google/cloud/datastore/admin/v1/datastore_admin/client.rb +10 -1
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/operations.rb +10 -1
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/rest/client.rb +128 -0
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/rest/operations.rb +75 -0
- data/lib/google/cloud/datastore/admin/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -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: 01d444ab7da6e96d26e14d0a84e23138482b5b1394776bb8becd916b64fc740c
|
4
|
+
data.tar.gz: ba98bcf3c45c9ba6ad78a5d6a666120d19ee276c16a4d24df8663f6553b154ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccd3302671a971abcbd23a64a5c2e4aff2334e3c5e530c3df137d9d5f65a1ad8c8d9a7240272fbd8150891df4609c402696d4773ac2e5cfa23dc5a2c049744e3
|
7
|
+
data.tar.gz: fde243633af62f8564cadf188f7f1030e6356773f43741a393313775e9928f43babe3a3e91c418e9d90d37a84c5e0295006d9b8303560992eb9ce4da9e7e5892
|
@@ -207,7 +207,8 @@ module Google
|
|
207
207
|
credentials: credentials,
|
208
208
|
endpoint: @config.endpoint,
|
209
209
|
channel_args: @config.channel_args,
|
210
|
-
interceptors: @config.interceptors
|
210
|
+
interceptors: @config.interceptors,
|
211
|
+
channel_pool_config: @config.channel_pool
|
211
212
|
)
|
212
213
|
end
|
213
214
|
|
@@ -986,6 +987,14 @@ module Google
|
|
986
987
|
end
|
987
988
|
end
|
988
989
|
|
990
|
+
##
|
991
|
+
# Configuration for the channel pool
|
992
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
993
|
+
#
|
994
|
+
def channel_pool
|
995
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
996
|
+
end
|
997
|
+
|
989
998
|
##
|
990
999
|
# Configuration RPC class for the DatastoreAdmin API.
|
991
1000
|
#
|
@@ -94,7 +94,8 @@ module Google
|
|
94
94
|
credentials: credentials,
|
95
95
|
endpoint: @config.endpoint,
|
96
96
|
channel_args: @config.channel_args,
|
97
|
-
interceptors: @config.interceptors
|
97
|
+
interceptors: @config.interceptors,
|
98
|
+
channel_pool_config: @config.channel_pool
|
98
99
|
)
|
99
100
|
|
100
101
|
# Used by an LRO wrapper for some methods of this service
|
@@ -702,6 +703,14 @@ module Google
|
|
702
703
|
end
|
703
704
|
end
|
704
705
|
|
706
|
+
##
|
707
|
+
# Configuration for the channel pool
|
708
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
709
|
+
#
|
710
|
+
def channel_pool
|
711
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
712
|
+
end
|
713
|
+
|
705
714
|
##
|
706
715
|
# Configuration RPC class for the Operations API.
|
707
716
|
#
|
@@ -268,6 +268,29 @@ module Google
|
|
268
268
|
# @return [::Gapic::Operation]
|
269
269
|
#
|
270
270
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
271
|
+
#
|
272
|
+
# @example Basic example
|
273
|
+
# require "google/cloud/datastore/admin/v1"
|
274
|
+
#
|
275
|
+
# # Create a client object. The client can be reused for multiple calls.
|
276
|
+
# client = Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Rest::Client.new
|
277
|
+
#
|
278
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
279
|
+
# request = Google::Cloud::Datastore::Admin::V1::ExportEntitiesRequest.new
|
280
|
+
#
|
281
|
+
# # Call the export_entities method.
|
282
|
+
# result = client.export_entities request
|
283
|
+
#
|
284
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
285
|
+
# # check the status of an operation, cancel it, or wait for results.
|
286
|
+
# # Here is how to wait for a response.
|
287
|
+
# result.wait_until_done! timeout: 60
|
288
|
+
# if result.response?
|
289
|
+
# p result.response
|
290
|
+
# else
|
291
|
+
# puts "No response received."
|
292
|
+
# end
|
293
|
+
#
|
271
294
|
def export_entities request, options = nil
|
272
295
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
296
|
|
@@ -357,6 +380,29 @@ module Google
|
|
357
380
|
# @return [::Gapic::Operation]
|
358
381
|
#
|
359
382
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
383
|
+
#
|
384
|
+
# @example Basic example
|
385
|
+
# require "google/cloud/datastore/admin/v1"
|
386
|
+
#
|
387
|
+
# # Create a client object. The client can be reused for multiple calls.
|
388
|
+
# client = Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Rest::Client.new
|
389
|
+
#
|
390
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
391
|
+
# request = Google::Cloud::Datastore::Admin::V1::ImportEntitiesRequest.new
|
392
|
+
#
|
393
|
+
# # Call the import_entities method.
|
394
|
+
# result = client.import_entities request
|
395
|
+
#
|
396
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
397
|
+
# # check the status of an operation, cancel it, or wait for results.
|
398
|
+
# # Here is how to wait for a response.
|
399
|
+
# result.wait_until_done! timeout: 60
|
400
|
+
# if result.response?
|
401
|
+
# p result.response
|
402
|
+
# else
|
403
|
+
# puts "No response received."
|
404
|
+
# end
|
405
|
+
#
|
360
406
|
def import_entities request, options = nil
|
361
407
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
362
408
|
|
@@ -436,6 +482,29 @@ module Google
|
|
436
482
|
# @return [::Gapic::Operation]
|
437
483
|
#
|
438
484
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
485
|
+
#
|
486
|
+
# @example Basic example
|
487
|
+
# require "google/cloud/datastore/admin/v1"
|
488
|
+
#
|
489
|
+
# # Create a client object. The client can be reused for multiple calls.
|
490
|
+
# client = Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Rest::Client.new
|
491
|
+
#
|
492
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
493
|
+
# request = Google::Cloud::Datastore::Admin::V1::CreateIndexRequest.new
|
494
|
+
#
|
495
|
+
# # Call the create_index method.
|
496
|
+
# result = client.create_index request
|
497
|
+
#
|
498
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
499
|
+
# # check the status of an operation, cancel it, or wait for results.
|
500
|
+
# # Here is how to wait for a response.
|
501
|
+
# result.wait_until_done! timeout: 60
|
502
|
+
# if result.response?
|
503
|
+
# p result.response
|
504
|
+
# else
|
505
|
+
# puts "No response received."
|
506
|
+
# end
|
507
|
+
#
|
439
508
|
def create_index request, options = nil
|
440
509
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
441
510
|
|
@@ -511,6 +580,29 @@ module Google
|
|
511
580
|
# @return [::Gapic::Operation]
|
512
581
|
#
|
513
582
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
583
|
+
#
|
584
|
+
# @example Basic example
|
585
|
+
# require "google/cloud/datastore/admin/v1"
|
586
|
+
#
|
587
|
+
# # Create a client object. The client can be reused for multiple calls.
|
588
|
+
# client = Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Rest::Client.new
|
589
|
+
#
|
590
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
591
|
+
# request = Google::Cloud::Datastore::Admin::V1::DeleteIndexRequest.new
|
592
|
+
#
|
593
|
+
# # Call the delete_index method.
|
594
|
+
# result = client.delete_index request
|
595
|
+
#
|
596
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
597
|
+
# # check the status of an operation, cancel it, or wait for results.
|
598
|
+
# # Here is how to wait for a response.
|
599
|
+
# result.wait_until_done! timeout: 60
|
600
|
+
# if result.response?
|
601
|
+
# p result.response
|
602
|
+
# else
|
603
|
+
# puts "No response received."
|
604
|
+
# end
|
605
|
+
#
|
514
606
|
def delete_index request, options = nil
|
515
607
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
516
608
|
|
@@ -576,6 +668,22 @@ module Google
|
|
576
668
|
# @return [::Google::Cloud::Datastore::Admin::V1::Index]
|
577
669
|
#
|
578
670
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
671
|
+
#
|
672
|
+
# @example Basic example
|
673
|
+
# require "google/cloud/datastore/admin/v1"
|
674
|
+
#
|
675
|
+
# # Create a client object. The client can be reused for multiple calls.
|
676
|
+
# client = Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Rest::Client.new
|
677
|
+
#
|
678
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
679
|
+
# request = Google::Cloud::Datastore::Admin::V1::GetIndexRequest.new
|
680
|
+
#
|
681
|
+
# # Call the get_index method.
|
682
|
+
# result = client.get_index request
|
683
|
+
#
|
684
|
+
# # The returned object is of type Google::Cloud::Datastore::Admin::V1::Index.
|
685
|
+
# p result
|
686
|
+
#
|
579
687
|
def get_index request, options = nil
|
580
688
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
581
689
|
|
@@ -646,6 +754,26 @@ module Google
|
|
646
754
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Datastore::Admin::V1::Index>]
|
647
755
|
#
|
648
756
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
757
|
+
#
|
758
|
+
# @example Basic example
|
759
|
+
# require "google/cloud/datastore/admin/v1"
|
760
|
+
#
|
761
|
+
# # Create a client object. The client can be reused for multiple calls.
|
762
|
+
# client = Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Rest::Client.new
|
763
|
+
#
|
764
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
765
|
+
# request = Google::Cloud::Datastore::Admin::V1::ListIndexesRequest.new
|
766
|
+
#
|
767
|
+
# # Call the list_indexes method.
|
768
|
+
# result = client.list_indexes request
|
769
|
+
#
|
770
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
771
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
772
|
+
# result.each do |item|
|
773
|
+
# # Each element is of type ::Google::Cloud::Datastore::Admin::V1::Index.
|
774
|
+
# p item
|
775
|
+
# end
|
776
|
+
#
|
649
777
|
def list_indexes request, options = nil
|
650
778
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
651
779
|
|
@@ -137,6 +137,26 @@ module Google
|
|
137
137
|
# @return [::Gapic::Operation]
|
138
138
|
#
|
139
139
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
140
|
+
#
|
141
|
+
# @example Basic example
|
142
|
+
# require "google/longrunning"
|
143
|
+
#
|
144
|
+
# # Create a client object. The client can be reused for multiple calls.
|
145
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
146
|
+
#
|
147
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
148
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
149
|
+
#
|
150
|
+
# # Call the list_operations method.
|
151
|
+
# result = client.list_operations request
|
152
|
+
#
|
153
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
154
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
155
|
+
# result.each do |item|
|
156
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
157
|
+
# p item
|
158
|
+
# end
|
159
|
+
#
|
140
160
|
def list_operations request, options = nil
|
141
161
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
142
162
|
|
@@ -202,6 +222,29 @@ module Google
|
|
202
222
|
# @return [::Gapic::Operation]
|
203
223
|
#
|
204
224
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
225
|
+
#
|
226
|
+
# @example Basic example
|
227
|
+
# require "google/longrunning"
|
228
|
+
#
|
229
|
+
# # Create a client object. The client can be reused for multiple calls.
|
230
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
231
|
+
#
|
232
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
233
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
234
|
+
#
|
235
|
+
# # Call the get_operation method.
|
236
|
+
# result = client.get_operation request
|
237
|
+
#
|
238
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
239
|
+
# # check the status of an operation, cancel it, or wait for results.
|
240
|
+
# # Here is how to wait for a response.
|
241
|
+
# result.wait_until_done! timeout: 60
|
242
|
+
# if result.response?
|
243
|
+
# p result.response
|
244
|
+
# else
|
245
|
+
# puts "No response received."
|
246
|
+
# end
|
247
|
+
#
|
205
248
|
def get_operation request, options = nil
|
206
249
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
207
250
|
|
@@ -268,6 +311,22 @@ module Google
|
|
268
311
|
# @return [::Google::Protobuf::Empty]
|
269
312
|
#
|
270
313
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
314
|
+
#
|
315
|
+
# @example Basic example
|
316
|
+
# require "google/longrunning"
|
317
|
+
#
|
318
|
+
# # Create a client object. The client can be reused for multiple calls.
|
319
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
320
|
+
#
|
321
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
322
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
323
|
+
#
|
324
|
+
# # Call the delete_operation method.
|
325
|
+
# result = client.delete_operation request
|
326
|
+
#
|
327
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
328
|
+
# p result
|
329
|
+
#
|
271
330
|
def delete_operation request, options = nil
|
272
331
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
332
|
|
@@ -339,6 +398,22 @@ module Google
|
|
339
398
|
# @return [::Google::Protobuf::Empty]
|
340
399
|
#
|
341
400
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
401
|
+
#
|
402
|
+
# @example Basic example
|
403
|
+
# require "google/longrunning"
|
404
|
+
#
|
405
|
+
# # Create a client object. The client can be reused for multiple calls.
|
406
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
407
|
+
#
|
408
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
409
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
410
|
+
#
|
411
|
+
# # Call the cancel_operation method.
|
412
|
+
# result = client.cancel_operation request
|
413
|
+
#
|
414
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
415
|
+
# p result
|
416
|
+
#
|
342
417
|
def cancel_operation request, options = nil
|
343
418
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
344
419
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
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.10.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-09-12 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.20.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.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
219
|
- !ruby/object:Gem::Version
|
220
220
|
version: '0'
|
221
221
|
requirements: []
|
222
|
-
rubygems_version: 3.4.
|
222
|
+
rubygems_version: 3.4.19
|
223
223
|
signing_key:
|
224
224
|
specification_version: 4
|
225
225
|
summary: Accesses the schemaless NoSQL database to provide fully managed, robust,
|