google-cloud-spanner-admin-database-v1 0.11.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/client.rb +187 -52
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/operations.rb +14 -16
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest/client.rb +2236 -0
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest/operations.rb +880 -0
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb +1274 -0
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest.rb +63 -0
- data/lib/google/cloud/spanner/admin/database/v1/database_admin.rb +7 -1
- data/lib/google/cloud/spanner/admin/database/v1/rest.rb +41 -0
- data/lib/google/cloud/spanner/admin/database/v1/version.rb +1 -1
- data/lib/google/cloud/spanner/admin/database/v1.rb +7 -2
- data/lib/google/spanner/admin/database/v1/spanner_database_admin_pb.rb +14 -0
- data/lib/google/spanner/admin/database/v1/spanner_database_admin_services_pb.rb +37 -0
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- data/proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb +44 -0
- metadata +16 -8
@@ -0,0 +1,71 @@
|
|
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 Api
|
22
|
+
# The launch stage as defined by [Google Cloud Platform
|
23
|
+
# Launch Stages](https://cloud.google.com/terms/launch-stages).
|
24
|
+
module LaunchStage
|
25
|
+
# Do not use this default value.
|
26
|
+
LAUNCH_STAGE_UNSPECIFIED = 0
|
27
|
+
|
28
|
+
# The feature is not yet implemented. Users can not use it.
|
29
|
+
UNIMPLEMENTED = 6
|
30
|
+
|
31
|
+
# Prelaunch features are hidden from users and are only visible internally.
|
32
|
+
PRELAUNCH = 7
|
33
|
+
|
34
|
+
# Early Access features are limited to a closed group of testers. To use
|
35
|
+
# these features, you must sign up in advance and sign a Trusted Tester
|
36
|
+
# agreement (which includes confidentiality provisions). These features may
|
37
|
+
# be unstable, changed in backward-incompatible ways, and are not
|
38
|
+
# guaranteed to be released.
|
39
|
+
EARLY_ACCESS = 1
|
40
|
+
|
41
|
+
# Alpha is a limited availability test for releases before they are cleared
|
42
|
+
# for widespread use. By Alpha, all significant design issues are resolved
|
43
|
+
# and we are in the process of verifying functionality. Alpha customers
|
44
|
+
# need to apply for access, agree to applicable terms, and have their
|
45
|
+
# projects allowlisted. Alpha releases don't have to be feature complete,
|
46
|
+
# no SLAs are provided, and there are no technical support obligations, but
|
47
|
+
# they will be far enough along that customers can actually use them in
|
48
|
+
# test environments or for limited-use tests -- just like they would in
|
49
|
+
# normal production cases.
|
50
|
+
ALPHA = 2
|
51
|
+
|
52
|
+
# Beta is the point at which we are ready to open a release for any
|
53
|
+
# customer to use. There are no SLA or technical support obligations in a
|
54
|
+
# Beta release. Products will be complete from a feature perspective, but
|
55
|
+
# may have some open outstanding issues. Beta releases are suitable for
|
56
|
+
# limited production use cases.
|
57
|
+
BETA = 3
|
58
|
+
|
59
|
+
# GA features are open to all developers and are considered stable and
|
60
|
+
# fully qualified for production use.
|
61
|
+
GA = 4
|
62
|
+
|
63
|
+
# Deprecated features are scheduled to be shut down and removed. For more
|
64
|
+
# information, see the "Deprecation Policy" section of our [Terms of
|
65
|
+
# Service](https://cloud.google.com/terms/)
|
66
|
+
# and the [Google Cloud Platform Subject to the Deprecation
|
67
|
+
# Policy](https://cloud.google.com/terms/deprecation) documentation.
|
68
|
+
DEPRECATED = 5
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -35,7 +35,8 @@ module Google
|
|
35
35
|
# only if the expression evaluates to `true`. A condition can add constraints
|
36
36
|
# based on attributes of the request, the resource, or both. To learn which
|
37
37
|
# resources support conditions in their IAM policies, see the
|
38
|
-
# [IAM
|
38
|
+
# [IAM
|
39
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
39
40
|
#
|
40
41
|
# **JSON example:**
|
41
42
|
#
|
@@ -58,7 +59,8 @@ module Google
|
|
58
59
|
# "condition": {
|
59
60
|
# "title": "expirable access",
|
60
61
|
# "description": "Does not grant access after Sep 2020",
|
61
|
-
# "expression": "request.time <
|
62
|
+
# "expression": "request.time <
|
63
|
+
# timestamp('2020-10-01T00:00:00.000Z')",
|
62
64
|
# }
|
63
65
|
# }
|
64
66
|
# ],
|
@@ -112,7 +114,8 @@ module Google
|
|
112
114
|
# specify any valid version or leave the field unset.
|
113
115
|
#
|
114
116
|
# To learn which resources support conditions in their IAM policies, see the
|
115
|
-
# [IAM
|
117
|
+
# [IAM
|
118
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
116
119
|
# @!attribute [rw] bindings
|
117
120
|
# @return [::Array<::Google::Iam::V1::Binding>]
|
118
121
|
# Associates a list of `members`, or principals, with a `role`. Optionally,
|
@@ -305,7 +308,8 @@ module Google
|
|
305
308
|
# @return [::Array<::String>]
|
306
309
|
# Specifies the identities that do not cause logging for this type of
|
307
310
|
# permission.
|
308
|
-
# Follows the same format of
|
311
|
+
# Follows the same format of
|
312
|
+
# {::Google::Iam::V1::Binding#members Binding.members}.
|
309
313
|
class AuditLogConfig
|
310
314
|
include ::Google::Protobuf::MessageExts
|
311
315
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -26,8 +26,6 @@ module Google
|
|
26
26
|
# service Foo {
|
27
27
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
28
|
# }
|
29
|
-
#
|
30
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
29
|
class Empty
|
32
30
|
include ::Google::Protobuf::MessageExts
|
33
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -28,12 +28,14 @@ module Google
|
|
28
28
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
29
29
|
# @!attribute [rw] code
|
30
30
|
# @return [::Integer]
|
31
|
-
# The status code, which should be an enum value of
|
31
|
+
# The status code, which should be an enum value of
|
32
|
+
# [google.rpc.Code][google.rpc.Code].
|
32
33
|
# @!attribute [rw] message
|
33
34
|
# @return [::String]
|
34
35
|
# A developer-facing error message, which should be in English. Any
|
35
36
|
# user-facing error message should be localized and sent in the
|
36
|
-
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
37
|
+
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
38
|
+
# by the client.
|
37
39
|
# @!attribute [rw] details
|
38
40
|
# @return [::Array<::Google::Protobuf::Any>]
|
39
41
|
# A list of messages that carry the error details. There is a common set of
|
@@ -96,6 +96,14 @@ module Google
|
|
96
96
|
# @!attribute [r] database_dialect
|
97
97
|
# @return [::Google::Cloud::Spanner::Admin::Database::V1::DatabaseDialect]
|
98
98
|
# Output only. The dialect of the Cloud Spanner Database.
|
99
|
+
# @!attribute [rw] enable_drop_protection
|
100
|
+
# @return [::Boolean]
|
101
|
+
# Whether drop protection is enabled for this database. Defaults to false,
|
102
|
+
# if not set.
|
103
|
+
# @!attribute [r] reconciling
|
104
|
+
# @return [::Boolean]
|
105
|
+
# Output only. If true, the database is being updated. If false, there are no
|
106
|
+
# ongoing update operations for the database.
|
99
107
|
class Database
|
100
108
|
include ::Google::Protobuf::MessageExts
|
101
109
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -208,6 +216,42 @@ module Google
|
|
208
216
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
209
217
|
end
|
210
218
|
|
219
|
+
# The request for
|
220
|
+
# {::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#update_database UpdateDatabase}.
|
221
|
+
# @!attribute [rw] database
|
222
|
+
# @return [::Google::Cloud::Spanner::Admin::Database::V1::Database]
|
223
|
+
# Required. The database to update.
|
224
|
+
# The `name` field of the database is of the form
|
225
|
+
# `projects/<project>/instances/<instance>/databases/<database>`.
|
226
|
+
# @!attribute [rw] update_mask
|
227
|
+
# @return [::Google::Protobuf::FieldMask]
|
228
|
+
# Required. The list of fields to update. Currently, only
|
229
|
+
# `enable_drop_protection` field can be updated.
|
230
|
+
class UpdateDatabaseRequest
|
231
|
+
include ::Google::Protobuf::MessageExts
|
232
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
233
|
+
end
|
234
|
+
|
235
|
+
# Metadata type for the operation returned by
|
236
|
+
# {::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#update_database UpdateDatabase}.
|
237
|
+
# @!attribute [rw] request
|
238
|
+
# @return [::Google::Cloud::Spanner::Admin::Database::V1::UpdateDatabaseRequest]
|
239
|
+
# The request for
|
240
|
+
# {::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#update_database UpdateDatabase}.
|
241
|
+
# @!attribute [rw] progress
|
242
|
+
# @return [::Google::Cloud::Spanner::Admin::Database::V1::OperationProgress]
|
243
|
+
# The progress of the
|
244
|
+
# {::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#update_database UpdateDatabase}
|
245
|
+
# operation.
|
246
|
+
# @!attribute [rw] cancel_time
|
247
|
+
# @return [::Google::Protobuf::Timestamp]
|
248
|
+
# The time at which this operation was cancelled. If set, this operation is
|
249
|
+
# in the process of undoing itself (which is best-effort).
|
250
|
+
class UpdateDatabaseMetadata
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
211
255
|
# Enqueues the given DDL statements to be applied, in order but not
|
212
256
|
# necessarily all at once, to the database schema at some point (or
|
213
257
|
# points) in the future. The server checks that the statements
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-spanner-admin-database-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.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: 2023-05-17 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:
|
19
|
+
version: 0.18.0
|
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:
|
29
|
+
version: 0.18.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 1.26.
|
67
|
+
version: 1.26.3
|
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: 1.26.
|
74
|
+
version: 1.26.3
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -190,13 +190,20 @@ files:
|
|
190
190
|
- lib/google/cloud/spanner/admin/database/v1/database_admin/credentials.rb
|
191
191
|
- lib/google/cloud/spanner/admin/database/v1/database_admin/operations.rb
|
192
192
|
- lib/google/cloud/spanner/admin/database/v1/database_admin/paths.rb
|
193
|
+
- lib/google/cloud/spanner/admin/database/v1/database_admin/rest.rb
|
194
|
+
- lib/google/cloud/spanner/admin/database/v1/database_admin/rest/client.rb
|
195
|
+
- lib/google/cloud/spanner/admin/database/v1/database_admin/rest/operations.rb
|
196
|
+
- lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb
|
197
|
+
- lib/google/cloud/spanner/admin/database/v1/rest.rb
|
193
198
|
- lib/google/cloud/spanner/admin/database/v1/version.rb
|
194
199
|
- lib/google/spanner/admin/database/v1/backup_pb.rb
|
195
200
|
- lib/google/spanner/admin/database/v1/common_pb.rb
|
196
201
|
- lib/google/spanner/admin/database/v1/spanner_database_admin_pb.rb
|
197
202
|
- lib/google/spanner/admin/database/v1/spanner_database_admin_services_pb.rb
|
198
203
|
- proto_docs/README.md
|
204
|
+
- proto_docs/google/api/client.rb
|
199
205
|
- proto_docs/google/api/field_behavior.rb
|
206
|
+
- proto_docs/google/api/launch_stage.rb
|
200
207
|
- proto_docs/google/api/resource.rb
|
201
208
|
- proto_docs/google/iam/v1/iam_policy.rb
|
202
209
|
- proto_docs/google/iam/v1/options.rb
|
@@ -231,8 +238,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
238
|
- !ruby/object:Gem::Version
|
232
239
|
version: '0'
|
233
240
|
requirements: []
|
234
|
-
rubygems_version: 3.
|
241
|
+
rubygems_version: 3.4.2
|
235
242
|
signing_key:
|
236
243
|
specification_version: 4
|
237
|
-
summary:
|
244
|
+
summary: Cloud Spanner is a managed, mission-critical, globally consistent and scalable
|
245
|
+
relational database service.
|
238
246
|
test_files: []
|