google-cloud-datastore-admin-v1 0.4.5 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/client.rb +1 -0
- data/lib/google/cloud/datastore/admin/v1/version.rb +1 -1
- data/lib/google/datastore/admin/v1/datastore_admin_pb.rb +6 -0
- data/lib/google/datastore/admin/v1/datastore_admin_services_pb.rb +1 -1
- data/lib/google/datastore/admin/v1/migration_pb.rb +65 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/datastore/admin/v1/datastore_admin.rb +21 -0
- data/proto_docs/google/datastore/admin/v1/migration.rb +133 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ca6046c780883224fe1f4ed29bc1edfbf7182502322a7e708b0dcdecb752d87
|
4
|
+
data.tar.gz: 7c6d51c70eef7acdf489f206bca97213d6a8f003d4e9a12b39e0b8da45b223f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49db6a1584b623fb5baa755bec8abb6607bc884f061e08a1dab40d342a8d04df867114fea30814ad6ae6a3a86c11ca4a5388ba1a1bee719a2b64223772c0f4c4
|
7
|
+
data.tar.gz: 4bdefb78cf08b84c514d51c0afc239a40a94eee74555780451b3be1077e022ff3093c03466583fef72384e93163df5d3411bdf6d9976c14a08d7345b32938b6b
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
@@ -5,6 +5,7 @@ require 'google/api/annotations_pb'
|
|
5
5
|
require 'google/api/client_pb'
|
6
6
|
require 'google/api/field_behavior_pb'
|
7
7
|
require 'google/datastore/admin/v1/index_pb'
|
8
|
+
require 'google/datastore/admin/v1/migration_pb'
|
8
9
|
require 'google/longrunning/operations_pb'
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
11
|
require 'google/protobuf'
|
@@ -92,6 +93,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
92
93
|
optional :progress_entities, :message, 2, "google.datastore.admin.v1.Progress"
|
93
94
|
optional :index_id, :string, 3
|
94
95
|
end
|
96
|
+
add_message "google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata" do
|
97
|
+
optional :migration_state, :enum, 1, "google.datastore.admin.v1.MigrationState"
|
98
|
+
optional :migration_step, :enum, 2, "google.datastore.admin.v1.MigrationStep"
|
99
|
+
end
|
95
100
|
add_enum "google.datastore.admin.v1.OperationType" do
|
96
101
|
value :OPERATION_TYPE_UNSPECIFIED, 0
|
97
102
|
value :EXPORT_ENTITIES, 1
|
@@ -122,6 +127,7 @@ module Google
|
|
122
127
|
ListIndexesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.ListIndexesRequest").msgclass
|
123
128
|
ListIndexesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.ListIndexesResponse").msgclass
|
124
129
|
IndexOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.IndexOperationMetadata").msgclass
|
130
|
+
DatastoreFirestoreMigrationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata").msgclass
|
125
131
|
OperationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.OperationType").enummodule
|
126
132
|
end
|
127
133
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/datastore/admin/v1/datastore_admin.proto for package 'Google.Cloud.Datastore.Admin.V1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2021 Google LLC
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/datastore/admin/v1/migration.proto
|
3
|
+
|
4
|
+
require 'google/api/annotations_pb'
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("google/datastore/admin/v1/migration.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.datastore.admin.v1.MigrationStateEvent" do
|
10
|
+
optional :state, :enum, 1, "google.datastore.admin.v1.MigrationState"
|
11
|
+
end
|
12
|
+
add_message "google.datastore.admin.v1.MigrationProgressEvent" do
|
13
|
+
optional :step, :enum, 1, "google.datastore.admin.v1.MigrationStep"
|
14
|
+
oneof :step_details do
|
15
|
+
optional :prepare_step_details, :message, 2, "google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails"
|
16
|
+
optional :redirect_writes_step_details, :message, 3, "google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
add_message "google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails" do
|
20
|
+
optional :concurrency_mode, :enum, 1, "google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode"
|
21
|
+
end
|
22
|
+
add_message "google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails" do
|
23
|
+
optional :concurrency_mode, :enum, 1, "google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode"
|
24
|
+
end
|
25
|
+
add_enum "google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode" do
|
26
|
+
value :CONCURRENCY_MODE_UNSPECIFIED, 0
|
27
|
+
value :PESSIMISTIC, 1
|
28
|
+
value :OPTIMISTIC, 2
|
29
|
+
end
|
30
|
+
add_enum "google.datastore.admin.v1.MigrationState" do
|
31
|
+
value :MIGRATION_STATE_UNSPECIFIED, 0
|
32
|
+
value :RUNNING, 1
|
33
|
+
value :PAUSED, 2
|
34
|
+
value :COMPLETE, 3
|
35
|
+
end
|
36
|
+
add_enum "google.datastore.admin.v1.MigrationStep" do
|
37
|
+
value :MIGRATION_STEP_UNSPECIFIED, 0
|
38
|
+
value :PREPARE, 6
|
39
|
+
value :START, 1
|
40
|
+
value :APPLY_WRITES_SYNCHRONOUSLY, 7
|
41
|
+
value :COPY_AND_VERIFY, 2
|
42
|
+
value :REDIRECT_EVENTUALLY_CONSISTENT_READS, 3
|
43
|
+
value :REDIRECT_STRONGLY_CONSISTENT_READS, 4
|
44
|
+
value :REDIRECT_WRITES, 5
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
module Google
|
50
|
+
module Cloud
|
51
|
+
module Datastore
|
52
|
+
module Admin
|
53
|
+
module V1
|
54
|
+
MigrationStateEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.MigrationStateEvent").msgclass
|
55
|
+
MigrationProgressEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.MigrationProgressEvent").msgclass
|
56
|
+
MigrationProgressEvent::PrepareStepDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails").msgclass
|
57
|
+
MigrationProgressEvent::RedirectWritesStepDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails").msgclass
|
58
|
+
MigrationProgressEvent::ConcurrencyMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode").enummodule
|
59
|
+
MigrationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.MigrationState").enummodule
|
60
|
+
MigrationStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.MigrationStep").enummodule
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -367,6 +367,27 @@ module Google
|
|
367
367
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
368
368
|
end
|
369
369
|
|
370
|
+
# Metadata for Datastore to Firestore migration operations.
|
371
|
+
#
|
372
|
+
# The DatastoreFirestoreMigration operation is not started by the end-user via
|
373
|
+
# an explicit "creation" method. This is an intentional deviation from the LRO
|
374
|
+
# design pattern.
|
375
|
+
#
|
376
|
+
# This singleton resource can be accessed at:
|
377
|
+
# `projects/{project_id}/datastore-firestore-migration`
|
378
|
+
# @!attribute [rw] migration_state
|
379
|
+
# @return [::Google::Cloud::Datastore::Admin::V1::MigrationState]
|
380
|
+
# The current state of migration from Cloud Datastore to Cloud Firestore in
|
381
|
+
# Datastore mode.
|
382
|
+
# @!attribute [rw] migration_step
|
383
|
+
# @return [::Google::Cloud::Datastore::Admin::V1::MigrationStep]
|
384
|
+
# The current step of migration from Cloud Datastore to Cloud Firestore in
|
385
|
+
# Datastore mode.
|
386
|
+
class DatastoreFirestoreMigrationMetadata
|
387
|
+
include ::Google::Protobuf::MessageExts
|
388
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
389
|
+
end
|
390
|
+
|
370
391
|
# Operation types.
|
371
392
|
module OperationType
|
372
393
|
# Unspecified.
|
@@ -0,0 +1,133 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 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
|
+
# @!attribute [rw] prepare_step_details
|
46
|
+
# @return [::Google::Cloud::Datastore::Admin::V1::MigrationProgressEvent::PrepareStepDetails]
|
47
|
+
# Details for the `PREPARE` step.
|
48
|
+
# @!attribute [rw] redirect_writes_step_details
|
49
|
+
# @return [::Google::Cloud::Datastore::Admin::V1::MigrationProgressEvent::RedirectWritesStepDetails]
|
50
|
+
# Details for the `REDIRECT_WRITES` step.
|
51
|
+
class MigrationProgressEvent
|
52
|
+
include ::Google::Protobuf::MessageExts
|
53
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
54
|
+
|
55
|
+
# Details for the `PREPARE` step.
|
56
|
+
# @!attribute [rw] concurrency_mode
|
57
|
+
# @return [::Google::Cloud::Datastore::Admin::V1::MigrationProgressEvent::ConcurrencyMode]
|
58
|
+
# The concurrency mode this database will use when it reaches the
|
59
|
+
# `REDIRECT_WRITES` step.
|
60
|
+
class PrepareStepDetails
|
61
|
+
include ::Google::Protobuf::MessageExts
|
62
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
63
|
+
end
|
64
|
+
|
65
|
+
# Details for the `REDIRECT_WRITES` step.
|
66
|
+
# @!attribute [rw] concurrency_mode
|
67
|
+
# @return [::Google::Cloud::Datastore::Admin::V1::MigrationProgressEvent::ConcurrencyMode]
|
68
|
+
# Ths concurrency mode for this database.
|
69
|
+
class RedirectWritesStepDetails
|
70
|
+
include ::Google::Protobuf::MessageExts
|
71
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
72
|
+
end
|
73
|
+
|
74
|
+
# Concurrency modes for transactions in Cloud Firestore.
|
75
|
+
module ConcurrencyMode
|
76
|
+
# Unspecified.
|
77
|
+
CONCURRENCY_MODE_UNSPECIFIED = 0
|
78
|
+
|
79
|
+
# Pessimistic concurrency.
|
80
|
+
PESSIMISTIC = 1
|
81
|
+
|
82
|
+
# Optimistic concurrency.
|
83
|
+
OPTIMISTIC = 2
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# States for a migration.
|
88
|
+
module MigrationState
|
89
|
+
# Unspecified.
|
90
|
+
MIGRATION_STATE_UNSPECIFIED = 0
|
91
|
+
|
92
|
+
# The migration is running.
|
93
|
+
RUNNING = 1
|
94
|
+
|
95
|
+
# The migration is paused.
|
96
|
+
PAUSED = 2
|
97
|
+
|
98
|
+
# The migration is complete.
|
99
|
+
COMPLETE = 3
|
100
|
+
end
|
101
|
+
|
102
|
+
# Steps in a migration.
|
103
|
+
module MigrationStep
|
104
|
+
# Unspecified.
|
105
|
+
MIGRATION_STEP_UNSPECIFIED = 0
|
106
|
+
|
107
|
+
# Pre-migration: the database is prepared for migration.
|
108
|
+
PREPARE = 6
|
109
|
+
|
110
|
+
# Start of migration.
|
111
|
+
START = 1
|
112
|
+
|
113
|
+
# Writes are applied synchronously to at least one replica.
|
114
|
+
APPLY_WRITES_SYNCHRONOUSLY = 7
|
115
|
+
|
116
|
+
# Data is copied to Cloud Firestore and then verified to match the data in
|
117
|
+
# Cloud Datastore.
|
118
|
+
COPY_AND_VERIFY = 2
|
119
|
+
|
120
|
+
# Eventually-consistent reads are redirected to Cloud Firestore.
|
121
|
+
REDIRECT_EVENTUALLY_CONSISTENT_READS = 3
|
122
|
+
|
123
|
+
# Strongly-consistent reads are redirected to Cloud Firestore.
|
124
|
+
REDIRECT_STRONGLY_CONSISTENT_READS = 4
|
125
|
+
|
126
|
+
# Writes are redirected to Cloud Firestore.
|
127
|
+
REDIRECT_WRITES = 5
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
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
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -179,11 +179,13 @@ files:
|
|
179
179
|
- lib/google/datastore/admin/v1/datastore_admin_pb.rb
|
180
180
|
- lib/google/datastore/admin/v1/datastore_admin_services_pb.rb
|
181
181
|
- lib/google/datastore/admin/v1/index_pb.rb
|
182
|
+
- lib/google/datastore/admin/v1/migration_pb.rb
|
182
183
|
- proto_docs/README.md
|
183
184
|
- proto_docs/google/api/field_behavior.rb
|
184
185
|
- proto_docs/google/api/resource.rb
|
185
186
|
- proto_docs/google/datastore/admin/v1/datastore_admin.rb
|
186
187
|
- proto_docs/google/datastore/admin/v1/index.rb
|
188
|
+
- proto_docs/google/datastore/admin/v1/migration.rb
|
187
189
|
- proto_docs/google/longrunning/operations.rb
|
188
190
|
- proto_docs/google/protobuf/any.rb
|
189
191
|
- proto_docs/google/protobuf/duration.rb
|
@@ -209,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
211
|
- !ruby/object:Gem::Version
|
210
212
|
version: '0'
|
211
213
|
requirements: []
|
212
|
-
rubygems_version: 3.
|
214
|
+
rubygems_version: 3.3.4
|
213
215
|
signing_key:
|
214
216
|
specification_version: 4
|
215
217
|
summary: API Client library for the Firestore in Datastore mode Admin V1 API
|