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

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: 9864e79ef84d8b352655ca594b7471b94a41c5f516d109162245bc81fad293cd
4
- data.tar.gz: 4036d983b4a485f86499d095e81b80a363a6377c3717772de7650de16d9e354b
3
+ metadata.gz: 75e9ce563b3ad1165e29b3f36ecf9e81d9fda38fcd07614472e020684188462b
4
+ data.tar.gz: 6372073237a4bb63100037e96647351ca35094d67cba95ef5a842795386cfa45
5
5
  SHA512:
6
- metadata.gz: e30a156a7beb17ecfb0d6fb8a93a0b212b454f4e8464546e01b1f62bcbaf19b03515f0d22dbc944f61f4c53ae6da4ecf60d43a5fc6b0a703067fbae826cbb2e3
7
- data.tar.gz: fedfc077f68aec253cc8a59da9a280785566bbe8b1de14d003f86db1621973bbc02dfa1fcdff2a86e70896e35ea6489b00c2184b570ced30b60673fafe53293d
6
+ metadata.gz: 88e5849c7c18b12a02dc6b6631dd7e0bc3ad5169d4cae960c89a450c55a2f03afc970afa10f65beaeb1f1c14bd2e4dead7aa024c2cf614ba949ddc8dfa4b87a6
7
+ data.tar.gz: b41f20b4044ae18b6d7987b103c87e3c0522358fb29c96809389b82ed862d34d4cbda6b1031cda9dac9384b18fc2ccc1a6c2920e4c0bb8a0faa89d1ec8da6dba
data/README.md CHANGED
@@ -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://googleapis.dev/ruby/google-cloud-logging/latest)
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
 
@@ -30,14 +30,10 @@ module Google
30
30
  #
31
31
  # Google Cloud Datastore Admin API
32
32
  #
33
- #
34
33
  # The Datastore Admin API provides several admin services for Cloud Datastore.
35
34
  #
36
- # -----------------------------------------------------------------------------
37
- # ## Concepts
38
- #
39
- # Project, namespace, kind, and entity as defined in the Google Cloud Datastore
40
- # API.
35
+ # Concepts: Project, namespace, kind, and entity as defined in the Google Cloud
36
+ # Datastore API.
41
37
  #
42
38
  # Operation: An Operation represents work being performed in the background.
43
39
  #
@@ -45,50 +41,40 @@ module Google
45
41
  # specified as a combination of kinds and namespaces (either or both of which
46
42
  # may be all).
47
43
  #
48
- # -----------------------------------------------------------------------------
49
- # ## Services
50
- #
51
- # # Export/Import
44
+ # Export/Import Service:
52
45
  #
53
- # The Export/Import service provides the ability to copy all or a subset of
46
+ # - The Export/Import service provides the ability to copy all or a subset of
54
47
  # entities to/from Google Cloud Storage.
55
- #
56
- # Exported data may be imported into Cloud Datastore for any Google Cloud
48
+ # - Exported data may be imported into Cloud Datastore for any Google Cloud
57
49
  # Platform project. It is not restricted to the export source project. It is
58
50
  # possible to export from one project and then import into another.
59
- #
60
- # Exported data can also be loaded into Google BigQuery for analysis.
61
- #
62
- # Exports and imports are performed asynchronously. An Operation resource is
51
+ # - Exported data can also be loaded into Google BigQuery for analysis.
52
+ # - Exports and imports are performed asynchronously. An Operation resource is
63
53
  # created for each export/import. The state (including any errors encountered)
64
54
  # of the export/import may be queried via the Operation resource.
65
55
  #
66
- # # Index
56
+ # Index Service:
67
57
  #
68
- # The index service manages Cloud Datastore composite indexes.
69
- #
70
- # Index creation and deletion are performed asynchronously.
58
+ # - The index service manages Cloud Datastore composite indexes.
59
+ # - Index creation and deletion are performed asynchronously.
71
60
  # An Operation resource is created for each such asynchronous operation.
72
61
  # The state of the operation (including any errors encountered)
73
62
  # may be queried via the Operation resource.
74
63
  #
75
- # # Operation
64
+ # Operation Service:
76
65
  #
77
- # The Operations collection provides a record of actions performed for the
66
+ # - The Operations collection provides a record of actions performed for the
78
67
  # specified project (including any operations in progress). Operations are not
79
68
  # created directly but through calls on other collections or resources.
