google-cloud-datastore-admin-v1 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddd715e934a380d3751052c29203155c3b5e437a14a66f3a1d03c3bed34ffbcb
4
- data.tar.gz: e335d804f8db1f6df787965cec61e43925883c25e25d9a4f41eb326b67879cee
3
+ metadata.gz: 9864e79ef84d8b352655ca594b7471b94a41c5f516d109162245bc81fad293cd
4
+ data.tar.gz: 4036d983b4a485f86499d095e81b80a363a6377c3717772de7650de16d9e354b
5
5
  SHA512:
6
- metadata.gz: f42a88d64e7ebc512f6d63878e8357a22b42fbf6af457ce6180b62bd2da409be6d7bdd01c3a4f6411631542615c9789f20a73a783ba01e128018c1c35984680f
7
- data.tar.gz: a0283c57be865e2fa8342c1d0bc577bafb74c55d1c1f926608d2b72761e2d945d600fd747ca759c2a40a7193a30a1c9bae764393370bde49828d1ac80d0112f3
6
+ metadata.gz: e30a156a7beb17ecfb0d6fb8a93a0b212b454f4e8464546e01b1f62bcbaf19b03515f0d22dbc944f61f4c53ae6da4ecf60d43a5fc6b0a703067fbae826cbb2e3
7
+ data.tar.gz: fedfc077f68aec253cc8a59da9a280785566bbe8b1de14d003f86db1621973bbc02dfa1fcdff2a86e70896e35ea6489b00c2184b570ced30b60673fafe53293d
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Firestore in Datastore mode Admin V1 API
2
2
 
3
- API Client library for the Firestore in Datastore mode Admin V1 API
3
+ Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application.
4
4
 
5
5
  Firestore in Datastore mode 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 Firestore in Datastore mode Admin V1 API. Most users should consider using
11
11
  the main client gem,
12
- [google-cloud-datastore](https://rubygems.org/gems/google-cloud-datastore).
12
+ [google-cloud-datastore-admin](https://rubygems.org/gems/google-cloud-datastore-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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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-datastore`,
91
+ client library with a name such as `google-cloud-datastore-admin`,
92
92
  and lower-level _versioned_ client libraries with names such as
93
93
  `google-cloud-datastore-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-datastore`.
118
+ `google-cloud-datastore-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
@@ -305,14 +305,14 @@ module Google
305
305
  # # Call the export_entities method.
306
306
  # result = client.export_entities request
307
307
  #
308
- # # The returned object is of type Gapic::Operation. You can use this
309
- # # object to check the status of an operation, cancel it, or wait
310
- # # for results. Here is how to block until completion:
308
+ # # The returned object is of type Gapic::Operation. You can use it to
309
+ # # check the status of an operation, cancel it, or wait for results.
310
+ # # Here is how to wait for a response.
311
311
  # result.wait_until_done! timeout: 60
312
312
  # if result.response?
313
313
  # p result.response
314
314
  # else
315
- # puts "Error!"
315
+ # puts "No response received."
316
316
  # end
317
317
  #
318
318
  def export_entities request, options = nil
@@ -423,14 +423,14 @@ module Google
423
423
  # # Call the import_entities method.
424
424
  # result = client.import_entities request
425
425
  #
426
- # # The returned object is of type Gapic::Operation. You can use this
427
- # # object to check the status of an operation, cancel it, or wait
428
- # # for results. Here is how to block until completion:
426
+ # # The returned object is of type Gapic::Operation. You can use it to
427
+ # # check the status of an operation, cancel it, or wait for results.
428
+ # # Here is how to wait for a response.
429
429
  # result.wait_until_done! timeout: 60
430
430
  # if result.response?
431
431
  # p result.response
432
432
  # else
433
- # puts "Error!"
433
+ # puts "No response received."
434
434
  # end
435
435
  #
436
436
  def import_entities request, options = nil
@@ -532,14 +532,14 @@ module Google
532
532
  # # Call the create_index method.
533
533
  # result = client.create_index request
534
534
  #
535
- # # The returned object is of type Gapic::Operation. You can use this
536
- # # object to check the status of an operation, cancel it, or wait
537
- # # for results. Here is how to block until completion:
535
+ # # The returned object is of type Gapic::Operation. You can use it to
536
+ # # check the status of an operation, cancel it, or wait for results.
537
+ # # Here is how to wait for a response.
538
538
  # result.wait_until_done! timeout: 60
539
539
  # if result.response?
540
540
  # p result.response
541
541
  # else
542
- # puts "Error!"
542
+ # puts "No response received."
543
543
  # end
544
544
  #
545
545
  def create_index request, options = nil
@@ -636,14 +636,14 @@ module Google
636
636
  # # Call the delete_index method.
637
637
  # result = client.delete_index request
638
638
  #
639
- # # The returned object is of type Gapic::Operation. You can use this
640
- # # object to check the status of an operation, cancel it, or wait
641
- # # for results. Here is how to block until completion:
639
+ # # The returned object is of type Gapic::Operation. You can use it to
640
+ # # check the status of an operation, cancel it, or wait for results.
641
+ # # Here is how to wait for a response.
642
642
  # result.wait_until_done! timeout: 60
643
643
  # if result.response?
644
644
  # p result.response
645
645
  # else
646
- # puts "Error!"
646
+ # puts "No response received."
647
647
  # end
648
648
  #
649
649
  def delete_index request, options = nil
@@ -830,13 +830,11 @@ module Google
830
830
  # # Call the list_indexes method.
831
831
  # result = client.list_indexes request
832
832
  #
833
- # # The returned object is of type Gapic::PagedEnumerable. You can
834
- # # iterate over all elements by calling #each, and the enumerable
835
- # # will lazily make API calls to fetch subsequent pages. Other
836
- # # methods are also available for managing paging directly.
837
- # result.each do |response|
833
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
834
+ # # over elements, and API calls will be issued to fetch pages as needed.
835
+ # result.each do |item|
838
836
  # # Each element is of type ::Google::Cloud::Datastore::Admin::V1::Index.
839
- # p response
837
+ # p item
840
838
  # end
841
839
  #
842
840
  def list_indexes 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
- # # iterate over all elements by calling #each, and the enumerable
164
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
258
- # # object to check the status of an operation, cancel it, or wait
259
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
545
- # # object to check the status of an operation, cancel it, or wait
546
- # # for results. Here is how to block until completion:
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 "Error!"
549
+ # puts "No response received."
552
550
  # end
553
551
  #
554
552
  def wait_operation request, options = nil