google-cloud-spanner-admin-database-v1 0.7.3 → 0.7.6
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/README.md +1 -1
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/client.rb +403 -56
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/operations.rb +115 -12
- data/lib/google/cloud/spanner/admin/database/v1/database_admin.rb +5 -4
- data/lib/google/cloud/spanner/admin/database/v1/version.rb +1 -1
- data/lib/google/cloud/spanner/admin/database/v1.rb +2 -0
- data/lib/google/spanner/admin/database/v1/backup_pb.rb +3 -3
- data/lib/google/spanner/admin/database/v1/common_pb.rb +8 -3
- data/lib/google/spanner/admin/database/v1/spanner_database_admin_pb.rb +4 -2
- data/lib/google/spanner/admin/database/v1/spanner_database_admin_services_pb.rb +8 -5
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/spanner/admin/database/v1/backup.rb +3 -0
- data/proto_docs/google/spanner/admin/database/v1/common.rb +13 -0
- data/proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb +6 -0
- metadata +3 -3
@@ -145,6 +145,27 @@ module Google
|
|
145
145
|
#
|
146
146
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
147
147
|
#
|
148
|
+
# @example Basic example
|
149
|
+
# require "google/longrunning"
|
150
|
+
#
|
151
|
+
# # Create a client object. The client can be reused for multiple calls.
|
152
|
+
# client = Google::Longrunning::Operations::Client.new
|
153
|
+
#
|
154
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
155
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
156
|
+
#
|
157
|
+
# # Call the list_operations method.
|
158
|
+
# result = client.list_operations request
|
159
|
+
#
|
160
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
161
|
+
# # iterate over all elements by calling #each, and the enumerable
|
162
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
163
|
+
# # methods are also available for managing paging directly.
|
164
|
+
# result.each do |response|
|
165
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
166
|
+
# p response
|
167
|
+
# end
|
168
|
+
#
|
148
169
|
def list_operations request, options = nil
|
149
170
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
150
171
|
|
@@ -162,9 +183,11 @@ module Google
|
|
162
183
|
gapic_version: ::Google::Cloud::Spanner::Admin::Database::V1::VERSION
|
163
184
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
164
185
|
|
165
|
-
header_params = {
|
166
|
-
|
167
|
-
|
186
|
+
header_params = {}
|
187
|
+
if request.name
|
188
|
+
header_params["name"] = request.name
|
189
|
+
end
|
190
|
+
|
168
191
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
169
192
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
170
193
|
|
@@ -217,6 +240,28 @@ module Google
|
|
217
240
|
#
|
218
241
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
219
242
|
#
|
243
|
+
# @example Basic example
|
244
|
+
# require "google/longrunning"
|
245
|
+
#
|
246
|
+
# # Create a client object. The client can be reused for multiple calls.
|
247
|
+
# client = Google::Longrunning::Operations::Client.new
|
248
|
+
#
|
249
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
250
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
251
|
+
#
|
252
|
+
# # Call the get_operation method.
|
253
|
+
# result = client.get_operation request
|
254
|
+
#
|
255
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
256
|
+
# # object to check the status of an operation, cancel it, or wait
|
257
|
+
# # for results. Here is how to block until completion:
|
258
|
+
# result.wait_until_done! timeout: 60
|
259
|
+
# if result.response?
|
260
|
+
# p result.response
|
261
|
+
# else
|
262
|
+
# puts "Error!"
|
263
|
+
# end
|
264
|
+
#
|
220
265
|
def get_operation request, options = nil
|
221
266
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
222
267
|
|
@@ -234,9 +279,11 @@ module Google
|
|
234
279
|
gapic_version: ::Google::Cloud::Spanner::Admin::Database::V1::VERSION
|
235
280
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
236
281
|
|
237
|
-
header_params = {
|
238
|
-
|
239
|
-
|
282
|
+
header_params = {}
|
283
|
+
if request.name
|
284
|
+
header_params["name"] = request.name
|
285
|
+
end
|
286
|
+
|
240
287
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
241
288
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
242
289
|
|
@@ -289,6 +336,21 @@ module Google
|
|
289
336
|
#
|
290
337
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
291
338
|
#
|
339
|
+
# @example Basic example
|
340
|
+
# require "google/longrunning"
|
341
|
+
#
|
342
|
+
# # Create a client object. The client can be reused for multiple calls.
|
343
|
+
# client = Google::Longrunning::Operations::Client.new
|
344
|
+
#
|
345
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
346
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
347
|
+
#
|
348
|
+
# # Call the delete_operation method.
|
349
|
+
# result = client.delete_operation request
|
350
|
+
#
|
351
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
352
|
+
# p result
|
353
|
+
#
|
292
354
|
def delete_operation request, options = nil
|
293
355
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
294
356
|
|
@@ -306,9 +368,11 @@ module Google
|
|
306
368
|
gapic_version: ::Google::Cloud::Spanner::Admin::Database::V1::VERSION
|
307
369
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
308
370
|
|
309
|
-
header_params = {
|
310
|
-
|
311
|
-
|
371
|
+
header_params = {}
|
372
|
+
if request.name
|
373
|
+
header_params["name"] = request.name
|
374
|
+
end
|
375
|
+
|
312
376
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
313
377
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
314
378
|
|
@@ -366,6 +430,21 @@ module Google
|
|
366
430
|
#
|
367
431
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
368
432
|
#
|
433
|
+
# @example Basic example
|
434
|
+
# require "google/longrunning"
|
435
|
+
#
|
436
|
+
# # Create a client object. The client can be reused for multiple calls.
|
437
|
+
# client = Google::Longrunning::Operations::Client.new
|
438
|
+
#
|
439
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
440
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
441
|
+
#
|
442
|
+
# # Call the cancel_operation method.
|
443
|
+
# result = client.cancel_operation request
|
444
|
+
#
|
445
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
446
|
+
# p result
|
447
|
+
#
|
369
448
|
def cancel_operation request, options = nil
|
370
449
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
371
450
|
|
@@ -383,9 +462,11 @@ module Google
|
|
383
462
|
gapic_version: ::Google::Cloud::Spanner::Admin::Database::V1::VERSION
|
384
463
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
385
464
|
|
386
|
-
header_params = {
|
387
|
-
|
388
|
-
|
465
|
+
header_params = {}
|
466
|
+
if request.name
|
467
|
+
header_params["name"] = request.name
|
468
|
+
end
|
469
|
+
|
389
470
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
390
471
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
391
472
|
|
@@ -446,6 +527,28 @@ module Google
|
|
446
527
|
#
|
447
528
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
448
529
|
#
|
530
|
+
# @example Basic example
|
531
|
+
# require "google/longrunning"
|
532
|
+
#
|
533
|
+
# # Create a client object. The client can be reused for multiple calls.
|
534
|
+
# client = Google::Longrunning::Operations::Client.new
|
535
|
+
#
|
536
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
537
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
538
|
+
#
|
539
|
+
# # Call the wait_operation method.
|
540
|
+
# result = client.wait_operation request
|
541
|
+
#
|
542
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
543
|
+
# # object to check the status of an operation, cancel it, or wait
|
544
|
+
# # for results. Here is how to block until completion:
|
545
|
+
# result.wait_until_done! timeout: 60
|
546
|
+
# if result.response?
|
547
|
+
# p result.response
|
548
|
+
# else
|
549
|
+
# puts "Error!"
|
550
|
+
# end
|
551
|
+
#
|
449
552
|
def wait_operation request, options = nil
|
450
553
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
451
554
|
|
@@ -36,10 +36,11 @@ module Google
|
|
36
36
|
##
|
37
37
|
# Cloud Spanner Database Admin API
|
38
38
|
#
|
39
|
-
# The Cloud Spanner Database Admin API can be used to
|
40
|
-
#
|
41
|
-
#
|
42
|
-
#
|
39
|
+
# The Cloud Spanner Database Admin API can be used to:
|
40
|
+
# * create, drop, and list databases
|
41
|
+
# * update the schema of pre-existing databases
|
42
|
+
# * create, delete and list backups for a database
|
43
|
+
# * restore a database from an existing backup
|
43
44
|
#
|
44
45
|
# To load this service and instantiate a client:
|
45
46
|
#
|
@@ -27,6 +27,8 @@ module Google
|
|
27
27
|
##
|
28
28
|
# To load this package, including all its services, and instantiate a client:
|
29
29
|
#
|
30
|
+
# @example
|
31
|
+
#
|
30
32
|
# require "google/cloud/spanner/admin/database/v1"
|
31
33
|
# client = ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client.new
|
32
34
|
#
|
@@ -1,15 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/spanner/admin/database/v1/backup.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/longrunning/operations_pb'
|
9
7
|
require 'google/protobuf/field_mask_pb'
|
10
8
|
require 'google/protobuf/timestamp_pb'
|
11
9
|
require 'google/spanner/admin/database/v1/common_pb'
|
12
|
-
require 'google/
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
13
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
13
|
add_file("google/spanner/admin/database/v1/backup.proto", :syntax => :proto3) do
|
15
14
|
add_message "google.spanner.admin.database.v1.Backup" do
|
@@ -22,6 +21,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
22
21
|
optional :state, :enum, 6, "google.spanner.admin.database.v1.Backup.State"
|
23
22
|
repeated :referencing_databases, :string, 7
|
24
23
|
optional :encryption_info, :message, 8, "google.spanner.admin.database.v1.EncryptionInfo"
|
24
|
+
optional :database_dialect, :enum, 10, "google.spanner.admin.database.v1.DatabaseDialect"
|
25
25
|
end
|
26
26
|
add_enum "google.spanner.admin.database.v1.Backup.State" do
|
27
27
|
value :STATE_UNSPECIFIED, 0
|
@@ -1,13 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/spanner/admin/database/v1/common.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/protobuf/timestamp_pb'
|
9
7
|
require 'google/rpc/status_pb'
|
10
|
-
require 'google/
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
11
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
11
|
add_file("google/spanner/admin/database/v1/common.proto", :syntax => :proto3) do
|
13
12
|
add_message "google.spanner.admin.database.v1.OperationProgress" do
|
@@ -28,6 +27,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
28
27
|
value :GOOGLE_DEFAULT_ENCRYPTION, 1
|
29
28
|
value :CUSTOMER_MANAGED_ENCRYPTION, 2
|
30
29
|
end
|
30
|
+
add_enum "google.spanner.admin.database.v1.DatabaseDialect" do
|
31
|
+
value :DATABASE_DIALECT_UNSPECIFIED, 0
|
32
|
+
value :GOOGLE_STANDARD_SQL, 1
|
33
|
+
value :POSTGRESQL, 2
|
34
|
+
end
|
31
35
|
end
|
32
36
|
end
|
33
37
|
|
@@ -41,6 +45,7 @@ module Google
|
|
41
45
|
EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.EncryptionConfig").msgclass
|
42
46
|
EncryptionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.EncryptionInfo").msgclass
|
43
47
|
EncryptionInfo::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.EncryptionInfo.Type").enummodule
|
48
|
+
DatabaseDialect = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.DatabaseDialect").enummodule
|
44
49
|
end
|
45
50
|
end
|
46
51
|
end
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/spanner/admin/database/v1/spanner_database_admin.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -14,6 +12,8 @@ require 'google/protobuf/empty_pb'
|
|
14
12
|
require 'google/protobuf/timestamp_pb'
|
15
13
|
require 'google/spanner/admin/database/v1/backup_pb'
|
16
14
|
require 'google/spanner/admin/database/v1/common_pb'
|
15
|
+
require 'google/protobuf'
|
16
|
+
|
17
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
18
|
add_file("google/spanner/admin/database/v1/spanner_database_admin.proto", :syntax => :proto3) do
|
19
19
|
add_message "google.spanner.admin.database.v1.RestoreInfo" do
|
@@ -32,6 +32,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
32
32
|
optional :version_retention_period, :string, 6
|
33
33
|
optional :earliest_version_time, :message, 7, "google.protobuf.Timestamp"
|
34
34
|
optional :default_leader, :string, 9
|
35
|
+
optional :database_dialect, :enum, 10, "google.spanner.admin.database.v1.DatabaseDialect"
|
35
36
|
end
|
36
37
|
add_enum "google.spanner.admin.database.v1.Database.State" do
|
37
38
|
value :STATE_UNSPECIFIED, 0
|
@@ -53,6 +54,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
53
54
|
optional :create_statement, :string, 2
|
54
55
|
repeated :extra_statements, :string, 3
|
55
56
|
optional :encryption_config, :message, 4, "google.spanner.admin.database.v1.EncryptionConfig"
|
57
|
+
optional :database_dialect, :enum, 5, "google.spanner.admin.database.v1.DatabaseDialect"
|
56
58
|
end
|
57
59
|
add_message "google.spanner.admin.database.v1.CreateDatabaseMetadata" do
|
58
60
|
optional :database, :string, 1
|
@@ -28,13 +28,14 @@ module Google
|
|
28
28
|
module DatabaseAdmin
|
29
29
|
# Cloud Spanner Database Admin API
|
30
30
|
#
|
31
|
-
# The Cloud Spanner Database Admin API can be used to
|
32
|
-
#
|
33
|
-
#
|
34
|
-
#
|
31
|
+
# The Cloud Spanner Database Admin API can be used to:
|
32
|
+
# * create, drop, and list databases
|
33
|
+
# * update the schema of pre-existing databases
|
34
|
+
# * create, delete and list backups for a database
|
35
|
+
# * restore a database from an existing backup
|
35
36
|
class Service
|
36
37
|
|
37
|
-
include GRPC::GenericService
|
38
|
+
include ::GRPC::GenericService
|
38
39
|
|
39
40
|
self.marshal_class_method = :encode
|
40
41
|
self.unmarshal_class_method = :decode
|
@@ -64,6 +65,8 @@ module Google
|
|
64
65
|
# Drops (aka deletes) a Cloud Spanner database.
|
65
66
|
# Completed backups for the database will be retained according to their
|
66
67
|
# `expire_time`.
|
68
|
+
# Note: Cloud Spanner might continue to accept requests for a few seconds
|
69
|
+
# after the database has been deleted.
|
67
70
|
rpc :DropDatabase, ::Google::Cloud::Spanner::Admin::Database::V1::DropDatabaseRequest, ::Google::Protobuf::Empty
|
68
71
|
# Returns the schema of a Cloud Spanner database as a list of formatted
|
69
72
|
# DDL statements. This method does not show pending schema updates, those may
|
@@ -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
|
@@ -83,6 +83,9 @@ module Google
|
|
83
83
|
# @!attribute [r] encryption_info
|
84
84
|
# @return [::Google::Cloud::Spanner::Admin::Database::V1::EncryptionInfo]
|
85
85
|
# Output only. The encryption information for the backup.
|
86
|
+
# @!attribute [r] database_dialect
|
87
|
+
# @return [::Google::Cloud::Spanner::Admin::Database::V1::DatabaseDialect]
|
88
|
+
# Output only. The database dialect information for the backup.
|
86
89
|
class Backup
|
87
90
|
include ::Google::Protobuf::MessageExts
|
88
91
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -85,6 +85,19 @@ module Google
|
|
85
85
|
CUSTOMER_MANAGED_ENCRYPTION = 2
|
86
86
|
end
|
87
87
|
end
|
88
|
+
|
89
|
+
# Indicates the dialect type of a database.
|
90
|
+
module DatabaseDialect
|
91
|
+
# Default value. This value will create a database with the
|
92
|
+
# GOOGLE_STANDARD_SQL dialect.
|
93
|
+
DATABASE_DIALECT_UNSPECIFIED = 0
|
94
|
+
|
95
|
+
# Google standard SQL.
|
96
|
+
GOOGLE_STANDARD_SQL = 1
|
97
|
+
|
98
|
+
# PostgreSQL supported SQL.
|
99
|
+
POSTGRESQL = 2
|
100
|
+
end
|
88
101
|
end
|
89
102
|
end
|
90
103
|
end
|
@@ -93,6 +93,9 @@ module Google
|
|
93
93
|
# This is the same as the value of default_leader
|
94
94
|
# database option set using DatabaseAdmin.CreateDatabase or
|
95
95
|
# DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty.
|
96
|
+
# @!attribute [r] database_dialect
|
97
|
+
# @return [::Google::Cloud::Spanner::Admin::Database::V1::DatabaseDialect]
|
98
|
+
# Output only. The dialect of the Cloud Spanner Database.
|
96
99
|
class Database
|
97
100
|
include ::Google::Protobuf::MessageExts
|
98
101
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -177,6 +180,9 @@ module Google
|
|
177
180
|
# Optional. The encryption configuration for the database. If this field is not
|
178
181
|
# specified, Cloud Spanner will encrypt/decrypt all data at rest using
|
179
182
|
# Google default encryption.
|
183
|
+
# @!attribute [rw] database_dialect
|
184
|
+
# @return [::Google::Cloud::Spanner::Admin::Database::V1::DatabaseDialect]
|
185
|
+
# Optional. The dialect of the Cloud Spanner Database.
|
180
186
|
class CreateDatabaseRequest
|
181
187
|
include ::Google::Protobuf::MessageExts
|
182
188
|
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.7.
|
4
|
+
version: 0.7.6
|
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-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -237,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
237
237
|
- !ruby/object:Gem::Version
|
238
238
|
version: '0'
|
239
239
|
requirements: []
|
240
|
-
rubygems_version: 3.
|
240
|
+
rubygems_version: 3.3.5
|
241
241
|
signing_key:
|
242
242
|
specification_version: 4
|
243
243
|
summary: API Client library for the Cloud Spanner Database Admin V1 API
|