80
- #
81
- # An operation that is not yet done may be cancelled. The request to cancel is
82
- # asynchronous and the operation may continue to run for some time after the
69
+ # - An operation that is not yet done may be cancelled. The request to cancel
70
+ # is asynchronous and the operation may continue to run for some time after the
83
71
  # request to cancel is made.
84
- #
85
- # An operation that is done may be deleted so that it is no longer listed as
72
+ # - An operation that is done may be deleted so that it is no longer listed as
86
73
  # part of the Operation collection.
87
- #
88
- # ListOperations returns all pending operations, but not completed operations.
89
- #
90
- # Operations are created by service DatastoreAdmin,
91
- # but are accessed via service google.longrunning.Operations.
74
+ # - ListOperations returns all pending operations, but not completed
75
+ # operations.
76
+ # - Operations are created by service DatastoreAdmin, but are accessed via
77
+ # service google.longrunning.Operations.
92
78
  #
93
79
  class Client
94
80
  # @private
@@ -200,7 +186,7 @@ module Google
200
186
  credentials = @config.credentials
201
187
  # Use self-signed JWT if the endpoint is unchanged from default,
202
188
  # but only if the default endpoint does not have a region prefix.
203
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
189
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
204
190
  !@config.endpoint.split(".").first.include?("-")
205
191
  credentials ||= Credentials.default scope: @config.scope,
206
192
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -279,8 +265,8 @@ module Google
279
265
  #
280
266
  # The resulting files will be nested deeper than the specified URL prefix.
281
267
  # The final output URL will be provided in the
282
- # {::Google::Cloud::Datastore::Admin::V1::ExportEntitiesResponse#output_url google.datastore.admin.v1.ExportEntitiesResponse.output_url} field. That
283
- # value should be used for subsequent ImportEntities operations.
268
+ # {::Google::Cloud::Datastore::Admin::V1::ExportEntitiesResponse#output_url google.datastore.admin.v1.ExportEntitiesResponse.output_url}
269
+ # field. That value should be used for subsequent ImportEntities operations.
284
270
  #
285
271
  # By nesting the data files deeper, the same Cloud Storage bucket can be used
286
272
  # in multiple ExportEntities operations without conflict.
@@ -384,8 +370,9 @@ module Google
384
370
  # @param labels [::Hash{::String => ::String}]
385
371
  # Client-assigned labels.
386
372
  # @param input_url [::String]
387
- # Required. The full resource URL of the external storage location. Currently, only
388
- # Google Cloud Storage is supported. So input_url should be of the form:
373
+ # Required. The full resource URL of the external storage location.
374
+ # Currently, only Google Cloud Storage is supported. So input_url should be
375
+ # of the form:
389
376
  # `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where
390
377
  # `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is
391
378
  # an optional Cloud Storage namespace path (this is not a Cloud Datastore
@@ -478,9 +465,9 @@ module Google
478
465
  ##
479
466
  # Creates the specified index.
480
467
  # A newly created index's initial state is `CREATING`. On completion of the
481
- # returned {::Google::Longrunning::Operation google.longrunning.Operation}, the state will be `READY`.
482
- # If the index already exists, the call will return an `ALREADY_EXISTS`
483
- # status.
468
+ # returned {::Google::Longrunning::Operation google.longrunning.Operation}, the
469
+ # state will be `READY`. If the index already exists, the call will return an
470
+ # `ALREADY_EXISTS` status.
484
471
  #
485
472
  # During index creation, the process could result in an error, in which
486
473
  # case the index will move to the `ERROR` state. The process can be recovered
@@ -589,7 +576,8 @@ module Google
589
576
  # An index can only be deleted if it is in a `READY` or `ERROR` state. On
590
577
  # successful execution of the request, the index will be in a `DELETING`
591
578
  # {::Google::Cloud::Datastore::Admin::V1::Index::State state}. And on completion of the
592
- # returned {::Google::Longrunning::Operation google.longrunning.Operation}, the index will be removed.
579
+ # returned {::Google::Longrunning::Operation google.longrunning.Operation}, the
580
+ # index will be removed.
593
581
  #
594
582
  # During index deletion, the process could result in an error, in which
595
583
  # case the index will move to the `ERROR` state. The process can be recovered
@@ -917,9 +905,9 @@ module Google
917
905
  # * (`String`) The path to a service account key file in JSON format
918
906
  # * (`Hash`) A service account key as a Hash
