google-cloud-datastore-admin-v1 0.4.1 → 0.4.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70e8125d7d78d12f94742fe2be8edf29892ff1ca5f863c8570c11c51dc598855
4
- data.tar.gz: 6cf0cc0c14053e413fa05141b1a8dd865fc854fabf846c48d9c726be6f06c5b8
3
+ metadata.gz: '047657866489d29bab2cbd18c58187708932bd14bd12b7bbd3ae613bf07b2fe3'
4
+ data.tar.gz: '079c9b7b6491fdcfcb3aa7ba065ebef71662ddd909ace9aaaf442dbdfb2646b1'
5
5
  SHA512:
6
- metadata.gz: 58b447806f7bb2e8ad263bd30f5e43eddb24f7e37e8b219986243fa4d3fd48078cc959fbe8657aae69b277497d2ff9d9a8fa6330df073db54c228d906cbd5ea6
7
- data.tar.gz: ffd5c1ed7588ccdb06b2492491fff9555c647a40588b3faaa7f65f9ebdb9eaac4fb94acc0485bbe86fad304d7457e6a02f202ceb1a6ad818f479f11958b8c409
6
+ metadata.gz: c175cd511bff5756c2aa273f4dd99e3cc7f178d32f067141a677fb108205e345b9b75dfe6daba56eac44e9d2e6dd3f08043353647794e2833fc8e11120263e44
7
+ data.tar.gz: 71574596a42a9cbbb5b6f8b8b0d21b099fda920790d952d848cd1a763d0aa5b5b99d9175951dffd347c3f0b7d38b8b3d290486a9af0d29b8c768e2313f02f6e7
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-datastore-admin-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Credentials}):
68
68
 
69
- 1. `DATASTORE_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `DATASTORE_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `DATASTORE_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `DATASTORE_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/datastore/admin/v1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.new
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/datastore/admin/v1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.new do |c
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/datastore/admin/v1"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/datastore/admin/v1"
34
34
 
35
35
  client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::Datastore::Admin::V1::ExportEntitiesRequest.new # (request fields as keyword arguments...)
37
37
  response = client.export_entities request
