@google-cloud/spanner-api 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +111 -0
- package/build/protos/google/spanner/admin/database/v1/backup.proto +773 -0
- package/build/protos/google/spanner/admin/database/v1/backup_schedule.proto +230 -0
- package/build/protos/google/spanner/admin/database/v1/common.proto +132 -0
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +1314 -0
- package/build/protos/google/spanner/admin/instance/v1/common.proto +64 -0
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +2184 -0
- package/build/protos/google/spanner/executor/v1/cloud_executor.proto +1610 -0
- package/build/protos/google/spanner/v1/change_stream.proto +451 -0
- package/build/protos/google/spanner/v1/commit_response.proto +80 -0
- package/build/protos/google/spanner/v1/keys.proto +163 -0
- package/build/protos/google/spanner/v1/location.proto +388 -0
- package/build/protos/google/spanner/v1/mutation.proto +156 -0
- package/build/protos/google/spanner/v1/query_plan.proto +156 -0
- package/build/protos/google/spanner/v1/result_set.proto +260 -0
- package/build/protos/google/spanner/v1/spanner.proto +1472 -0
- package/build/protos/google/spanner/v1/transaction.proto +329 -0
- package/build/protos/google/spanner/v1/type.proto +214 -0
- package/build/protos/protos.d.ts +42547 -0
- package/build/protos/protos.js +1 -0
- package/build/protos/protos.json +1 -0
- package/build/src/index.d.ts +20 -0
- package/build/src/index.js +34 -0
- package/build/src/index.js.map +1 -0
- package/build/src/v1/database_admin_client.d.ts +2433 -0
- package/build/src/v1/database_admin_client.js +2938 -0
- package/build/src/v1/database_admin_client.js.map +1 -0
- package/build/src/v1/database_admin_client_config.json +169 -0
- package/build/src/v1/database_admin_proto_list.json +6 -0
- package/build/src/v1/gapic_metadata.json +253 -0
- package/build/src/v1/index.d.ts +4 -0
- package/build/src/v1/index.js +29 -0
- package/build/src/v1/index.js.map +1 -0
- package/build/src/v1/instance_admin_client.d.ts +2162 -0
- package/build/src/v1/instance_admin_client.js +2411 -0
- package/build/src/v1/instance_admin_client.js.map +1 -0
- package/build/src/v1/instance_admin_client_config.json +129 -0
- package/build/src/v1/instance_admin_proto_list.json +4 -0
- package/build/src/v1/spanner_client.d.ts +1353 -0
- package/build/src/v1/spanner_client.js +1456 -0
- package/build/src/v1/spanner_client.js.map +1 -0
- package/build/src/v1/spanner_client_config.json +123 -0
- package/build/src/v1/spanner_executor_proxy_client.d.ts +419 -0
- package/build/src/v1/spanner_executor_proxy_client.js +730 -0
- package/build/src/v1/spanner_executor_proxy_client.js.map +1 -0
- package/build/src/v1/spanner_executor_proxy_client_config.json +30 -0
- package/build/src/v1/spanner_executor_proxy_proto_list.json +15 -0
- package/build/src/v1/spanner_proto_list.json +12 -0
- package/package.json +65 -0
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.spanner.admin.database.v1;
|
|
18
|
+
|
|
19
|
+
import "google/api/field_behavior.proto";
|
|
20
|
+
import "google/api/resource.proto";
|
|
21
|
+
import "google/protobuf/duration.proto";
|
|
22
|
+
import "google/protobuf/field_mask.proto";
|
|
23
|
+
import "google/protobuf/timestamp.proto";
|
|
24
|
+
import "google/spanner/admin/database/v1/backup.proto";
|
|
25
|
+
|
|
26
|
+
option csharp_namespace = "Google.Cloud.Spanner.Admin.Database.V1";
|
|
27
|
+
option go_package = "cloud.google.com/go/spanner/admin/database/apiv1/databasepb;databasepb";
|
|
28
|
+
option java_multiple_files = true;
|
|
29
|
+
option java_outer_classname = "BackupScheduleProto";
|
|
30
|
+
option java_package = "com.google.spanner.admin.database.v1";
|
|
31
|
+
option php_namespace = "Google\\Cloud\\Spanner\\Admin\\Database\\V1";
|
|
32
|
+
option ruby_package = "Google::Cloud::Spanner::Admin::Database::V1";
|
|
33
|
+
|
|
34
|
+
// Defines specifications of the backup schedule.
|
|
35
|
+
message BackupScheduleSpec {
|
|
36
|
+
// Required.
|
|
37
|
+
oneof schedule_spec {
|
|
38
|
+
// Cron style schedule specification.
|
|
39
|
+
CrontabSpec cron_spec = 1;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// BackupSchedule expresses the automated backup creation specification for a
|
|
44
|
+
// Spanner database.
|
|
45
|
+
// Next ID: 10
|
|
46
|
+
message BackupSchedule {
|
|
47
|
+
option (google.api.resource) = {
|
|
48
|
+
type: "spanner.googleapis.com/BackupSchedule"
|
|
49
|
+
pattern: "projects/{project}/instances/{instance}/databases/{database}/backupSchedules/{schedule}"
|
|
50
|
+
plural: "backupSchedules"
|
|
51
|
+
singular: "backupSchedule"
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
// Identifier. Output only for the
|
|
55
|
+
// [CreateBackupSchedule][DatabaseAdmin.CreateBackupSchededule] operation.
|
|
56
|
+
// Required for the
|
|
57
|
+
// [UpdateBackupSchedule][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackupSchedule]
|
|
58
|
+
// operation. A globally unique identifier for the backup schedule which
|
|
59
|
+
// cannot be changed. Values are of the form
|
|
60
|
+
// `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/[a-z][a-z0-9_\-]*[a-z0-9]`
|
|
61
|
+
// The final segment of the name must be between 2 and 60 characters in
|
|
62
|
+
// length.
|
|
63
|
+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
|
|
64
|
+
|
|
65
|
+
// Optional. The schedule specification based on which the backup creations
|
|
66
|
+
// are triggered.
|
|
67
|
+
BackupScheduleSpec spec = 6 [(google.api.field_behavior) = OPTIONAL];
|
|
68
|
+
|
|
69
|
+
// Optional. The retention duration of a backup that must be at least 6 hours
|
|
70
|
+
// and at most 366 days. The backup is eligible to be automatically deleted
|
|
71
|
+
// once the retention period has elapsed.
|
|
72
|
+
google.protobuf.Duration retention_duration = 3
|
|
73
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
74
|
+
|
|
75
|
+
// Optional. The encryption configuration that will be used to encrypt the
|
|
76
|
+
// backup. If this field is not specified, the backup will use the same
|
|
77
|
+
// encryption configuration as the database.
|
|
78
|
+
CreateBackupEncryptionConfig encryption_config = 4
|
|
79
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
80
|
+
|
|
81
|
+
// Required. Backup type spec determines the type of backup that is created by
|
|
82
|
+
// the backup schedule. Currently, only full backups are supported.
|
|
83
|
+
oneof backup_type_spec {
|
|
84
|
+
// The schedule creates only full backups.
|
|
85
|
+
FullBackupSpec full_backup_spec = 7;
|
|
86
|
+
|
|
87
|
+
// The schedule creates incremental backup chains.
|
|
88
|
+
IncrementalBackupSpec incremental_backup_spec = 8;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Output only. The timestamp at which the schedule was last updated.
|
|
92
|
+
// If the schedule has never been updated, this field contains the timestamp
|
|
93
|
+
// when the schedule was first created.
|
|
94
|
+
google.protobuf.Timestamp update_time = 9
|
|
95
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// CrontabSpec can be used to specify the version time and frequency at
|
|
99
|
+
// which the backup should be created.
|
|
100
|
+
message CrontabSpec {
|
|
101
|
+
// Required. Textual representation of the crontab. User can customize the
|
|
102
|
+
// backup frequency and the backup version time using the cron
|
|
103
|
+
// expression. The version time must be in UTC timezone.
|
|
104
|
+
//
|
|
105
|
+
// The backup will contain an externally consistent copy of the
|
|
106
|
+
// database at the version time. Allowed frequencies are 12 hour, 1 day,
|
|
107
|
+
// 1 week and 1 month. Examples of valid cron specifications:
|
|
108
|
+
// * `0 2/12 * * * ` : every 12 hours at (2, 14) hours past midnight in UTC.
|
|
109
|
+
// * `0 2,14 * * * ` : every 12 hours at (2,14) hours past midnight in UTC.
|
|
110
|
+
// * `0 2 * * * ` : once a day at 2 past midnight in UTC.
|
|
111
|
+
// * `0 2 * * 0 ` : once a week every Sunday at 2 past midnight in UTC.
|
|
112
|
+
// * `0 2 8 * * ` : once a month on 8th day at 2 past midnight in UTC.
|
|
113
|
+
string text = 1 [(google.api.field_behavior) = REQUIRED];
|
|
114
|
+
|
|
115
|
+
// Output only. The time zone of the times in `CrontabSpec.text`. Currently
|
|
116
|
+
// only UTC is supported.
|
|
117
|
+
string time_zone = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
118
|
+
|
|
119
|
+
// Output only. Schedule backups will contain an externally consistent copy
|
|
120
|
+
// of the database at the version time specified in
|
|
121
|
+
// `schedule_spec.cron_spec`. However, Spanner may not initiate the creation
|
|
122
|
+
// of the scheduled backups at that version time. Spanner will initiate
|
|
123
|
+
// the creation of scheduled backups within the time window bounded by the
|
|
124
|
+
// version_time specified in `schedule_spec.cron_spec` and version_time +
|
|
125
|
+
// `creation_window`.
|
|
126
|
+
google.protobuf.Duration creation_window = 3
|
|
127
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// The request for
|
|
131
|
+
// [CreateBackupSchedule][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackupSchedule].
|
|
132
|
+
message CreateBackupScheduleRequest {
|
|
133
|
+
// Required. The name of the database that this backup schedule applies to.
|
|
134
|
+
string parent = 1 [
|
|
135
|
+
(google.api.field_behavior) = REQUIRED,
|
|
136
|
+
(google.api.resource_reference) = {
|
|
137
|
+
type: "spanner.googleapis.com/Database"
|
|
138
|
+
}
|
|
139
|
+
];
|
|
140
|
+
|
|
141
|
+
// Required. The Id to use for the backup schedule. The `backup_schedule_id`
|
|
142
|
+
// appended to `parent` forms the full backup schedule name of the form
|
|
143
|
+
// `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`.
|
|
144
|
+
string backup_schedule_id = 2 [(google.api.field_behavior) = REQUIRED];
|
|
145
|
+
|
|
146
|
+
// Required. The backup schedule to create.
|
|
147
|
+
BackupSchedule backup_schedule = 3 [(google.api.field_behavior) = REQUIRED];
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// The request for
|
|
151
|
+
// [GetBackupSchedule][google.spanner.admin.database.v1.DatabaseAdmin.GetBackupSchedule].
|
|
152
|
+
message GetBackupScheduleRequest {
|
|
153
|
+
// Required. The name of the schedule to retrieve.
|
|
154
|
+
// Values are of the form
|
|
155
|
+
// `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`.
|
|
156
|
+
string name = 1 [
|
|
157
|
+
(google.api.field_behavior) = REQUIRED,
|
|
158
|
+
(google.api.resource_reference) = {
|
|
159
|
+
type: "spanner.googleapis.com/BackupSchedule"
|
|
160
|
+
}
|
|
161
|
+
];
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// The request for
|
|
165
|
+
// [DeleteBackupSchedule][google.spanner.admin.database.v1.DatabaseAdmin.DeleteBackupSchedule].
|
|
166
|
+
message DeleteBackupScheduleRequest {
|
|
167
|
+
// Required. The name of the schedule to delete.
|
|
168
|
+
// Values are of the form
|
|
169
|
+
// `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`.
|
|
170
|
+
string name = 1 [
|
|
171
|
+
(google.api.field_behavior) = REQUIRED,
|
|
172
|
+
(google.api.resource_reference) = {
|
|
173
|
+
type: "spanner.googleapis.com/BackupSchedule"
|
|
174
|
+
}
|
|
175
|
+
];
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// The request for
|
|
179
|
+
// [ListBackupSchedules][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupSchedules].
|
|
180
|
+
message ListBackupSchedulesRequest {
|
|
181
|
+
// Required. Database is the parent resource whose backup schedules should be
|
|
182
|
+
// listed. Values are of the form
|
|
183
|
+
// projects/<project>/instances/<instance>/databases/<database>
|
|
184
|
+
string parent = 1 [
|
|
185
|
+
(google.api.field_behavior) = REQUIRED,
|
|
186
|
+
(google.api.resource_reference) = {
|
|
187
|
+
type: "spanner.googleapis.com/Database"
|
|
188
|
+
}
|
|
189
|
+
];
|
|
190
|
+
|
|
191
|
+
// Optional. Number of backup schedules to be returned in the response. If 0
|
|
192
|
+
// or less, defaults to the server's maximum allowed page size.
|
|
193
|
+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
194
|
+
|
|
195
|
+
// Optional. If non-empty, `page_token` should contain a
|
|
196
|
+
// [next_page_token][google.spanner.admin.database.v1.ListBackupSchedulesResponse.next_page_token]
|
|
197
|
+
// from a previous
|
|
198
|
+
// [ListBackupSchedulesResponse][google.spanner.admin.database.v1.ListBackupSchedulesResponse]
|
|
199
|
+
// to the same `parent`.
|
|
200
|
+
string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// The response for
|
|
204
|
+
// [ListBackupSchedules][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupSchedules].
|
|
205
|
+
message ListBackupSchedulesResponse {
|
|
206
|
+
// The list of backup schedules for a database.
|
|
207
|
+
repeated BackupSchedule backup_schedules = 1;
|
|
208
|
+
|
|
209
|
+
// `next_page_token` can be sent in a subsequent
|
|
210
|
+
// [ListBackupSchedules][google.spanner.admin.database.v1.DatabaseAdmin.ListBackupSchedules]
|
|
211
|
+
// call to fetch more of the schedules.
|
|
212
|
+
string next_page_token = 2;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// The request for
|
|
216
|
+
// [UpdateBackupScheduleRequest][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackupSchedule].
|
|
217
|
+
message UpdateBackupScheduleRequest {
|
|
218
|
+
// Required. The backup schedule to update. `backup_schedule.name`, and the
|
|
219
|
+
// fields to be updated as specified by `update_mask` are required. Other
|
|
220
|
+
// fields are ignored.
|
|
221
|
+
BackupSchedule backup_schedule = 1 [(google.api.field_behavior) = REQUIRED];
|
|
222
|
+
|
|
223
|
+
// Required. A mask specifying which fields in the BackupSchedule resource
|
|
224
|
+
// should be updated. This mask is relative to the BackupSchedule resource,
|
|
225
|
+
// not to the request message. The field mask must always be
|
|
226
|
+
// specified; this prevents any future fields from being erased
|
|
227
|
+
// accidentally.
|
|
228
|
+
google.protobuf.FieldMask update_mask = 2
|
|
229
|
+
[(google.api.field_behavior) = REQUIRED];
|
|
230
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.spanner.admin.database.v1;
|
|
18
|
+
|
|
19
|
+
import "google/api/field_behavior.proto";
|
|
20
|
+
import "google/api/resource.proto";
|
|
21
|
+
import "google/protobuf/timestamp.proto";
|
|
22
|
+
import "google/rpc/status.proto";
|
|
23
|
+
|
|
24
|
+
option csharp_namespace = "Google.Cloud.Spanner.Admin.Database.V1";
|
|
25
|
+
option go_package = "cloud.google.com/go/spanner/admin/database/apiv1/databasepb;databasepb";
|
|
26
|
+
option java_multiple_files = true;
|
|
27
|
+
option java_outer_classname = "CommonProto";
|
|
28
|
+
option java_package = "com.google.spanner.admin.database.v1";
|
|
29
|
+
option php_namespace = "Google\\Cloud\\Spanner\\Admin\\Database\\V1";
|
|
30
|
+
option ruby_package = "Google::Cloud::Spanner::Admin::Database::V1";
|
|
31
|
+
option (google.api.resource_definition) = {
|
|
32
|
+
type: "cloudkms.googleapis.com/CryptoKey"
|
|
33
|
+
pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"
|
|
34
|
+
};
|
|
35
|
+
option (google.api.resource_definition) = {
|
|
36
|
+
type: "cloudkms.googleapis.com/CryptoKeyVersion"
|
|
37
|
+
pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}"
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
// Encapsulates progress related information for a Cloud Spanner long
|
|
41
|
+
// running operation.
|
|
42
|
+
message OperationProgress {
|
|
43
|
+
// Percent completion of the operation.
|
|
44
|
+
// Values are between 0 and 100 inclusive.
|
|
45
|
+
int32 progress_percent = 1;
|
|
46
|
+
|
|
47
|
+
// Time the request was received.
|
|
48
|
+
google.protobuf.Timestamp start_time = 2;
|
|
49
|
+
|
|
50
|
+
// If set, the time at which this operation failed or was completed
|
|
51
|
+
// successfully.
|
|
52
|
+
google.protobuf.Timestamp end_time = 3;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Encryption configuration for a Cloud Spanner database.
|
|
56
|
+
message EncryptionConfig {
|
|
57
|
+
// The Cloud KMS key to be used for encrypting and decrypting
|
|
58
|
+
// the database. Values are of the form
|
|
59
|
+
// `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
|
|
60
|
+
string kms_key_name = 2 [(google.api.resource_reference) = {
|
|
61
|
+
type: "cloudkms.googleapis.com/CryptoKey"
|
|
62
|
+
}];
|
|
63
|
+
|
|
64
|
+
// Specifies the KMS configuration for the one or more keys used to encrypt
|
|
65
|
+
// the database. Values are of the form
|
|
66
|
+
// `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
|
|
67
|
+
//
|
|
68
|
+
// The keys referenced by kms_key_names must fully cover all
|
|
69
|
+
// regions of the database instance configuration. Some examples:
|
|
70
|
+
// * For single region database instance configs, specify a single regional
|
|
71
|
+
// location KMS key.
|
|
72
|
+
// * For multi-regional database instance configs of type GOOGLE_MANAGED,
|
|
73
|
+
// either specify a multi-regional location KMS key or multiple regional
|
|
74
|
+
// location KMS keys that cover all regions in the instance config.
|
|
75
|
+
// * For a database instance config of type USER_MANAGED, please specify only
|
|
76
|
+
// regional location KMS keys to cover each region in the instance config.
|
|
77
|
+
// Multi-regional location KMS keys are not supported for USER_MANAGED
|
|
78
|
+
// instance configs.
|
|
79
|
+
repeated string kms_key_names = 3 [(google.api.resource_reference) = {
|
|
80
|
+
type: "cloudkms.googleapis.com/CryptoKey"
|
|
81
|
+
}];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Encryption information for a Cloud Spanner database or backup.
|
|
85
|
+
message EncryptionInfo {
|
|
86
|
+
// Possible encryption types.
|
|
87
|
+
enum Type {
|
|
88
|
+
// Encryption type was not specified, though data at rest remains encrypted.
|
|
89
|
+
TYPE_UNSPECIFIED = 0;
|
|
90
|
+
|
|
91
|
+
// The data is encrypted at rest with a key that is
|
|
92
|
+
// fully managed by Google. No key version or status will be populated.
|
|
93
|
+
// This is the default state.
|
|
94
|
+
GOOGLE_DEFAULT_ENCRYPTION = 1;
|
|
95
|
+
|
|
96
|
+
// The data is encrypted at rest with a key that is
|
|
97
|
+
// managed by the customer. The active version of the key. `kms_key_version`
|
|
98
|
+
// will be populated, and `encryption_status` may be populated.
|
|
99
|
+
CUSTOMER_MANAGED_ENCRYPTION = 2;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// Output only. The type of encryption.
|
|
103
|
+
Type encryption_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
104
|
+
|
|
105
|
+
// Output only. If present, the status of a recent encrypt/decrypt call on
|
|
106
|
+
// underlying data for this database or backup. Regardless of status, data is
|
|
107
|
+
// always encrypted at rest.
|
|
108
|
+
google.rpc.Status encryption_status = 4
|
|
109
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
110
|
+
|
|
111
|
+
// Output only. A Cloud KMS key version that is being used to protect the
|
|
112
|
+
// database or backup.
|
|
113
|
+
string kms_key_version = 2 [
|
|
114
|
+
(google.api.field_behavior) = OUTPUT_ONLY,
|
|
115
|
+
(google.api.resource_reference) = {
|
|
116
|
+
type: "cloudkms.googleapis.com/CryptoKeyVersion"
|
|
117
|
+
}
|
|
118
|
+
];
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Indicates the dialect type of a database.
|
|
122
|
+
enum DatabaseDialect {
|
|
123
|
+
// Default value. This value will create a database with the
|
|
124
|
+
// GOOGLE_STANDARD_SQL dialect.
|
|
125
|
+
DATABASE_DIALECT_UNSPECIFIED = 0;
|
|
126
|
+
|
|
127
|
+
// GoogleSQL supported SQL.
|
|
128
|
+
GOOGLE_STANDARD_SQL = 1;
|
|
129
|
+
|
|
130
|
+
// PostgreSQL supported SQL.
|
|
131
|
+
POSTGRESQL = 2;
|
|
132
|
+
}
|