919
907
  # * (`Google::Auth::Credentials`) A googleauth credentials object
920
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
908
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
921
909
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
922
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
910
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
923
911
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
924
912
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
925
913
  # * (`nil`) indicating no credentials
@@ -961,7 +949,9 @@ module Google
961
949
  class Configuration
962
950
  extend ::Gapic::Config
963
951
 
964
- config_attr :endpoint, "datastore.googleapis.com", ::String
952
+ DEFAULT_ENDPOINT = "datastore.googleapis.com"
953
+
954
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
965
955
  config_attr :credentials, nil do |value|
966
956
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
967
957
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -621,9 +621,9 @@ module Google
621
621
  # * (`String`) The path to a service account key file in JSON format
622
622
  # * (`Hash`) A service account key as a Hash
623
623
  # * (`Google::Auth::Credentials`) A googleauth credentials object
624
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
624
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
625
625
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
626
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
626
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
627
627
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
628
628
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
629
629
  # * (`nil`) indicating no credentials
@@ -665,7 +665,9 @@ module Google
665
665
  class Configuration
666
666
  extend ::Gapic::Config
667
667
 
668
- config_attr :endpoint, "datastore.googleapis.com", ::String
668
+ DEFAULT_ENDPOINT = "datastore.googleapis.com"
669
+
670
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
669
671
  config_attr :credentials, nil do |value|
670
672
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
671
673
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -32,14 +32,10 @@ module Google
32
32
  #
33
33
  # Google Cloud Datastore Admin API
34
34
  #
35
- #
36
35
  # The Datastore Admin API provides several admin services for Cloud Datastore.
37
36
  #
38
- # -----------------------------------------------------------------------------
39
- # ## Concepts
40
- #
41
- # Project, namespace, kind, and entity as defined in the Google Cloud Datastore
42
- # API.
37
+ # Concepts: Project, namespace, kind, and entity as defined in the Google Cloud
38
+ # Datastore API.
43
39
  #
44
40
  # Operation: An Operation represents work being performed in the background.
45
41
  #
@@ -47,50 +43,40 @@ module Google
47
43
  # specified as a combination of kinds and namespaces (either or both of which
48
44
  # may be all).
49
45
  #
50
- # -----------------------------------------------------------------------------
51
- # ## Services
52
- #
53
- # # Export/Import
46
+ # Export/Import Service:
54
47
  #
55
- # The Export/Import service provides the ability to copy all or a subset of
48
+ # - The Export/Import service provides the ability to copy all or a subset of
56
49
  # entities to/from Google Cloud Storage.
57
- #
58
- # Exported data may be imported into Cloud Datastore for any Google Cloud
50
+ # - Exported data may be imported into Cloud Datastore for any Google Cloud
59
51
  # Platform project. It is not restricted to the export source project. It is
60
52
  # possible to export from one project and then import into another.
61
- #
62
- # Exported data can also be loaded into Google BigQuery for analysis.
63
- #
64
- # Exports and imports are performed asynchronously. An Operation resource is
53
+ # - Exported data can also be loaded into Google BigQuery for analysis.
54
+ # - Exports and imports are performed asynchronously. An Operation resource is
65
55
  # created for each export/import. The state (including any errors encountered)
66
56
  # of the export/import may be queried via the Operation resource.
67
57
  #
68
- # # Index
58
+ # Index Service:
69
59
  #
70
- # The index service manages Cloud Datastore composite indexes.
71
- #
72
- # Index creation and deletion are performed asynchronously.
60
+ # - The index service manages Cloud Datastore composite indexes.
61
+ # - Index creation and deletion are performed asynchronously.
73
62
  # An Operation resource is created for each such asynchronous operation.
74
63
  # The state of the operation (including any errors encountered)
75
64
  # may be queried via the Operation resource.
76
65
  #
77
- # # Operation
66
+ # Operation Service:
78
67
  #
79
- # The Operations collection provides a record of actions performed for the
68
+ # - The Operations collection provides a record of actions performed for the
80
69
  # specified project (including any operations in progress). Operations are not
81
70
  # created directly but through calls on other collections or resources.
82
- #
83
- # An operation that is not yet done may be cancelled. The request to cancel is
84
- # asynchronous and the operation may continue to run for some time after the
71
+ # - An operation that is not yet done may be cancelled. The request to cancel
72
+ # is asynchronous and the operation may continue to run for some time after the
85
73
  # request to cancel is made.
