google-cloud-spanner-admin-database-v1 0.13.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0ccba22ec473311d535a4a9ec4f1d63be050ca80ae187550ad5419b67ed4186
4
- data.tar.gz: b9b3b52d6758e734fefb309638b24dec4d0f5d9b778f7ad17fc3ad8d87b5cdde
3
+ metadata.gz: 4df2b851c1fc6d2a565ce4fbbbc1a361e23dd38a928908e37589afb1baf94310
4
+ data.tar.gz: 97578c37514e60a240f0338ddf762a0301af8a7e63906db2d9a2279326ba3f2b
5
5
  SHA512:
6
- metadata.gz: 183dcd7dc9b8cf46f6b0e66576a77f755a42f0ba736462eb8cfc6ffc3b7fa07012c2a1982eb205dc1f97d2faecca6478e23cf680fea63545fd05bdd0d4378700
7
- data.tar.gz: 73f6bd6d455658a016a16ed91e53eab5098dc883eae2b5312e90d6b621025b3a7d69171b20eab7bb248eba60e5903cf1f12e3fcafb26590d829c1de9b8f0699f
6
+ metadata.gz: 59b31a2f09758e2663c50e2ec1612acefbc612ca827695be2ab999f7ac24e6cf10367a721e53ac34502c4b6808b5f1ef54d0942537dee87564e26d73badc665a
7
+ data.tar.gz: f7f3113b629bf4a8cf5049ac14c12b51b02742902cc8e012179eba6407584522f6cd5e612d3e2335b191b53f0d176890e550ecd1b1c6fb0e7067079f434e77f3
@@ -23,7 +23,7 @@ module Google
23
23
  module Admin
24
24
  module Database
25
25
  module V1
26
- VERSION = "0.13.0"
26
+ VERSION = "0.14.0"
27
27
  end
28
28
  end
29
29
  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
- Google::Protobuf::DescriptorPool.generated_pool.build do
14
- add_file("google/spanner/admin/database/v1/backup.proto", :syntax => :proto3) do
15
- add_message "google.spanner.admin.database.v1.Backup" do
16
- optional :database, :string, 2
17
- optional :version_time, :message, 9, "google.protobuf.Timestamp"
18
- optional :expire_time, :message, 3, "google.protobuf.Timestamp"
19
- optional :name, :string, 1
20
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
21
- optional :size_bytes, :int64, 5
22
- optional :state, :enum, 6, "google.spanner.admin.database.v1.Backup.State"
23
- repeated :referencing_databases, :string, 7
24
- optional :encryption_info, :message, 8, "google.spanner.admin.database.v1.EncryptionInfo"
25
- optional :database_dialect, :enum, 10, "google.spanner.admin.database.v1.DatabaseDialect"
26
- repeated :referencing_backups, :string, 11
27
- optional :max_expire_time, :message, 12, "google.protobuf.Timestamp"
28
- end
29
- add_enum "google.spanner.admin.database.v1.Backup.State" do
30
- value :STATE_UNSPECIFIED, 0
31
- value :CREATING, 1
32
- value :READY, 2
33
- end
34
- add_message "google.spanner.admin.database.v1.CreateBackupRequest" do
35
- optional :parent, :string, 1
36
- optional :backup_id, :string, 2
37
- optional :backup, :message, 3, "google.spanner.admin.database.v1.Backup"
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
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/spanner/admin/database/v1/common.proto", :syntax => :proto3) do
13
- add_message "google.spanner.admin.database.v1.OperationProgress" do
14
- optional :progress_percent, :int32, 1
15
- optional :start_time, :message, 2, "google.protobuf.Timestamp"
16
- optional :end_time, :message, 3, "google.protobuf.Timestamp"
17
- end
18
- add_message "google.spanner.admin.database.v1.EncryptionConfig" do
19
- optional :kms_key_name, :string, 2
20
- end
21
- add_message "google.spanner.admin.database.v1.EncryptionInfo" do
22
- optional :encryption_type, :enum, 3, "google.spanner.admin.database.v1.EncryptionInfo.Type"
23
- optional :encryption_status, :message, 4, "google.rpc.Status"
24
- optional :kms_key_version, :string, 2
25
- end
26
- add_enum "google.spanner.admin.database.v1.EncryptionInfo.Type" do
27
- value :TYPE_UNSPECIFIED, 0
28
- value :GOOGLE_DEFAULT_ENCRYPTION, 1
29
- value :CUSTOMER_MANAGED_ENCRYPTION, 2
30
- end
31
- add_enum "google.spanner.admin.database.v1.DatabaseDialect" do
32
- value :DATABASE_DIALECT_UNSPECIFIED, 0
33
- value :GOOGLE_STANDARD_SQL, 1
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
- Google::Protobuf::DescriptorPool.generated_pool.build do
20
- add_file("google/spanner/admin/database/v1/spanner_database_admin.proto", :syntax => :proto3) do
21
- add_message "google.spanner.admin.database.v1.RestoreInfo" do
22
- optional :source_type, :enum, 1, "google.spanner.admin.database.v1.RestoreSourceType"
23
- oneof :source_info do
24
- optional :backup_info, :message, 2, "google.spanner.admin.database.v1.BackupInfo"
25
- end
26
- end
27
- add_message "google.spanner.admin.database.v1.Database" do
28
- optional :name, :string, 1
29
- optional :state, :enum, 2, "google.spanner.admin.database.v1.Database.State"
30
- optional :create_time, :message, 3, "google.protobuf.Timestamp"
31
- optional :restore_info, :message, 4, "google.spanner.admin.database.v1.RestoreInfo"
32
- optional :encryption_config, :message, 5, "google.spanner.admin.database.v1.EncryptionConfig"
33
- repeated :encryption_info, :message, 8, "google.spanner.admin.database.v1.EncryptionInfo"
34
- optional :version_retention_period, :string, 6
35
- optional :earliest_version_time, :message, 7, "google.protobuf.Timestamp"
36
- optional :default_leader, :string, 9
37
- optional :database_dialect, :enum, 10, "google.spanner.admin.database.v1.DatabaseDialect"
38
- optional :enable_drop_protection, :bool, 11
39
- optional :reconciling, :bool, 12
40
- end
41
- add_enum "google.spanner.admin.database.v1.Database.State" do
42
- value :STATE_UNSPECIFIED, 0
43
- value :CREATING, 1
44
- value :READY, 2
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
- # Example 3: Pack and unpack a message in Python.
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
- # Example 4: Pack and unpack a message in Go
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://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
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} operations.
326
- # Currently, only index creation statements will have a continuously
327
- # updating progress.
328
- # For non-index creation statements, `progress[i]` will have start time
329
- # and end time populated with commit timestamp of operation,
330
- # as well as a progress of 100% once the operation has completed.
331
- # `progress[i]` is the operation progress for `statements[i]`.
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.13.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-05-17 00:00:00.000000000 Z
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.18.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.18.0
29
+ version: 0.19.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a