@googleapis/spanner 7.2.0 → 7.4.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/CHANGELOG.md +18 -0
- package/build/v1.d.ts +385 -53
- package/build/v1.js +272 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1007 -53
package/build/v1.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ export declare namespace spanner_v1 {
|
|
|
73
73
|
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
|
-
* Autoscaling
|
|
76
|
+
* Autoscaling configuration for an instance.
|
|
77
77
|
*/
|
|
78
78
|
export interface Schema$AutoscalingConfig {
|
|
79
79
|
/**
|
|
@@ -123,6 +123,10 @@ export declare namespace spanner_v1 {
|
|
|
123
123
|
* A backup of a Cloud Spanner database.
|
|
124
124
|
*/
|
|
125
125
|
export interface Schema$Backup {
|
|
126
|
+
/**
|
|
127
|
+
* Output only. List of backup schedule URIs that are associated with creating this backup. This is only applicable for scheduled backups, and is empty for on-demand backups. To optimize for storage, whenever possible, multiple schedules are collapsed together to create one backup. In such cases, this field captures the list of all backup schedule URIs that are associated with creating this backup. If collapsing is not done, then this field captures the single backup schedule URI associated with creating this backup.
|
|
128
|
+
*/
|
|
129
|
+
backupSchedules?: string[] | null;
|
|
126
130
|
/**
|
|
127
131
|
* Output only. The time the CreateBackup request is received. If the request does not specify `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
|
|
128
132
|
*/
|
|
@@ -143,10 +147,22 @@ export declare namespace spanner_v1 {
|
|
|
143
147
|
* Output only. The encryption information for the backup, whether it is protected by one or more KMS keys. The information includes all Cloud KMS key versions used to encrypt the backup. The `encryption_status' field inside of each `EncryptionInfo` is not populated. At least one of the key versions must be available for the backup to be restored. If a key version is revoked in the middle of a restore, the restore behavior is undefined.
|
|
144
148
|
*/
|
|
145
149
|
encryptionInformation?: Schema$EncryptionInfo[];
|
|
150
|
+
/**
|
|
151
|
+
* Output only. For a backup in an incremental backup chain, this is the storage space needed to keep the data that has changed since the previous backup. For all other backups, this is always the size of the backup. This value may change if backups on the same chain get deleted or expired. This field can be used to calculate the total storage space used by a set of backups. For example, the total space used by all backups of a database can be computed by summing up this field.
|
|
152
|
+
*/
|
|
153
|
+
exclusiveSizeBytes?: string | null;
|
|
146
154
|
/**
|
|
147
155
|
* Required for the CreateBackup operation. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup request is processed. Once the `expire_time` has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup.
|
|
148
156
|
*/
|
|
149
157
|
expireTime?: string | null;
|
|
158
|
+
/**
|
|
159
|
+
* Output only. The number of bytes that will be freed by deleting this backup. This value will be zero if, for example, this backup is part of an incremental backup chain and younger backups in the chain require that we keep its data. For backups not in an incremental backup chain, this is always the size of the backup. This value may change if backups on the same chain get created, deleted or expired.
|
|
160
|
+
*/
|
|
161
|
+
freeableSizeBytes?: string | null;
|
|
162
|
+
/**
|
|
163
|
+
* Output only. Populated only for backups in an incremental backup chain. Backups share the same chain id if and only if they belong to the same incremental backup chain. Use this field to determine which backups are part of the same incremental backup chain. The ordering of backups in the chain can be determined by ordering the backup `version_time`.
|
|
164
|
+
*/
|
|
165
|
+
incrementalBackupChainId?: string | null;
|
|
150
166
|
/**
|
|
151
167
|
* Output only. The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or copying an existing backup, the expiration time specified must be less than `Backup.max_expire_time`.
|
|
152
168
|
*/
|
|
@@ -155,6 +171,10 @@ export declare namespace spanner_v1 {
|
|
|
155
171
|
* Output only for the CreateBackup operation. Required for the UpdateBackup operation. A globally unique identifier for the backup which cannot be changed. Values are of the form `projects//instances//backups/a-z*[a-z0-9]` The final segment of the name must be between 2 and 60 characters in length. The backup is stored in the location(s) specified in the instance configuration of the instance containing the backup, identified by the prefix of the backup name of the form `projects//instances/`.
|
|
156
172
|
*/
|
|
157
173
|
name?: string | null;
|
|
174
|
+
/**
|
|
175
|
+
* Output only. Data deleted at a time older than this is guaranteed not to be retained in order to support this backup. For a backup in an incremental backup chain, this is the version time of the oldest backup that exists or ever existed in the chain. For all other backups, this is the version time of the backup. This field can be used to understand what data is being retained by the backup system.
|
|
176
|
+
*/
|
|
177
|
+
oldestVersionTime?: string | null;
|
|
158
178
|
/**
|
|
159
179
|
* Output only. The names of the destination backups being created by copying this source backup. The backup names are of the form `projects//instances//backups/`. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
|
|
160
180
|
*/
|
|
@@ -164,7 +184,7 @@ export declare namespace spanner_v1 {
|
|
|
164
184
|
*/
|
|
165
185
|
referencingDatabases?: string[] | null;
|
|
166
186
|
/**
|
|
167
|
-
* Output only. Size of the backup in bytes.
|
|
187
|
+
* Output only. Size of the backup in bytes. For a backup in an incremental backup chain, this is the sum of the `exclusive_size_bytes` of itself and all older backups in the chain.
|
|
168
188
|
*/
|
|
169
189
|
sizeBytes?: string | null;
|
|
170
190
|
/**
|
|
@@ -197,6 +217,48 @@ export declare namespace spanner_v1 {
|
|
|
197
217
|
*/
|
|
198
218
|
versionTime?: string | null;
|
|
199
219
|
}
|
|
220
|
+
/**
|
|
221
|
+
* BackupSchedule expresses the automated backup creation specification for a Spanner database. Next ID: 10
|
|
222
|
+
*/
|
|
223
|
+
export interface Schema$BackupSchedule {
|
|
224
|
+
/**
|
|
225
|
+
* Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.
|
|
226
|
+
*/
|
|
227
|
+
encryptionConfig?: Schema$CreateBackupEncryptionConfig;
|
|
228
|
+
/**
|
|
229
|
+
* The schedule creates only full backups.
|
|
230
|
+
*/
|
|
231
|
+
fullBackupSpec?: Schema$FullBackupSpec;
|
|
232
|
+
/**
|
|
233
|
+
* The schedule creates incremental backup chains.
|
|
234
|
+
*/
|
|
235
|
+
incrementalBackupSpec?: Schema$IncrementalBackupSpec;
|
|
236
|
+
/**
|
|
237
|
+
* Identifier. Output only for the CreateBackupSchedule operation. Required for the UpdateBackupSchedule operation. A globally unique identifier for the backup schedule which cannot be changed. Values are of the form `projects//instances//databases//backupSchedules/a-z*[a-z0-9]` The final segment of the name must be between 2 and 60 characters in length.
|
|
238
|
+
*/
|
|
239
|
+
name?: string | null;
|
|
240
|
+
/**
|
|
241
|
+
* Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.
|
|
242
|
+
*/
|
|
243
|
+
retentionDuration?: string | null;
|
|
244
|
+
/**
|
|
245
|
+
* Optional. The schedule specification based on which the backup creations are triggered.
|
|
246
|
+
*/
|
|
247
|
+
spec?: Schema$BackupScheduleSpec;
|
|
248
|
+
/**
|
|
249
|
+
* Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.
|
|
250
|
+
*/
|
|
251
|
+
updateTime?: string | null;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Defines specifications of the backup schedule.
|
|
255
|
+
*/
|
|
256
|
+
export interface Schema$BackupScheduleSpec {
|
|
257
|
+
/**
|
|
258
|
+
* Cron style schedule specification.
|
|
259
|
+
*/
|
|
260
|
+
cronSpec?: Schema$CrontabSpec;
|
|
261
|
+
}
|
|
200
262
|
/**
|
|
201
263
|
* The request for BatchCreateSessions.
|
|
202
264
|
*/
|
|
@@ -305,15 +367,15 @@ export declare namespace spanner_v1 {
|
|
|
305
367
|
*/
|
|
306
368
|
export interface Schema$ChangeQuorumRequest {
|
|
307
369
|
/**
|
|
308
|
-
* Optional. The etag is the hash of the QuorumInfo
|
|
370
|
+
* Optional. The etag is the hash of the `QuorumInfo`. The `ChangeQuorum` operation is only performed if the etag matches that of the `QuorumInfo` in the current database resource. Otherwise the API returns an `ABORTED` error. The etag is used for optimistic concurrency control as a way to help prevent simultaneous change quorum requests that could create a race condition.
|
|
309
371
|
*/
|
|
310
372
|
etag?: string | null;
|
|
311
373
|
/**
|
|
312
|
-
* Required. Name of the database in which to apply
|
|
374
|
+
* Required. Name of the database in which to apply `ChangeQuorum`. Values are of the form `projects//instances//databases/`.
|
|
313
375
|
*/
|
|
314
376
|
name?: string | null;
|
|
315
377
|
/**
|
|
316
|
-
* Required. The type of this
|
|
378
|
+
* Required. The type of this quorum.
|
|
317
379
|
*/
|
|
318
380
|
quorumType?: Schema$QuorumType;
|
|
319
381
|
}
|
|
@@ -465,6 +527,23 @@ export declare namespace spanner_v1 {
|
|
|
465
527
|
*/
|
|
466
528
|
sourceBackup?: string | null;
|
|
467
529
|
}
|
|
530
|
+
/**
|
|
531
|
+
* Encryption configuration for the backup to create.
|
|
532
|
+
*/
|
|
533
|
+
export interface Schema$CreateBackupEncryptionConfig {
|
|
534
|
+
/**
|
|
535
|
+
* Required. The encryption type of the backup.
|
|
536
|
+
*/
|
|
537
|
+
encryptionType?: string | null;
|
|
538
|
+
/**
|
|
539
|
+
* Optional. The Cloud KMS key that will be used to protect the backup. This field should be set only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//keyRings//cryptoKeys/`.
|
|
540
|
+
*/
|
|
541
|
+
kmsKeyName?: string | null;
|
|
542
|
+
/**
|
|
543
|
+
* Optional. Specifies the KMS configuration for the one or more keys used to protect the backup. Values are of the form `projects//locations//keyRings//cryptoKeys/`. The keys referenced by kms_key_names must fully cover all regions of the backup's instance configuration. Some examples: * For single region instance configs, specify a single regional location KMS key. * For multi-regional instance configs of type GOOGLE_MANAGED, either specify a multi-regional location KMS key or multiple regional location KMS keys that cover all regions in the instance config. * For an instance config of type USER_MANAGED, please specify only regional location KMS keys to cover each region in the instance config. Multi-regional location KMS keys are not supported for USER_MANAGED instance configs.
|
|
544
|
+
*/
|
|
545
|
+
kmsKeyNames?: string[] | null;
|
|
546
|
+
}
|
|
468
547
|
/**
|
|
469
548
|
* Metadata type for the operation returned by CreateBackup.
|
|
470
549
|
*/
|
|
@@ -516,7 +595,7 @@ export declare namespace spanner_v1 {
|
|
|
516
595
|
*/
|
|
517
596
|
extraStatements?: string[] | null;
|
|
518
597
|
/**
|
|
519
|
-
* Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements in 'extra_statements'
|
|
598
|
+
* Optional. Proto descriptors used by `CREATE/ALTER PROTO BUNDLE` statements in 'extra_statements'. Contains a protobuf-serialized [`google.protobuf.FileDescriptorSet`](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto) descriptor set. To generate it, [install](https://grpc.io/docs/protoc-installation/) and run `protoc` with --include_imports and --descriptor_set_out. For example, to generate for moon/shot/app.proto, run ``` $protoc --proto_path=/app_path --proto_path=/lib_path \ --include_imports \ --descriptor_set_out=descriptors.data \ moon/shot/app.proto ``` For more details, see protobuffer [self description](https://developers.google.com/protocol-buffers/docs/techniques#self-description).
|
|
520
599
|
*/
|
|
521
600
|
protoDescriptors?: string | null;
|
|
522
601
|
}
|
|
@@ -529,7 +608,7 @@ export declare namespace spanner_v1 {
|
|
|
529
608
|
*/
|
|
530
609
|
cancelTime?: string | null;
|
|
531
610
|
/**
|
|
532
|
-
* The target instance
|
|
611
|
+
* The target instance configuration end state.
|
|
533
612
|
*/
|
|
534
613
|
instanceConfig?: Schema$InstanceConfig;
|
|
535
614
|
/**
|
|
@@ -542,11 +621,11 @@ export declare namespace spanner_v1 {
|
|
|
542
621
|
*/
|
|
543
622
|
export interface Schema$CreateInstanceConfigRequest {
|
|
544
623
|
/**
|
|
545
|
-
* Required. The InstanceConfig proto of the configuration to create. instance_config.name must be `/instanceConfigs/`. instance_config.base_config must be a Google
|
|
624
|
+
* Required. The `InstanceConfig` proto of the configuration to create. `instance_config.name` must be `/instanceConfigs/`. `instance_config.base_config` must be a Google-managed configuration name, e.g. /instanceConfigs/us-east1, /instanceConfigs/nam3.
|
|
546
625
|
*/
|
|
547
626
|
instanceConfig?: Schema$InstanceConfig;
|
|
548
627
|
/**
|
|
549
|
-
* Required. The ID of the instance
|
|
628
|
+
* Required. The ID of the instance configuration to create. Valid identifiers are of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in length. The `custom-` prefix is required to avoid name conflicts with Google-managed configurations.
|
|
550
629
|
*/
|
|
551
630
|
instanceConfigId?: string | null;
|
|
552
631
|
/**
|
|
@@ -635,6 +714,23 @@ export declare namespace spanner_v1 {
|
|
|
635
714
|
*/
|
|
636
715
|
session?: Schema$Session;
|
|
637
716
|
}
|
|
717
|
+
/**
|
|
718
|
+
* CrontabSpec can be used to specify the version time and frequency at which the backup should be created.
|
|
719
|
+
*/
|
|
720
|
+
export interface Schema$CrontabSpec {
|
|
721
|
+
/**
|
|
722
|
+
* Output only. Schedule backups will contain an externally consistent copy of the database at the version time specified in `schedule_spec.cron_spec`. However, Spanner may not initiate the creation of the scheduled backups at that version time. Spanner will initiate the creation of scheduled backups within the time window bounded by the version_time specified in `schedule_spec.cron_spec` and version_time + `creation_window`.
|
|
723
|
+
*/
|
|
724
|
+
creationWindow?: string | null;
|
|
725
|
+
/**
|
|
726
|
+
* Required. Textual representation of the crontab. User can customize the backup frequency and the backup version time using the cron expression. The version time must be in UTC timzeone. The backup will contain an externally consistent copy of the database at the version time. Allowed frequencies are 12 hour, 1 day, 1 week and 1 month. Examples of valid cron specifications: * `0 2/12 * * * ` : every 12 hours at (2, 14) hours past midnight in UTC. * `0 2,14 * * * ` : every 12 hours at (2,14) hours past midnight in UTC. * `0 2 * * * ` : once a day at 2 past midnight in UTC. * `0 2 * * 0 ` : once a week every Sunday at 2 past midnight in UTC. * `0 2 8 * * ` : once a month on 8th day at 2 past midnight in UTC.
|
|
727
|
+
*/
|
|
728
|
+
text?: string | null;
|
|
729
|
+
/**
|
|
730
|
+
* Output only. The time zone of the times in `CrontabSpec.text`. Currently only UTC is supported.
|
|
731
|
+
*/
|
|
732
|
+
timeZone?: string | null;
|
|
733
|
+
}
|
|
638
734
|
/**
|
|
639
735
|
* A Cloud Spanner database.
|
|
640
736
|
*/
|
|
@@ -656,7 +752,7 @@ export declare namespace spanner_v1 {
|
|
|
656
752
|
*/
|
|
657
753
|
earliestVersionTime?: string | null;
|
|
658
754
|
/**
|
|
659
|
-
* Whether drop protection is enabled for this database. Defaults to false, if not set. For more details, please see how to [prevent accidental database deletion](https://cloud.google.com/spanner/docs/prevent-database-deletion).
|
|
755
|
+
* Optional. Whether drop protection is enabled for this database. Defaults to false, if not set. For more details, please see how to [prevent accidental database deletion](https://cloud.google.com/spanner/docs/prevent-database-deletion).
|
|
660
756
|
*/
|
|
661
757
|
enableDropProtection?: boolean | null;
|
|
662
758
|
/**
|
|
@@ -672,7 +768,7 @@ export declare namespace spanner_v1 {
|
|
|
672
768
|
*/
|
|
673
769
|
name?: string | null;
|
|
674
770
|
/**
|
|
675
|
-
* Output only. Applicable only for databases that use dual
|
|
771
|
+
* Output only. Applicable only for databases that use dual-region instance configurations. Contains information about the quorum.
|
|
676
772
|
*/
|
|
677
773
|
quorumInfo?: Schema$QuorumInfo;
|
|
678
774
|
/**
|
|
@@ -973,6 +1069,11 @@ export declare namespace spanner_v1 {
|
|
|
973
1069
|
*/
|
|
974
1070
|
upgradeTime?: string | null;
|
|
975
1071
|
}
|
|
1072
|
+
/**
|
|
1073
|
+
* The specification for full backups. A full backup stores the entire contents of the database at a given version time.
|
|
1074
|
+
*/
|
|
1075
|
+
export interface Schema$FullBackupSpec {
|
|
1076
|
+
}
|
|
976
1077
|
/**
|
|
977
1078
|
* The response for GetDatabaseDdl.
|
|
978
1079
|
*/
|
|
@@ -1017,6 +1118,11 @@ export declare namespace spanner_v1 {
|
|
|
1017
1118
|
*/
|
|
1018
1119
|
replicaSelections?: Schema$ReplicaSelection[];
|
|
1019
1120
|
}
|
|
1121
|
+
/**
|
|
1122
|
+
* The specification for incremental backup chains. An incremental backup stores the delta of changes between a previous backup and the database contents at a given version time. An incremental backup chain consists of a full backup and zero or more successive incremental backups. The first backup created for an incremental backup chain is always a full backup.
|
|
1123
|
+
*/
|
|
1124
|
+
export interface Schema$IncrementalBackupSpec {
|
|
1125
|
+
}
|
|
1020
1126
|
/**
|
|
1021
1127
|
* Recommendation to add new indexes to run queries more efficiently.
|
|
1022
1128
|
*/
|
|
@@ -1072,6 +1178,10 @@ export declare namespace spanner_v1 {
|
|
|
1072
1178
|
* Required. The descriptive name for this instance as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
|
|
1073
1179
|
*/
|
|
1074
1180
|
displayName?: string | null;
|
|
1181
|
+
/**
|
|
1182
|
+
* Optional. The `Edition` of the current instance.
|
|
1183
|
+
*/
|
|
1184
|
+
edition?: string | null;
|
|
1075
1185
|
/**
|
|
1076
1186
|
* Deprecated. This field is not populated.
|
|
1077
1187
|
*/
|
|
@@ -1095,11 +1205,11 @@ export declare namespace spanner_v1 {
|
|
|
1095
1205
|
*/
|
|
1096
1206
|
name?: string | null;
|
|
1097
1207
|
/**
|
|
1098
|
-
* The number of nodes allocated to this instance. At most one of either node_count or processing_units should be present in the message. Users can set the node_count field to specify the target number of nodes allocated to the instance. If autoscaling is enabled, node_count is treated as an OUTPUT_ONLY field and reflects the current number of nodes allocated to the instance. This
|
|
1208
|
+
* The number of nodes allocated to this instance. At most, one of either `node_count` or `processing_units` should be present in the message. Users can set the `node_count` field to specify the target number of nodes allocated to the instance. If autoscaling is enabled, `node_count` is treated as an `OUTPUT_ONLY` field and reflects the current number of nodes allocated to the instance. This might be zero in API responses for instances that are not yet in the `READY` state. For more information, see [Compute capacity, nodes, and processing units](https://cloud.google.com/spanner/docs/compute-capacity).
|
|
1099
1209
|
*/
|
|
1100
1210
|
nodeCount?: number | null;
|
|
1101
1211
|
/**
|
|
1102
|
-
* The number of processing units allocated to this instance. At most one of processing_units or node_count should be present in the message. Users can set the processing_units field to specify the target number of processing units allocated to the instance. If autoscaling is enabled, processing_units is treated as an OUTPUT_ONLY field and reflects the current number of processing units allocated to the instance. This
|
|
1212
|
+
* The number of processing units allocated to this instance. At most, one of either `processing_units` or `node_count` should be present in the message. Users can set the `processing_units` field to specify the target number of processing units allocated to the instance. If autoscaling is enabled, `processing_units` is treated as an `OUTPUT_ONLY` field and reflects the current number of processing units allocated to the instance. This might be zero in API responses for instances that are not yet in the `READY` state. For more information, see [Compute capacity, nodes and processing units](https://cloud.google.com/spanner/docs/compute-capacity).
|
|
1103
1213
|
*/
|
|
1104
1214
|
processingUnits?: number | null;
|
|
1105
1215
|
/**
|
|
@@ -1116,11 +1226,11 @@ export declare namespace spanner_v1 {
|
|
|
1116
1226
|
*/
|
|
1117
1227
|
export interface Schema$InstanceConfig {
|
|
1118
1228
|
/**
|
|
1119
|
-
* Base configuration name, e.g. projects//instanceConfigs/nam3, based on which this configuration is created. Only set for user
|
|
1229
|
+
* Base configuration name, e.g. projects//instanceConfigs/nam3, based on which this configuration is created. Only set for user-managed configurations. `base_config` must refer to a configuration of type `GOOGLE_MANAGED` in the same project as this configuration.
|
|
1120
1230
|
*/
|
|
1121
1231
|
baseConfig?: string | null;
|
|
1122
1232
|
/**
|
|
1123
|
-
* Output only. Whether this instance
|
|
1233
|
+
* Output only. Whether this instance configuration is a Google-managed or user-managed configuration.
|
|
1124
1234
|
*/
|
|
1125
1235
|
configType?: string | null;
|
|
1126
1236
|
/**
|
|
@@ -1128,11 +1238,11 @@ export declare namespace spanner_v1 {
|
|
|
1128
1238
|
*/
|
|
1129
1239
|
displayName?: string | null;
|
|
1130
1240
|
/**
|
|
1131
|
-
* etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance
|
|
1241
|
+
* etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance configuration from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform instance configuration updates in order to avoid race conditions: An etag is returned in the response which contains instance configurations, and systems are expected to put that etag in the request to update instance configuration to ensure that their change is applied to the same version of the instance configuration. If no etag is provided in the call to update the instance configuration, then the existing instance configuration is overwritten blindly.
|
|
1132
1242
|
*/
|
|
1133
1243
|
etag?: string | null;
|
|
1134
1244
|
/**
|
|
1135
|
-
* Output only. Describes whether free instances are available to be created in this instance
|
|
1245
|
+
* Output only. Describes whether free instances are available to be created in this instance configuration.
|
|
1136
1246
|
*/
|
|
1137
1247
|
freeInstanceAvailability?: string | null;
|
|
1138
1248
|
/**
|
|
@@ -1146,11 +1256,11 @@ export declare namespace spanner_v1 {
|
|
|
1146
1256
|
*/
|
|
1147
1257
|
leaderOptions?: string[] | null;
|
|
1148
1258
|
/**
|
|
1149
|
-
* A unique identifier for the instance configuration. Values are of the form `projects//instanceConfigs/a-z*`.
|
|
1259
|
+
* A unique identifier for the instance configuration. Values are of the form `projects//instanceConfigs/a-z*`. User instance configuration must start with `custom-`.
|
|
1150
1260
|
*/
|
|
1151
1261
|
name?: string | null;
|
|
1152
1262
|
/**
|
|
1153
|
-
* Output only. The available optional replicas to choose from for user
|
|
1263
|
+
* Output only. The available optional replicas to choose from for user-managed configurations. Populated for Google-managed configurations.
|
|
1154
1264
|
*/
|
|
1155
1265
|
optionalReplicas?: Schema$ReplicaInfo[];
|
|
1156
1266
|
/**
|
|
@@ -1158,15 +1268,15 @@ export declare namespace spanner_v1 {
|
|
|
1158
1268
|
*/
|
|
1159
1269
|
quorumType?: string | null;
|
|
1160
1270
|
/**
|
|
1161
|
-
* Output only. If true, the instance
|
|
1271
|
+
* Output only. If true, the instance configuration is being created or updated. If false, there are no ongoing operations for the instance configuration.
|
|
1162
1272
|
*/
|
|
1163
1273
|
reconciling?: boolean | null;
|
|
1164
1274
|
/**
|
|
1165
|
-
* The geographic placement of nodes in this instance configuration and their replication properties.
|
|
1275
|
+
* The geographic placement of nodes in this instance configuration and their replication properties. To create user-managed configurations, input `replicas` must include all replicas in `replicas` of the `base_config` and include one or more replicas in the `optional_replicas` of the `base_config`.
|
|
1166
1276
|
*/
|
|
1167
1277
|
replicas?: Schema$ReplicaInfo[];
|
|
1168
1278
|
/**
|
|
1169
|
-
* Output only. The current instance
|
|
1279
|
+
* Output only. The current instance configuration state. Applicable only for `USER_MANAGED` configurations.
|
|
1170
1280
|
*/
|
|
1171
1281
|
state?: string | null;
|
|
1172
1282
|
/**
|
|
@@ -1216,15 +1326,15 @@ export declare namespace spanner_v1 {
|
|
|
1216
1326
|
*/
|
|
1217
1327
|
name?: string | null;
|
|
1218
1328
|
/**
|
|
1219
|
-
* The number of nodes allocated to this instance partition. Users can set the node_count field to specify the target number of nodes allocated to the instance partition. This may be zero in API responses for instance partitions that are not yet in state `READY`.
|
|
1329
|
+
* The number of nodes allocated to this instance partition. Users can set the `node_count` field to specify the target number of nodes allocated to the instance partition. This may be zero in API responses for instance partitions that are not yet in state `READY`.
|
|
1220
1330
|
*/
|
|
1221
1331
|
nodeCount?: number | null;
|
|
1222
1332
|
/**
|
|
1223
|
-
* The number of processing units allocated to this instance partition. Users can set the processing_units field to specify the target number of processing units allocated to the instance partition. This
|
|
1333
|
+
* The number of processing units allocated to this instance partition. Users can set the `processing_units` field to specify the target number of processing units allocated to the instance partition. This might be zero in API responses for instance partitions that are not yet in the `READY` state.
|
|
1224
1334
|
*/
|
|
1225
1335
|
processingUnits?: number | null;
|
|
1226
1336
|
/**
|
|
1227
|
-
* Output only. The names of the backups that reference this instance partition. Referencing backups should share the parent instance. The existence of any referencing backup prevents the instance partition from being deleted.
|
|
1337
|
+
* Output only. Deprecated: This field is not populated. Output only. The names of the backups that reference this instance partition. Referencing backups should share the parent instance. The existence of any referencing backup prevents the instance partition from being deleted.
|
|
1228
1338
|
*/
|
|
1229
1339
|
referencingBackups?: string[] | null;
|
|
1230
1340
|
/**
|
|
@@ -1345,6 +1455,19 @@ export declare namespace spanner_v1 {
|
|
|
1345
1455
|
*/
|
|
1346
1456
|
operations?: Schema$Operation[];
|
|
1347
1457
|
}
|
|
1458
|
+
/**
|
|
1459
|
+
* The response for ListBackupSchedules.
|
|
1460
|
+
*/
|
|
1461
|
+
export interface Schema$ListBackupSchedulesResponse {
|
|
1462
|
+
/**
|
|
1463
|
+
* The list of backup schedules for a database.
|
|
1464
|
+
*/
|
|
1465
|
+
backupSchedules?: Schema$BackupSchedule[];
|
|
1466
|
+
/**
|
|
1467
|
+
* `next_page_token` can be sent in a subsequent ListBackupSchedules call to fetch more of the schedules.
|
|
1468
|
+
*/
|
|
1469
|
+
nextPageToken?: string | null;
|
|
1470
|
+
}
|
|
1348
1471
|
/**
|
|
1349
1472
|
* The response for ListBackups.
|
|
1350
1473
|
*/
|
|
@@ -1406,7 +1529,7 @@ export declare namespace spanner_v1 {
|
|
|
1406
1529
|
*/
|
|
1407
1530
|
nextPageToken?: string | null;
|
|
1408
1531
|
/**
|
|
1409
|
-
* The list of matching instance
|
|
1532
|
+
* The list of matching instance configuration long-running operations. Each operation's name will be prefixed by the name of the instance configuration. The operation's metadata field type `metadata.type_url` describes the type of the metadata.
|
|
1410
1533
|
*/
|
|
1411
1534
|
operations?: Schema$Operation[];
|
|
1412
1535
|
}
|
|
@@ -1612,7 +1735,7 @@ export declare namespace spanner_v1 {
|
|
|
1612
1735
|
*/
|
|
1613
1736
|
export interface Schema$MoveInstanceRequest {
|
|
1614
1737
|
/**
|
|
1615
|
-
* Required. The target instance
|
|
1738
|
+
* Required. The target instance configuration where to move the instance. Values are of the form `projects//instanceConfigs/`.
|
|
1616
1739
|
*/
|
|
1617
1740
|
targetConfig?: string | null;
|
|
1618
1741
|
}
|
|
@@ -1782,7 +1905,7 @@ export declare namespace spanner_v1 {
|
|
|
1782
1905
|
*/
|
|
1783
1906
|
partitionOptions?: Schema$PartitionOptions;
|
|
1784
1907
|
/**
|
|
1785
|
-
* Required. The query request to generate partitions for. The request
|
|
1908
|
+
* Required. The query request to generate partitions for. The request fails if the query is not root partitionable. For a query to be root partitionable, it needs to satisfy a few conditions. For example, if the query execution plan contains a distributed union operator, then it must be the first operator in the plan. For more information about other conditions, see [Read data in parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel). The query request must not contain DML commands, such as `INSERT`, `UPDATE`, or `DELETE`. Use `ExecuteStreamingSql` with a PartitionedDml transaction for large, partition-friendly DML operations.
|
|
1786
1909
|
*/
|
|
1787
1910
|
sql?: string | null;
|
|
1788
1911
|
/**
|
|
@@ -1947,15 +2070,15 @@ export declare namespace spanner_v1 {
|
|
|
1947
2070
|
queryAdvice?: Schema$QueryAdvisorResult;
|
|
1948
2071
|
}
|
|
1949
2072
|
/**
|
|
1950
|
-
* Information about the dual
|
|
2073
|
+
* Information about the dual-region quorum.
|
|
1951
2074
|
*/
|
|
1952
2075
|
export interface Schema$QuorumInfo {
|
|
1953
2076
|
/**
|
|
1954
|
-
* Output only. The etag is used for optimistic concurrency control as a way to help prevent simultaneous ChangeQuorum requests that
|
|
2077
|
+
* Output only. The etag is used for optimistic concurrency control as a way to help prevent simultaneous `ChangeQuorum` requests that might create a race condition.
|
|
1955
2078
|
*/
|
|
1956
2079
|
etag?: string | null;
|
|
1957
2080
|
/**
|
|
1958
|
-
* Output only. Whether this ChangeQuorum is
|
|
2081
|
+
* Output only. Whether this `ChangeQuorum` is Google or User initiated.
|
|
1959
2082
|
*/
|
|
1960
2083
|
initiator?: string | null;
|
|
1961
2084
|
/**
|
|
@@ -1968,15 +2091,15 @@ export declare namespace spanner_v1 {
|
|
|
1968
2091
|
startTime?: string | null;
|
|
1969
2092
|
}
|
|
1970
2093
|
/**
|
|
1971
|
-
* Information about the database quorum type.
|
|
2094
|
+
* Information about the database quorum type. This only applies to dual-region instance configs.
|
|
1972
2095
|
*/
|
|
1973
2096
|
export interface Schema$QuorumType {
|
|
1974
2097
|
/**
|
|
1975
|
-
* Dual
|
|
2098
|
+
* Dual-region quorum type.
|
|
1976
2099
|
*/
|
|
1977
2100
|
dualRegion?: Schema$DualRegionQuorum;
|
|
1978
2101
|
/**
|
|
1979
|
-
* Single
|
|
2102
|
+
* Single-region quorum type.
|
|
1980
2103
|
*/
|
|
1981
2104
|
singleRegion?: Schema$SingleRegionQuorum;
|
|
1982
2105
|
}
|
|
@@ -2037,6 +2160,14 @@ export declare namespace spanner_v1 {
|
|
|
2037
2160
|
* If greater than zero, only the first `limit` rows are yielded. If `limit` is zero, the default is no limit. A limit cannot be specified if `partition_token` is set.
|
|
2038
2161
|
*/
|
|
2039
2162
|
limit?: string | null;
|
|
2163
|
+
/**
|
|
2164
|
+
* Optional. Lock Hint for the request, it can only be used with read-write transactions.
|
|
2165
|
+
*/
|
|
2166
|
+
lockHint?: string | null;
|
|
2167
|
+
/**
|
|
2168
|
+
* Optional. Order for the returned rows. By default, Spanner will return result rows in primary key order except for PartitionRead requests. For applications that do not require rows to be returned in primary key (`ORDER_BY_PRIMARY_KEY`) order, setting `ORDER_BY_NO_ORDER` option allows Spanner to optimize row retrieval, resulting in lower latencies in certain cases (e.g. bulk point lookups).
|
|
2169
|
+
*/
|
|
2170
|
+
orderBy?: string | null;
|
|
2040
2171
|
/**
|
|
2041
2172
|
* If present, results will be restricted to the specified partition previously created using PartitionRead(). There must be an exact match for the values of fields common to this message and the PartitionReadRequest message used to create this partition_token.
|
|
2042
2173
|
*/
|
|
@@ -2124,7 +2255,7 @@ export declare namespace spanner_v1 {
|
|
|
2124
2255
|
*/
|
|
2125
2256
|
kmsKeyName?: string | null;
|
|
2126
2257
|
/**
|
|
2127
|
-
* Optional. Specifies the KMS configuration for the one or more keys used to encrypt the database. Values
|
|
2258
|
+
* Optional. Specifies the KMS configuration for the one or more keys used to encrypt the database. Values have the form `projects//locations//keyRings//cryptoKeys/`. The keys referenced by kms_key_names must fully cover all regions of the database instance configuration. Some examples: * For single region database instance configurations, specify a single regional location KMS key. * For multi-regional database instance configurations of type `GOOGLE_MANAGED`, either specify a multi-regional location KMS key or multiple regional location KMS keys that cover all regions in the instance configuration. * For a database instance configuration of type `USER_MANAGED`, please specify only regional location KMS keys to cover each region in the instance configuration. Multi-regional location KMS keys are not supported for USER_MANAGED instance configurations.
|
|
2128
2259
|
*/
|
|
2129
2260
|
kmsKeyNames?: string[] | null;
|
|
2130
2261
|
}
|
|
@@ -2320,7 +2451,7 @@ export declare namespace spanner_v1 {
|
|
|
2320
2451
|
[key: string]: string;
|
|
2321
2452
|
} | null;
|
|
2322
2453
|
/**
|
|
2323
|
-
* Optional. If true, specifies a multiplexed session.
|
|
2454
|
+
* Optional. If true, specifies a multiplexed session. Use a multiplexed session for multiple, concurrent read-only operations. Don't use them for read-write transactions, partitioned reads, or partitioned queries. Use CreateSession to create multiplexed sessions. Don't use BatchCreateSessions to create a multiplexed session. You can't delete or list multiplexed sessions.
|
|
2324
2455
|
*/
|
|
2325
2456
|
multiplexed?: boolean | null;
|
|
2326
2457
|
/**
|
|
@@ -2357,7 +2488,7 @@ export declare namespace spanner_v1 {
|
|
|
2357
2488
|
*/
|
|
2358
2489
|
export interface Schema$SingleRegionQuorum {
|
|
2359
2490
|
/**
|
|
2360
|
-
* Required. The location of the serving region, e.g. "us-central1". The location must be one of the regions within the dual
|
|
2491
|
+
* Required. The location of the serving region, e.g. "us-central1". The location must be one of the regions within the dual-region instance configuration of your database. The list of valid locations is available using the GetInstanceConfig API. This should only be used if you plan to change quorum to the single-region quorum type.
|
|
2361
2492
|
*/
|
|
2362
2493
|
servingLocation?: string | null;
|
|
2363
2494
|
}
|
|
@@ -2589,7 +2720,7 @@ export declare namespace spanner_v1 {
|
|
|
2589
2720
|
*/
|
|
2590
2721
|
cancelTime?: string | null;
|
|
2591
2722
|
/**
|
|
2592
|
-
* The desired instance
|
|
2723
|
+
* The desired instance configuration after updating.
|
|
2593
2724
|
*/
|
|
2594
2725
|
instanceConfig?: Schema$InstanceConfig;
|
|
2595
2726
|
/**
|
|
@@ -2602,7 +2733,7 @@ export declare namespace spanner_v1 {
|
|
|
2602
2733
|
*/
|
|
2603
2734
|
export interface Schema$UpdateInstanceConfigRequest {
|
|
2604
2735
|
/**
|
|
2605
|
-
* Required. The user instance
|
|
2736
|
+
* Required. The user instance configuration to update, which must always include the instance configuration name. Otherwise, only fields mentioned in update_mask need be included. To prevent conflicts of concurrent updates, etag can be used.
|
|
2606
2737
|
*/
|
|
2607
2738
|
instanceConfig?: Schema$InstanceConfig;
|
|
2608
2739
|
/**
|
|
@@ -2756,7 +2887,7 @@ export declare namespace spanner_v1 {
|
|
|
2756
2887
|
context: APIRequestContext;
|
|
2757
2888
|
constructor(context: APIRequestContext);
|
|
2758
2889
|
/**
|
|
2759
|
-
* Lists the user-managed instance
|
|
2890
|
+
* Lists the user-managed instance configuration long-running operations in the given project. An instance configuration operation has a name of the form `projects//instanceConfigs//operations/`. The long-running operation metadata field type `metadata.type_url` describes the type of the metadata. Operations returned include those that have completed/failed/canceled within the last 7 days, and pending operations. Operations returned are ordered by `operation.metadata.value.start_time` in descending order starting from the most recently started operation.
|
|
2760
2891
|
*
|
|
2761
2892
|
* @param params - Parameters for request
|
|
2762
2893
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2772,7 +2903,7 @@ export declare namespace spanner_v1 {
|
|
|
2772
2903
|
}
|
|
2773
2904
|
export interface Params$Resource$Projects$Instanceconfigoperations$List extends StandardParameters {
|
|
2774
2905
|
/**
|
|
2775
|
-
* An expression that filters the list of returned operations. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string, a number, or a boolean. The comparison operator must be one of: `<`, `\>`, `<=`, `\>=`, `!=`, `=`, or `:`. Colon `:` is the contains operator. Filter rules are not case sensitive. The following fields in the Operation are eligible for filtering: * `name` - The name of the long-running operation * `done` - False if the operation is in progress, else true. * `metadata.@type` - the type of metadata. For example, the type string for CreateInstanceConfigMetadata is `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata`. * `metadata.` - any field in metadata.value. `metadata.@type` must be specified first, if filtering on metadata fields. * `error` - Error associated with the long-running operation. * `response.@type` - the type of response. * `response.` - any field in response.value. You can combine multiple expressions by enclosing each expression in parentheses. By default, expressions are combined with AND logic. However, you can specify AND, OR, and NOT logic explicitly. Here are a few examples: * `done:true` - The operation is complete. * `(metadata.@type=` \ `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata) AND` \ `(metadata.instance_config.name:custom-config) AND` \ `(metadata.progress.start_time < \"2021-03-28T14:50:00Z\") AND` \ `(error:*)` - Return operations where: * The operation's metadata type is CreateInstanceConfigMetadata. * The instance
|
|
2906
|
+
* An expression that filters the list of returned operations. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string, a number, or a boolean. The comparison operator must be one of: `<`, `\>`, `<=`, `\>=`, `!=`, `=`, or `:`. Colon `:` is the contains operator. Filter rules are not case sensitive. The following fields in the Operation are eligible for filtering: * `name` - The name of the long-running operation * `done` - False if the operation is in progress, else true. * `metadata.@type` - the type of metadata. For example, the type string for CreateInstanceConfigMetadata is `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata`. * `metadata.` - any field in metadata.value. `metadata.@type` must be specified first, if filtering on metadata fields. * `error` - Error associated with the long-running operation. * `response.@type` - the type of response. * `response.` - any field in response.value. You can combine multiple expressions by enclosing each expression in parentheses. By default, expressions are combined with AND logic. However, you can specify AND, OR, and NOT logic explicitly. Here are a few examples: * `done:true` - The operation is complete. * `(metadata.@type=` \ `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata) AND` \ `(metadata.instance_config.name:custom-config) AND` \ `(metadata.progress.start_time < \"2021-03-28T14:50:00Z\") AND` \ `(error:*)` - Return operations where: * The operation's metadata type is CreateInstanceConfigMetadata. * The instance configuration name contains "custom-config". * The operation started before 2021-03-28T14:50:00Z. * The operation resulted in an error.
|
|
2776
2907
|
*/
|
|
2777
2908
|
filter?: string;
|
|
2778
2909
|
/**
|
|
@@ -2784,7 +2915,7 @@ export declare namespace spanner_v1 {
|
|
|
2784
2915
|
*/
|
|
2785
2916
|
pageToken?: string;
|
|
2786
2917
|
/**
|
|
2787
|
-
* Required. The project of the instance
|
|
2918
|
+
* Required. The project of the instance configuration operations. Values are of the form `projects/`.
|
|
2788
2919
|
*/
|
|
2789
2920
|
parent?: string;
|
|
2790
2921
|
}
|
|
@@ -2794,7 +2925,7 @@ export declare namespace spanner_v1 {
|
|
|
2794
2925
|
ssdCaches: Resource$Projects$Instanceconfigs$Ssdcaches;
|
|
2795
2926
|
constructor(context: APIRequestContext);
|
|
2796
2927
|
/**
|
|
2797
|
-
* Creates an instance
|
|
2928
|
+
* Creates an instance configuration and begins preparing it to be used. The returned long-running operation can be used to track the progress of preparing the new instance configuration. The instance configuration name is assigned by the caller. If the named instance configuration already exists, `CreateInstanceConfig` returns `ALREADY_EXISTS`. Immediately after the request returns: * The instance configuration is readable via the API, with all requested attributes. The instance configuration's reconciling field is set to true. Its state is `CREATING`. While the operation is pending: * Cancelling the operation renders the instance configuration immediately unreadable via the API. * Except for deleting the creating resource, all other attempts to modify the instance configuration are rejected. Upon completion of the returned operation: * Instances can be created using the instance configuration. * The instance configuration's reconciling field becomes false. Its state becomes `READY`. The returned long-running operation will have a name of the format `/operations/` and can be used to track creation of the instance configuration. The metadata field type is CreateInstanceConfigMetadata. The response field type is InstanceConfig, if successful. Authorization requires `spanner.instanceConfigs.create` permission on the resource parent.
|
|
2798
2929
|
*
|
|
2799
2930
|
* @param params - Parameters for request
|
|
2800
2931
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2808,7 +2939,7 @@ export declare namespace spanner_v1 {
|
|
|
2808
2939
|
create(params: Params$Resource$Projects$Instanceconfigs$Create, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2809
2940
|
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2810
2941
|
/**
|
|
2811
|
-
* Deletes the instance
|
|
2942
|
+
* Deletes the instance configuration. Deletion is only allowed when no instances are using the configuration. If any instances are using the configuration, returns `FAILED_PRECONDITION`. Only user-managed configurations can be deleted. Authorization requires `spanner.instanceConfigs.delete` permission on the resource name.
|
|
2812
2943
|
*
|
|
2813
2944
|
* @param params - Parameters for request
|
|
2814
2945
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2836,7 +2967,7 @@ export declare namespace spanner_v1 {
|
|
|
2836
2967
|
get(params: Params$Resource$Projects$Instanceconfigs$Get, callback: BodyResponseCallback<Schema$InstanceConfig>): void;
|
|
2837
2968
|
get(callback: BodyResponseCallback<Schema$InstanceConfig>): void;
|
|
2838
2969
|
/**
|
|
2839
|
-
* Lists the supported instance configurations for a given project.
|
|
2970
|
+
* Lists the supported instance configurations for a given project. Returns both Google-managed configurations and user-managed configurations.
|
|
2840
2971
|
*
|
|
2841
2972
|
* @param params - Parameters for request
|
|
2842
2973
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2850,7 +2981,7 @@ export declare namespace spanner_v1 {
|
|
|
2850
2981
|
list(params: Params$Resource$Projects$Instanceconfigs$List, callback: BodyResponseCallback<Schema$ListInstanceConfigsResponse>): void;
|
|
2851
2982
|
list(callback: BodyResponseCallback<Schema$ListInstanceConfigsResponse>): void;
|
|
2852
2983
|
/**
|
|
2853
|
-
* Updates an instance
|
|
2984
|
+
* Updates an instance configuration. The returned long-running operation can be used to track the progress of updating the instance. If the named instance configuration does not exist, returns `NOT_FOUND`. Only user-managed configurations can be updated. Immediately after the request returns: * The instance configuration's reconciling field is set to true. While the operation is pending: * Cancelling the operation sets its metadata's cancel_time. The operation is guaranteed to succeed at undoing all changes, after which point it terminates with a `CANCELLED` status. * All other attempts to modify the instance configuration are rejected. * Reading the instance configuration via the API continues to give the pre-request values. Upon completion of the returned operation: * Creating instances using the instance configuration uses the new values. * The new values of the instance configuration are readable via the API. * The instance configuration's reconciling field becomes false. The returned long-running operation will have a name of the format `/operations/` and can be used to track the instance configuration modification. The metadata field type is UpdateInstanceConfigMetadata. The response field type is InstanceConfig, if successful. Authorization requires `spanner.instanceConfigs.update` permission on the resource name.
|
|
2854
2985
|
*
|
|
2855
2986
|
* @param params - Parameters for request
|
|
2856
2987
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2866,7 +2997,7 @@ export declare namespace spanner_v1 {
|
|
|
2866
2997
|
}
|
|
2867
2998
|
export interface Params$Resource$Projects$Instanceconfigs$Create extends StandardParameters {
|
|
2868
2999
|
/**
|
|
2869
|
-
* Required. The name of the project in which to create the instance
|
|
3000
|
+
* Required. The name of the project in which to create the instance configuration. Values are of the form `projects/`.
|
|
2870
3001
|
*/
|
|
2871
3002
|
parent?: string;
|
|
2872
3003
|
/**
|
|
@@ -2876,7 +3007,7 @@ export declare namespace spanner_v1 {
|
|
|
2876
3007
|
}
|
|
2877
3008
|
export interface Params$Resource$Projects$Instanceconfigs$Delete extends StandardParameters {
|
|
2878
3009
|
/**
|
|
2879
|
-
* Used for optimistic concurrency control as a way to help prevent simultaneous deletes of an instance
|
|
3010
|
+
* Used for optimistic concurrency control as a way to help prevent simultaneous deletes of an instance configuration from overwriting each other. If not empty, the API only deletes the instance configuration when the etag provided matches the current status of the requested instance configuration. Otherwise, deletes the instance configuration without checking the current status of the requested instance configuration.
|
|
2880
3011
|
*/
|
|
2881
3012
|
etag?: string;
|
|
2882
3013
|
/**
|
|
@@ -2910,7 +3041,7 @@ export declare namespace spanner_v1 {
|
|
|
2910
3041
|
}
|
|
2911
3042
|
export interface Params$Resource$Projects$Instanceconfigs$Patch extends StandardParameters {
|
|
2912
3043
|
/**
|
|
2913
|
-
* A unique identifier for the instance configuration. Values are of the form `projects//instanceConfigs/a-z*`.
|
|
3044
|
+
* A unique identifier for the instance configuration. Values are of the form `projects//instanceConfigs/a-z*`. User instance configuration must start with `custom-`.
|
|
2914
3045
|
*/
|
|
2915
3046
|
name?: string;
|
|
2916
3047
|
/**
|
|
@@ -3196,7 +3327,7 @@ export declare namespace spanner_v1 {
|
|
|
3196
3327
|
list(params: Params$Resource$Projects$Instances$List, callback: BodyResponseCallback<Schema$ListInstancesResponse>): void;
|
|
3197
3328
|
list(callback: BodyResponseCallback<Schema$ListInstancesResponse>): void;
|
|
3198
3329
|
/**
|
|
3199
|
-
* Moves
|
|
3330
|
+
* Moves an instance to the target instance configuration. You can use the returned long-running operation to track the progress of moving the instance. `MoveInstance` returns `FAILED_PRECONDITION` if the instance meets any of the following criteria: * Is undergoing a move to a different instance configuration * Has backups * Has an ongoing update * Contains any CMEK-enabled databases * Is a free trial instance While the operation is pending: * All other attempts to modify the instance, including changes to its compute capacity, are rejected. * The following database and backup admin operations are rejected: * `DatabaseAdmin.CreateDatabase` * `DatabaseAdmin.UpdateDatabaseDdl` (disabled if default_leader is specified in the request.) * `DatabaseAdmin.RestoreDatabase` * `DatabaseAdmin.CreateBackup` * `DatabaseAdmin.CopyBackup` * Both the source and target instance configurations are subject to hourly compute and storage charges. * The instance might experience higher read-write latencies and a higher transaction abort rate. However, moving an instance doesn't cause any downtime. The returned long-running operation has a name of the format `/operations/` and can be used to track the move instance operation. The metadata field type is MoveInstanceMetadata. The response field type is Instance, if successful. Cancelling the operation sets its metadata's cancel_time. Cancellation is not immediate because it involves moving any data previously moved to the target instance configuration back to the original instance configuration. You can use this operation to track the progress of the cancellation. Upon successful completion of the cancellation, the operation terminates with `CANCELLED` status. If not cancelled, upon completion of the returned operation: * The instance successfully moves to the target instance configuration. * You are billed for compute and storage in target instance configuration. Authorization requires the `spanner.instances.update` permission on the resource instance. For more details, see [Move an instance](https://cloud.google.com/spanner/docs/move-instance).
|
|
3200
3331
|
*
|
|
3201
3332
|
* @param params - Parameters for request
|
|
3202
3333
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3761,12 +3892,13 @@ export declare namespace spanner_v1 {
|
|
|
3761
3892
|
}
|
|
3762
3893
|
export class Resource$Projects$Instances$Databases {
|
|
3763
3894
|
context: APIRequestContext;
|
|
3895
|
+
backupSchedules: Resource$Projects$Instances$Databases$Backupschedules;
|
|
3764
3896
|
databaseRoles: Resource$Projects$Instances$Databases$Databaseroles;
|
|
3765
3897
|
operations: Resource$Projects$Instances$Databases$Operations;
|
|
3766
3898
|
sessions: Resource$Projects$Instances$Databases$Sessions;
|
|
3767
3899
|
constructor(context: APIRequestContext);
|
|
3768
3900
|
/**
|
|
3769
|
-
* ChangeQuorum is strictly restricted to databases that use dual
|
|
3901
|
+
* `ChangeQuorum` is strictly restricted to databases that use dual-region instance configurations. Initiates a background operation to change the quorum of a database from dual-region mode to single-region mode or vice versa. The returned long-running operation has a name of the format `projects//instances//databases//operations/` and can be used to track execution of the `ChangeQuorum`. The metadata field type is ChangeQuorumMetadata. Authorization requires `spanner.databases.changequorum` permission on the resource database.
|
|
3770
3902
|
*
|
|
3771
3903
|
* @param params - Parameters for request
|
|
3772
3904
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3780,7 +3912,7 @@ export declare namespace spanner_v1 {
|
|
|
3780
3912
|
changequorum(params: Params$Resource$Projects$Instances$Databases$Changequorum, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3781
3913
|
changequorum(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3782
3914
|
/**
|
|
3783
|
-
* Creates a new
|
|
3915
|
+
* Creates a new Spanner database and starts to prepare it for serving. The returned long-running operation will have a name of the format `/operations/` and can be used to track preparation of the database. The metadata field type is CreateDatabaseMetadata. The response field type is Database, if successful.
|
|
3784
3916
|
*
|
|
3785
3917
|
* @param params - Parameters for request
|
|
3786
3918
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3950,7 +4082,7 @@ export declare namespace spanner_v1 {
|
|
|
3950
4082
|
}
|
|
3951
4083
|
export interface Params$Resource$Projects$Instances$Databases$Changequorum extends StandardParameters {
|
|
3952
4084
|
/**
|
|
3953
|
-
* Required. Name of the database in which to apply
|
|
4085
|
+
* Required. Name of the database in which to apply `ChangeQuorum`. Values are of the form `projects//instances//databases/`.
|
|
3954
4086
|
*/
|
|
3955
4087
|
name?: string;
|
|
3956
4088
|
/**
|
|
@@ -4082,6 +4214,206 @@ export declare namespace spanner_v1 {
|
|
|
4082
4214
|
*/
|
|
4083
4215
|
requestBody?: Schema$UpdateDatabaseDdlRequest;
|
|
4084
4216
|
}
|
|
4217
|
+
export class Resource$Projects$Instances$Databases$Backupschedules {
|
|
4218
|
+
context: APIRequestContext;
|
|
4219
|
+
constructor(context: APIRequestContext);
|
|
4220
|
+
/**
|
|
4221
|
+
* Creates a new backup schedule.
|
|
4222
|
+
*
|
|
4223
|
+
* @param params - Parameters for request
|
|
4224
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4225
|
+
* @param callback - Optional callback that handles the response.
|
|
4226
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4227
|
+
*/
|
|
4228
|
+
create(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
4229
|
+
create(params?: Params$Resource$Projects$Instances$Databases$Backupschedules$Create, options?: MethodOptions): GaxiosPromise<Schema$BackupSchedule>;
|
|
4230
|
+
create(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4231
|
+
create(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Create, options: MethodOptions | BodyResponseCallback<Schema$BackupSchedule>, callback: BodyResponseCallback<Schema$BackupSchedule>): void;
|
|
4232
|
+
create(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Create, callback: BodyResponseCallback<Schema$BackupSchedule>): void;
|
|
4233
|
+
create(callback: BodyResponseCallback<Schema$BackupSchedule>): void;
|
|
4234
|
+
/**
|
|
4235
|
+
* Deletes a backup schedule.
|
|
4236
|
+
*
|
|
4237
|
+
* @param params - Parameters for request
|
|
4238
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4239
|
+
* @param callback - Optional callback that handles the response.
|
|
4240
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4241
|
+
*/
|
|
4242
|
+
delete(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
4243
|
+
delete(params?: Params$Resource$Projects$Instances$Databases$Backupschedules$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
|
|
4244
|
+
delete(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4245
|
+
delete(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
4246
|
+
delete(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
4247
|
+
delete(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
4248
|
+
/**
|
|
4249
|
+
* Gets backup schedule for the input schedule name.
|
|
4250
|
+
*
|
|
4251
|
+
* @param params - Parameters for request
|
|
4252
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4253
|
+
* @param callback - Optional callback that handles the response.
|
|
4254
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4255
|
+
*/
|
|
4256
|
+
get(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
4257
|
+
get(params?: Params$Resource$Projects$Instances$Databases$Backupschedules$Get, options?: MethodOptions): GaxiosPromise<Schema$BackupSchedule>;
|
|
4258
|
+
get(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4259
|
+
get(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Get, options: MethodOptions | BodyResponseCallback<Schema$BackupSchedule>, callback: BodyResponseCallback<Schema$BackupSchedule>): void;
|
|
4260
|
+
get(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Get, callback: BodyResponseCallback<Schema$BackupSchedule>): void;
|
|
4261
|
+
get(callback: BodyResponseCallback<Schema$BackupSchedule>): void;
|
|
4262
|
+
/**
|
|
4263
|
+
* Gets the access control policy for a database or backup resource. Returns an empty policy if a database or backup exists but does not have a policy set. Authorization requires `spanner.databases.getIamPolicy` permission on resource. For backups, authorization requires `spanner.backups.getIamPolicy` permission on resource.
|
|
4264
|
+
*
|
|
4265
|
+
* @param params - Parameters for request
|
|
4266
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4267
|
+
* @param callback - Optional callback that handles the response.
|
|
4268
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4269
|
+
*/
|
|
4270
|
+
getIamPolicy(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Getiampolicy, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
4271
|
+
getIamPolicy(params?: Params$Resource$Projects$Instances$Databases$Backupschedules$Getiampolicy, options?: MethodOptions): GaxiosPromise<Schema$Policy>;
|
|
4272
|
+
getIamPolicy(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4273
|
+
getIamPolicy(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
4274
|
+
getIamPolicy(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Getiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
4275
|
+
getIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
|
|
4276
|
+
/**
|
|
4277
|
+
* Lists all the backup schedules for the database.
|
|
4278
|
+
*
|
|
4279
|
+
* @param params - Parameters for request
|
|
4280
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4281
|
+
* @param callback - Optional callback that handles the response.
|
|
4282
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4283
|
+
*/
|
|
4284
|
+
list(params: Params$Resource$Projects$Instances$Databases$Backupschedules$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
4285
|
+
list(params?: Params$Resource$Projects$Instances$Databases$Backupschedules$List, options?: MethodOptions): GaxiosPromise<Schema$ListBackupSchedulesResponse>;
|
|
4286
|
+
list(params: Params$Resource$Projects$Instances$Databases$Backupschedules$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4287
|
+
list(params: Params$Resource$Projects$Instances$Databases$Backupschedules$List, options: MethodOptions | BodyResponseCallback<Schema$ListBackupSchedulesResponse>, callback: BodyResponseCallback<Schema$ListBackupSchedulesResponse>): void;
|
|
4288
|
+
list(params: Params$Resource$Projects$Instances$Databases$Backupschedules$List, callback: BodyResponseCallback<Schema$ListBackupSchedulesResponse>): void;
|
|
4289
|
+
list(callback: BodyResponseCallback<Schema$ListBackupSchedulesResponse>): void;
|
|
4290
|
+
/**
|
|
4291
|
+
* Updates a backup schedule.
|
|
4292
|
+
*
|
|
4293
|
+
* @param params - Parameters for request
|
|
4294
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4295
|
+
* @param callback - Optional callback that handles the response.
|
|
4296
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4297
|
+
*/
|
|
4298
|
+
patch(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
4299
|
+
patch(params?: Params$Resource$Projects$Instances$Databases$Backupschedules$Patch, options?: MethodOptions): GaxiosPromise<Schema$BackupSchedule>;
|
|
4300
|
+
patch(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4301
|
+
patch(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Patch, options: MethodOptions | BodyResponseCallback<Schema$BackupSchedule>, callback: BodyResponseCallback<Schema$BackupSchedule>): void;
|
|
4302
|
+
patch(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Patch, callback: BodyResponseCallback<Schema$BackupSchedule>): void;
|
|
4303
|
+
patch(callback: BodyResponseCallback<Schema$BackupSchedule>): void;
|
|
4304
|
+
/**
|
|
4305
|
+
* Sets the access control policy on a database or backup resource. Replaces any existing policy. Authorization requires `spanner.databases.setIamPolicy` permission on resource. For backups, authorization requires `spanner.backups.setIamPolicy` permission on resource.
|
|
4306
|
+
*
|
|
4307
|
+
* @param params - Parameters for request
|
|
4308
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4309
|
+
* @param callback - Optional callback that handles the response.
|
|
4310
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4311
|
+
*/
|
|
4312
|
+
setIamPolicy(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Setiampolicy, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
4313
|
+
setIamPolicy(params?: Params$Resource$Projects$Instances$Databases$Backupschedules$Setiampolicy, options?: MethodOptions): GaxiosPromise<Schema$Policy>;
|
|
4314
|
+
setIamPolicy(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4315
|
+
setIamPolicy(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
4316
|
+
setIamPolicy(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Setiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
4317
|
+
setIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
|
|
4318
|
+
/**
|
|
4319
|
+
* Returns permissions that the caller has on the specified database or backup resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions. Calling this method on a backup that does not exist will result in a NOT_FOUND error if the user has `spanner.backups.list` permission on the containing instance.
|
|
4320
|
+
*
|
|
4321
|
+
* @param params - Parameters for request
|
|
4322
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4323
|
+
* @param callback - Optional callback that handles the response.
|
|
4324
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4325
|
+
*/
|
|
4326
|
+
testIamPermissions(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Testiampermissions, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
4327
|
+
testIamPermissions(params?: Params$Resource$Projects$Instances$Databases$Backupschedules$Testiampermissions, options?: MethodOptions): GaxiosPromise<Schema$TestIamPermissionsResponse>;
|
|
4328
|
+
testIamPermissions(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Testiampermissions, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4329
|
+
testIamPermissions(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Testiampermissions, options: MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
4330
|
+
testIamPermissions(params: Params$Resource$Projects$Instances$Databases$Backupschedules$Testiampermissions, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
4331
|
+
testIamPermissions(callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
4332
|
+
}
|
|
4333
|
+
export interface Params$Resource$Projects$Instances$Databases$Backupschedules$Create extends StandardParameters {
|
|
4334
|
+
/**
|
|
4335
|
+
* Required. The Id to use for the backup schedule. The `backup_schedule_id` appended to `parent` forms the full backup schedule name of the form `projects//instances//databases//backupSchedules/`.
|
|
4336
|
+
*/
|
|
4337
|
+
backupScheduleId?: string;
|
|
4338
|
+
/**
|
|
4339
|
+
* Required. The name of the database that this backup schedule applies to.
|
|
4340
|
+
*/
|
|
4341
|
+
parent?: string;
|
|
4342
|
+
/**
|
|
4343
|
+
* Request body metadata
|
|
4344
|
+
*/
|
|
4345
|
+
requestBody?: Schema$BackupSchedule;
|
|
4346
|
+
}
|
|
4347
|
+
export interface Params$Resource$Projects$Instances$Databases$Backupschedules$Delete extends StandardParameters {
|
|
4348
|
+
/**
|
|
4349
|
+
* Required. The name of the schedule to delete. Values are of the form `projects//instances//databases//backupSchedules/`.
|
|
4350
|
+
*/
|
|
4351
|
+
name?: string;
|
|
4352
|
+
}
|
|
4353
|
+
export interface Params$Resource$Projects$Instances$Databases$Backupschedules$Get extends StandardParameters {
|
|
4354
|
+
/**
|
|
4355
|
+
* Required. The name of the schedule to retrieve. Values are of the form `projects//instances//databases//backupSchedules/`.
|
|
4356
|
+
*/
|
|
4357
|
+
name?: string;
|
|
4358
|
+
}
|
|
4359
|
+
export interface Params$Resource$Projects$Instances$Databases$Backupschedules$Getiampolicy extends StandardParameters {
|
|
4360
|
+
/**
|
|
4361
|
+
* REQUIRED: The Cloud Spanner resource for which the policy is being retrieved. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for database resources.
|
|
4362
|
+
*/
|
|
4363
|
+
resource?: string;
|
|
4364
|
+
/**
|
|
4365
|
+
* Request body metadata
|
|
4366
|
+
*/
|
|
4367
|
+
requestBody?: Schema$GetIamPolicyRequest;
|
|
4368
|
+
}
|
|
4369
|
+
export interface Params$Resource$Projects$Instances$Databases$Backupschedules$List extends StandardParameters {
|
|
4370
|
+
/**
|
|
4371
|
+
* Optional. Number of backup schedules to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.
|
|
4372
|
+
*/
|
|
4373
|
+
pageSize?: number;
|
|
4374
|
+
/**
|
|
4375
|
+
* Optional. If non-empty, `page_token` should contain a next_page_token from a previous ListBackupSchedulesResponse to the same `parent`.
|
|
4376
|
+
*/
|
|
4377
|
+
pageToken?: string;
|
|
4378
|
+
/**
|
|
4379
|
+
* Required. Database is the parent resource whose backup schedules should be listed. Values are of the form projects//instances//databases/
|
|
4380
|
+
*/
|
|
4381
|
+
parent?: string;
|
|
4382
|
+
}
|
|
4383
|
+
export interface Params$Resource$Projects$Instances$Databases$Backupschedules$Patch extends StandardParameters {
|
|
4384
|
+
/**
|
|
4385
|
+
* Identifier. Output only for the CreateBackupSchedule operation. Required for the UpdateBackupSchedule operation. A globally unique identifier for the backup schedule which cannot be changed. Values are of the form `projects//instances//databases//backupSchedules/a-z*[a-z0-9]` The final segment of the name must be between 2 and 60 characters in length.
|
|
4386
|
+
*/
|
|
4387
|
+
name?: string;
|
|
4388
|
+
/**
|
|
4389
|
+
* Required. A mask specifying which fields in the BackupSchedule resource should be updated. This mask is relative to the BackupSchedule resource, not to the request message. The field mask must always be specified; this prevents any future fields from being erased accidentally.
|
|
4390
|
+
*/
|
|
4391
|
+
updateMask?: string;
|
|
4392
|
+
/**
|
|
4393
|
+
* Request body metadata
|
|
4394
|
+
*/
|
|
4395
|
+
requestBody?: Schema$BackupSchedule;
|
|
4396
|
+
}
|
|
4397
|
+
export interface Params$Resource$Projects$Instances$Databases$Backupschedules$Setiampolicy extends StandardParameters {
|
|
4398
|
+
/**
|
|
4399
|
+
* REQUIRED: The Cloud Spanner resource for which the policy is being set. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for databases resources.
|
|
4400
|
+
*/
|
|
4401
|
+
resource?: string;
|
|
4402
|
+
/**
|
|
4403
|
+
* Request body metadata
|
|
4404
|
+
*/
|
|
4405
|
+
requestBody?: Schema$SetIamPolicyRequest;
|
|
4406
|
+
}
|
|
4407
|
+
export interface Params$Resource$Projects$Instances$Databases$Backupschedules$Testiampermissions extends StandardParameters {
|
|
4408
|
+
/**
|
|
4409
|
+
* REQUIRED: The Cloud Spanner resource for which permissions are being tested. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for database resources.
|
|
4410
|
+
*/
|
|
4411
|
+
resource?: string;
|
|
4412
|
+
/**
|
|
4413
|
+
* Request body metadata
|
|
4414
|
+
*/
|
|
4415
|
+
requestBody?: Schema$TestIamPermissionsRequest;
|
|
4416
|
+
}
|
|
4085
4417
|
export class Resource$Projects$Instances$Databases$Databaseroles {
|
|
4086
4418
|
context: APIRequestContext;
|
|
4087
4419
|
constructor(context: APIRequestContext);
|