86
- #
87
- # An operation that is done may be deleted so that it is no longer listed as
74
+ # - An operation that is done may be deleted so that it is no longer listed as
88
75
  # part of the Operation collection.
89
- #
90
- # ListOperations returns all pending operations, but not completed operations.
91
- #
92
- # Operations are created by service DatastoreAdmin,
93
- # but are accessed via service google.longrunning.Operations.
76
+ # - ListOperations returns all pending operations, but not completed
77
+ # operations.
78
+ # - Operations are created by service DatastoreAdmin, but are accessed via
79
+ # service google.longrunning.Operations.
94
80
  #
95
81
  class Client
96
82
  # @private
@@ -196,7 +182,7 @@ module Google
196
182
  credentials = @config.credentials
197
183
  # Use self-signed JWT if the endpoint is unchanged from default,
198
184
  # but only if the default endpoint does not have a region prefix.
199
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
185
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
200
186
  !@config.endpoint.split(".").first.include?("-")
201
187
  credentials ||= Credentials.default scope: @config.scope,
202
188
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -270,8 +256,8 @@ module Google
270
256
  #
271
257
  # The resulting files will be nested deeper than the specified URL prefix.
272
258
  # The final output URL will be provided in the
273
- # {::Google::Cloud::Datastore::Admin::V1::ExportEntitiesResponse#output_url google.datastore.admin.v1.ExportEntitiesResponse.output_url} field. That
274
- # value should be used for subsequent ImportEntities operations.
259
+ # {::Google::Cloud::Datastore::Admin::V1::ExportEntitiesResponse#output_url google.datastore.admin.v1.ExportEntitiesResponse.output_url}
260
+ # field. That value should be used for subsequent ImportEntities operations.
275
261
  #
276
262
  # By nesting the data files deeper, the same Cloud Storage bucket can be used
277
263
  # in multiple ExportEntities operations without conflict.
@@ -345,8 +331,9 @@ module Google
345
331
  # @param labels [::Hash{::String => ::String}]
346
332
  # Client-assigned labels.
347
333
  # @param input_url [::String]
348
- # Required. The full resource URL of the external storage location. Currently, only
349
- # Google Cloud Storage is supported. So input_url should be of the form:
334
+ # Required. The full resource URL of the external storage location.
335
+ # Currently, only Google Cloud Storage is supported. So input_url should be
336
+ # of the form:
350
337
  # `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where
351
338
  # `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is
352
339
  # an optional Cloud Storage namespace path (this is not a Cloud Datastore
@@ -409,9 +396,9 @@ module Google
409
396
  ##
410
397
  # Creates the specified index.
411
398
  # A newly created index's initial state is `CREATING`. On completion of the
412
- # returned {::Google::Longrunning::Operation google.longrunning.Operation}, the state will be `READY`.
413
- # If the index already exists, the call will return an `ALREADY_EXISTS`
414
- # status.
399
+ # returned {::Google::Longrunning::Operation google.longrunning.Operation}, the
400
+ # state will be `READY`. If the index already exists, the call will return an
401
+ # `ALREADY_EXISTS` status.
415
402
  #
416
403
  # During index creation, the process could result in an error, in which
417
404
  # case the index will move to the `ERROR` state. The process can be recovered
@@ -490,7 +477,8 @@ module Google
490
477
  # An index can only be deleted if it is in a `READY` or `ERROR` state. On
491
478
  # successful execution of the request, the index will be in a `DELETING`
492
479
  # {::Google::Cloud::Datastore::Admin::V1::Index::State state}. And on completion of the
493
- # returned {::Google::Longrunning::Operation google.longrunning.Operation}, the index will be removed.
480
+ # returned {::Google::Longrunning::Operation google.longrunning.Operation}, the
481
+ # index will be removed.
494
482
  #
495
483
  # During index deletion, the process could result in an error, in which
496
484
  # case the index will move to the `ERROR` state. The process can be recovered
@@ -732,9 +720,9 @@ module Google
732
720
  # * (`String`) The path to a service account key file in JSON format
733
721
  # * (`Hash`) A service account key as a Hash
734
722
  # * (`Google::Auth::Credentials`) A googleauth credentials object
735
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
723
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
736
724
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
737
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
725
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
738
726
  # * (`nil`) indicating no credentials
739
727
  # @return [::Object]
740
728
  # @!attribute [rw] scope
