google-cloud-firestore-admin-v1 0.7.1 → 0.9.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 +2 -2
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/client.rb +30 -34
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/operations.rb +14 -16
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/rest/client.rb +1289 -0
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/rest/operations.rb +795 -0
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/rest/service_stub.rb +763 -0
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/rest.rb +82 -0
- data/lib/google/cloud/firestore/admin/v1/firestore_admin.rb +6 -0
- data/lib/google/cloud/firestore/admin/v1/rest.rb +39 -0
- data/lib/google/cloud/firestore/admin/v1/version.rb +1 -1
- data/lib/google/cloud/firestore/admin/v1.rb +5 -0
- data/lib/google/firestore/admin/v1/index_pb.rb +7 -0
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/firestore/admin/v1/index.rb +24 -6
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44272042c309e5302eec5551cd6a25645a0b73d4cc0beec3f9adf8670bb41248
|
4
|
+
data.tar.gz: 2d6525b835a1fa295c255479e83f4212aa309dd3427178109d7aa49bd71dcaf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f033088ffadc96e0ad1ab201745f0b16656bf799ac926afc7d9239aa4c1ce5097f41adf73de2a7a005381af6393da8680b525a4a7c57955f6af205de37a4e5d6
|
7
|
+
data.tar.gz: cea92f85b56fde40ef31de9a3a9f6282cc9bd7680b812638e88f9b842c3a7b3c505de6b15847c679679604cc008d8db2a045e1ad0b1eec317b20870a6a587f47
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Cloud Firestore Admin V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development.
|
4
4
|
|
5
5
|
Cloud Firestore is a NoSQL document database built for automatic scaling, high performance, and ease of application development.
|
6
6
|
|
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -278,14 +278,14 @@ module Google
|
|
278
278
|
# # Call the create_index method.
|
279
279
|
# result = client.create_index request
|
280
280
|
#
|
281
|
-
# # The returned object is of type Gapic::Operation. You can use
|
282
|
-
# #
|
283
|
-
# #
|
281
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
282
|
+
# # check the status of an operation, cancel it, or wait for results.
|
283
|
+
# # Here is how to wait for a response.
|
284
284
|
# result.wait_until_done! timeout: 60
|
285
285
|
# if result.response?
|
286
286
|
# p result.response
|
287
287
|
# else
|
288
|
-
# puts "
|
288
|
+
# puts "No response received."
|
289
289
|
# end
|
290
290
|
#
|
291
291
|
def create_index request, options = nil
|
@@ -380,13 +380,11 @@ module Google
|
|
380
380
|
# # Call the list_indexes method.
|
381
381
|
# result = client.list_indexes request
|
382
382
|
#
|
383
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
384
|
-
# #
|
385
|
-
#
|
386
|
-
# # methods are also available for managing paging directly.
|
387
|
-
# result.each do |response|
|
383
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
384
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
385
|
+
# result.each do |item|
|
388
386
|
# # Each element is of type ::Google::Cloud::Firestore::Admin::V1::Index.
|
389
|
-
# p
|
387
|
+
# p item
|
390
388
|
# end
|
391
389
|
#
|
392
390
|
def list_indexes request, options = nil
|
@@ -745,14 +743,14 @@ module Google
|
|
745
743
|
# # Call the update_field method.
|
746
744
|
# result = client.update_field request
|
747
745
|
#
|
748
|
-
# # The returned object is of type Gapic::Operation. You can use
|
749
|
-
# #
|
750
|
-
# #
|
746
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
747
|
+
# # check the status of an operation, cancel it, or wait for results.
|
748
|
+
# # Here is how to wait for a response.
|
751
749
|
# result.wait_until_done! timeout: 60
|
752
750
|
# if result.response?
|
753
751
|
# p result.response
|
754
752
|
# else
|
755
|
-
# puts "
|
753
|
+
# puts "No response received."
|
756
754
|
# end
|
757
755
|
#
|
758
756
|
def update_field request, options = nil
|
@@ -856,13 +854,11 @@ module Google
|
|
856
854
|
# # Call the list_fields method.
|
857
855
|
# result = client.list_fields request
|
858
856
|
#
|
859
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
860
|
-
# #
|
861
|
-
#
|
862
|
-
# # methods are also available for managing paging directly.
|
863
|
-
# result.each do |response|
|
857
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
858
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
859
|
+
# result.each do |item|
|
864
860
|
# # Each element is of type ::Google::Cloud::Firestore::Admin::V1::Field.
|
865
|
-
# p
|
861
|
+
# p item
|
866
862
|
# end
|
867
863
|
#
|
868
864
|
def list_fields request, options = nil
|
@@ -970,14 +966,14 @@ module Google
|
|
970
966
|
# # Call the export_documents method.
|
971
967
|
# result = client.export_documents request
|
972
968
|
#
|
973
|
-
# # The returned object is of type Gapic::Operation. You can use
|
974
|
-
# #
|
975
|
-
# #
|
969
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
970
|
+
# # check the status of an operation, cancel it, or wait for results.
|
971
|
+
# # Here is how to wait for a response.
|
976
972
|
# result.wait_until_done! timeout: 60
|
977
973
|
# if result.response?
|
978
974
|
# p result.response
|
979
975
|
# else
|
980
|
-
# puts "
|
976
|
+
# puts "No response received."
|
981
977
|
# end
|
982
978
|
#
|
983
979
|
def export_documents request, options = nil
|
@@ -1077,14 +1073,14 @@ module Google
|
|
1077
1073
|
# # Call the import_documents method.
|
1078
1074
|
# result = client.import_documents request
|
1079
1075
|
#
|
1080
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1081
|
-
# #
|
1082
|
-
# #
|
1076
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1077
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1078
|
+
# # Here is how to wait for a response.
|
1083
1079
|
# result.wait_until_done! timeout: 60
|
1084
1080
|
# if result.response?
|
1085
1081
|
# p result.response
|
1086
1082
|
# else
|
1087
|
-
# puts "
|
1083
|
+
# puts "No response received."
|
1088
1084
|
# end
|
1089
1085
|
#
|
1090
1086
|
def import_documents request, options = nil
|
@@ -1344,14 +1340,14 @@ module Google
|
|
1344
1340
|
# # Call the update_database method.
|
1345
1341
|
# result = client.update_database request
|
1346
1342
|
#
|
1347
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1348
|
-
# #
|
1349
|
-
# #
|
1343
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1344
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1345
|
+
# # Here is how to wait for a response.
|
1350
1346
|
# result.wait_until_done! timeout: 60
|
1351
1347
|
# if result.response?
|
1352
1348
|
# p result.response
|
1353
1349
|
# else
|
1354
|
-
# puts "
|
1350
|
+
# puts "No response received."
|
1355
1351
|
# end
|
1356
1352
|
#
|
1357
1353
|
def update_database request, options = nil
|
@@ -1434,9 +1430,9 @@ module Google
|
|
1434
1430
|
# * (`String`) The path to a service account key file in JSON format
|
1435
1431
|
# * (`Hash`) A service account key as a Hash
|
1436
1432
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1437
|
-
# (see the [googleauth docs](https://
|
1433
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1438
1434
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1439
|
-
# (see the [signet docs](https://
|
1435
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1440
1436
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1441
1437
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1442
1438
|
# * (`nil`) indicating no credentials
|
@@ -159,13 +159,11 @@ module Google
|
|
159
159
|
# # Call the list_operations method.
|
160
160
|
# result = client.list_operations request
|
161
161
|
#
|
162
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
163
|
-
# #
|
164
|
-
#
|
165
|
-
# # methods are also available for managing paging directly.
|
166
|
-
# result.each do |response|
|
162
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
163
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
164
|
+
# result.each do |item|
|
167
165
|
# # Each element is of type ::Google::Longrunning::Operation.
|
168
|
-
# p
|
166
|
+
# p item
|
169
167
|
# end
|
170
168
|
#
|
171
169
|
def list_operations request, options = nil
|
@@ -254,14 +252,14 @@ module Google
|
|
254
252
|
# # Call the get_operation method.
|
255
253
|
# result = client.get_operation request
|
256
254
|
#
|
257
|
-
# # The returned object is of type Gapic::Operation. You can use
|
258
|
-
# #
|
259
|
-
# #
|
255
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
256
|
+
# # check the status of an operation, cancel it, or wait for results.
|
257
|
+
# # Here is how to wait for a response.
|
260
258
|
# result.wait_until_done! timeout: 60
|
261
259
|
# if result.response?
|
262
260
|
# p result.response
|
263
261
|
# else
|
264
|
-
# puts "
|
262
|
+
# puts "No response received."
|
265
263
|
# end
|
266
264
|
#
|
267
265
|
def get_operation request, options = nil
|
@@ -541,14 +539,14 @@ module Google
|
|
541
539
|
# # Call the wait_operation method.
|
542
540
|
# result = client.wait_operation request
|
543
541
|
#
|
544
|
-
# # The returned object is of type Gapic::Operation. You can use
|
545
|
-
# #
|
546
|
-
# #
|
542
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
543
|
+
# # check the status of an operation, cancel it, or wait for results.
|
544
|
+
# # Here is how to wait for a response.
|
547
545
|
# result.wait_until_done! timeout: 60
|
548
546
|
# if result.response?
|
549
547
|
# p result.response
|
550
548
|
# else
|
551
|
-
# puts "
|
549
|
+
# puts "No response received."
|
552
550
|
# end
|
553
551
|
#
|
554
552
|
def wait_operation request, options = nil
|
@@ -623,9 +621,9 @@ module Google
|
|
623
621
|
# * (`String`) The path to a service account key file in JSON format
|
624
622
|
# * (`Hash`) A service account key as a Hash
|
625
623
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
626
|
-
# (see the [googleauth docs](https://
|
624
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
627
625
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
628
|
-
# (see the [signet docs](https://
|
626
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
629
627
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
630
628
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
631
629
|
# * (`nil`) indicating no credentials
|