38
38
  ```
39
39
 
@@ -134,18 +134,12 @@ module Google
134
134
 
135
135
  default_config.rpcs.get_index.timeout = 60.0
136
136
  default_config.rpcs.get_index.retry_policy = {
137
- initial_delay: 0.1,
138
- max_delay: 60.0,
139
- multiplier: 1.3,
140
- retry_codes: [14, 4]
137
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
141
138
  }
142
139
 
143
140
  default_config.rpcs.list_indexes.timeout = 60.0
144
141
  default_config.rpcs.list_indexes.retry_policy = {
145
- initial_delay: 0.1,
146
- max_delay: 60.0,
147
- multiplier: 1.3,
148
- retry_codes: [14, 4]
142
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
149
143
  }
150
144
 
151
145
  default_config
@@ -216,7 +210,7 @@ module Google
216
210
  !@config.endpoint.split(".").first.include?("-")
217
211
  credentials ||= Credentials.default scope: @config.scope,
218
212
  enable_self_signed_jwt: enable_self_signed_jwt
219
- if credentials.is_a?(String) || credentials.is_a?(Hash)
213
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
220
214
  credentials = Credentials.new credentials, scope: @config.scope
221
215
  end
222
216
  @quota_project_id = @config.quota_project
@@ -83,7 +83,7 @@ module Google
83
83
  # Create credentials
84
84
  credentials = @config.credentials
85
85
  credentials ||= Credentials.default scope: @config.scope
86
- if credentials.is_a?(String) || credentials.is_a?(Hash)
86
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
87
87
  credentials = Credentials.new credentials, scope: @config.scope
88
88
  end
89
89
  @quota_project_id = @config.quota_project
@@ -397,9 +397,9 @@ module Google
397
397
  end
398
398
 
399
399
  ##
400
- # Waits for the specified long-running operation until it is done or reaches
401
- # at most a specified timeout, returning the latest state. If the operation
402
- # is already done, the latest state is immediately returned. If the timeout
400
+ # Waits until the specified long-running operation is done or reaches at most
401
+ # a specified timeout, returning the latest state. If the operation is
402
+ # already done, the latest state is immediately returned. If the timeout
403
403
  # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
404
404
  # timeout is used. If the server does not support this method, it returns
405
405
  # `google.rpc.Code.UNIMPLEMENTED`.
@@ -22,7 +22,7 @@ module Google
22
22
  module Datastore
23
23
  module Admin
24
24
  module V1
25
- VERSION = "0.4.1"
25
+ VERSION = "0.4.2"
26
26
  end
27
27
  end
28
28
  end
@@ -88,7 +88,7 @@ module Google
88
88
  # but are accessed via service google.longrunning.Operations.
89
89
  class Service
90
90
 
91
- include ::GRPC::GenericService
91
+ include GRPC::GenericService
92
92
 
93
93
  self.marshal_class_method = :encode
94
94
  self.unmarshal_class_method = :decode
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
59
  # This indicates that the service may provide the elements of the list
60
- # in any arbitrary order, rather than the order the user originally
60
+ # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-datastore-admin-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-17 00:00:00.000000000 Z
11
+ date: 2021-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -180,13 +180,11 @@ files:
180
180
  - lib/google/datastore/admin/v1/datastore_admin_pb.rb
181
181
  - lib/google/datastore/admin/v1/datastore_admin_services_pb.rb
182
182
  - lib/google/datastore/admin/v1/index_pb.rb
183
- - lib/google/datastore/admin/v1/migration_pb.rb
184
183
  - proto_docs/README.md
185
184
  - proto_docs/google/api/field_behavior.rb
186
185
  - proto_docs/google/api/resource.rb
187
186
  - proto_docs/google/datastore/admin/v1/datastore_admin.rb
188
187
  - proto_docs/google/datastore/admin/v1/index.rb
189
- - proto_docs/google/datastore/admin/v1/migration.rb
190
188
  - proto_docs/google/longrunning/operations.rb
191
189
  - proto_docs/google/protobuf/any.rb
192
190
  - proto_docs/google/protobuf/duration.rb
@@ -1,44 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/datastore/admin/v1/migration.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/datastore/admin/v1/migration.proto", :syntax => :proto3) do
8
- add_message "google.datastore.admin.v1.MigrationStateEvent" do
9
- optional :state, :enum, 1, "google.datastore.admin.v1.MigrationState"
10
- end
11
- add_message "google.datastore.admin.v1.MigrationProgressEvent" do
12
- optional :step, :enum, 1, "google.datastore.admin.v1.MigrationStep"
13
- end
14
- add_enum "google.datastore.admin.v1.MigrationState" do
15
- value :MIGRATION_STATE_UNSPECIFIED, 0
16
- value :RUNNING, 1
17
- value :PAUSED, 2
18
- value :COMPLETE, 3
19
- end
20
- add_enum "google.datastore.admin.v1.MigrationStep" do
21
- value :MIGRATION_STEP_UNSPECIFIED, 0
22
- value :START, 1
23
- value :COPY_AND_VERIFY, 2
24
- value :REDIRECT_EVENTUALLY_CONSISTENT_READS, 3
25
- value :REDIRECT_STRONGLY_CONSISTENT_READS, 4
26
- value :REDIRECT_WRITES, 5
27
- end
28
- end
29
- end
30
-
31
- module Google
32
- module Cloud
33
- module Datastore
34
- module Admin
35
- module V1
36
- MigrationStateEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.MigrationStateEvent").msgclass
37
- MigrationProgressEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.MigrationProgressEvent").msgclass
38
- MigrationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.MigrationState").enummodule
39
- MigrationStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.MigrationStep").enummodule
40
- end
41
- end
42
- end
43
- end
44
- end
@@ -1,90 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2021 Google LLC
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # https://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
- # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
-
19
-
20
- module Google
21
- module Cloud
22
- module Datastore
23
- module Admin
24
- module V1
25
- # An event signifying a change in state of a [migration from Cloud Datastore to
26
- # Cloud Firestore in Datastore
27
- # mode](https://cloud.google.com/datastore/docs/upgrade-to-firestore).
28
- # @!attribute [rw] state
29
- # @return [::Google::Cloud::Datastore::Admin::V1::MigrationState]
30
- # The new state of the migration.
31
- class MigrationStateEvent
32
- include ::Google::Protobuf::MessageExts
33
- extend ::Google::Protobuf::MessageExts::ClassMethods
34
- end
35
-
36
- # An event signifying the start of a new step in a [migration from Cloud
37
- # Datastore to Cloud Firestore in Datastore
38
- # mode](https://cloud.google.com/datastore/docs/upgrade-to-firestore).
39
- # @!attribute [rw] step
40
- # @return [::Google::Cloud::Datastore::Admin::V1::MigrationStep]
41
- # The step that is starting.
42
- #
43
- # An event with step set to `START` indicates that the migration
44
- # has been reverted back to the initial pre-migration state.
45
- class MigrationProgressEvent
46
- include ::Google::Protobuf::MessageExts
47
- extend ::Google::Protobuf::MessageExts::ClassMethods
48
- end
49
-
50
- # States for a migration.
51
- module MigrationState
52
- # Unspecified.
53
- MIGRATION_STATE_UNSPECIFIED = 0
54
-
55
- # The migration is running.
56
- RUNNING = 1
57
-
58
- # The migration is paused.
59
- PAUSED = 2
60
-
61
- # The migration is complete.
62
- COMPLETE = 3
63
- end
64
-
65
- # Steps in a migration.
66
- module MigrationStep
67
- # Unspecified.
68
- MIGRATION_STEP_UNSPECIFIED = 0
69
-
70
- # Start of migration.
71
- START = 1
72
-
73
- # Data is copied to Cloud Firestore and then verified to match the data in
74
- # Cloud Datastore.
75
- COPY_AND_VERIFY = 2
76
-
77
- # Eventually-consistent reads are redirected to Cloud Firestore.
78
- REDIRECT_EVENTUALLY_CONSISTENT_READS = 3
79
-
80
- # Strongly-consistent reads are redirected to Cloud Firestore.
81
- REDIRECT_STRONGLY_CONSISTENT_READS = 4
82
-
83
- # Writes are redirected to Cloud Firestore.
84
- REDIRECT_WRITES = 5
85
- end
86
- end
87
- end
88
- end
89
- end
90
- end