google-cloud-datastore-admin-v1 0.4.5 → 0.7.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/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +11 -6
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/client.rb +1 -0
- data/lib/google/cloud/datastore/admin/v1/datastore_admin/operations.rb +3 -0
- data/lib/google/cloud/datastore/admin/v1/version.rb +1 -1
- data/lib/google/cloud/datastore/admin/v1.rb +2 -0
- data/lib/google/datastore/admin/v1/datastore_admin_pb.rb +8 -1
- data/lib/google/datastore/admin/v1/datastore_admin_services_pb.rb +1 -1
- data/lib/google/datastore/admin/v1/index_pb.rb +2 -2
- 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 +136 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- metadata +14 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddd715e934a380d3751052c29203155c3b5e437a14a66f3a1d03c3bed34ffbcb
|
4
|
+
data.tar.gz: e335d804f8db1f6df787965cec61e43925883c25e25d9a4f41eb326b67879cee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f42a88d64e7ebc512f6d63878e8357a22b42fbf6af457ce6180b62bd2da409be6d7bdd01c3a4f6411631542615c9789f20a73a783ba01e128018c1c35984680f
|
7
|
+
data.tar.gz: a0283c57be865e2fa8342c1d0bc577bafb74c55d1c1f926608d2b72761e2d945d600fd747ca759c2a40a7193a30a1c9bae764393370bde49828d1ac80d0112f3
|
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.
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Datastore::Admin::V1::ExportEntitiesRequest.new # (re
|
|
37
37
|
response = client.export_entities request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-datastore-admin-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/datastore)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -1,13 +1,15 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/datastore/admin/v1/datastore_admin.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
7
9
|
require 'google/datastore/admin/v1/index_pb'
|
10
|
+
require 'google/datastore/admin/v1/migration_pb'
|
8
11
|
require 'google/longrunning/operations_pb'
|
9
12
|
require 'google/protobuf/timestamp_pb'
|
10
|
-
require 'google/protobuf'
|
11
13
|
|
12
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
15
|
add_file("google/datastore/admin/v1/datastore_admin.proto", :syntax => :proto3) do
|
@@ -92,6 +94,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
92
94
|
optional :progress_entities, :message, 2, "google.datastore.admin.v1.Progress"
|
93
95
|
optional :index_id, :string, 3
|
94
96
|
end
|
97
|
+
add_message "google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata" do
|
98
|
+
optional :migration_state, :enum, 1, "google.datastore.admin.v1.MigrationState"
|
99
|
+
optional :migration_step, :enum, 2, "google.datastore.admin.v1.MigrationStep"
|
100
|
+
end
|
95
101
|
add_enum "google.datastore.admin.v1.OperationType" do
|
96
102
|
value :OPERATION_TYPE_UNSPECIFIED, 0
|
97
103
|
value :EXPORT_ENTITIES, 1
|
@@ -122,6 +128,7 @@ module Google
|
|
122
128
|
ListIndexesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.ListIndexesRequest").msgclass
|
123
129
|
ListIndexesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.ListIndexesResponse").msgclass
|
124
130
|
IndexOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.IndexOperationMetadata").msgclass
|
131
|
+
DatastoreFirestoreMigrationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata").msgclass
|
125
132
|
OperationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.datastore.admin.v1.OperationType").enummodule
|
126
133
|
end
|
127
134
|
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.
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/datastore/admin/v1/index.proto
|
3
3
|
|
4
|
-
require 'google/api/field_behavior_pb'
|
5
|
-
require 'google/api/annotations_pb'
|
6
4
|
require 'google/protobuf'
|
7
5
|
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/datastore/admin/v1/index.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.datastore.admin.v1.Index" do
|
@@ -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/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
|
+
oneof :step_details do
|
14
|
+
optional :prepare_step_details, :message, 2, "google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails"
|
15
|
+
optional :redirect_writes_step_details, :message, 3, "google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
add_message "google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails" do
|
19
|
+
optional :concurrency_mode, :enum, 1, "google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode"
|
20
|
+
end
|
21
|
+
add_message "google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails" do
|
22
|
+
optional :concurrency_mode, :enum, 1, "google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode"
|
23
|
+
end
|
24
|
+
add_enum "google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode" do
|
25
|
+
value :CONCURRENCY_MODE_UNSPECIFIED, 0
|
26
|
+
value :PESSIMISTIC, 1
|
27
|
+
value :OPTIMISTIC, 2
|
28
|
+
value :OPTIMISTIC_WITH_ENTITY_GROUPS, 3
|
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}/operations/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,136 @@
|
|
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
|
+
|
85
|
+
# Optimistic concurrency with entity groups.
|
86
|
+
OPTIMISTIC_WITH_ENTITY_GROUPS = 3
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# States for a migration.
|
91
|
+
module MigrationState
|
92
|
+
# Unspecified.
|
93
|
+
MIGRATION_STATE_UNSPECIFIED = 0
|
94
|
+
|
95
|
+
# The migration is running.
|
96
|
+
RUNNING = 1
|
97
|
+
|
98
|
+
# The migration is paused.
|
99
|
+
PAUSED = 2
|
100
|
+
|
101
|
+
# The migration is complete.
|
102
|
+
COMPLETE = 3
|
103
|
+
end
|
104
|
+
|
105
|
+
# Steps in a migration.
|
106
|
+
module MigrationStep
|
107
|
+
# Unspecified.
|
108
|
+
MIGRATION_STEP_UNSPECIFIED = 0
|
109
|
+
|
110
|
+
# Pre-migration: the database is prepared for migration.
|
111
|
+
PREPARE = 6
|
112
|
+
|
113
|
+
# Start of migration.
|
114
|
+
START = 1
|
115
|
+
|
116
|
+
# Writes are applied synchronously to at least one replica.
|
117
|
+
APPLY_WRITES_SYNCHRONOUSLY = 7
|
118
|
+
|
119
|
+
# Data is copied to Cloud Firestore and then verified to match the data in
|
120
|
+
# Cloud Datastore.
|
121
|
+
COPY_AND_VERIFY = 2
|
122
|
+
|
123
|
+
# Eventually-consistent reads are redirected to Cloud Firestore.
|
124
|
+
REDIRECT_EVENTUALLY_CONSISTENT_READS = 3
|
125
|
+
|
126
|
+
# Strongly-consistent reads are redirected to Cloud Firestore.
|
127
|
+
REDIRECT_STRONGLY_CONSISTENT_READS = 4
|
128
|
+
|
129
|
+
# Writes are redirected to Cloud Firestore.
|
130
|
+
REDIRECT_WRITES = 5
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# Example 3: Pack and unpack a message in Python.
|
48
48
|
#
|
49
49
|
# foo = Foo(...)
|
50
50
|
# any = Any()
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# any.Unpack(foo)
|
55
55
|
# ...
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
60
|
# any, err := anypb.New(foo)
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
#
|
76
76
|
#
|
77
77
|
# JSON
|
78
|
-
#
|
78
|
+
#
|
79
79
|
# The JSON representation of an `Any` value uses the regular
|
80
80
|
# representation of the deserialized, embedded message, with an
|
81
81
|
# additional field `@type` which contains the type URL. Example:
|
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.7.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-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.10'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.10'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.26.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.26.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.16'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.16'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest-focus
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '13.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: redcarpet
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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
|
@@ -202,14 +204,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
202
204
|
requirements:
|
203
205
|
- - ">="
|
204
206
|
- !ruby/object:Gem::Version
|
205
|
-
version: '2.
|
207
|
+
version: '2.6'
|
206
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
209
|
requirements:
|
208
210
|
- - ">="
|
209
211
|
- !ruby/object:Gem::Version
|
210
212
|
version: '0'
|
211
213
|
requirements: []
|
212
|
-
rubygems_version: 3.
|
214
|
+
rubygems_version: 3.3.14
|
213
215
|
signing_key:
|
214
216
|
specification_version: 4
|
215
217
|
summary: API Client library for the Firestore in Datastore mode Admin V1 API
|