google-cloud-spanner-admin-database-v1 0.12.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/client.rb +147 -2
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/operations.rb +2 -2
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest/client.rb +117 -2
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest/operations.rb +2 -2
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb +60 -0
- data/lib/google/cloud/spanner/admin/database/v1/version.rb +1 -1
- data/lib/google/spanner/admin/database/v1/backup_pb.rb +28 -101
- data/lib/google/spanner/admin/database/v1/common_pb.rb +26 -24
- data/lib/google/spanner/admin/database/v1/spanner_database_admin_pb.rb +33 -126
- data/lib/google/spanner/admin/database/v1/spanner_database_admin_services_pb.rb +37 -0
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb +79 -8
- metadata +4 -4
@@ -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
|
@@ -256,6 +300,30 @@ module Google
|
|
256
300
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
257
301
|
end
|
258
302
|
|
303
|
+
# Action information extracted from a DDL statement. This proto is used to
|
304
|
+
# display the brief info of the DDL statement for the operation
|
305
|
+
# {::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#update_database_ddl UpdateDatabaseDdl}.
|
306
|
+
# @!attribute [rw] action
|
307
|
+
# @return [::String]
|
308
|
+
# The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc.
|
309
|
+
# This field is a non-empty string.
|
310
|
+
# @!attribute [rw] entity_type
|
311
|
+
# @return [::String]
|
312
|
+
# The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc.
|
313
|
+
# This field can be empty string for some DDL statement,
|
314
|
+
# e.g. for statement "ANALYZE", `entity_type` = "".
|
315
|
+
# @!attribute [rw] entity_names
|
316
|
+
# @return [::Array<::String>]
|
317
|
+
# The entity name(s) being operated on the DDL statement.
|
318
|
+
# E.g.
|
319
|
+
# 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"].
|
320
|
+
# 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"].
|
321
|
+
# 3. For statement "ANALYZE", `entity_names` = [].
|
322
|
+
class DdlStatementActionInfo
|
323
|
+
include ::Google::Protobuf::MessageExts
|
324
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
325
|
+
end
|
326
|
+
|
259
327
|
# Metadata type for the operation returned by
|
260
328
|
# {::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#update_database_ddl UpdateDatabaseDdl}.
|
261
329
|
# @!attribute [rw] database
|
@@ -272,19 +340,22 @@ module Google
|
|
272
340
|
# timestamp for the statement `statements[i]`.
|
273
341
|
# @!attribute [r] throttled
|
274
342
|
# @return [::Boolean]
|
275
|
-
# Output only. When true, indicates that the operation is throttled e.g
|
343
|
+
# Output only. When true, indicates that the operation is throttled e.g.
|
276
344
|
# due to resource constraints. When resources become available the operation
|
277
345
|
# will resume and this field will be false again.
|
278
346
|
# @!attribute [rw] progress
|
279
347
|
# @return [::Array<::Google::Cloud::Spanner::Admin::Database::V1::OperationProgress>]
|
280
348
|
# The progress of the
|
281
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#update_database_ddl UpdateDatabaseDdl}
|
282
|
-
#
|
283
|
-
#
|
284
|
-
#
|
285
|
-
#
|
286
|
-
#
|
287
|
-
#
|
349
|
+
# {::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#update_database_ddl UpdateDatabaseDdl}
|
350
|
+
# operations. All DDL statements will have continuously updating progress,
|
351
|
+
# and `progress[i]` is the operation progress for `statements[i]`. Also,
|
352
|
+
# `progress[i]` will have start time and end time populated with commit
|
353
|
+
# timestamp of operation, as well as a progress of 100% once the operation
|
354
|
+
# has completed.
|
355
|
+
# @!attribute [rw] actions
|
356
|
+
# @return [::Array<::Google::Cloud::Spanner::Admin::Database::V1::DdlStatementActionInfo>]
|
357
|
+
# The brief action info for the DDL statements.
|
358
|
+
# `actions[i]` is the brief info for `statements[i]`.
|
288
359
|
class UpdateDatabaseDdlMetadata
|
289
360
|
include ::Google::Protobuf::MessageExts
|
290
361
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
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.14.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: 2023-
|
11
|
+
date: 2023-05-31 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.19.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: 0.
|
29
|
+
version: 0.19.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|