google-cloud-datastore-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/AUTHENTICATION.md +1 -1
 - data/README.md +5 -5
 - 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 +7 -1
 - 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 +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/protobuf/empty.rb +0 -2
 - data/proto_docs/google/rpc/status.rb +4 -2
 - metadata +18 -9
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 9864e79ef84d8b352655ca594b7471b94a41c5f516d109162245bc81fad293cd
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 4036d983b4a485f86499d095e81b80a363a6377c3717772de7650de16d9e354b
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
      
 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/ 
     | 
| 
      
 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  
     | 
| 
       309 
     | 
    
         
            -
                          #   #  
     | 
| 
       310 
     | 
    
         
            -
                          #   #  
     | 
| 
      
 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 " 
     | 
| 
      
 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  
     | 
| 
       427 
     | 
    
         
            -
                          #   #  
     | 
| 
       428 
     | 
    
         
            -
                          #   #  
     | 
| 
      
 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 " 
     | 
| 
      
 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  
     | 
| 
       536 
     | 
    
         
            -
                          #   #  
     | 
| 
       537 
     | 
    
         
            -
                          #   #  
     | 
| 
      
 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 " 
     | 
| 
      
 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  
     | 
| 
       640 
     | 
    
         
            -
                          #   #  
     | 
| 
       641 
     | 
    
         
            -
                          #   #  
     | 
| 
      
 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 " 
     | 
| 
      
 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 
     | 
    
         
            -
                          #   #  
     | 
| 
       835 
     | 
    
         
            -
                          #    
     | 
| 
       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  
     | 
| 
      
 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 
     | 
    
         
            -
                          #   #  
     | 
| 
       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
         
     |