google-cloud-spanner-admin-database-v1 0.13.0 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/client.rb +4 -2
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/operations.rb +3 -1
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest/client.rb +4 -2
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest/operations.rb +7 -5
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/rest/service_stub.rb +20 -20
- 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 +30 -137
- 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 +35 -8
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 165184d6b1addf27fb91b5b86df6c191ace85cd540875e5ba9c20f445864a1c4
|
4
|
+
data.tar.gz: 0f1ed3d3134959c743b1a545da2c166a5b3079ab5528c1c086ef2537dce80677
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98e7e833ee1fb4d63c05dbc55434eb0c3d9fb08d52d7de919a120b68c1f56cd42d05b4fb85f8cac61b9d4f154fc9248f42d5635901961ef81200f9db3b442fbd
|
7
|
+
data.tar.gz: 92b0b92ca12f4e1d41f7026e8a8754080eaacb7472f856932658d98197a9c78f868c29fd2ce4a3b183a44795c00703f3162c98c35ce1d843fa4a0a17706df279
|
@@ -213,7 +213,7 @@ module Google
|
|
213
213
|
credentials = @config.credentials
|
214
214
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
215
215
|
# but only if the default endpoint does not have a region prefix.
|
216
|
-
enable_self_signed_jwt = @config.endpoint ==
|
216
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
217
217
|
!@config.endpoint.split(".").first.include?("-")
|
218
218
|
credentials ||= Credentials.default scope: @config.scope,
|
219
219
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -2569,7 +2569,9 @@ module Google
|
|
2569
2569
|
class Configuration
|
2570
2570
|
extend ::Gapic::Config
|
2571
2571
|
|
2572
|
-
|
2572
|
+
DEFAULT_ENDPOINT = "spanner.googleapis.com"
|
2573
|
+
|
2574
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
2573
2575
|
config_attr :credentials, nil do |value|
|
2574
2576
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2575
2577
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -666,7 +666,9 @@ module Google
|
|
666
666
|
class Configuration
|
667
667
|
extend ::Gapic::Config
|
668
668
|
|
669
|
-
|
669
|
+
DEFAULT_ENDPOINT = "spanner.googleapis.com"
|
670
|
+
|
671
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
670
672
|
config_attr :credentials, nil do |value|
|
671
673
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
672
674
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -209,7 +209,7 @@ module Google
|
|
209
209
|
credentials = @config.credentials
|
210
210
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
211
211
|
# but only if the default endpoint does not have a region prefix.
|
212
|
-
enable_self_signed_jwt = @config.endpoint ==
|
212
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
213
213
|
!@config.endpoint.split(".").first.include?("-")
|
214
214
|
credentials ||= Credentials.default scope: @config.scope,
|
215
215
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -2027,7 +2027,9 @@ module Google
|
|
2027
2027
|
class Configuration
|
2028
2028
|
extend ::Gapic::Config
|
2029
2029
|
|
2030
|
-
|
2030
|
+
DEFAULT_ENDPOINT = "spanner.googleapis.com"
|
2031
|
+
|
2032
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
2031
2033
|
config_attr :credentials, nil do |value|
|
2032
2034
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2033
2035
|
allowed.any? { |klass| klass === value }
|
@@ -448,7 +448,9 @@ module Google
|
|
448
448
|
class Configuration
|
449
449
|
extend ::Gapic::Config
|
450
450
|
|
451
|
-
|
451
|
+
DEFAULT_ENDPOINT = "spanner.googleapis.com"
|
452
|
+
|
453
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
452
454
|
config_attr :credentials, nil do |value|
|
453
455
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
454
456
|
allowed.any? { |klass| klass === value }
|
@@ -569,7 +571,7 @@ module Google
|
|
569
571
|
|
570
572
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
571
573
|
query_string_params = if query_string_params.any?
|
572
|
-
query_string_params.to_h { |p| p.split
|
574
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
573
575
|
else
|
574
576
|
{}
|
575
577
|
end
|
@@ -607,7 +609,7 @@ module Google
|
|
607
609
|
|
608
610
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
609
611
|
query_string_params = if query_string_params.any?
|
610
|
-
query_string_params.to_h { |p| p.split
|
612
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
611
613
|
else
|
612
614
|
{}
|
613
615
|
end
|
@@ -645,7 +647,7 @@ module Google
|
|
645
647
|
|
646
648
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
647
649
|
query_string_params = if query_string_params.any?
|
648
|
-
query_string_params.to_h { |p| p.split
|
650
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
649
651
|
else
|
650
652
|
{}
|
651
653
|
end
|
@@ -683,7 +685,7 @@ module Google
|
|
683
685
|
|
684
686
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
685
687
|
query_string_params = if query_string_params.any?
|
686
|
-
query_string_params.to_h { |p| p.split
|
688
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
687
689
|
else
|
688
690
|
{}
|
689
691
|
end
|
@@ -61,7 +61,7 @@ module Google
|
|
61
61
|
|
62
62
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_databases_request request_pb
|
63
63
|
query_string_params = if query_string_params.any?
|
64
|
-
query_string_params.to_h { |p| p.split
|
64
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
65
65
|
else
|
66
66
|
{}
|
67
67
|
end
|
@@ -99,7 +99,7 @@ module Google
|
|
99
99
|
|
100
100
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_database_request request_pb
|
101
101
|
query_string_params = if query_string_params.any?
|
102
|
-
query_string_params.to_h { |p| p.split
|
102
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
103
103
|
else
|
104
104
|
{}
|
105
105
|
end
|
@@ -137,7 +137,7 @@ module Google
|
|
137
137
|
|
138
138
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_database_request request_pb
|
139
139
|
query_string_params = if query_string_params.any?
|
140
|
-
query_string_params.to_h { |p| p.split
|
140
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
141
141
|
else
|
142
142
|
{}
|
143
143
|
end
|
@@ -175,7 +175,7 @@ module Google
|
|
175
175
|
|
176
176
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_database_request request_pb
|
177
177
|
query_string_params = if query_string_params.any?
|
178
|
-
query_string_params.to_h { |p| p.split
|
178
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
179
179
|
else
|
180
180
|
{}
|
181
181
|
end
|
@@ -213,7 +213,7 @@ module Google
|
|
213
213
|
|
214
214
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_database_ddl_request request_pb
|
215
215
|
query_string_params = if query_string_params.any?
|
216
|
-
query_string_params.to_h { |p| p.split
|
216
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
217
217
|
else
|
218
218
|
{}
|
219
219
|
end
|
@@ -251,7 +251,7 @@ module Google
|
|
251
251
|
|
252
252
|
verb, uri, query_string_params, body = ServiceStub.transcode_drop_database_request request_pb
|
253
253
|
query_string_params = if query_string_params.any?
|
254
|
-
query_string_params.to_h { |p| p.split
|
254
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
255
255
|
else
|
256
256
|
{}
|
257
257
|
end
|
@@ -289,7 +289,7 @@ module Google
|
|
289
289
|
|
290
290
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_database_ddl_request request_pb
|
291
291
|
query_string_params = if query_string_params.any?
|
292
|
-
query_string_params.to_h { |p| p.split
|
292
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
293
293
|
else
|
294
294
|
{}
|
295
295
|
end
|
@@ -327,7 +327,7 @@ module Google
|
|
327
327
|
|
328
328
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
|
329
329
|
query_string_params = if query_string_params.any?
|
330
|
-
query_string_params.to_h { |p| p.split
|
330
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
331
331
|
else
|
332
332
|
{}
|
333
333
|
end
|
@@ -365,7 +365,7 @@ module Google
|
|
365
365
|
|
366
366
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
|
367
367
|
query_string_params = if query_string_params.any?
|
368
|
-
query_string_params.to_h { |p| p.split
|
368
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
369
369
|
else
|
370
370
|
{}
|
371
371
|
end
|
@@ -403,7 +403,7 @@ module Google
|
|
403
403
|
|
404
404
|
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
405
405
|
query_string_params = if query_string_params.any?
|
406
|
-
query_string_params.to_h { |p| p.split
|
406
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
407
407
|
else
|
408
408
|
{}
|
409
409
|
end
|
@@ -441,7 +441,7 @@ module Google
|
|
441
441
|
|
442
442
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_request request_pb
|
443
443
|
query_string_params = if query_string_params.any?
|
444
|
-
query_string_params.to_h { |p| p.split
|
444
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
445
445
|
else
|
446
446
|
{}
|
447
447
|
end
|
@@ -479,7 +479,7 @@ module Google
|
|
479
479
|
|
480
480
|
verb, uri, query_string_params, body = ServiceStub.transcode_copy_backup_request request_pb
|
481
481
|
query_string_params = if query_string_params.any?
|
482
|
-
query_string_params.to_h { |p| p.split
|
482
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
483
483
|
else
|
484
484
|
{}
|
485
485
|
end
|
@@ -517,7 +517,7 @@ module Google
|
|
517
517
|
|
518
518
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_request request_pb
|
519
519
|
query_string_params = if query_string_params.any?
|
520
|
-
query_string_params.to_h { |p| p.split
|
520
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
521
521
|
else
|
522
522
|
{}
|
523
523
|
end
|
@@ -555,7 +555,7 @@ module Google
|
|
555
555
|
|
556
556
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_request request_pb
|
557
557
|
query_string_params = if query_string_params.any?
|
558
|
-
query_string_params.to_h { |p| p.split
|
558
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
559
559
|
else
|
560
560
|
{}
|
561
561
|
end
|
@@ -593,7 +593,7 @@ module Google
|
|
593
593
|
|
594
594
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_request request_pb
|
595
595
|
query_string_params = if query_string_params.any?
|
596
|
-
query_string_params.to_h { |p| p.split
|
596
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
597
597
|
else
|
598
598
|
{}
|
599
599
|
end
|
@@ -631,7 +631,7 @@ module Google
|
|
631
631
|
|
632
632
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_backups_request request_pb
|
633
633
|
query_string_params = if query_string_params.any?
|
634
|
-
query_string_params.to_h { |p| p.split
|
634
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
635
635
|
else
|
636
636
|
{}
|
637
637
|
end
|
@@ -669,7 +669,7 @@ module Google
|
|
669
669
|
|
670
670
|
verb, uri, query_string_params, body = ServiceStub.transcode_restore_database_request request_pb
|
671
671
|
query_string_params = if query_string_params.any?
|
672
|
-
query_string_params.to_h { |p| p.split
|
672
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
673
673
|
else
|
674
674
|
{}
|
675
675
|
end
|
@@ -707,7 +707,7 @@ module Google
|
|
707
707
|
|
708
708
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_database_operations_request request_pb
|
709
709
|
query_string_params = if query_string_params.any?
|
710
|
-
query_string_params.to_h { |p| p.split
|
710
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
711
711
|
else
|
712
712
|
{}
|
713
713
|
end
|
@@ -745,7 +745,7 @@ module Google
|
|
745
745
|
|
746
746
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_operations_request request_pb
|
747
747
|
query_string_params = if query_string_params.any?
|
748
|
-
query_string_params.to_h { |p| p.split
|
748
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
749
749
|
else
|
750
750
|
{}
|
751
751
|
end
|
@@ -783,7 +783,7 @@ module Google
|
|
783
783
|
|
784
784
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_database_roles_request request_pb
|
785
785
|
query_string_params = if query_string_params.any?
|
786
|
-
query_string_params.to_h { |p| p.split
|
786
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
787
787
|
else
|
788
788
|
{}
|
789
789
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/spanner/admin/database/v1/backup.proto
|
3
4
|
|
@@ -10,109 +11,35 @@ require 'google/protobuf/field_mask_pb'
|
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
11
12
|
require 'google/spanner/admin/database/v1/common_pb'
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
optional :encryption_config, :message, 4, "google.spanner.admin.database.v1.CreateBackupEncryptionConfig"
|
39
|
-
end
|
40
|
-
add_message "google.spanner.admin.database.v1.CreateBackupMetadata" do
|
41
|
-
optional :name, :string, 1
|
42
|
-
optional :database, :string, 2
|
43
|
-
optional :progress, :message, 3, "google.spanner.admin.database.v1.OperationProgress"
|
44
|
-
optional :cancel_time, :message, 4, "google.protobuf.Timestamp"
|
45
|
-
end
|
46
|
-
add_message "google.spanner.admin.database.v1.CopyBackupRequest" do
|
47
|
-
optional :parent, :string, 1
|
48
|
-
optional :backup_id, :string, 2
|
49
|
-
optional :source_backup, :string, 3
|
50
|
-
optional :expire_time, :message, 4, "google.protobuf.Timestamp"
|
51
|
-
optional :encryption_config, :message, 5, "google.spanner.admin.database.v1.CopyBackupEncryptionConfig"
|
52
|
-
end
|
53
|
-
add_message "google.spanner.admin.database.v1.CopyBackupMetadata" do
|
54
|
-
optional :name, :string, 1
|
55
|
-
optional :source_backup, :string, 2
|
56
|
-
optional :progress, :message, 3, "google.spanner.admin.database.v1.OperationProgress"
|
57
|
-
optional :cancel_time, :message, 4, "google.protobuf.Timestamp"
|
58
|
-
end
|
59
|
-
add_message "google.spanner.admin.database.v1.UpdateBackupRequest" do
|
60
|
-
optional :backup, :message, 1, "google.spanner.admin.database.v1.Backup"
|
61
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
62
|
-
end
|
63
|
-
add_message "google.spanner.admin.database.v1.GetBackupRequest" do
|
64
|
-
optional :name, :string, 1
|
65
|
-
end
|
66
|
-
add_message "google.spanner.admin.database.v1.DeleteBackupRequest" do
|
67
|
-
optional :name, :string, 1
|
68
|
-
end
|
69
|
-
add_message "google.spanner.admin.database.v1.ListBackupsRequest" do
|
70
|
-
optional :parent, :string, 1
|
71
|
-
optional :filter, :string, 2
|
72
|
-
optional :page_size, :int32, 3
|
73
|
-
optional :page_token, :string, 4
|
74
|
-
end
|
75
|
-
add_message "google.spanner.admin.database.v1.ListBackupsResponse" do
|
76
|
-
repeated :backups, :message, 1, "google.spanner.admin.database.v1.Backup"
|
77
|
-
optional :next_page_token, :string, 2
|
78
|
-
end
|
79
|
-
add_message "google.spanner.admin.database.v1.ListBackupOperationsRequest" do
|
80
|
-
optional :parent, :string, 1
|
81
|
-
optional :filter, :string, 2
|
82
|
-
optional :page_size, :int32, 3
|
83
|
-
optional :page_token, :string, 4
|
84
|
-
end
|
85
|
-
add_message "google.spanner.admin.database.v1.ListBackupOperationsResponse" do
|
86
|
-
repeated :operations, :message, 1, "google.longrunning.Operation"
|
87
|
-
optional :next_page_token, :string, 2
|
88
|
-
end
|
89
|
-
add_message "google.spanner.admin.database.v1.BackupInfo" do
|
90
|
-
optional :backup, :string, 1
|
91
|
-
optional :version_time, :message, 4, "google.protobuf.Timestamp"
|
92
|
-
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
93
|
-
optional :source_database, :string, 3
|
94
|
-
end
|
95
|
-
add_message "google.spanner.admin.database.v1.CreateBackupEncryptionConfig" do
|
96
|
-
optional :encryption_type, :enum, 1, "google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType"
|
97
|
-
optional :kms_key_name, :string, 2
|
98
|
-
end
|
99
|
-
add_enum "google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType" do
|
100
|
-
value :ENCRYPTION_TYPE_UNSPECIFIED, 0
|
101
|
-
value :USE_DATABASE_ENCRYPTION, 1
|
102
|
-
value :GOOGLE_DEFAULT_ENCRYPTION, 2
|
103
|
-
value :CUSTOMER_MANAGED_ENCRYPTION, 3
|
104
|
-
end
|
105
|
-
add_message "google.spanner.admin.database.v1.CopyBackupEncryptionConfig" do
|
106
|
-
optional :encryption_type, :enum, 1, "google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType"
|
107
|
-
optional :kms_key_name, :string, 2
|
108
|
-
end
|
109
|
-
add_enum "google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType" do
|
110
|
-
value :ENCRYPTION_TYPE_UNSPECIFIED, 0
|
111
|
-
value :USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION, 1
|
112
|
-
value :GOOGLE_DEFAULT_ENCRYPTION, 2
|
113
|
-
value :CUSTOMER_MANAGED_ENCRYPTION, 3
|
14
|
+
|
15
|
+
descriptor_data = "\n-google/spanner/admin/database/v1/backup.proto\x12 google.spanner.admin.database.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a-google/spanner/admin/database/v1/common.proto\"\xc3\x06\n\x06\x42\x61\x63kup\x12\x36\n\x08\x64\x61tabase\x18\x02 \x01(\tB$\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12\x30\n\x0cversion_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12\x42\n\x05state\x18\x06 \x01(\x0e\x32..google.spanner.admin.database.v1.Backup.StateB\x03\xe0\x41\x03\x12\x46\n\x15referencing_databases\x18\x07 \x03(\tB\'\xe0\x41\x03\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12N\n\x0f\x65ncryption_info\x18\x08 \x01(\x0b\x32\x30.google.spanner.admin.database.v1.EncryptionInfoB\x03\xe0\x41\x03\x12P\n\x10\x64\x61tabase_dialect\x18\n \x01(\x0e\x32\x31.google.spanner.admin.database.v1.DatabaseDialectB\x03\xe0\x41\x03\x12\x42\n\x13referencing_backups\x18\x0b \x03(\tB%\xe0\x41\x03\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x38\n\x0fmax_expire_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02:\\\xea\x41Y\n\x1dspanner.googleapis.com/Backup\x12\x38projects/{project}/instances/{instance}/backups/{backup}\"\x85\x02\n\x13\x43reateBackupRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12=\n\x06\x62\x61\x63kup\x18\x03 \x01(\x0b\x32(.google.spanner.admin.database.v1.BackupB\x03\xe0\x41\x02\x12^\n\x11\x65ncryption_config\x18\x04 \x01(\x0b\x32>.google.spanner.admin.database.v1.CreateBackupEncryptionConfigB\x03\xe0\x41\x01\"\xf8\x01\n\x14\x43reateBackupMetadata\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x36\n\x08\x64\x61tabase\x18\x02 \x01(\tB$\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12\x45\n\x08progress\x18\x03 \x01(\x0b\x32\x33.google.spanner.admin.database.v1.OperationProgress\x12/\n\x0b\x63\x61ncel_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xb6\x02\n\x11\x43opyBackupRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12<\n\rsource_backup\x18\x03 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x34\n\x0b\x65xpire_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\\\n\x11\x65ncryption_config\x18\x05 \x01(\x0b\x32<.google.spanner.admin.database.v1.CopyBackupEncryptionConfigB\x03\xe0\x41\x01\"\xf9\x01\n\x12\x43opyBackupMetadata\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x39\n\rsource_backup\x18\x02 \x01(\tB\"\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x45\n\x08progress\x18\x03 \x01(\x0b\x32\x33.google.spanner.admin.database.v1.OperationProgress\x12/\n\x0b\x63\x61ncel_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8a\x01\n\x13UpdateBackupRequest\x12=\n\x06\x62\x61\x63kup\x18\x01 \x01(\x0b\x32(.google.spanner.admin.database.v1.BackupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"G\n\x10GetBackupRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\"J\n\x13\x44\x65leteBackupRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\"\x84\x01\n\x12ListBackupsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"i\n\x13ListBackupsResponse\x12\x39\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32(.google.spanner.admin.database.v1.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8d\x01\n\x1bListBackupOperationsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"j\n\x1cListBackupOperationsResponse\x12\x31\n\noperations\x18\x01 \x03(\x0b\x32\x1d.google.longrunning.Operation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xe2\x01\n\nBackupInfo\x12\x32\n\x06\x62\x61\x63kup\x18\x01 \x01(\tB\"\xfa\x41\x1f\n\x1dspanner.googleapis.com/Backup\x12\x30\n\x0cversion_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x0fsource_database\x18\x03 \x01(\tB$\xfa\x41!\n\x1fspanner.googleapis.com/Database\"\xdd\x02\n\x1c\x43reateBackupEncryptionConfig\x12k\n\x0f\x65ncryption_type\x18\x01 \x01(\x0e\x32M.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionTypeB\x03\xe0\x41\x02\x12?\n\x0ckms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"\x8e\x01\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17USE_DATABASE_ENCRYPTION\x10\x01\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x02\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x03\"\xe9\x02\n\x1a\x43opyBackupEncryptionConfig\x12i\n\x0f\x65ncryption_type\x18\x01 \x01(\x0e\x32K.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionTypeB\x03\xe0\x41\x02\x12?\n\x0ckms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"\x9e\x01\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12+\n\'USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION\x10\x01\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x02\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x03\x42\xfd\x01\n$com.google.spanner.admin.database.v1B\x0b\x42\x61\x63kupProtoP\x01ZFcloud.google.com/go/spanner/admin/database/apiv1/databasepb;databasepb\xaa\x02&Google.Cloud.Spanner.Admin.Database.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Database\\V1\xea\x02+Google::Cloud::Spanner::Admin::Database::V1b\x06proto3"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError => e
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
+
["google.spanner.admin.database.v1.EncryptionInfo", "google/spanner/admin/database/v1/common.proto"],
|
32
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
33
|
+
["google.longrunning.Operation", "google/longrunning/operations.proto"],
|
34
|
+
]
|
35
|
+
imports.each do |type_name, expected_filename|
|
36
|
+
import_file = pool.lookup(type_name).file_descriptor
|
37
|
+
if import_file.name != expected_filename
|
38
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
114
39
|
end
|
115
40
|
end
|
41
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
42
|
+
warn "This will become an error in the next major version."
|
116
43
|
end
|
117
44
|
|
118
45
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/spanner/admin/database/v1/common.proto
|
3
4
|
|
@@ -8,32 +9,33 @@ require 'google/api/resource_pb'
|
|
8
9
|
require 'google/protobuf/timestamp_pb'
|
9
10
|
require 'google/rpc/status_pb'
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
value :POSTGRESQL, 2
|
12
|
+
|
13
|
+
descriptor_data = "\n-google/spanner/admin/database/v1/common.proto\x12 google.spanner.admin.database.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x8b\x01\n\x11OperationProgress\x12\x18\n\x10progress_percent\x18\x01 \x01(\x05\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"P\n\x10\x45ncryptionConfig\x12<\n\x0ckms_key_name\x18\x02 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"\xc2\x02\n\x0e\x45ncryptionInfo\x12S\n\x0f\x65ncryption_type\x18\x03 \x01(\x0e\x32\x35.google.spanner.admin.database.v1.EncryptionInfo.TypeB\x03\xe0\x41\x03\x12\x32\n\x11\x65ncryption_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12I\n\x0fkms_key_version\x18\x02 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"\\\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x02*\\\n\x0f\x44\x61tabaseDialect\x12 \n\x1c\x44\x41TABASE_DIALECT_UNSPECIFIED\x10\x00\x12\x17\n\x13GOOGLE_STANDARD_SQL\x10\x01\x12\x0e\n\nPOSTGRESQL\x10\x02\x42\xa2\x04\n$com.google.spanner.admin.database.v1B\x0b\x43ommonProtoP\x01ZFcloud.google.com/go/spanner/admin/database/apiv1/databasepb;databasepb\xaa\x02&Google.Cloud.Spanner.Admin.Database.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Database\\V1\xea\x02+Google::Cloud::Spanner::Admin::Database::V1\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}b\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
29
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
35
35
|
end
|
36
36
|
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
37
39
|
end
|
38
40
|
|
39
41
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/spanner/admin/database/v1/spanner_database_admin.proto
|
3
4
|
|
@@ -16,145 +17,36 @@ require 'google/protobuf/timestamp_pb'
|
|
16
17
|
require 'google/spanner/admin/database/v1/backup_pb'
|
17
18
|
require 'google/spanner/admin/database/v1/common_pb'
|
18
19
|
|
19
|
-
|
20
|
-
add_file("google/spanner/admin/database/v1/spanner_database_admin.proto", :syntax => :proto3) do
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
value :READY_OPTIMIZING, 3
|
46
|
-
end
|
47
|
-
add_message "google.spanner.admin.database.v1.ListDatabasesRequest" do
|
48
|
-
optional :parent, :string, 1
|
49
|
-
optional :page_size, :int32, 3
|
50
|
-
optional :page_token, :string, 4
|
51
|
-
end
|
52
|
-
add_message "google.spanner.admin.database.v1.ListDatabasesResponse" do
|
53
|
-
repeated :databases, :message, 1, "google.spanner.admin.database.v1.Database"
|
54
|
-
optional :next_page_token, :string, 2
|
55
|
-
end
|
56
|
-
add_message "google.spanner.admin.database.v1.CreateDatabaseRequest" do
|
57
|
-
optional :parent, :string, 1
|
58
|
-
optional :create_statement, :string, 2
|
59
|
-
repeated :extra_statements, :string, 3
|
60
|
-
optional :encryption_config, :message, 4, "google.spanner.admin.database.v1.EncryptionConfig"
|
61
|
-
optional :database_dialect, :enum, 5, "google.spanner.admin.database.v1.DatabaseDialect"
|
62
|
-
end
|
63
|
-
add_message "google.spanner.admin.database.v1.CreateDatabaseMetadata" do
|
64
|
-
optional :database, :string, 1
|
65
|
-
end
|
66
|
-
add_message "google.spanner.admin.database.v1.GetDatabaseRequest" do
|
67
|
-
optional :name, :string, 1
|
68
|
-
end
|
69
|
-
add_message "google.spanner.admin.database.v1.UpdateDatabaseRequest" do
|
70
|
-
optional :database, :message, 1, "google.spanner.admin.database.v1.Database"
|
71
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
72
|
-
end
|
73
|
-
add_message "google.spanner.admin.database.v1.UpdateDatabaseMetadata" do
|
74
|
-
optional :request, :message, 1, "google.spanner.admin.database.v1.UpdateDatabaseRequest"
|
75
|
-
optional :progress, :message, 2, "google.spanner.admin.database.v1.OperationProgress"
|
76
|
-
optional :cancel_time, :message, 3, "google.protobuf.Timestamp"
|
77
|
-
end
|
78
|
-
add_message "google.spanner.admin.database.v1.UpdateDatabaseDdlRequest" do
|
79
|
-
optional :database, :string, 1
|
80
|
-
repeated :statements, :string, 2
|
81
|
-
optional :operation_id, :string, 3
|
82
|
-
end
|
83
|
-
add_message "google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata" do
|
84
|
-
optional :database, :string, 1
|
85
|
-
repeated :statements, :string, 2
|
86
|
-
repeated :commit_timestamps, :message, 3, "google.protobuf.Timestamp"
|
87
|
-
optional :throttled, :bool, 4
|
88
|
-
repeated :progress, :message, 5, "google.spanner.admin.database.v1.OperationProgress"
|
89
|
-
end
|
90
|
-
add_message "google.spanner.admin.database.v1.DropDatabaseRequest" do
|
91
|
-
optional :database, :string, 1
|
92
|
-
end
|
93
|
-
add_message "google.spanner.admin.database.v1.GetDatabaseDdlRequest" do
|
94
|
-
optional :database, :string, 1
|
95
|
-
end
|
96
|
-
add_message "google.spanner.admin.database.v1.GetDatabaseDdlResponse" do
|
97
|
-
repeated :statements, :string, 1
|
98
|
-
end
|
99
|
-
add_message "google.spanner.admin.database.v1.ListDatabaseOperationsRequest" do
|
100
|
-
optional :parent, :string, 1
|
101
|
-
optional :filter, :string, 2
|
102
|
-
optional :page_size, :int32, 3
|
103
|
-
optional :page_token, :string, 4
|
104
|
-
end
|
105
|
-
add_message "google.spanner.admin.database.v1.ListDatabaseOperationsResponse" do
|
106
|
-
repeated :operations, :message, 1, "google.longrunning.Operation"
|
107
|
-
optional :next_page_token, :string, 2
|
108
|
-
end
|
109
|
-
add_message "google.spanner.admin.database.v1.RestoreDatabaseRequest" do
|
110
|
-
optional :parent, :string, 1
|
111
|
-
optional :database_id, :string, 2
|
112
|
-
optional :encryption_config, :message, 4, "google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig"
|
113
|
-
oneof :source do
|
114
|
-
optional :backup, :string, 3
|
115
|
-
end
|
116
|
-
end
|
117
|
-
add_message "google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig" do
|
118
|
-
optional :encryption_type, :enum, 1, "google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType"
|
119
|
-
optional :kms_key_name, :string, 2
|
120
|
-
end
|
121
|
-
add_enum "google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType" do
|
122
|
-
value :ENCRYPTION_TYPE_UNSPECIFIED, 0
|
123
|
-
value :USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION, 1
|
124
|
-
value :GOOGLE_DEFAULT_ENCRYPTION, 2
|
125
|
-
value :CUSTOMER_MANAGED_ENCRYPTION, 3
|
126
|
-
end
|
127
|
-
add_message "google.spanner.admin.database.v1.RestoreDatabaseMetadata" do
|
128
|
-
optional :name, :string, 1
|
129
|
-
optional :source_type, :enum, 2, "google.spanner.admin.database.v1.RestoreSourceType"
|
130
|
-
optional :progress, :message, 4, "google.spanner.admin.database.v1.OperationProgress"
|
131
|
-
optional :cancel_time, :message, 5, "google.protobuf.Timestamp"
|
132
|
-
optional :optimize_database_operation_name, :string, 6
|
133
|
-
oneof :source_info do
|
134
|
-
optional :backup_info, :message, 3, "google.spanner.admin.database.v1.BackupInfo"
|
135
|
-
end
|
136
|
-
end
|
137
|
-
add_message "google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata" do
|
138
|
-
optional :name, :string, 1
|
139
|
-
optional :progress, :message, 2, "google.spanner.admin.database.v1.OperationProgress"
|
140
|
-
end
|
141
|
-
add_message "google.spanner.admin.database.v1.DatabaseRole" do
|
142
|
-
optional :name, :string, 1
|
143
|
-
end
|
144
|
-
add_message "google.spanner.admin.database.v1.ListDatabaseRolesRequest" do
|
145
|
-
optional :parent, :string, 1
|
146
|
-
optional :page_size, :int32, 2
|
147
|
-
optional :page_token, :string, 3
|
148
|
-
end
|
149
|
-
add_message "google.spanner.admin.database.v1.ListDatabaseRolesResponse" do
|
150
|
-
repeated :database_roles, :message, 1, "google.spanner.admin.database.v1.DatabaseRole"
|
151
|
-
optional :next_page_token, :string, 2
|
152
|
-
end
|
153
|
-
add_enum "google.spanner.admin.database.v1.RestoreSourceType" do
|
154
|
-
value :TYPE_UNSPECIFIED, 0
|
155
|
-
value :BACKUP, 1
|
20
|
+
|
21
|
+
descriptor_data = "\n=google/spanner/admin/database/v1/spanner_database_admin.proto\x12 google.spanner.admin.database.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a-google/spanner/admin/database/v1/backup.proto\x1a-google/spanner/admin/database/v1/common.proto\"\xab\x01\n\x0bRestoreInfo\x12H\n\x0bsource_type\x18\x01 \x01(\x0e\x32\x33.google.spanner.admin.database.v1.RestoreSourceType\x12\x43\n\x0b\x62\x61\x63kup_info\x18\x02 \x01(\x0b\x32,.google.spanner.admin.database.v1.BackupInfoH\x00\x42\r\n\x0bsource_info\"\xca\x06\n\x08\x44\x61tabase\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x05state\x18\x02 \x01(\x0e\x32\x30.google.spanner.admin.database.v1.Database.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12H\n\x0crestore_info\x18\x04 \x01(\x0b\x32-.google.spanner.admin.database.v1.RestoreInfoB\x03\xe0\x41\x03\x12R\n\x11\x65ncryption_config\x18\x05 \x01(\x0b\x32\x32.google.spanner.admin.database.v1.EncryptionConfigB\x03\xe0\x41\x03\x12N\n\x0f\x65ncryption_info\x18\x08 \x03(\x0b\x32\x30.google.spanner.admin.database.v1.EncryptionInfoB\x03\xe0\x41\x03\x12%\n\x18version_retention_period\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12>\n\x15\x65\x61rliest_version_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1b\n\x0e\x64\x65\x66\x61ult_leader\x18\t \x01(\tB\x03\xe0\x41\x03\x12P\n\x10\x64\x61tabase_dialect\x18\n \x01(\x0e\x32\x31.google.spanner.admin.database.v1.DatabaseDialectB\x03\xe0\x41\x03\x12\x1e\n\x16\x65nable_drop_protection\x18\x0b \x01(\x08\x12\x18\n\x0breconciling\x18\x0c \x01(\x08\x42\x03\xe0\x41\x03\"M\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x14\n\x10READY_OPTIMIZING\x10\x03:b\xea\x41_\n\x1fspanner.googleapis.com/Database\x12<projects/{project}/instances/{instance}/databases/{database}\"v\n\x14ListDatabasesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"o\n\x15ListDatabasesResponse\x12=\n\tdatabases\x18\x01 \x03(\x0b\x32*.google.spanner.admin.database.v1.Database\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb4\x02\n\x15\x43reateDatabaseRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12\x1d\n\x10\x63reate_statement\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1d\n\x10\x65xtra_statements\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12R\n\x11\x65ncryption_config\x18\x04 \x01(\x0b\x32\x32.google.spanner.admin.database.v1.EncryptionConfigB\x03\xe0\x41\x01\x12P\n\x10\x64\x61tabase_dialect\x18\x05 \x01(\x0e\x32\x31.google.spanner.admin.database.v1.DatabaseDialectB\x03\xe0\x41\x01\"P\n\x16\x43reateDatabaseMetadata\x12\x36\n\x08\x64\x61tabase\x18\x01 \x01(\tB$\xfa\x41!\n\x1fspanner.googleapis.com/Database\"K\n\x12GetDatabaseRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Database\"\x90\x01\n\x15UpdateDatabaseRequest\x12\x41\n\x08\x64\x61tabase\x18\x01 \x01(\x0b\x32*.google.spanner.admin.database.v1.DatabaseB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xda\x01\n\x16UpdateDatabaseMetadata\x12H\n\x07request\x18\x01 \x01(\x0b\x32\x37.google.spanner.admin.database.v1.UpdateDatabaseRequest\x12\x45\n\x08progress\x18\x02 \x01(\x0b\x32\x33.google.spanner.admin.database.v1.OperationProgress\x12/\n\x0b\x63\x61ncel_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x84\x01\n\x18UpdateDatabaseDdlRequest\x12\x39\n\x08\x64\x61tabase\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12\x17\n\nstatements\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x14\n\x0coperation_id\x18\x03 \x01(\t\"S\n\x16\x44\x64lStatementActionInfo\x12\x0e\n\x06\x61\x63tion\x18\x01 \x01(\t\x12\x13\n\x0b\x65ntity_type\x18\x02 \x01(\t\x12\x14\n\x0c\x65ntity_names\x18\x03 \x03(\t\"\xc8\x02\n\x19UpdateDatabaseDdlMetadata\x12\x36\n\x08\x64\x61tabase\x18\x01 \x01(\tB$\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12\x12\n\nstatements\x18\x02 \x03(\t\x12\x35\n\x11\x63ommit_timestamps\x18\x03 \x03(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\tthrottled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x45\n\x08progress\x18\x05 \x03(\x0b\x32\x33.google.spanner.admin.database.v1.OperationProgress\x12I\n\x07\x61\x63tions\x18\x06 \x03(\x0b\x32\x38.google.spanner.admin.database.v1.DdlStatementActionInfo\"P\n\x13\x44ropDatabaseRequest\x12\x39\n\x08\x64\x61tabase\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Database\"R\n\x15GetDatabaseDdlRequest\x12\x39\n\x08\x64\x61tabase\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Database\",\n\x16GetDatabaseDdlResponse\x12\x12\n\nstatements\x18\x01 \x03(\t\"\x8f\x01\n\x1dListDatabaseOperationsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"l\n\x1eListDatabaseOperationsResponse\x12\x31\n\noperations\x18\x01 \x03(\x0b\x32\x1d.google.longrunning.Operation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8e\x02\n\x16RestoreDatabaseRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Instance\x12\x18\n\x0b\x64\x61tabase_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x06\x62\x61\x63kup\x18\x03 \x01(\tB\"\xfa\x41\x1f\n\x1dspanner.googleapis.com/BackupH\x00\x12\x61\n\x11\x65ncryption_config\x18\x04 \x01(\x0b\x32\x41.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfigB\x03\xe0\x41\x01\x42\x08\n\x06source\"\xf3\x02\n\x1fRestoreDatabaseEncryptionConfig\x12n\n\x0f\x65ncryption_type\x18\x01 \x01(\x0e\x32P.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionTypeB\x03\xe0\x41\x02\x12?\n\x0ckms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"\x9e\x01\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12+\n\'USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION\x10\x01\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x02\x12\x1f\n\x1b\x43USTOMER_MANAGED_ENCRYPTION\x10\x03\"\x8d\x03\n\x17RestoreDatabaseMetadata\x12\x32\n\x04name\x18\x01 \x01(\tB$\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12H\n\x0bsource_type\x18\x02 \x01(\x0e\x32\x33.google.spanner.admin.database.v1.RestoreSourceType\x12\x43\n\x0b\x62\x61\x63kup_info\x18\x03 \x01(\x0b\x32,.google.spanner.admin.database.v1.BackupInfoH\x00\x12\x45\n\x08progress\x18\x04 \x01(\x0b\x32\x33.google.spanner.admin.database.v1.OperationProgress\x12/\n\x0b\x63\x61ncel_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12(\n optimize_database_operation_name\x18\x06 \x01(\tB\r\n\x0bsource_info\"\x9d\x01\n OptimizeRestoredDatabaseMetadata\x12\x32\n\x04name\x18\x01 \x01(\tB$\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12\x45\n\x08progress\x18\x02 \x01(\x0b\x32\x33.google.spanner.admin.database.v1.OperationProgress\"\x9e\x01\n\x0c\x44\x61tabaseRole\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02:{\xea\x41x\n#spanner.googleapis.com/DatabaseRole\x12Qprojects/{project}/instances/{instance}/databases/{database}/databaseRoles/{role}\"z\n\x18ListDatabaseRolesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fspanner.googleapis.com/Database\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"|\n\x19ListDatabaseRolesResponse\x12\x46\n\x0e\x64\x61tabase_roles\x18\x01 \x03(\x0b\x32..google.spanner.admin.database.v1.DatabaseRole\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t*5\n\x11RestoreSourceType\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x42\x41\x43KUP\x10\x01\x32\xee%\n\rDatabaseAdmin\x12\xc0\x01\n\rListDatabases\x12\x36.google.spanner.admin.database.v1.ListDatabasesRequest\x1a\x37.google.spanner.admin.database.v1.ListDatabasesResponse\">\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/instances/*}/databases\xda\x41\x06parent\x12\xa4\x02\n\x0e\x43reateDatabase\x12\x37.google.spanner.admin.database.v1.CreateDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\xb9\x01\x82\xd3\xe4\x93\x02\x32\"-/v1/{parent=projects/*/instances/*}/databases:\x01*\xda\x41\x17parent,create_statement\xca\x41\x64\n)google.spanner.admin.database.v1.Database\x12\x37google.spanner.admin.database.v1.CreateDatabaseMetadata\x12\xad\x01\n\x0bGetDatabase\x12\x34.google.spanner.admin.database.v1.GetDatabaseRequest\x1a*.google.spanner.admin.database.v1.Database\"<\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/instances/*/databases/*}\xda\x41\x04name\x12\xef\x01\n\x0eUpdateDatabase\x12\x37.google.spanner.admin.database.v1.UpdateDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\x84\x01\x82\xd3\xe4\x93\x02\x42\x32\x36/v1/{database.name=projects/*/instances/*/databases/*}:\x08\x64\x61tabase\xda\x41\x14\x64\x61tabase,update_mask\xca\x41\"\n\x08\x44\x61tabase\x12\x16UpdateDatabaseMetadata\x12\x9d\x02\n\x11UpdateDatabaseDdl\x12:.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest\x1a\x1d.google.longrunning.Operation\"\xac\x01\x82\xd3\xe4\x93\x02:25/v1/{database=projects/*/instances/*/databases/*}/ddl:\x01*\xda\x41\x13\x64\x61tabase,statements\xca\x41S\n\x15google.protobuf.Empty\x12:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata\x12\xa3\x01\n\x0c\x44ropDatabase\x12\x35.google.spanner.admin.database.v1.DropDatabaseRequest\x1a\x16.google.protobuf.Empty\"D\x82\xd3\xe4\x93\x02\x33*1/v1/{database=projects/*/instances/*/databases/*}\xda\x41\x08\x64\x61tabase\x12\xcd\x01\n\x0eGetDatabaseDdl\x12\x37.google.spanner.admin.database.v1.GetDatabaseDdlRequest\x1a\x38.google.spanner.admin.database.v1.GetDatabaseDdlResponse\"H\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{database=projects/*/instances/*/databases/*}/ddl\xda\x41\x08\x64\x61tabase\x12\xeb\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\x9f\x01\x82\xd3\xe4\x93\x02\x86\x01\">/v1/{resource=projects/*/instances/*/databases/*}:setIamPolicy:\x01*ZA\"</v1/{resource=projects/*/instances/*/backups/*}:setIamPolicy:\x01*\xda\x41\x0fresource,policy\x12\xe4\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\x98\x01\x82\xd3\xe4\x93\x02\x86\x01\">/v1/{resource=projects/*/instances/*/databases/*}:getIamPolicy:\x01*ZA\"</v1/{resource=projects/*/instances/*/backups/*}:getIamPolicy:\x01*\xda\x41\x08resource\x12\xf7\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\x8b\x02\x82\xd3\xe4\x93\x02\xed\x01\"D/v1/{resource=projects/*/instances/*/databases/*}:testIamPermissions:\x01*ZG\"B/v1/{resource=projects/*/instances/*/backups/*}:testIamPermissions:\x01*ZY\"T/v1/{resource=projects/*/instances/*/databases/*/databaseRoles/*}:testIamPermissions:\x01*\xda\x41\x14resource,permissions\x12\x9f\x02\n\x0c\x43reateBackup\x12\x35.google.spanner.admin.database.v1.CreateBackupRequest\x1a\x1d.google.longrunning.Operation\"\xb8\x01\x82\xd3\xe4\x93\x02\x35\"+/v1/{parent=projects/*/instances/*}/backups:\x06\x62\x61\x63kup\xda\x41\x17parent,backup,backup_id\xca\x41`\n\'google.spanner.admin.database.v1.Backup\x12\x35google.spanner.admin.database.v1.CreateBackupMetadata\x12\xac\x02\n\nCopyBackup\x12\x33.google.spanner.admin.database.v1.CopyBackupRequest\x1a\x1d.google.longrunning.Operation\"\xc9\x01\x82\xd3\xe4\x93\x02\x35\"0/v1/{parent=projects/*/instances/*}/backups:copy:\x01*\xda\x41*parent,backup_id,source_backup,expire_time\xca\x41^\n\'google.spanner.admin.database.v1.Backup\x12\x33google.spanner.admin.database.v1.CopyBackupMetadata\x12\xa5\x01\n\tGetBackup\x12\x32.google.spanner.admin.database.v1.GetBackupRequest\x1a(.google.spanner.admin.database.v1.Backup\":\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/instances/*/backups/*}\xda\x41\x04name\x12\xc8\x01\n\x0cUpdateBackup\x12\x35.google.spanner.admin.database.v1.UpdateBackupRequest\x1a(.google.spanner.admin.database.v1.Backup\"W\x82\xd3\xe4\x93\x02<22/v1/{backup.name=projects/*/instances/*/backups/*}:\x06\x62\x61\x63kup\xda\x41\x12\x62\x61\x63kup,update_mask\x12\x99\x01\n\x0c\x44\x65leteBackup\x12\x35.google.spanner.admin.database.v1.DeleteBackupRequest\x1a\x16.google.protobuf.Empty\":\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/instances/*/backups/*}\xda\x41\x04name\x12\xb8\x01\n\x0bListBackups\x12\x34.google.spanner.admin.database.v1.ListBackupsRequest\x1a\x35.google.spanner.admin.database.v1.ListBackupsResponse\"<\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/instances/*}/backups\xda\x41\x06parent\x12\xb1\x02\n\x0fRestoreDatabase\x12\x38.google.spanner.admin.database.v1.RestoreDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\xc4\x01\x82\xd3\xe4\x93\x02:\"5/v1/{parent=projects/*/instances/*}/databases:restore:\x01*\xda\x41\x19parent,database_id,backup\xca\x41\x65\n)google.spanner.admin.database.v1.Database\x12\x38google.spanner.admin.database.v1.RestoreDatabaseMetadata\x12\xe4\x01\n\x16ListDatabaseOperations\x12?.google.spanner.admin.database.v1.ListDatabaseOperationsRequest\x1a@.google.spanner.admin.database.v1.ListDatabaseOperationsResponse\"G\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{parent=projects/*/instances/*}/databaseOperations\xda\x41\x06parent\x12\xdc\x01\n\x14ListBackupOperations\x12=.google.spanner.admin.database.v1.ListBackupOperationsRequest\x1a>.google.spanner.admin.database.v1.ListBackupOperationsResponse\"E\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{parent=projects/*/instances/*}/backupOperations\xda\x41\x06parent\x12\xdc\x01\n\x11ListDatabaseRoles\x12:.google.spanner.admin.database.v1.ListDatabaseRolesRequest\x1a;.google.spanner.admin.database.v1.ListDatabaseRolesResponse\"N\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/instances/*/databases/*}/databaseRoles\xda\x41\x06parent\x1ax\xca\x41\x16spanner.googleapis.com\xd2\x41\\https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/spanner.adminB\xd8\x02\n$com.google.spanner.admin.database.v1B\x19SpannerDatabaseAdminProtoP\x01ZFcloud.google.com/go/spanner/admin/database/apiv1/databasepb;databasepb\xaa\x02&Google.Cloud.Spanner.Admin.Database.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Database\\V1\xea\x02+Google::Cloud::Spanner::Admin::Database::V1\xea\x41J\n\x1fspanner.googleapis.com/Instance\x12\'projects/{project}/instances/{instance}b\x06proto3"
|
22
|
+
|
23
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
24
|
+
|
25
|
+
begin
|
26
|
+
pool.add_serialized_file(descriptor_data)
|
27
|
+
rescue TypeError => e
|
28
|
+
# Compatibility code: will be removed in the next major version.
|
29
|
+
require 'google/protobuf/descriptor_pb'
|
30
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
31
|
+
parsed.clear_dependency
|
32
|
+
serialized = parsed.class.encode(parsed)
|
33
|
+
file = pool.add_serialized_file(serialized)
|
34
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
35
|
+
imports = [
|
36
|
+
["google.spanner.admin.database.v1.BackupInfo", "google/spanner/admin/database/v1/backup.proto"],
|
37
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
38
|
+
["google.spanner.admin.database.v1.EncryptionConfig", "google/spanner/admin/database/v1/common.proto"],
|
39
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
40
|
+
["google.longrunning.Operation", "google/longrunning/operations.proto"],
|
41
|
+
]
|
42
|
+
imports.each do |type_name, expected_filename|
|
43
|
+
import_file = pool.lookup(type_name).file_descriptor
|
44
|
+
if import_file.name != expected_filename
|
45
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
156
46
|
end
|
157
47
|
end
|
48
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
49
|
+
warn "This will become an error in the next major version."
|
158
50
|
end
|
159
51
|
|
160
52
|
module Google
|
@@ -174,6 +66,7 @@ module Google
|
|
174
66
|
UpdateDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.UpdateDatabaseRequest").msgclass
|
175
67
|
UpdateDatabaseMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.UpdateDatabaseMetadata").msgclass
|
176
68
|
UpdateDatabaseDdlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.UpdateDatabaseDdlRequest").msgclass
|
69
|
+
DdlStatementActionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.DdlStatementActionInfo").msgclass
|
177
70
|
UpdateDatabaseDdlMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata").msgclass
|
178
71
|
DropDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.DropDatabaseRequest").msgclass
|
179
72
|
GetDatabaseDdlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.admin.database.v1.GetDatabaseDdlRequest").msgclass
|
@@ -43,8 +43,12 @@ module Google
|
|
43
43
|
# if (any.is(Foo.class)) {
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
46
50
|
#
|
47
|
-
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
48
52
|
#
|
49
53
|
# foo = Foo(...)
|
50
54
|
# any = Any()
|
@@ -54,7 +58,7 @@ module Google
|
|
54
58
|
# any.Unpack(foo)
|
55
59
|
# ...
|
56
60
|
#
|
57
|
-
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
58
62
|
#
|
59
63
|
# foo := &pb.Foo{...}
|
60
64
|
# any, err := anypb.New(foo)
|
@@ -73,9 +77,8 @@ module Google
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
78
|
# name "y.z".
|
75
79
|
#
|
76
|
-
#
|
77
80
|
# JSON
|
78
|
-
#
|
81
|
+
# ====
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
80
83
|
# representation of the deserialized, embedded message, with an
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
@@ -300,6 +300,30 @@ module Google
|
|
300
300
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
301
301
|
end
|
302
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
|
+
|
303
327
|
# Metadata type for the operation returned by
|
304
328
|
# {::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#update_database_ddl UpdateDatabaseDdl}.
|
305
329
|
# @!attribute [rw] database
|
@@ -316,19 +340,22 @@ module Google
|
|
316
340
|
# timestamp for the statement `statements[i]`.
|
317
341
|
# @!attribute [r] throttled
|
318
342
|
# @return [::Boolean]
|
319
|
-
# 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.
|
320
344
|
# due to resource constraints. When resources become available the operation
|
321
345
|
# will resume and this field will be false again.
|
322
346
|
# @!attribute [rw] progress
|
323
347
|
# @return [::Array<::Google::Cloud::Spanner::Admin::Database::V1::OperationProgress>]
|
324
348
|
# The progress of the
|
325
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#update_database_ddl UpdateDatabaseDdl}
|
326
|
-
#
|
327
|
-
#
|
328
|
-
#
|
329
|
-
#
|
330
|
-
#
|
331
|
-
#
|
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]`.
|
332
359
|
class UpdateDatabaseDdlMetadata
|
333
360
|
include ::Google::Protobuf::MessageExts
|
334
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.1
|
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-06-06 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.1
|
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.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|