google-cloud-firestore-admin-v1 0.7.0 → 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 +5 -5
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/client.rb +28 -32
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/operations.rb +12 -14
- 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 +7 -1
- 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 +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +20 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8332e8f997799ea3eca52fa8b19300bfac3c708835eadda9f4fdba79beddbe0
|
4
|
+
data.tar.gz: d3d92ee8ccc16ca13091baa7e42fbfa270ef20f89fc782980fcd7aa602bbd32b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d95fab527f7af306d03f515a4ed0ff6e95e5ad2240ec847ec3aab727200126c69c29881e3070f97f90e5ff5cd28188ccaf8f7f75d7562b86c8289cb8197b2fce
|
7
|
+
data.tar.gz: bc83c74251f2056b3ade43dcb58008244ee91175813f48cc47bb6744a5d14501439acec1868f64cfec9e3d8029b22056d62752760b529df3188c501e1b7553b2
|
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
|
|
@@ -9,7 +9,7 @@ https://github.com/googleapis/google-cloud-ruby
|
|
9
9
|
This gem is a _versioned_ client. It provides basic client classes for a
|
10
10
|
specific version of the Cloud Firestore Admin V1 API. Most users should consider using
|
11
11
|
the main client gem,
|
12
|
-
[google-cloud-firestore](https://rubygems.org/gems/google-cloud-firestore).
|
12
|
+
[google-cloud-firestore-admin](https://rubygems.org/gems/google-cloud-firestore-admin).
|
13
13
|
See the section below titled *Which client should I use?* for more information.
|
14
14
|
|
15
15
|
## Installation
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
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
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
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
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/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.
|
@@ -88,7 +88,7 @@ support schedule.
|
|
88
88
|
## Which client should I use?
|
89
89
|
|
90
90
|
Most modern Ruby client libraries for Google APIs come in two flavors: the main
|
91
|
-
client library with a name such as `google-cloud-firestore`,
|
91
|
+
client library with a name such as `google-cloud-firestore-admin`,
|
92
92
|
and lower-level _versioned_ client libraries with names such as
|
93
93
|
`google-cloud-firestore-admin-v1`.
|
94
94
|
_In most cases, you should install the main client._
|
@@ -115,7 +115,7 @@ service version.
|
|
115
115
|
|
116
116
|
We recommend that most users install the main client gem for a service. You can
|
117
117
|
identify this gem as the one _without_ a version in its name, e.g.
|
118
|
-
`google-cloud-firestore`.
|
118
|
+
`google-cloud-firestore-admin`.
|
119
119
|
The main client is recommended because it will embody the best practices for
|
120
120
|
accessing the service, and may also provide more convenient interfaces or
|
121
121
|
tighter integration into frameworks and third-party libraries. In addition, the
|
@@ -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
|
@@ -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
|