@@ -767,7 +755,9 @@ module Google
767
755
  class Configuration
768
756
  extend ::Gapic::Config
769
757
 
770
- config_attr :endpoint, "datastore.googleapis.com", ::String
758
+ DEFAULT_ENDPOINT = "datastore.googleapis.com"
759
+
760
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
771
761
  config_attr :credentials, nil do |value|
772
762
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
773
763
  allowed.any? { |klass| klass === value }
@@ -412,9 +412,9 @@ module Google
412
412
  # * (`String`) The path to a service account key file in JSON format
413
413
  # * (`Hash`) A service account key as a Hash
414
414
  # * (`Google::Auth::Credentials`) A googleauth credentials object
415
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
415
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
416
416
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
417
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
417
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
418
418
  # * (`nil`) indicating no credentials
419
419
  # @return [::Object]
420
420
  # @!attribute [rw] scope
@@ -447,7 +447,9 @@ module Google
447
447
  class Configuration
448
448
  extend ::Gapic::Config
449
449
 
450
- config_attr :endpoint, "datastore.googleapis.com", ::String
450
+ DEFAULT_ENDPOINT = "datastore.googleapis.com"
451
+
452
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
451
453
  config_attr :credentials, nil do |value|
452
454
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
453
455
  allowed.any? { |klass| klass === value }
@@ -568,7 +570,7 @@ module Google
568
570
 
569
571
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
570
572
  query_string_params = if query_string_params.any?
571
- query_string_params.to_h { |p| p.split("=", 2) }
573
+ query_string_params.to_h { |p| p.split "=", 2 }
572
574
  else
573
575
  {}
574
576
  end
@@ -606,7 +608,7 @@ module Google
606
608
 
607
609
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
608
610
  query_string_params = if query_string_params.any?
609
- query_string_params.to_h { |p| p.split("=", 2) }
611
+ query_string_params.to_h { |p| p.split "=", 2 }
610
612
  else
611
613
  {}
612
614
  end
@@ -644,7 +646,7 @@ module Google
644
646
 
645
647
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
646
648
  query_string_params = if query_string_params.any?
647
- query_string_params.to_h { |p| p.split("=", 2) }
649
+ query_string_params.to_h { |p| p.split "=", 2 }
648
650
  else
649
651
  {}
650
652
  end
@@ -682,7 +684,7 @@ module Google
682
684
 
683
685
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
684
686
  query_string_params = if query_string_params.any?
685
- query_string_params.to_h { |p| p.split("=", 2) }
687
+ query_string_params.to_h { |p| p.split "=", 2 }
686
688
  else
687
689
  {}
688
690
  end
@@ -60,7 +60,7 @@ module Google
60
60
 
61
61
  verb, uri, query_string_params, body = ServiceStub.transcode_export_entities_request request_pb
62
62
  query_string_params = if query_string_params.any?
63
- query_string_params.to_h { |p| p.split("=", 2) }
63
+ query_string_params.to_h { |p| p.split "=", 2 }
64
64
  else
65
65
  {}
66
66
  end
@@ -98,7 +98,7 @@ module Google
98
98
 
99
99
  verb, uri, query_string_params, body = ServiceStub.transcode_import_entities_request request_pb
100
100
  query_string_params = if query_string_params.any?
101
- query_string_params.to_h { |p| p.split("=", 2) }
101
+ query_string_params.to_h { |p| p.split "=", 2 }
102
102
  else
103
103
  {}
104
104
  end
@@ -136,7 +136,7 @@ module Google
136
136
 
137
137
  verb, uri, query_string_params, body = ServiceStub.transcode_create_index_request request_pb
138
138
  query_string_params = if query_string_params.any?
139
- query_string_params.to_h { |p| p.split("=", 2) }
139
+ query_string_params.to_h { |p| p.split "=", 2 }
140
140
  else
141
141
  {}
142
142
  end
@@ -174,7 +174,7 @@ module Google
174
174
 
175
175
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_index_request request_pb
176
176
  query_string_params = if query_string_params.any?
177
- query_string_params.to_h { |p| p.split("=", 2) }
177
+ query_string_params.to_h { |p| p.split "=", 2 }
178
178
  else
179
179
  {}
180
180
  end
@@ -212,7 +212,7 @@ module Google
212
212
 
213
213
  verb, uri, query_string_params, body = ServiceStub.transcode_get_index_request request_pb
