@googleapis/spanner 9.1.1 → 11.0.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/v1.ts CHANGED
@@ -156,6 +156,10 @@ export namespace spanner_v1 {
156
156
  * Message sent by the adapter to the client.
157
157
  */
158
158
  export interface Schema$AdaptMessageResponse {
159
+ /**
160
+ * Optional. Indicates whether this is the last AdaptMessageResponse in the stream. This field may be optionally set by the server. Clients should not rely on this field being set in all cases.
161
+ */
162
+ last?: boolean | null;
159
163
  /**
160
164
  * Optional. Uninterpreted bytes from the underlying wire protocol.
161
165
  */
@@ -304,7 +308,7 @@ export namespace spanner_v1 {
304
308
  */
305
309
  incrementalBackupChainId?: string | null;
306
310
  /**
307
- * Output only. The instance partition(s) storing the backup. This is the same as the list of the instance partition(s) that the database had footprint in at the backup's `version_time`.
311
+ * Output only. The instance partition storing the backup. This is the same as the list of the instance partitions that the database recorded at the backup's `version_time`.
308
312
  */
309
313
  instancePartitions?: Schema$BackupInstancePartition[];
310
314
  /**
@@ -648,6 +652,10 @@ export namespace spanner_v1 {
648
652
  * If specified, transaction has not committed yet. You must retry the commit with the new precommit token.
649
653
  */
650
654
  precommitToken?: Schema$MultiplexedSessionPrecommitToken;
655
+ /**
656
+ * If `TransactionOptions.isolation_level` is set to `IsolationLevel.REPEATABLE_READ`, then the snapshot timestamp is the timestamp at which all reads in the transaction ran. This timestamp is never returned.
657
+ */
658
+ snapshotTimestamp?: string | null;
651
659
  }
652
660
  /**
653
661
  * Additional statistics about a commit.
@@ -688,7 +696,7 @@ export namespace spanner_v1 {
688
696
  */
689
697
  encryptionType?: string | null;
690
698
  /**
691
- * 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/`.
699
+ * Optional. This field is maintained for backwards compatibility. For new callers, we recommend using `kms_key_names` to specify the KMS key. Only use `kms_key_name` if the location of the KMS key matches the database instance's configuration (location) exactly. For example, if the KMS location is in `us-central1` or `nam3`, then the database instance must also be in `us-central1` or `nam3`. The Cloud KMS key that is used to encrypt and decrypt the restored database. Set this field only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//keyRings//cryptoKeys/`.
692
700
  */
693
701
  kmsKeyName?: string | null;
694
702
  /**
@@ -747,7 +755,7 @@ export namespace spanner_v1 {
747
755
  */
748
756
  encryptionType?: string | null;
749
757
  /**
750
- * 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/`.
758
+ * Optional. This field is maintained for backwards compatibility. For new callers, we recommend using `kms_key_names` to specify the KMS key. Only use `kms_key_name` if the location of the KMS key matches the database instance's configuration (location) exactly. For example, if the KMS location is in `us-central1` or `nam3`, then the database instance must also be in `us-central1` or `nam3`. The Cloud KMS key that is used to encrypt and decrypt the restored database. Set this field only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//keyRings//cryptoKeys/`.
751
759
  */
752
760
  kmsKeyName?: string | null;
753
761
  /**
@@ -1083,15 +1091,15 @@ export namespace spanner_v1 {
1083
1091
  */
1084
1092
  export interface Schema$DdlStatementActionInfo {
1085
1093
  /**
1086
- * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. This field is a non-empty string.
1094
+ * The action for the DDL statement, for example, CREATE, ALTER, DROP, GRANT, etc. This field is a non-empty string.
1087
1095
  */
1088
1096
  action?: string | null;
1089
1097
  /**
1090
- * The entity name(s) being operated on the DDL statement. E.g. 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. 3. For statement "ANALYZE", `entity_names` = [].
1098
+ * The entity names being operated on the DDL statement. For example, 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. 3. For statement "ANALYZE", `entity_names` = [].
1091
1099
  */
1092
1100
  entityNames?: string[] | null;
1093
1101
  /**
1094
- * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. This field can be empty string for some DDL statement, e.g. for statement "ANALYZE", `entity_type` = "".
1102
+ * The entity type for the DDL statement, for example, TABLE, INDEX, VIEW, etc. This field can be empty string for some DDL statement, for example, for statement "ANALYZE", `entity_type` = "".
1095
1103
  */
1096
1104
  entityType?: string | null;
1097
1105
  }
@@ -1583,7 +1591,7 @@ export namespace spanner_v1 {
1583
1591
  */
1584
1592
  export interface Schema$InstanceEncryptionConfig {
1585
1593
  /**
1586
- * Optional. This field is maintained for backwards compatibility. For new callers, we recommend using `kms_key_names` to specify the KMS key. `kms_key_name` should only be used if the location of the KMS key matches the database instances configuration (location) exactly. E.g. The KMS location is in us-central1 or nam3 and the database instance is also in us-central1 or nam3. The Cloud KMS key to be used for encrypting and decrypting the database. Values are of the form `projects//locations//keyRings//cryptoKeys/`.
1594
+ * Optional. This field is maintained for backwards compatibility. For new callers, we recommend using `kms_key_names` to specify the KMS key. Only use `kms_key_name` if the location of the KMS key matches the database instance's configuration (location) exactly. For example, if the KMS location is in `us-central1` or `nam3`, then the database instance must also be in `us-central1` or `nam3`. The Cloud KMS key that is used to encrypt and decrypt the restored database. Values are of the form `projects//locations//keyRings//cryptoKeys/`.
1587
1595
  */
1588
1596
  kmsKeyName?: string | null;
1589
1597
  /**
@@ -1662,7 +1670,7 @@ export namespace spanner_v1 {
1662
1670
  */
1663
1671
  export interface Schema$InstanceReplicaSelection {
1664
1672
  /**
1665
- * Required. Name of the location of the replicas (e.g., "us-central1").
1673
+ * Required. Name of the location of the replicas (for example, "us-central1").
1666
1674
  */
1667
1675
  location?: string | null;
1668
1676
  }
@@ -2710,7 +2718,7 @@ export namespace spanner_v1 {
2710
2718
  */
2711
2719
  encryptionType?: string | null;
2712
2720
  /**
2713
- * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored database. This field should be set only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//keyRings//cryptoKeys/`.
2721
+ * Optional. This field is maintained for backwards compatibility. For new callers, we recommend using `kms_key_names` to specify the KMS key. Only use `kms_key_name` if the location of the KMS key matches the database instance's configuration (location) exactly. For example, if the KMS location is in `us-central1` or `nam3`, then the database instance must also be in `us-central1` or `nam3`. The Cloud KMS key that is used to encrypt and decrypt the restored database. Set this field only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//keyRings//cryptoKeys/`.
2714
2722
  */
2715
2723
  kmsKeyName?: string | null;
2716
2724
  /**
@@ -2943,7 +2951,7 @@ export namespace spanner_v1 {
2943
2951
  */
2944
2952
  export interface Schema$SingleRegionQuorum {
2945
2953
  /**
2946
- * 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.
2954
+ * Required. The location of the serving region, for example, "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.
2947
2955
  */
2948
2956
  servingLocation?: string | null;
2949
2957
  }
@@ -3138,12 +3146,12 @@ export namespace spanner_v1 {
3138
3146
  */
3139
3147
  statements?: string[] | null;
3140
3148
  /**
3141
- * Output only. When true, indicates that the operation is throttled e.g. due to resource constraints. When resources become available the operation will resume and this field will be false again.
3149
+ * Output only. When true, indicates that the operation is throttled, for example, due to resource constraints. When resources become available the operation will resume and this field will be false again.
3142
3150
  */
3143
3151
  throttled?: boolean | null;
3144
3152
  }
3145
3153
  /**
3146
- * Enqueues the given DDL statements to be applied, in order but not necessarily all at once, to the database schema at some point (or points) in the future. The server checks that the statements are executable (syntactically valid, name tables that exist, etc.) before enqueueing them, but they may still fail upon later execution (e.g., if a statement from another batch of statements is applied first and it conflicts in some way, or if there is some data-related problem like a `NULL` value in a column to which `NOT NULL` would be added). If a statement fails, all subsequent statements in the batch are automatically cancelled. Each batch of statements is assigned a name which can be used with the Operations API to monitor progress. See the operation_id field for more details.
3154
+ * Enqueues the given DDL statements to be applied, in order but not necessarily all at once, to the database schema at some point (or points) in the future. The server checks that the statements are executable (syntactically valid, name tables that exist, etc.) before enqueueing them, but they may still fail upon later execution (for example, if a statement from another batch of statements is applied first and it conflicts in some way, or if there is some data-related problem like a `NULL` value in a column to which `NOT NULL` would be added). If a statement fails, all subsequent statements in the batch are automatically cancelled. Each batch of statements is assigned a name which can be used with the Operations API to monitor progress. See the operation_id field for more details.
3147
3155
  */
3148
3156
  export interface Schema$UpdateDatabaseDdlRequest {
3149
3157
  /**
@@ -7478,11 +7486,11 @@ export namespace spanner_v1 {
7478
7486
  * backupId: 'placeholder-value',
7479
7487
  * // Required. The encryption type of the backup.
7480
7488
  * 'encryptionConfig.encryptionType': 'placeholder-value',
7481
- * // 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/`.
7489
+ * // Optional. This field is maintained for backwards compatibility. For new callers, we recommend using `kms_key_names` to specify the KMS key. Only use `kms_key_name` if the location of the KMS key matches the database instance's configuration (location) exactly. For example, if the KMS location is in `us-central1` or `nam3`, then the database instance must also be in `us-central1` or `nam3`. The Cloud KMS key that is used to encrypt and decrypt the restored database. Set this field only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//keyRings//cryptoKeys/`.
7482
7490
  * 'encryptionConfig.kmsKeyName': 'placeholder-value',
7483
7491
  * // 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 regional (single-region) instance configurations, specify a regional location KMS key. * For multi-region instance configurations of type `GOOGLE_MANAGED`, either specify a multi-region location KMS key or multiple regional location KMS keys that cover all regions in the instance configuration. * For an instance configuration of type `USER_MANAGED`, specify only regional location KMS keys to cover each region in the instance configuration. Multi-region location KMS keys aren't supported for `USER_MANAGED` type instance configurations.
7484
7492
  * 'encryptionConfig.kmsKeyNames': 'placeholder-value',
7485
- * // Required. The name of the instance in which the backup will be created. This must be the same instance that contains the database the backup will be created from. The backup will be stored in the location(s) specified in the instance configuration of this instance. Values are of the form `projects//instances/`.
7493
+ * // Required. The name of the instance in which the backup is created. This must be the same instance that contains the database the backup is created from. The backup will be stored in the locations specified in the instance configuration of this instance. Values are of the form `projects//instances/`.
7486
7494
  * parent: 'projects/my-project/instances/my-instance',
7487
7495
  *
7488
7496
  * // Request body metadata
@@ -8241,7 +8249,7 @@ export namespace spanner_v1 {
8241
8249
  * const res = await spanner.projects.instances.backups.patch({
8242
8250
  * // 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/`.
8243
8251
  * name: 'projects/my-project/instances/my-instance/backups/my-backup',
8244
- * // Required. A mask specifying which fields (e.g. `expire_time`) in the Backup resource should be updated. This mask is relative to the Backup resource, not to the request message. The field mask must always be specified; this prevents any future fields from being erased accidentally by clients that do not know about them.
8252
+ * // Required. A mask specifying which fields (for example, `expire_time`) in the backup resource should be updated. This mask is relative to the backup resource, not to the request message. The field mask must always be specified; this prevents any future fields from being erased accidentally by clients that do not know about them.
8245
8253
  * updateMask: 'placeholder-value',
8246
8254
  *
8247
8255
  * // Request body metadata
@@ -8715,7 +8723,7 @@ export namespace spanner_v1 {
8715
8723
  */
8716
8724
  'encryptionConfig.encryptionType'?: string;
8717
8725
  /**
8718
- * 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/`.
8726
+ * Optional. This field is maintained for backwards compatibility. For new callers, we recommend using `kms_key_names` to specify the KMS key. Only use `kms_key_name` if the location of the KMS key matches the database instance's configuration (location) exactly. For example, if the KMS location is in `us-central1` or `nam3`, then the database instance must also be in `us-central1` or `nam3`. The Cloud KMS key that is used to encrypt and decrypt the restored database. Set this field only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//keyRings//cryptoKeys/`.
8719
8727
  */
8720
8728
  'encryptionConfig.kmsKeyName'?: string;
8721
8729
  /**
@@ -8723,7 +8731,7 @@ export namespace spanner_v1 {
8723
8731
  */
8724
8732
  'encryptionConfig.kmsKeyNames'?: string[];
8725
8733
  /**
8726
- * Required. The name of the instance in which the backup will be created. This must be the same instance that contains the database the backup will be created from. The backup will be stored in the location(s) specified in the instance configuration of this instance. Values are of the form `projects//instances/`.
8734
+ * Required. The name of the instance in which the backup is created. This must be the same instance that contains the database the backup is created from. The backup will be stored in the locations specified in the instance configuration of this instance. Values are of the form `projects//instances/`.
8727
8735
  */
8728
8736
  parent?: string;
8729
8737
 
@@ -8784,7 +8792,7 @@ export namespace spanner_v1 {
8784
8792
  */
8785
8793
  name?: string;
8786
8794
  /**
8787
- * Required. A mask specifying which fields (e.g. `expire_time`) in the Backup resource should be updated. This mask is relative to the Backup resource, not to the request message. The field mask must always be specified; this prevents any future fields from being erased accidentally by clients that do not know about them.
8795
+ * Required. A mask specifying which fields (for example, `expire_time`) in the backup resource should be updated. This mask is relative to the backup resource, not to the request message. The field mask must always be specified; this prevents any future fields from being erased accidentally by clients that do not know about them.
8788
8796
  */
8789
8797
  updateMask?: string;
8790
8798
 
@@ -11586,7 +11594,7 @@ export namespace spanner_v1 {
11586
11594
  }
11587
11595
 
11588
11596
  /**
11589
- * Updates the schema of a Cloud Spanner database by creating/altering/dropping tables, columns, indexes, etc. The returned long-running operation will have a name of the format `/operations/` and can be used to track execution of the schema change(s). The metadata field type is UpdateDatabaseDdlMetadata. The operation has no response.
11597
+ * Updates the schema of a Cloud Spanner database by creating/altering/dropping tables, columns, indexes, etc. The returned long-running operation will have a name of the format `/operations/` and can be used to track execution of the schema changes. The metadata field type is UpdateDatabaseDdlMetadata. The operation has no response.
11590
11598
  * @example
11591
11599
  * ```js
11592
11600
  * // Before running the sample:
@@ -14390,6 +14398,7 @@ export namespace spanner_v1 {
14390
14398
  *
14391
14399
  * // Example response
14392
14400
  * // {
14401
+ * // "last": false,
14393
14402
  * // "payload": "my_payload",
14394
14403
  * // "stateUpdates": {}
14395
14404
  * // }
@@ -15016,7 +15025,8 @@ export namespace spanner_v1 {
15016
15025
  * // {
15017
15026
  * // "commitStats": {},
15018
15027
  * // "commitTimestamp": "my_commitTimestamp",
15019
- * // "precommitToken": {}
15028
+ * // "precommitToken": {},
15029
+ * // "snapshotTimestamp": "my_snapshotTimestamp"
15020
15030
  * // }
15021
15031
  * }
15022
15032
  *