214
214
  query_string_params = if query_string_params.any?
215
- query_string_params.to_h { |p| p.split("=", 2) }
215
+ query_string_params.to_h { |p| p.split "=", 2 }
216
216
  else
217
217
  {}
218
218
  end
@@ -250,7 +250,7 @@ module Google
250
250
 
251
251
  verb, uri, query_string_params, body = ServiceStub.transcode_list_indexes_request request_pb
252
252
  query_string_params = if query_string_params.any?
253
- query_string_params.to_h { |p| p.split("=", 2) }
253
+ query_string_params.to_h { |p| p.split "=", 2 }
254
254
  else
255
255
  {}
256
256
  end
@@ -34,14 +34,10 @@ module Google
34
34
  ##
35
35
  # Google Cloud Datastore Admin API
36
36
  #
37
- #
38
37
  # The Datastore Admin API provides several admin services for Cloud Datastore.
39
38
  #
40
- # -----------------------------------------------------------------------------
41
- # ## Concepts
42
- #
43
- # Project, namespace, kind, and entity as defined in the Google Cloud Datastore
44
- # API.
39
+ # Concepts: Project, namespace, kind, and entity as defined in the Google Cloud
40
+ # Datastore API.
45
41
  #
46
42
  # Operation: An Operation represents work being performed in the background.
47
43
  #
@@ -49,50 +45,40 @@ module Google
49
45
  # specified as a combination of kinds and namespaces (either or both of which
50
46
  # may be all).
51
47
  #
52
- # -----------------------------------------------------------------------------
53
- # ## Services
54
- #
55
- # # Export/Import
48
+ # Export/Import Service:
56
49
  #
57
- # The Export/Import service provides the ability to copy all or a subset of
50
+ # - The Export/Import service provides the ability to copy all or a subset of
58
51
  # entities to/from Google Cloud Storage.
59
- #
60
- # Exported data may be imported into Cloud Datastore for any Google Cloud
52
+ # - Exported data may be imported into Cloud Datastore for any Google Cloud
61
53
  # Platform project. It is not restricted to the export source project. It is
62
54
  # possible to export from one project and then import into another.
63
- #
64
- # Exported data can also be loaded into Google BigQuery for analysis.
65
- #
66
- # Exports and imports are performed asynchronously. An Operation resource is
55
+ # - Exported data can also be loaded into Google BigQuery for analysis.
56
+ # - Exports and imports are performed asynchronously. An Operation resource is
67
57
  # created for each export/import. The state (including any errors encountered)
68
58
  # of the export/import may be queried via the Operation resource.
69
59
  #
70
- # # Index
60
+ # Index Service:
71
61
  #
72
- # The index service manages Cloud Datastore composite indexes.
73
- #
74
- # Index creation and deletion are performed asynchronously.
62
+ # - The index service manages Cloud Datastore composite indexes.
63
+ # - Index creation and deletion are performed asynchronously.
75
64
  # An Operation resource is created for each such asynchronous operation.
76
65
  # The state of the operation (including any errors encountered)
77
66
  # may be queried via the Operation resource.
78
67
  #
79
- # # Operation
68
+ # Operation Service:
80
69
  #
81
- # The Operations collection provides a record of actions performed for the
70
+ # - The Operations collection provides a record of actions performed for the
82
71
  # specified project (including any operations in progress). Operations are not
83
72
  # created directly but through calls on other collections or resources.
84
- #
85
- # An operation that is not yet done may be cancelled. The request to cancel is
86
- # asynchronous and the operation may continue to run for some time after the
73
+ # - An operation that is not yet done may be cancelled. The request to cancel
74
+ # is asynchronous and the operation may continue to run for some time after the
87
75
  # request to cancel is made.
88
- #
89
- # An operation that is done may be deleted so that it is no longer listed as
76
+ # - An operation that is done may be deleted so that it is no longer listed as
90
77
  # part of the Operation collection.
91
- #
92
- # ListOperations returns all pending operations, but not completed operations.
93
- #
94
- # Operations are created by service DatastoreAdmin,
95
- # but are accessed via service google.longrunning.Operations.
78
+ # - ListOperations returns all pending operations, but not completed
79
+ # operations.
80
+ # - Operations are created by service DatastoreAdmin, but are accessed via
81
+ # service google.longrunning.Operations.
96
82
  #
97
83
  # To load this service and instantiate a REST client:
98
84
  #