@googleapis/spanner 7.4.1 → 8.0.1

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
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -126,10 +126,83 @@ export namespace spanner_v1 {
126
126
  }
127
127
  }
128
128
 
129
+ /**
130
+ * A session in the Cloud Spanner Adapter API.
131
+ */
132
+ export interface Schema$AdapterSession {
133
+ /**
134
+ * Identifier. The name of the session. This is always system-assigned.
135
+ */
136
+ name?: string | null;
137
+ }
138
+ /**
139
+ * Message sent by the client to the adapter.
140
+ */
141
+ export interface Schema$AdaptMessageRequest {
142
+ /**
143
+ * Optional. Opaque request state passed by the client to the server.
144
+ */
145
+ attachments?: {[key: string]: string} | null;
146
+ /**
147
+ * Optional. Uninterpreted bytes from the underlying wire protocol.
148
+ */
149
+ payload?: string | null;
150
+ /**
151
+ * Required. Identifier for the underlying wire protocol.
152
+ */
153
+ protocol?: string | null;
154
+ }
155
+ /**
156
+ * Message sent by the adapter to the client.
157
+ */
158
+ export interface Schema$AdaptMessageResponse {
159
+ /**
160
+ * Optional. Uninterpreted bytes from the underlying wire protocol.
161
+ */
162
+ payload?: string | null;
163
+ /**
164
+ * Optional. Opaque state updates to be applied by the client.
165
+ */
166
+ stateUpdates?: {[key: string]: string} | null;
167
+ }
168
+ /**
169
+ * The request for AddSplitPoints.
170
+ */
171
+ export interface Schema$AddSplitPointsRequest {
172
+ /**
173
+ * Optional. A user-supplied tag associated with the split points. For example, "initial_data_load", "special_event_1". Defaults to "CloudAddSplitPointsAPI" if not specified. The length of the tag must not exceed 50 characters,else will be trimmed. Only valid UTF8 characters are allowed.
174
+ */
175
+ initiator?: string | null;
176
+ /**
177
+ * Required. The split points to add.
178
+ */
179
+ splitPoints?: Schema$SplitPoints[];
180
+ }
181
+ /**
182
+ * The response for AddSplitPoints.
183
+ */
184
+ export interface Schema$AddSplitPointsResponse {}
185
+ /**
186
+ * AsymmetricAutoscalingOption specifies the scaling of replicas identified by the given selection.
187
+ */
188
+ export interface Schema$AsymmetricAutoscalingOption {
189
+ /**
190
+ * Optional. Overrides applied to the top-level autoscaling configuration for the selected replicas.
191
+ */
192
+ overrides?: Schema$AutoscalingConfigOverrides;
193
+ /**
194
+ * Required. Selects the replicas to which this AsymmetricAutoscalingOption applies. Only read-only replicas are supported.
195
+ */
196
+ replicaSelection?: Schema$InstanceReplicaSelection;
197
+ }
129
198
  /**
130
199
  * Autoscaling configuration for an instance.
131
200
  */
132
201
  export interface Schema$AutoscalingConfig {
202
+ /**
203
+ * Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other. Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.
204
+ */
205
+ asymmetricAutoscalingOptions?: Schema$AsymmetricAutoscalingOption[];
133
206
  /**
134
207
  * Required. Autoscaling limits for an instance.
135
208
  */
@@ -139,6 +212,19 @@ export namespace spanner_v1 {
139
212
  */
140
213
  autoscalingTargets?: Schema$AutoscalingTargets;
141
214
  }
215
+ /**
216
+ * Overrides the top-level autoscaling configuration for the replicas identified by `replica_selection`. All fields in this message are optional. Any unspecified fields will use the corresponding values from the top-level autoscaling configuration.
217
+ */
218
+ export interface Schema$AutoscalingConfigOverrides {
219
+ /**
220
+ * Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration for the selected replicas.
221
+ */
222
+ autoscalingLimits?: Schema$AutoscalingLimits;
223
+ /**
224
+ * Optional. If specified, overrides the autoscaling target high_priority_cpu_utilization_percent in the top-level autoscaling configuration for the selected replicas.
225
+ */
226
+ autoscalingTargetHighPriorityCpuUtilizationPercent?: number | null;
227
+ }
142
228
  /**
143
229
  * The autoscaling limits for the instance. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit.
144
230
  */
@@ -198,7 +284,7 @@ export namespace spanner_v1 {
198
284
  */
199
285
  encryptionInfo?: Schema$EncryptionInfo;
200
286
  /**
201
- * 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.
287
+ * 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.
202
288
  */
203
289
  encryptionInformation?: Schema$EncryptionInfo[];
204
290
  /**
@@ -217,6 +303,10 @@ export namespace spanner_v1 {
217
303
  * 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`.
218
304
  */
219
305
  incrementalBackupChainId?: string | null;
306
+ /**
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`.
308
+ */
309
+ instancePartitions?: Schema$BackupInstancePartition[];
220
310
  /**
221
311
  * 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`.
222
312
  */
@@ -272,11 +362,20 @@ export namespace spanner_v1 {
272
362
  versionTime?: string | null;
273
363
  }
274
364
  /**
275
- * BackupSchedule expresses the automated backup creation specification for a Spanner database. Next ID: 10
365
+ * Instance partition information for the backup.
366
+ */
367
+ export interface Schema$BackupInstancePartition {
368
+ /**
369
+ * A unique identifier for the instance partition. Values are of the form `projects//instances//instancePartitions/`
370
+ */
371
+ instancePartition?: string | null;
372
+ }
373
+ /**
374
+ * BackupSchedule expresses the automated backup creation specification for a Spanner database.
276
375
  */
277
376
  export interface Schema$BackupSchedule {
278
377
  /**
279
- * 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.
378
+ * Optional. The encryption configuration that is used to encrypt the backup. If this field is not specified, the backup uses the same encryption configuration as the database.
280
379
  */
281
380
  encryptionConfig?: Schema$CreateBackupEncryptionConfig;
282
381
  /**
@@ -318,11 +417,11 @@ export namespace spanner_v1 {
318
417
  */
319
418
  export interface Schema$BatchCreateSessionsRequest {
320
419
  /**
321
- * Required. The number of sessions to be created in this batch call. The API may return fewer than the requested number of sessions. If a specific number of sessions are desired, the client can make additional calls to BatchCreateSessions (adjusting session_count as necessary).
420
+ * Required. The number of sessions to be created in this batch call. The API can return fewer than the requested number of sessions. If a specific number of sessions are desired, the client can make additional calls to `BatchCreateSessions` (adjusting session_count as necessary).
322
421
  */
323
422
  sessionCount?: number | null;
324
423
  /**
325
- * Parameters to be applied to each created session.
424
+ * Parameters to apply to each created session.
326
425
  */
327
426
  sessionTemplate?: Schema$Session;
328
427
  }
@@ -340,7 +439,7 @@ export namespace spanner_v1 {
340
439
  */
341
440
  export interface Schema$BatchWriteRequest {
342
441
  /**
343
- * Optional. When `exclude_txn_from_change_streams` is set to `true`: * Modifications from all transactions in this batch write operation will not be recorded in change streams with DDL option `allow_txn_exclusion=true` that are tracking columns modified by these transactions. * Modifications from all transactions in this batch write operation will be recorded in change streams with DDL option `allow_txn_exclusion=false or not set` that are tracking columns modified by these transactions. When `exclude_txn_from_change_streams` is set to `false` or not set, Modifications from all transactions in this batch write operation will be recorded in all change streams that are tracking columns modified by these transactions.
442
+ * Optional. When `exclude_txn_from_change_streams` is set to `true`: * Modifications from all transactions in this batch write operation are not be recorded in change streams with DDL option `allow_txn_exclusion=true` that are tracking columns modified by these transactions. * Modifications from all transactions in this batch write operation are recorded in change streams with DDL option `allow_txn_exclusion=false or not set` that are tracking columns modified by these transactions. When `exclude_txn_from_change_streams` is set to `false` or not set, Modifications from all transactions in this batch write operation are recorded in all change streams that are tracking columns modified by these transactions.
344
443
  */
345
444
  excludeTxnFromChangeStreams?: boolean | null;
346
445
  /**
@@ -373,12 +472,16 @@ export namespace spanner_v1 {
373
472
  * The request for BeginTransaction.
374
473
  */
375
474
  export interface Schema$BeginTransactionRequest {
475
+ /**
476
+ * Optional. Required for read-write transactions on a multiplexed session that commit mutations but don't perform any reads or queries. You must randomly select one of the mutations from the mutation set and send it as a part of this request.
477
+ */
478
+ mutationKey?: Schema$Mutation;
376
479
  /**
377
480
  * Required. Options for the new transaction.
378
481
  */
379
482
  options?: Schema$TransactionOptions;
380
483
  /**
381
- * Common options for this request. Priority is ignored for this request. Setting the priority in this request_options struct will not do anything. To set the priority for a transaction, set it on the reads and writes that are part of this transaction instead.
484
+ * Common options for this request. Priority is ignored for this request. Setting the priority in this `request_options` struct doesn't do anything. To set the priority for a transaction, set it on the reads and writes that are part of this transaction instead.
382
485
  */
383
486
  requestOptions?: Schema$RequestOptions;
384
487
  }
@@ -455,23 +558,27 @@ export namespace spanner_v1 {
455
558
  */
456
559
  export interface Schema$CommitRequest {
457
560
  /**
458
- * Optional. The amount of latency this request is configured to incur in order to improve throughput. If this field is not set, Spanner assumes requests are relatively latency sensitive and automatically determines an appropriate delay time. You can specify a commit delay value between 0 and 500 ms.
561
+ * Optional. The amount of latency this request is configured to incur in order to improve throughput. If this field isn't set, Spanner assumes requests are relatively latency sensitive and automatically determines an appropriate delay time. You can specify a commit delay value between 0 and 500 ms.
459
562
  */
460
563
  maxCommitDelay?: string | null;
461
564
  /**
462
565
  * The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
463
566
  */
464
567
  mutations?: Schema$Mutation[];
568
+ /**
569
+ * Optional. If the read-write transaction was executed on a multiplexed session, then you must include the precommit token with the highest sequence number received in this transaction attempt. Failing to do so results in a `FailedPrecondition` error.
570
+ */
571
+ precommitToken?: Schema$MultiplexedSessionPrecommitToken;
465
572
  /**
466
573
  * Common options for this request.
467
574
  */
468
575
  requestOptions?: Schema$RequestOptions;
469
576
  /**
470
- * If `true`, then statistics related to the transaction will be included in the CommitResponse. Default value is `false`.
577
+ * If `true`, then statistics related to the transaction is included in the CommitResponse. Default value is `false`.
471
578
  */
472
579
  returnCommitStats?: boolean | null;
473
580
  /**
474
- * Execute mutations in a temporary transaction. Note that unlike commit of a previously-started transaction, commit with a temporary transaction is non-idempotent. That is, if the `CommitRequest` is sent to Cloud Spanner more than once (for instance, due to retries in the application, or in the transport library), it is possible that the mutations are executed more than once. If this is undesirable, use BeginTransaction and Commit instead.
581
+ * Execute mutations in a temporary transaction. Note that unlike commit of a previously-started transaction, commit with a temporary transaction is non-idempotent. That is, if the `CommitRequest` is sent to Cloud Spanner more than once (for instance, due to retries in the application, or in the transport library), it's possible that the mutations are executed more than once. If this is undesirable, use BeginTransaction and Commit instead.
475
582
  */
476
583
  singleUseTransaction?: Schema$TransactionOptions;
477
584
  /**
@@ -484,13 +591,17 @@ export namespace spanner_v1 {
484
591
  */
485
592
  export interface Schema$CommitResponse {
486
593
  /**
487
- * The statistics about this Commit. Not returned by default. For more information, see CommitRequest.return_commit_stats.
594
+ * The statistics about this `Commit`. Not returned by default. For more information, see CommitRequest.return_commit_stats.
488
595
  */
489
596
  commitStats?: Schema$CommitStats;
490
597
  /**
491
598
  * The Cloud Spanner timestamp at which the transaction committed.
492
599
  */
493
600
  commitTimestamp?: string | null;
601
+ /**
602
+ * If specified, transaction has not committed yet. You must retry the commit with the new precommit token.
603
+ */
604
+ precommitToken?: Schema$MultiplexedSessionPrecommitToken;
494
605
  }
495
606
  /**
496
607
  * Additional statistics about a commit.
@@ -535,7 +646,7 @@ export namespace spanner_v1 {
535
646
  */
536
647
  kmsKeyName?: string | null;
537
648
  /**
538
- * 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/`. Kms keys specified can be in any order. 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.
649
+ * 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/`. KMS keys specified can be in any order. 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.
539
650
  */
540
651
  kmsKeyNames?: string[] | null;
541
652
  }
@@ -594,7 +705,7 @@ export namespace spanner_v1 {
594
705
  */
595
706
  kmsKeyName?: string | null;
596
707
  /**
597
- * 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.
708
+ * 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.
598
709
  */
599
710
  kmsKeyNames?: string[] | null;
600
711
  }
@@ -671,7 +782,7 @@ export namespace spanner_v1 {
671
782
  progress?: Schema$InstanceOperationProgress;
672
783
  }
673
784
  /**
674
- * The request for CreateInstanceConfigRequest.
785
+ * The request for CreateInstanceConfig.
675
786
  */
676
787
  export interface Schema$CreateInstanceConfigRequest {
677
788
  /**
@@ -769,19 +880,19 @@ export namespace spanner_v1 {
769
880
  session?: Schema$Session;
770
881
  }
771
882
  /**
772
- * CrontabSpec can be used to specify the version time and frequency at which the backup should be created.
883
+ * CrontabSpec can be used to specify the version time and frequency at which the backup is created.
773
884
  */
774
885
  export interface Schema$CrontabSpec {
775
886
  /**
776
- * 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`.
887
+ * Output only. Scheduled backups contain an externally consistent copy of the database at the version time specified in `schedule_spec.cron_spec`. However, Spanner might not initiate the creation of the scheduled backups at that version time. Spanner initiates 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`.
777
888
  */
778
889
  creationWindow?: string | null;
779
890
  /**
780
- * 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.
891
+ * 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 timezone. The backup will contain an externally consistent copy of the database at the version time. Full backups must be scheduled a minimum of 12 hours apart and incremental backups must be scheduled a minimum of 4 hours apart. 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 x/4 * * *` : (incremental backups only) every 4 hours at (0, 4, 8, 12, 16, 20) 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.
781
892
  */
782
893
  text?: string | null;
783
894
  /**
784
- * Output only. The time zone of the times in `CrontabSpec.text`. Currently only UTC is supported.
895
+ * Output only. The time zone of the times in `CrontabSpec.text`. Currently, only UTC is supported.
785
896
  */
786
897
  timeZone?: string | null;
787
898
  }
@@ -814,7 +925,7 @@ export namespace spanner_v1 {
814
925
  */
815
926
  encryptionConfig?: Schema$EncryptionConfig;
816
927
  /**
817
- * Output only. For databases that are using customer managed encryption, this field contains the encryption information for the database, such as all Cloud KMS key versions that are in use. The `encryption_status' field inside of each `EncryptionInfo` is not populated. For databases that are using Google default or other types of encryption, this field is empty. This field is propagated lazily from the backend. There might be a delay from when a key version is being used and when it appears in this field.
928
+ * Output only. For databases that are using customer managed encryption, this field contains the encryption information for the database, such as all Cloud KMS key versions that are in use. The `encryption_status` field inside of each `EncryptionInfo` is not populated. For databases that are using Google default or other types of encryption, this field is empty. This field is propagated lazily from the backend. There might be a delay from when a key version is being used and when it appears in this field.
818
929
  */
819
930
  encryptionInfo?: Schema$EncryptionInfo[];
820
931
  /**
@@ -920,15 +1031,15 @@ export namespace spanner_v1 {
920
1031
  shortMessage?: Schema$LocalizedString;
921
1032
  }
922
1033
  /**
923
- * The DirectedReadOptions can be used to indicate which replicas or regions should be used for non-transactional reads or queries. DirectedReadOptions may only be specified for a read-only transaction, otherwise the API will return an `INVALID_ARGUMENT` error.
1034
+ * The `DirectedReadOptions` can be used to indicate which replicas or regions should be used for non-transactional reads or queries. `DirectedReadOptions` can only be specified for a read-only transaction, otherwise the API returns an `INVALID_ARGUMENT` error.
924
1035
  */
925
1036
  export interface Schema$DirectedReadOptions {
926
1037
  /**
927
- * Exclude_replicas indicates that specified replicas should be excluded from serving requests. Spanner will not route requests to the replicas in this list.
1038
+ * `Exclude_replicas` indicates that specified replicas should be excluded from serving requests. Spanner doesn't route requests to the replicas in this list.
928
1039
  */
929
1040
  excludeReplicas?: Schema$ExcludeReplicas;
930
1041
  /**
931
- * Include_replicas indicates the order of replicas (as they appear in this list) to process the request. If auto_failover_disabled is set to true and all replicas are exhausted without finding a healthy replica, Spanner will wait for a replica in the list to become available, requests may fail due to `DEADLINE_EXCEEDED` errors.
1042
+ * `Include_replicas` indicates the order of replicas (as they appear in this list) to process the request. If `auto_failover_disabled` is set to `true` and all replicas are exhausted without finding a healthy replica, Spanner waits for a replica in the list to become available, requests might fail due to `DEADLINE_EXCEEDED` errors.
932
1043
  */
933
1044
  includeReplicas?: Schema$IncludeReplicas;
934
1045
  }
@@ -949,7 +1060,7 @@ export namespace spanner_v1 {
949
1060
  */
950
1061
  kmsKeyName?: string | null;
951
1062
  /**
952
- * Specifies the KMS configuration for the one or more keys used to encrypt the database. Values are of 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 configs, specify a single regional location KMS key. * For multi-regional database 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 a database 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.
1063
+ * Specifies the KMS configuration for one or more keys used to encrypt the database. Values are of the form `projects//locations//keyRings//cryptoKeys/`. The keys referenced by `kms_key_names` must fully cover all regions of the database'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.
953
1064
  */
954
1065
  kmsKeyNames?: string[] | null;
955
1066
  }
@@ -983,12 +1094,16 @@ export namespace spanner_v1 {
983
1094
  * The request for ExecuteBatchDml.
984
1095
  */
985
1096
  export interface Schema$ExecuteBatchDmlRequest {
1097
+ /**
1098
+ * Optional. If set to `true`, this request marks the end of the transaction. After these statements execute, you must commit or abort the transaction. Attempts to execute any other requests against this transaction (including reads and queries) are rejected. Setting this option might cause some error reporting to be deferred until commit time (for example, validation of unique constraints). Given this, successful execution of statements shouldn't be assumed until a subsequent `Commit` call completes successfully.
1099
+ */
1100
+ lastStatements?: boolean | null;
986
1101
  /**
987
1102
  * Common options for this request.
988
1103
  */
989
1104
  requestOptions?: Schema$RequestOptions;
990
1105
  /**
991
- * Required. A per-transaction sequence number used to identify this request. This field makes each request idempotent such that if the request is received multiple times, at most one will succeed. The sequence number must be monotonically increasing within the transaction. If a request arrives for the first time with an out-of-order sequence number, the transaction may be aborted. Replays of previously handled requests will yield the same response as the first execution.
1106
+ * Required. A per-transaction sequence number used to identify this request. This field makes each request idempotent such that if the request is received multiple times, at most one succeeds. The sequence number must be monotonically increasing within the transaction. If a request arrives for the first time with an out-of-order sequence number, the transaction might be aborted. Replays of previously handled requests yield the same response as the first execution.
992
1107
  */
993
1108
  seqno?: string | null;
994
1109
  /**
@@ -1004,6 +1119,10 @@ export namespace spanner_v1 {
1004
1119
  * The response for ExecuteBatchDml. Contains a list of ResultSet messages, one for each DML statement that has successfully executed, in the same order as the statements in the request. If a statement fails, the status in the response body identifies the cause of the failure. To check for DML statements that failed, use the following approach: 1. Check the status in the response message. The google.rpc.Code enum value `OK` indicates that all statements were executed successfully. 2. If the status was not `OK`, check the number of result sets in the response. If the response contains `N` ResultSet messages, then statement `N+1` in the request failed. Example 1: * Request: 5 DML statements, all executed successfully. * Response: 5 ResultSet messages, with the status `OK`. Example 2: * Request: 5 DML statements. The third statement has a syntax error. * Response: 2 ResultSet messages, and a syntax error (`INVALID_ARGUMENT`) status. The number of ResultSet messages indicates that the third statement failed, and the fourth and fifth statements were not executed.
1005
1120
  */
1006
1121
  export interface Schema$ExecuteBatchDmlResponse {
1122
+ /**
1123
+ * Optional. A precommit token is included if the read-write transaction is on a multiplexed session. Pass the precommit token with the highest sequence number from this transaction attempt should be passed to the Commit request for this transaction.
1124
+ */
1125
+ precommitToken?: Schema$MultiplexedSessionPrecommitToken;
1007
1126
  /**
1008
1127
  * One ResultSet for each statement in the request that ran successfully, in the same order as the statements in the request. Each ResultSet does not contain any rows. The ResultSetStats in each ResultSet contain the number of rows modified by the statement. Only the first ResultSet in the response contains valid ResultSetMetadata.
1009
1128
  */
@@ -1018,7 +1137,7 @@ export namespace spanner_v1 {
1018
1137
  */
1019
1138
  export interface Schema$ExecuteSqlRequest {
1020
1139
  /**
1021
- * If this is for a partitioned query and this field is set to `true`, the request is executed with Spanner Data Boost independent compute resources. If the field is set to `true` but the request does not set `partition_token`, the API returns an `INVALID_ARGUMENT` error.
1140
+ * If this is for a partitioned query and this field is set to `true`, the request is executed with Spanner Data Boost independent compute resources. If the field is set to `true` but the request doesn't set `partition_token`, the API returns an `INVALID_ARGUMENT` error.
1022
1141
  */
1023
1142
  dataBoostEnabled?: boolean | null;
1024
1143
  /**
@@ -1026,15 +1145,19 @@ export namespace spanner_v1 {
1026
1145
  */
1027
1146
  directedReadOptions?: Schema$DirectedReadOptions;
1028
1147
  /**
1029
- * Parameter names and values that bind to placeholders in the SQL string. A parameter placeholder consists of the `@` character followed by the parameter name (for example, `@firstName`). Parameter names must conform to the naming requirements of identifiers as specified at https://cloud.google.com/spanner/docs/lexical#identifiers. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: `"WHERE id \> @msg_id AND id < @msg_id + 100"` It is an error to execute a SQL statement with unbound parameters.
1148
+ * Optional. If set to `true`, this statement marks the end of the transaction. After this statement executes, you must commit or abort the transaction. Attempts to execute any other requests against this transaction (including reads and queries) are rejected. For DML statements, setting this option might cause some error reporting to be deferred until commit time (for example, validation of unique constraints). Given this, successful execution of a DML statement shouldn't be assumed until a subsequent `Commit` call completes successfully.
1149
+ */
1150
+ lastStatement?: boolean | null;
1151
+ /**
1152
+ * Parameter names and values that bind to placeholders in the SQL string. A parameter placeholder consists of the `@` character followed by the parameter name (for example, `@firstName`). Parameter names must conform to the naming requirements of identifiers as specified at https://cloud.google.com/spanner/docs/lexical#identifiers. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: `"WHERE id \> @msg_id AND id < @msg_id + 100"` It's an error to execute a SQL statement with unbound parameters.
1030
1153
  */
1031
1154
  params?: {[key: string]: any} | null;
1032
1155
  /**
1033
- * It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in params as JSON strings. In these cases, `param_types` can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of Type for more information about SQL types.
1156
+ * It isn't always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in params as JSON strings. In these cases, you can use `param_types` to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of Type for more information about SQL types.
1034
1157
  */
1035
1158
  paramTypes?: {[key: string]: Schema$Type} | null;
1036
1159
  /**
1037
- * If present, results will be restricted to the specified partition previously created using PartitionQuery(). There must be an exact match for the values of fields common to this message and the PartitionQueryRequest message used to create this partition_token.
1160
+ * If present, results are restricted to the specified partition previously created using `PartitionQuery`. There must be an exact match for the values of fields common to this message and the `PartitionQueryRequest` message used to create this `partition_token`.
1038
1161
  */
1039
1162
  partitionToken?: string | null;
1040
1163
  /**
@@ -1054,7 +1177,7 @@ export namespace spanner_v1 {
1054
1177
  */
1055
1178
  resumeToken?: string | null;
1056
1179
  /**
1057
- * A per-transaction sequence number used to identify this request. This field makes each request idempotent such that if the request is received multiple times, at most one will succeed. The sequence number must be monotonically increasing within the transaction. If a request arrives for the first time with an out-of-order sequence number, the transaction may be aborted. Replays of previously handled requests will yield the same response as the first execution. Required for DML statements. Ignored for queries.
1180
+ * A per-transaction sequence number used to identify this request. This field makes each request idempotent such that if the request is received multiple times, at most one succeeds. The sequence number must be monotonically increasing within the transaction. If a request arrives for the first time with an out-of-order sequence number, the transaction can be aborted. Replays of previously handled requests yield the same response as the first execution. Required for DML statements. Ignored for queries.
1058
1181
  */
1059
1182
  seqno?: string | null;
1060
1183
  /**
@@ -1153,11 +1276,11 @@ export namespace spanner_v1 {
1153
1276
  requestedPolicyVersion?: number | null;
1154
1277
  }
1155
1278
  /**
1156
- * An IncludeReplicas contains a repeated set of ReplicaSelection which indicates the order in which replicas should be considered.
1279
+ * An `IncludeReplicas` contains a repeated set of `ReplicaSelection` which indicates the order in which replicas should be considered.
1157
1280
  */
1158
1281
  export interface Schema$IncludeReplicas {
1159
1282
  /**
1160
- * If true, Spanner will not route requests to a replica outside the include_replicas list when all of the specified replicas are unavailable or unhealthy. Default value is `false`.
1283
+ * If `true`, Spanner doesn't route requests to a replica outside the <`include_replicas` list when all of the specified replicas are unavailable or unhealthy. Default value is `false`.
1161
1284
  */
1162
1285
  autoFailoverDisabled?: boolean | null;
1163
1286
  /**
@@ -1216,6 +1339,10 @@ export namespace spanner_v1 {
1216
1339
  * Output only. The time at which the instance was created.
1217
1340
  */
1218
1341
  createTime?: string | null;
1342
+ /**
1343
+ * Optional. Controls the default backup schedule behavior for new databases within the instance. By default, a backup schedule is created automatically when a new database is created in a new instance. Note that the `AUTOMATIC` value isn't permitted for free instances, as backups and backup schedules aren't supported for free instances. In the `GetInstance` or `ListInstances` response, if the value of `default_backup_schedule_type` isn't set, or set to `NONE`, Spanner doesn't create a default backup schedule for new databases in the instance.
1344
+ */
1345
+ defaultBackupScheduleType?: string | null;
1219
1346
  /**
1220
1347
  * 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.
1221
1348
  */
@@ -1245,13 +1372,17 @@ export namespace spanner_v1 {
1245
1372
  */
1246
1373
  name?: string | null;
1247
1374
  /**
1248
- * 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).
1375
+ * 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. If the instance has varying node count across replicas (achieved by setting `asymmetric_autoscaling_options` in the autoscaling configuration), the `node_count` set here is the maximum node count across all replicas. For more information, see [Compute capacity, nodes, and processing units](https://cloud.google.com/spanner/docs/compute-capacity).
1249
1376
  */
1250
1377
  nodeCount?: number | null;
1251
1378
  /**
1252
- * 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).
1379
+ * 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. If the instance has varying processing units per replica (achieved by setting `asymmetric_autoscaling_options` in the autoscaling configuration), the `processing_units` set here is the maximum processing units across all replicas. For more information, see [Compute capacity, nodes and processing units](https://cloud.google.com/spanner/docs/compute-capacity).
1253
1380
  */
1254
1381
  processingUnits?: number | null;
1382
+ /**
1383
+ * Output only. Lists the compute capacity per ReplicaSelection. A replica selection identifies a set of replicas with common properties. Replicas identified by a ReplicaSelection are scaled with the same compute capacity.
1384
+ */
1385
+ replicaComputeCapacity?: Schema$ReplicaComputeCapacity[];
1255
1386
  /**
1256
1387
  * Output only. The current instance state. For CreateInstance, the state must be either omitted or set to `CREATING`. For UpdateInstance, the state must be either omitted or set to `READY`.
1257
1388
  */
@@ -1388,6 +1519,24 @@ export namespace spanner_v1 {
1388
1519
  */
1389
1520
  updateTime?: string | null;
1390
1521
  }
1522
+ /**
1523
+ * ReplicaSelection identifies replicas with common properties.
1524
+ */
1525
+ export interface Schema$InstanceReplicaSelection {
1526
+ /**
1527
+ * Required. Name of the location of the replicas (e.g., "us-central1").
1528
+ */
1529
+ location?: string | null;
1530
+ }
1531
+ /**
1532
+ * A split key.
1533
+ */
1534
+ export interface Schema$Key {
1535
+ /**
1536
+ * Required. The column values making up the split key.
1537
+ */
1538
+ keyParts?: any[] | null;
1539
+ }
1391
1540
  /**
1392
1541
  * KeyRange represents a range of rows in a table or index. A range has a start key and an end key. These keys can be open or closed, indicating if the range includes rows with that key. Keys are represented by lists, where the ith value in the list corresponds to the ith component of the table or index primary key. Individual values are encoded as described here. For example, consider the following table definition: CREATE TABLE UserEvents ( UserName STRING(MAX), EventDate STRING(10) ) PRIMARY KEY(UserName, EventDate); The following keys name rows in this table: "Bob", "2014-09-23" Since the `UserEvents` table's `PRIMARY KEY` clause names two columns, each `UserEvents` key has two elements; the first is the `UserName`, and the second is the `EventDate`. Key ranges with multiple components are interpreted lexicographically by component using the table or index key's declared sort order. For example, the following range returns all events for user `"Bob"` that occurred in the year 2015: "start_closed": ["Bob", "2015-01-01"] "end_closed": ["Bob", "2015-12-31"] Start and end keys can omit trailing key components. This affects the inclusion and exclusion of rows that exactly match the provided key components: if the key is closed, then rows that exactly match the provided components are included; if the key is open, then rows that exactly match are not included. For example, the following range includes all events for `"Bob"` that occurred during and after the year 2000: "start_closed": ["Bob", "2000-01-01"] "end_closed": ["Bob"] The next example retrieves all events for `"Bob"`: "start_closed": ["Bob"] "end_closed": ["Bob"] To retrieve events before the year 2000: "start_closed": ["Bob"] "end_open": ["Bob", "2000-01-01"] The following range includes all rows in the table: "start_closed": [] "end_closed": [] This range returns all users whose `UserName` begins with any character from A to C: "start_closed": ["A"] "end_open": ["D"] This range returns all users whose `UserName` begins with B: "start_closed": ["B"] "end_open": ["C"] Key ranges honor column sort order. For example, suppose a table is defined as follows: CREATE TABLE DescendingSortedTable { Key INT64, ... ) PRIMARY KEY(Key DESC); The following range retrieves all rows with key values between 1 and 100 inclusive: "start_closed": ["100"] "end_closed": ["1"] Note that 100 is passed as the start, and 1 is passed as the end, because `Key` is a descending column in the schema.
1393
1542
  */
@@ -1771,6 +1920,19 @@ export namespace spanner_v1 {
1771
1920
  */
1772
1921
  targetConfig?: string | null;
1773
1922
  }
1923
+ /**
1924
+ * When a read-write transaction is executed on a multiplexed session, this precommit token is sent back to the client as a part of the Transaction message in the BeginTransaction response and also as a part of the ResultSet and PartialResultSet responses.
1925
+ */
1926
+ export interface Schema$MultiplexedSessionPrecommitToken {
1927
+ /**
1928
+ * Opaque precommit token.
1929
+ */
1930
+ precommitToken?: string | null;
1931
+ /**
1932
+ * An incrementing seq number is generated on every precommit token that is returned. Clients should remember the precommit token with the highest sequence number from the current transaction attempt.
1933
+ */
1934
+ seqNum?: number | null;
1935
+ }
1774
1936
  /**
1775
1937
  * A modification to one or more Cloud Spanner rows. Mutations can be applied to a Cloud Spanner database by sending them in a Commit call.
1776
1938
  */
@@ -1868,20 +2030,28 @@ export namespace spanner_v1 {
1868
2030
  * If true, then the final value in values is chunked, and must be combined with more values from subsequent `PartialResultSet`s to obtain a complete field value.
1869
2031
  */
1870
2032
  chunkedValue?: boolean | null;
2033
+ /**
2034
+ * Optional. Indicates whether this is the last `PartialResultSet` in the stream. The server might optionally set this field. Clients shouldn't rely on this field being set in all cases.
2035
+ */
2036
+ last?: boolean | null;
1871
2037
  /**
1872
2038
  * Metadata about the result set, such as row type information. Only present in the first response.
1873
2039
  */
1874
2040
  metadata?: Schema$ResultSetMetadata;
2041
+ /**
2042
+ * Optional. A precommit token is included if the read-write transaction has multiplexed sessions enabled. Pass the precommit token with the highest sequence number from this transaction attempt to the Commit request for this transaction.
2043
+ */
2044
+ precommitToken?: Schema$MultiplexedSessionPrecommitToken;
1875
2045
  /**
1876
2046
  * Streaming calls might be interrupted for a variety of reasons, such as TCP connection loss. If this occurs, the stream of results can be resumed by re-sending the original request and including `resume_token`. Note that executing any other transaction in the same session invalidates the token.
1877
2047
  */
1878
2048
  resumeToken?: string | null;
1879
2049
  /**
1880
- * Query plan and execution statistics for the statement that produced this streaming result set. These can be requested by setting ExecuteSqlRequest.query_mode and are sent only once with the last response in the stream. This field will also be present in the last response for DML statements.
2050
+ * Query plan and execution statistics for the statement that produced this streaming result set. These can be requested by setting ExecuteSqlRequest.query_mode and are sent only once with the last response in the stream. This field is also present in the last response for DML statements.
1881
2051
  */
1882
2052
  stats?: Schema$ResultSetStats;
1883
2053
  /**
1884
- * A streamed result set consists of a stream of values, which might be split into many `PartialResultSet` messages to accommodate large rows and/or large values. Every N complete values defines a row, where N is equal to the number of entries in metadata.row_type.fields. Most values are encoded based on type as described here. It is possible that the last value in values is "chunked", meaning that the rest of the value is sent in subsequent `PartialResultSet`(s). This is denoted by the chunked_value field. Two or more chunked values can be merged to form a complete value as follows: * `bool/number/null`: cannot be chunked * `string`: concatenate the strings * `list`: concatenate the lists. If the last element in a list is a `string`, `list`, or `object`, merge it with the first element in the next list by applying these rules recursively. * `object`: concatenate the (field name, field value) pairs. If a field name is duplicated, then apply these rules recursively to merge the field values. Some examples of merging: # Strings are concatenated. "foo", "bar" =\> "foobar" # Lists of non-strings are concatenated. [2, 3], [4] =\> [2, 3, 4] # Lists are concatenated, but the last and first elements are merged # because they are strings. ["a", "b"], ["c", "d"] =\> ["a", "bc", "d"] # Lists are concatenated, but the last and first elements are merged # because they are lists. Recursively, the last and first elements # of the inner lists are merged because they are strings. ["a", ["b", "c"]], [["d"], "e"] =\> ["a", ["b", "cd"], "e"] # Non-overlapping object fields are combined. {"a": "1"\}, {"b": "2"\} =\> {"a": "1", "b": 2"\} # Overlapping object fields are merged. {"a": "1"\}, {"a": "2"\} =\> {"a": "12"\} # Examples of merging objects containing lists of strings. {"a": ["1"]\}, {"a": ["2"]\} =\> {"a": ["12"]\} For a more complete example, suppose a streaming SQL query is yielding a result set whose rows contain a single string field. The following `PartialResultSet`s might be yielded: { "metadata": { ... \} "values": ["Hello", "W"] "chunked_value": true "resume_token": "Af65..." \} { "values": ["orl"] "chunked_value": true \} { "values": ["d"] "resume_token": "Zx1B..." \} This sequence of `PartialResultSet`s encodes two rows, one containing the field value `"Hello"`, and a second containing the field value `"World" = "W" + "orl" + "d"`. Not all `PartialResultSet`s contain a `resume_token`. Execution can only be resumed from a previously yielded `resume_token`. For the above sequence of `PartialResultSet`s, resuming the query with `"resume_token": "Af65..."` will yield results from the `PartialResultSet` with value `["orl"]`.
2054
+ * A streamed result set consists of a stream of values, which might be split into many `PartialResultSet` messages to accommodate large rows and/or large values. Every N complete values defines a row, where N is equal to the number of entries in metadata.row_type.fields. Most values are encoded based on type as described here. It's possible that the last value in values is "chunked", meaning that the rest of the value is sent in subsequent `PartialResultSet`(s). This is denoted by the chunked_value field. Two or more chunked values can be merged to form a complete value as follows: * `bool/number/null`: can't be chunked * `string`: concatenate the strings * `list`: concatenate the lists. If the last element in a list is a `string`, `list`, or `object`, merge it with the first element in the next list by applying these rules recursively. * `object`: concatenate the (field name, field value) pairs. If a field name is duplicated, then apply these rules recursively to merge the field values. Some examples of merging: Strings are concatenated. "foo", "bar" =\> "foobar" Lists of non-strings are concatenated. [2, 3], [4] =\> [2, 3, 4] Lists are concatenated, but the last and first elements are merged because they are strings. ["a", "b"], ["c", "d"] =\> ["a", "bc", "d"] Lists are concatenated, but the last and first elements are merged because they are lists. Recursively, the last and first elements of the inner lists are merged because they are strings. ["a", ["b", "c"]], [["d"], "e"] =\> ["a", ["b", "cd"], "e"] Non-overlapping object fields are combined. {"a": "1"\}, {"b": "2"\} =\> {"a": "1", "b": 2"\} Overlapping object fields are merged. {"a": "1"\}, {"a": "2"\} =\> {"a": "12"\} Examples of merging objects containing lists of strings. {"a": ["1"]\}, {"a": ["2"]\} =\> {"a": ["12"]\} For a more complete example, suppose a streaming SQL query is yielding a result set whose rows contain a single string field. The following `PartialResultSet`s might be yielded: { "metadata": { ... \} "values": ["Hello", "W"] "chunked_value": true "resume_token": "Af65..." \} { "values": ["orl"] "chunked_value": true \} { "values": ["d"] "resume_token": "Zx1B..." \} This sequence of `PartialResultSet`s encodes two rows, one containing the field value `"Hello"`, and a second containing the field value `"World" = "W" + "orl" + "d"`. Not all `PartialResultSet`s contain a `resume_token`. Execution can only be resumed from a previously yielded `resume_token`. For the above sequence of `PartialResultSet`s, resuming the query with `"resume_token": "Af65..."` yields results from the `PartialResultSet` with value "orl".
1885
2055
  */
1886
2056
  values?: any[] | null;
1887
2057
  }
@@ -1890,7 +2060,7 @@ export namespace spanner_v1 {
1890
2060
  */
1891
2061
  export interface Schema$Partition {
1892
2062
  /**
1893
- * This token can be passed to Read, StreamingRead, ExecuteSql, or ExecuteStreamingSql requests to restrict the results to those identified by this partition token.
2063
+ * This token can be passed to `Read`, `StreamingRead`, `ExecuteSql`, or `ExecuteStreamingSql` requests to restrict the results to those identified by this partition token.
1894
2064
  */
1895
2065
  partitionToken?: string | null;
1896
2066
  }
@@ -1899,15 +2069,15 @@ export namespace spanner_v1 {
1899
2069
  */
1900
2070
  export interface Schema$PartitionedDml {}
1901
2071
  /**
1902
- * Options for a PartitionQueryRequest and PartitionReadRequest.
2072
+ * Options for a `PartitionQueryRequest` and `PartitionReadRequest`.
1903
2073
  */
1904
2074
  export interface Schema$PartitionOptions {
1905
2075
  /**
1906
- * **Note:** This hint is currently ignored by PartitionQuery and PartitionRead requests. The desired maximum number of partitions to return. For example, this may be set to the number of workers available. The default for this option is currently 10,000. The maximum value is currently 200,000. This is only a hint. The actual number of partitions returned may be smaller or larger than this maximum count request.
2076
+ * **Note:** This hint is currently ignored by `PartitionQuery` and `PartitionRead` requests. The desired maximum number of partitions to return. For example, this might be set to the number of workers available. The default for this option is currently 10,000. The maximum value is currently 200,000. This is only a hint. The actual number of partitions returned can be smaller or larger than this maximum count request.
1907
2077
  */
1908
2078
  maxPartitions?: string | null;
1909
2079
  /**
1910
- * **Note:** This hint is currently ignored by PartitionQuery and PartitionRead requests. The desired data size for each partition generated. The default for this option is currently 1 GiB. This is only a hint. The actual size of each partition may be smaller or larger than this size request.
2080
+ * **Note:** This hint is currently ignored by `PartitionQuery` and `PartitionRead` requests. The desired data size for each partition generated. The default for this option is currently 1 GiB. This is only a hint. The actual size of each partition can be smaller or larger than this size request.
1911
2081
  */
1912
2082
  partitionSizeBytes?: string | null;
1913
2083
  }
@@ -1916,11 +2086,11 @@ export namespace spanner_v1 {
1916
2086
  */
1917
2087
  export interface Schema$PartitionQueryRequest {
1918
2088
  /**
1919
- * Parameter names and values that bind to placeholders in the SQL string. A parameter placeholder consists of the `@` character followed by the parameter name (for example, `@firstName`). Parameter names can contain letters, numbers, and underscores. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: `"WHERE id \> @msg_id AND id < @msg_id + 100"` It is an error to execute a SQL statement with unbound parameters.
2089
+ * Parameter names and values that bind to placeholders in the SQL string. A parameter placeholder consists of the `@` character followed by the parameter name (for example, `@firstName`). Parameter names can contain letters, numbers, and underscores. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: `"WHERE id \> @msg_id AND id < @msg_id + 100"` It's an error to execute a SQL statement with unbound parameters.
1920
2090
  */
1921
2091
  params?: {[key: string]: any} | null;
1922
2092
  /**
1923
- * It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in params as JSON strings. In these cases, `param_types` can be used to specify the exact SQL type for some or all of the SQL query parameters. See the definition of Type for more information about SQL types.
2093
+ * It isn't always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in params as JSON strings. In these cases, `param_types` can be used to specify the exact SQL type for some or all of the SQL query parameters. See the definition of Type for more information about SQL types.
1924
2094
  */
1925
2095
  paramTypes?: {[key: string]: Schema$Type} | null;
1926
2096
  /**
@@ -1928,11 +2098,11 @@ export namespace spanner_v1 {
1928
2098
  */
1929
2099
  partitionOptions?: Schema$PartitionOptions;
1930
2100
  /**
1931
- * 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.
2101
+ * Required. The query request to generate partitions for. The request fails if the query isn't 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.
1932
2102
  */
1933
2103
  sql?: string | null;
1934
2104
  /**
1935
- * Read only snapshot transactions are supported, read/write and single use transactions are not.
2105
+ * Read-only snapshot transactions are supported, read and write and single-use transactions are not.
1936
2106
  */
1937
2107
  transaction?: Schema$TransactionSelector;
1938
2108
  }
@@ -1949,7 +2119,7 @@ export namespace spanner_v1 {
1949
2119
  */
1950
2120
  index?: string | null;
1951
2121
  /**
1952
- * Required. `key_set` identifies the rows to be yielded. `key_set` names the primary keys of the rows in table to be yielded, unless index is present. If index is present, then key_set instead names index keys in index. It is not an error for the `key_set` to name rows that do not exist in the database. Read yields nothing for nonexistent rows.
2122
+ * Required. `key_set` identifies the rows to be yielded. `key_set` names the primary keys of the rows in table to be yielded, unless index is present. If index is present, then key_set instead names index keys in index. It isn't an error for the `key_set` to name rows that don't exist in the database. Read yields nothing for nonexistent rows.
1953
2123
  */
1954
2124
  keySet?: Schema$KeySet;
1955
2125
  /**
@@ -2067,11 +2237,11 @@ export namespace spanner_v1 {
2067
2237
  */
2068
2238
  export interface Schema$QueryOptions {
2069
2239
  /**
2070
- * An option to control the selection of optimizer statistics package. This parameter allows individual queries to use a different query optimizer statistics package. Specifying `latest` as a value instructs Cloud Spanner to use the latest generated statistics package. If not specified, Cloud Spanner uses the statistics package set at the database level options, or the latest package if the database option is not set. The statistics package requested by the query has to be exempt from garbage collection. This can be achieved with the following DDL statement: ``` ALTER STATISTICS SET OPTIONS (allow_gc=false) ``` The list of available statistics packages can be queried from `INFORMATION_SCHEMA.SPANNER_STATISTICS`. Executing a SQL statement with an invalid optimizer statistics package or with a statistics package that allows garbage collection fails with an `INVALID_ARGUMENT` error.
2240
+ * An option to control the selection of optimizer statistics package. This parameter allows individual queries to use a different query optimizer statistics package. Specifying `latest` as a value instructs Cloud Spanner to use the latest generated statistics package. If not specified, Cloud Spanner uses the statistics package set at the database level options, or the latest package if the database option isn't set. The statistics package requested by the query has to be exempt from garbage collection. This can be achieved with the following DDL statement: ```sql ALTER STATISTICS SET OPTIONS (allow_gc=false) ``` The list of available statistics packages can be queried from `INFORMATION_SCHEMA.SPANNER_STATISTICS`. Executing a SQL statement with an invalid optimizer statistics package or with a statistics package that allows garbage collection fails with an `INVALID_ARGUMENT` error.
2071
2241
  */
2072
2242
  optimizerStatisticsPackage?: string | null;
2073
2243
  /**
2074
- * An option to control the selection of optimizer version. This parameter allows individual queries to pick different query optimizer versions. Specifying `latest` as a value instructs Cloud Spanner to use the latest supported query optimizer version. If not specified, Cloud Spanner uses the optimizer version set at the database level options. Any other positive integer (from the list of supported optimizer versions) overrides the default optimizer version for query execution. The list of supported optimizer versions can be queried from SPANNER_SYS.SUPPORTED_OPTIMIZER_VERSIONS. Executing a SQL statement with an invalid optimizer version fails with an `INVALID_ARGUMENT` error. See https://cloud.google.com/spanner/docs/query-optimizer/manage-query-optimizer for more information on managing the query optimizer. The `optimizer_version` statement hint has precedence over this setting.
2244
+ * An option to control the selection of optimizer version. This parameter allows individual queries to pick different query optimizer versions. Specifying `latest` as a value instructs Cloud Spanner to use the latest supported query optimizer version. If not specified, Cloud Spanner uses the optimizer version set at the database level options. Any other positive integer (from the list of supported optimizer versions) overrides the default optimizer version for query execution. The list of supported optimizer versions can be queried from `SPANNER_SYS.SUPPORTED_OPTIMIZER_VERSIONS`. Executing a SQL statement with an invalid optimizer version fails with an `INVALID_ARGUMENT` error. See https://cloud.google.com/spanner/docs/query-optimizer/manage-query-optimizer for more information on managing the query optimizer. The `optimizer_version` statement hint has precedence over this setting.
2075
2245
  */
2076
2246
  optimizerVersion?: string | null;
2077
2247
  }
@@ -2084,7 +2254,7 @@ export namespace spanner_v1 {
2084
2254
  */
2085
2255
  planNodes?: Schema$PlanNode[];
2086
2256
  /**
2087
- * Optional. The advices/recommendations for a query. Currently this field will be serving index recommendations for a query.
2257
+ * Optional. The advise/recommendations for a query. Currently this field will be serving index recommendations for a query.
2088
2258
  */
2089
2259
  queryAdvice?: Schema$QueryAdvisorResult;
2090
2260
  }
@@ -2160,7 +2330,7 @@ export namespace spanner_v1 {
2160
2330
  */
2161
2331
  columns?: string[] | null;
2162
2332
  /**
2163
- * If this is for a partitioned read and this field is set to `true`, the request is executed with Spanner Data Boost independent compute resources. If the field is set to `true` but the request does not set `partition_token`, the API returns an `INVALID_ARGUMENT` error.
2333
+ * If this is for a partitioned read and this field is set to `true`, the request is executed with Spanner Data Boost independent compute resources. If the field is set to `true` but the request doesn't set `partition_token`, the API returns an `INVALID_ARGUMENT` error.
2164
2334
  */
2165
2335
  dataBoostEnabled?: boolean | null;
2166
2336
  /**
@@ -2172,11 +2342,11 @@ export namespace spanner_v1 {
2172
2342
  */
2173
2343
  index?: string | null;
2174
2344
  /**
2175
- * Required. `key_set` identifies the rows to be yielded. `key_set` names the primary keys of the rows in table to be yielded, unless index is present. If index is present, then key_set instead names index keys in index. If the partition_token field is empty, rows are yielded in table primary key order (if index is empty) or index key order (if index is non-empty). If the partition_token field is not empty, rows will be yielded in an unspecified order. It is not an error for the `key_set` to name rows that do not exist in the database. Read yields nothing for nonexistent rows.
2345
+ * Required. `key_set` identifies the rows to be yielded. `key_set` names the primary keys of the rows in table to be yielded, unless index is present. If index is present, then key_set instead names index keys in index. If the partition_token field is empty, rows are yielded in table primary key order (if index is empty) or index key order (if index is non-empty). If the partition_token field isn't empty, rows are yielded in an unspecified order. It isn't an error for the `key_set` to name rows that don't exist in the database. Read yields nothing for nonexistent rows.
2176
2346
  */
2177
2347
  keySet?: Schema$KeySet;
2178
2348
  /**
2179
- * 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.
2349
+ * If greater than zero, only the first `limit` rows are yielded. If `limit` is zero, the default is no limit. A limit can't be specified if `partition_token` is set.
2180
2350
  */
2181
2351
  limit?: string | null;
2182
2352
  /**
@@ -2184,11 +2354,11 @@ export namespace spanner_v1 {
2184
2354
  */
2185
2355
  lockHint?: string | null;
2186
2356
  /**
2187
- * 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).
2357
+ * Optional. Order for the returned rows. By default, Spanner returns result rows in primary key order except for PartitionRead requests. For applications that don't 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 (for example, bulk point lookups).
2188
2358
  */
2189
2359
  orderBy?: string | null;
2190
2360
  /**
2191
- * 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.
2361
+ * If present, results are 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.
2192
2362
  */
2193
2363
  partitionToken?: string | null;
2194
2364
  /**
@@ -2212,11 +2382,32 @@ export namespace spanner_v1 {
2212
2382
  * Message type to initiate a read-write transaction. Currently this transaction type has no options.
2213
2383
  */
2214
2384
  export interface Schema$ReadWrite {
2385
+ /**
2386
+ * Optional. Clients should pass the transaction ID of the previous transaction attempt that was aborted if this transaction is being executed on a multiplexed session.
2387
+ */
2388
+ multiplexedSessionPreviousTransactionId?: string | null;
2215
2389
  /**
2216
2390
  * Read lock mode for the transaction.
2217
2391
  */
2218
2392
  readLockMode?: string | null;
2219
2393
  }
2394
+ /**
2395
+ * ReplicaComputeCapacity describes the amount of server resources that are allocated to each replica identified by the replica selection.
2396
+ */
2397
+ export interface Schema$ReplicaComputeCapacity {
2398
+ /**
2399
+ * The number of nodes allocated to each replica. This may be zero in API responses for instances that are not yet in state `READY`.
2400
+ */
2401
+ nodeCount?: number | null;
2402
+ /**
2403
+ * The number of processing units allocated to each replica. This may be zero in API responses for instances that are not yet in state `READY`.
2404
+ */
2405
+ processingUnits?: number | null;
2406
+ /**
2407
+ * Required. Identifies replicas by specified properties. All replicas in the selection have the same amount of compute capacity.
2408
+ */
2409
+ replicaSelection?: Schema$InstanceReplicaSelection;
2410
+ }
2220
2411
  export interface Schema$ReplicaInfo {
2221
2412
  /**
2222
2413
  * If true, this location is designated as the default leader location where leader replicas are placed. See the [region types documentation](https://cloud.google.com/spanner/docs/instances#region_types) for more details.
@@ -2232,11 +2423,11 @@ export namespace spanner_v1 {
2232
2423
  type?: string | null;
2233
2424
  }
2234
2425
  /**
2235
- * The directed read replica selector. Callers must provide one or more of the following fields for replica selection: * `location` - The location must be one of the regions within the multi-region configuration of your database. * `type` - The type of the replica. Some examples of using replica_selectors are: * `location:us-east1` --\> The "us-east1" replica(s) of any available type will be used to process the request. * `type:READ_ONLY` --\> The "READ_ONLY" type replica(s) in nearest available location will be used to process the request. * `location:us-east1 type:READ_ONLY` --\> The "READ_ONLY" type replica(s) in location "us-east1" will be used to process the request.
2426
+ * The directed read replica selector. Callers must provide one or more of the following fields for replica selection: * `location` - The location must be one of the regions within the multi-region configuration of your database. * `type` - The type of the replica. Some examples of using replica_selectors are: * `location:us-east1` --\> The "us-east1" replica(s) of any available type is used to process the request. * `type:READ_ONLY` --\> The "READ_ONLY" type replica(s) in the nearest available location are used to process the request. * `location:us-east1 type:READ_ONLY` --\> The "READ_ONLY" type replica(s) in location "us-east1" is used to process the request.
2236
2427
  */
2237
2428
  export interface Schema$ReplicaSelection {
2238
2429
  /**
2239
- * The location or region of the serving requests, e.g. "us-east1".
2430
+ * The location or region of the serving requests, for example, "us-east1".
2240
2431
  */
2241
2432
  location?: string | null;
2242
2433
  /**
@@ -2253,11 +2444,11 @@ export namespace spanner_v1 {
2253
2444
  */
2254
2445
  priority?: string | null;
2255
2446
  /**
2256
- * A per-request tag which can be applied to queries or reads, used for statistics collection. Both request_tag and transaction_tag can be specified for a read or query that belongs to a transaction. This field is ignored for requests where it's not applicable (e.g. CommitRequest). Legal characters for `request_tag` values are all printable characters (ASCII 32 - 126) and the length of a request_tag is limited to 50 characters. Values that exceed this limit are truncated. Any leading underscore (_) characters will be removed from the string.
2447
+ * A per-request tag which can be applied to queries or reads, used for statistics collection. Both `request_tag` and `transaction_tag` can be specified for a read or query that belongs to a transaction. This field is ignored for requests where it's not applicable (for example, `CommitRequest`). Legal characters for `request_tag` values are all printable characters (ASCII 32 - 126) and the length of a request_tag is limited to 50 characters. Values that exceed this limit are truncated. Any leading underscore (_) characters are removed from the string.
2257
2448
  */
2258
2449
  requestTag?: string | null;
2259
2450
  /**
2260
- * A tag used for statistics collection about this transaction. Both request_tag and transaction_tag can be specified for a read or query that belongs to a transaction. The value of transaction_tag should be the same for all requests belonging to the same transaction. If this request doesn't belong to any transaction, transaction_tag will be ignored. Legal characters for `transaction_tag` values are all printable characters (ASCII 32 - 126) and the length of a transaction_tag is limited to 50 characters. Values that exceed this limit are truncated. Any leading underscore (_) characters will be removed from the string.
2451
+ * A tag used for statistics collection about this transaction. Both `request_tag` and `transaction_tag` can be specified for a read or query that belongs to a transaction. The value of transaction_tag should be the same for all requests belonging to the same transaction. If this request doesn't belong to any transaction, `transaction_tag` is ignored. Legal characters for `transaction_tag` values are all printable characters (ASCII 32 - 126) and the length of a `transaction_tag` is limited to 50 characters. Values that exceed this limit are truncated. Any leading underscore (_) characters are removed from the string.
2261
2452
  */
2262
2453
  transactionTag?: string | null;
2263
2454
  }
@@ -2274,7 +2465,7 @@ export namespace spanner_v1 {
2274
2465
  */
2275
2466
  kmsKeyName?: string | null;
2276
2467
  /**
2277
- * 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.
2468
+ * Optional. Specifies the KMS configuration for 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'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.
2278
2469
  */
2279
2470
  kmsKeyNames?: string[] | null;
2280
2471
  }
@@ -2345,12 +2536,16 @@ export namespace spanner_v1 {
2345
2536
  * Metadata about the result set, such as row type information.
2346
2537
  */
2347
2538
  metadata?: Schema$ResultSetMetadata;
2539
+ /**
2540
+ * Optional. A precommit token is included if the read-write transaction is on a multiplexed session. Pass the precommit token with the highest sequence number from this transaction attempt to the Commit request for this transaction.
2541
+ */
2542
+ precommitToken?: Schema$MultiplexedSessionPrecommitToken;
2348
2543
  /**
2349
2544
  * Each element in `rows` is a row whose format is defined by metadata.row_type. The ith element in each row matches the ith field in metadata.row_type. Elements are encoded based on type as described here.
2350
2545
  */
2351
2546
  rows?: any[][] | null;
2352
2547
  /**
2353
- * Query plan and execution statistics for the SQL statement that produced this result set. These can be requested by setting ExecuteSqlRequest.query_mode. DML statements always produce stats containing the number of rows modified, unless executed using the ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode. Other fields may or may not be populated, based on the ExecuteSqlRequest.query_mode.
2548
+ * Query plan and execution statistics for the SQL statement that produced this result set. These can be requested by setting ExecuteSqlRequest.query_mode. DML statements always produce stats containing the number of rows modified, unless executed using the ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode. Other fields might or might not be populated, based on the ExecuteSqlRequest.query_mode.
2354
2549
  */
2355
2550
  stats?: Schema$ResultSetStats;
2356
2551
  }
@@ -2388,7 +2583,7 @@ export namespace spanner_v1 {
2388
2583
  */
2389
2584
  rowCountExact?: string | null;
2390
2585
  /**
2391
- * Partitioned DML does not offer exactly-once semantics, so it returns a lower bound of the rows modified.
2586
+ * Partitioned DML doesn't offer exactly-once semantics, so it returns a lower bound of the rows modified.
2392
2587
  */
2393
2588
  rowCountLowerBound?: string | null;
2394
2589
  }
@@ -2448,7 +2643,7 @@ export namespace spanner_v1 {
2448
2643
  */
2449
2644
  export interface Schema$Session {
2450
2645
  /**
2451
- * Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.
2646
+ * Output only. The approximate timestamp when the session is last used. It's typically earlier than the actual last use time.
2452
2647
  */
2453
2648
  approximateLastUseTime?: string | null;
2454
2649
  /**
@@ -2464,7 +2659,7 @@ export namespace spanner_v1 {
2464
2659
  */
2465
2660
  labels?: {[key: string]: string} | null;
2466
2661
  /**
2467
- * 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.
2662
+ * 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 `sessions.create` to create multiplexed sessions. Don't use BatchCreateSessions to create a multiplexed session. You can't delete or list multiplexed sessions.
2468
2663
  */
2469
2664
  multiplexed?: boolean | null;
2470
2665
  /**
@@ -2503,16 +2698,37 @@ export namespace spanner_v1 {
2503
2698
  */
2504
2699
  servingLocation?: string | null;
2505
2700
  }
2701
+ /**
2702
+ * The split points of a table/index.
2703
+ */
2704
+ export interface Schema$SplitPoints {
2705
+ /**
2706
+ * Optional. The expiration timestamp of the split points. A timestamp in the past means immediate expiration. The maximum value can be 30 days in the future. Defaults to 10 days in the future if not specified.
2707
+ */
2708
+ expireTime?: string | null;
2709
+ /**
2710
+ * The index to split. If specified, the `table` field must refer to the index's base table.
2711
+ */
2712
+ index?: string | null;
2713
+ /**
2714
+ * Required. The list of split keys, i.e., the split boundaries.
2715
+ */
2716
+ keys?: Schema$Key[];
2717
+ /**
2718
+ * The table to split.
2719
+ */
2720
+ table?: string | null;
2721
+ }
2506
2722
  /**
2507
2723
  * A single DML statement.
2508
2724
  */
2509
2725
  export interface Schema$Statement {
2510
2726
  /**
2511
- * Parameter names and values that bind to placeholders in the DML string. A parameter placeholder consists of the `@` character followed by the parameter name (for example, `@firstName`). Parameter names can contain letters, numbers, and underscores. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: `"WHERE id \> @msg_id AND id < @msg_id + 100"` It is an error to execute a SQL statement with unbound parameters.
2727
+ * Parameter names and values that bind to placeholders in the DML string. A parameter placeholder consists of the `@` character followed by the parameter name (for example, `@firstName`). Parameter names can contain letters, numbers, and underscores. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: `"WHERE id \> @msg_id AND id < @msg_id + 100"` It's an error to execute a SQL statement with unbound parameters.
2512
2728
  */
2513
2729
  params?: {[key: string]: any} | null;
2514
2730
  /**
2515
- * It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in params as JSON strings. In these cases, `param_types` can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of Type for more information about SQL types.
2731
+ * It isn't always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in params as JSON strings. In these cases, `param_types` can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of Type for more information about SQL types.
2516
2732
  */
2517
2733
  paramTypes?: {[key: string]: Schema$Type} | null;
2518
2734
  /**
@@ -2572,6 +2788,10 @@ export namespace spanner_v1 {
2572
2788
  * `id` may be used to identify the transaction in subsequent Read, ExecuteSql, Commit, or Rollback calls. Single-use read-only transactions do not have IDs, because single-use transactions do not support multiple requests.
2573
2789
  */
2574
2790
  id?: string | null;
2791
+ /**
2792
+ * A precommit token will be included in the response of a BeginTransaction request if the read-write transaction is on a multiplexed session and a mutation_key was specified in the BeginTransaction. The precommit token with the highest sequence number from this transaction attempt should be passed to the Commit request for this transaction.
2793
+ */
2794
+ precommitToken?: Schema$MultiplexedSessionPrecommitToken;
2575
2795
  /**
2576
2796
  * For snapshot read-only transactions, the read timestamp chosen for the transaction. Not returned by default: see TransactionOptions.ReadOnly.return_read_timestamp. A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`.
2577
2797
  */
@@ -2585,6 +2805,10 @@ export namespace spanner_v1 {
2585
2805
  * When `exclude_txn_from_change_streams` is set to `true`: * Modifications from this transaction will not be recorded in change streams with DDL option `allow_txn_exclusion=true` that are tracking columns modified by these transactions. * Modifications from this transaction will be recorded in change streams with DDL option `allow_txn_exclusion=false or not set` that are tracking columns modified by these transactions. When `exclude_txn_from_change_streams` is set to `false` or not set, Modifications from this transaction will be recorded in all change streams that are tracking columns modified by these transactions. `exclude_txn_from_change_streams` may only be specified for read-write or partitioned-dml transactions, otherwise the API will return an `INVALID_ARGUMENT` error.
2586
2806
  */
2587
2807
  excludeTxnFromChangeStreams?: boolean | null;
2808
+ /**
2809
+ * Isolation level for the transaction.
2810
+ */
2811
+ isolationLevel?: string | null;
2588
2812
  /**
2589
2813
  * Partitioned DML transaction. Authorization to begin a Partitioned DML transaction requires `spanner.databases.beginPartitionedDmlTransaction` permission on the `session` resource.
2590
2814
  */
@@ -2674,7 +2898,7 @@ export namespace spanner_v1 {
2674
2898
  */
2675
2899
  export interface Schema$UpdateDatabaseDdlRequest {
2676
2900
  /**
2677
- * If empty, the new update request is assigned an automatically-generated operation ID. Otherwise, `operation_id` is used to construct the name of the resulting Operation. Specifying an explicit operation ID simplifies determining whether the statements were executed in the event that the UpdateDatabaseDdl call is replayed, or the return value is otherwise lost: the database and `operation_id` fields can be combined to form the name of the resulting longrunning.Operation: `/operations/`. `operation_id` should be unique within the database, and must be a valid identifier: `a-z*`. Note that automatically-generated operation IDs always begin with an underscore. If the named operation already exists, UpdateDatabaseDdl returns `ALREADY_EXISTS`.
2901
+ * If empty, the new update request is assigned an automatically-generated operation ID. Otherwise, `operation_id` is used to construct the name of the resulting Operation. Specifying an explicit operation ID simplifies determining whether the statements were executed in the event that the UpdateDatabaseDdl call is replayed, or the return value is otherwise lost: the database and `operation_id` fields can be combined to form the `name` of the resulting longrunning.Operation: `/operations/`. `operation_id` should be unique within the database, and must be a valid identifier: `a-z*`. Note that automatically-generated operation IDs always begin with an underscore. If the named operation already exists, UpdateDatabaseDdl returns `ALREADY_EXISTS`.
2678
2902
  */
2679
2903
  operationId?: string | null;
2680
2904
  /**
@@ -2734,7 +2958,7 @@ export namespace spanner_v1 {
2734
2958
  progress?: Schema$InstanceOperationProgress;
2735
2959
  }
2736
2960
  /**
2737
- * The request for UpdateInstanceConfigRequest.
2961
+ * The request for UpdateInstanceConfig.
2738
2962
  */
2739
2963
  export interface Schema$UpdateInstanceConfigRequest {
2740
2964
  /**
@@ -2915,11 +3139,13 @@ export namespace spanner_v1 {
2915
3139
  list(
2916
3140
  params: Params$Resource$Projects$Instanceconfigoperations$List,
2917
3141
  options: StreamMethodOptions
2918
- ): GaxiosPromise<Readable>;
3142
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2919
3143
  list(
2920
3144
  params?: Params$Resource$Projects$Instanceconfigoperations$List,
2921
3145
  options?: MethodOptions
2922
- ): GaxiosPromise<Schema$ListInstanceConfigOperationsResponse>;
3146
+ ): Promise<
3147
+ GaxiosResponseWithHTTP2<Schema$ListInstanceConfigOperationsResponse>
3148
+ >;
2923
3149
  list(
2924
3150
  params: Params$Resource$Projects$Instanceconfigoperations$List,
2925
3151
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2954,8 +3180,10 @@ export namespace spanner_v1 {
2954
3180
  | BodyResponseCallback<Readable>
2955
3181
  ):
2956
3182
  | void
2957
- | GaxiosPromise<Schema$ListInstanceConfigOperationsResponse>
2958
- | GaxiosPromise<Readable> {
3183
+ | Promise<
3184
+ GaxiosResponseWithHTTP2<Schema$ListInstanceConfigOperationsResponse>
3185
+ >
3186
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2959
3187
  let params = (paramsOrCallback ||
2960
3188
  {}) as Params$Resource$Projects$Instanceconfigoperations$List;
2961
3189
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3047,11 +3275,11 @@ export namespace spanner_v1 {
3047
3275
  create(
3048
3276
  params: Params$Resource$Projects$Instanceconfigs$Create,
3049
3277
  options: StreamMethodOptions
3050
- ): GaxiosPromise<Readable>;
3278
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3051
3279
  create(
3052
3280
  params?: Params$Resource$Projects$Instanceconfigs$Create,
3053
3281
  options?: MethodOptions
3054
- ): GaxiosPromise<Schema$Operation>;
3282
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3055
3283
  create(
3056
3284
  params: Params$Resource$Projects$Instanceconfigs$Create,
3057
3285
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3080,7 +3308,10 @@ export namespace spanner_v1 {
3080
3308
  callback?:
3081
3309
  | BodyResponseCallback<Schema$Operation>
3082
3310
  | BodyResponseCallback<Readable>
3083
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
3311
+ ):
3312
+ | void
3313
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
3314
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3084
3315
  let params = (paramsOrCallback ||
3085
3316
  {}) as Params$Resource$Projects$Instanceconfigs$Create;
3086
3317
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3135,11 +3366,11 @@ export namespace spanner_v1 {
3135
3366
  delete(
3136
3367
  params: Params$Resource$Projects$Instanceconfigs$Delete,
3137
3368
  options: StreamMethodOptions
3138
- ): GaxiosPromise<Readable>;
3369
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3139
3370
  delete(
3140
3371
  params?: Params$Resource$Projects$Instanceconfigs$Delete,
3141
3372
  options?: MethodOptions
3142
- ): GaxiosPromise<Schema$Empty>;
3373
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
3143
3374
  delete(
3144
3375
  params: Params$Resource$Projects$Instanceconfigs$Delete,
3145
3376
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3168,7 +3399,10 @@ export namespace spanner_v1 {
3168
3399
  callback?:
3169
3400
  | BodyResponseCallback<Schema$Empty>
3170
3401
  | BodyResponseCallback<Readable>
3171
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
3402
+ ):
3403
+ | void
3404
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
3405
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3172
3406
  let params = (paramsOrCallback ||
3173
3407
  {}) as Params$Resource$Projects$Instanceconfigs$Delete;
3174
3408
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3220,11 +3454,11 @@ export namespace spanner_v1 {
3220
3454
  get(
3221
3455
  params: Params$Resource$Projects$Instanceconfigs$Get,
3222
3456
  options: StreamMethodOptions
3223
- ): GaxiosPromise<Readable>;
3457
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3224
3458
  get(
3225
3459
  params?: Params$Resource$Projects$Instanceconfigs$Get,
3226
3460
  options?: MethodOptions
3227
- ): GaxiosPromise<Schema$InstanceConfig>;
3461
+ ): Promise<GaxiosResponseWithHTTP2<Schema$InstanceConfig>>;
3228
3462
  get(
3229
3463
  params: Params$Resource$Projects$Instanceconfigs$Get,
3230
3464
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3253,7 +3487,10 @@ export namespace spanner_v1 {
3253
3487
  callback?:
3254
3488
  | BodyResponseCallback<Schema$InstanceConfig>
3255
3489
  | BodyResponseCallback<Readable>
3256
- ): void | GaxiosPromise<Schema$InstanceConfig> | GaxiosPromise<Readable> {
3490
+ ):
3491
+ | void
3492
+ | Promise<GaxiosResponseWithHTTP2<Schema$InstanceConfig>>
3493
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3257
3494
  let params = (paramsOrCallback ||
3258
3495
  {}) as Params$Resource$Projects$Instanceconfigs$Get;
3259
3496
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3305,11 +3542,11 @@ export namespace spanner_v1 {
3305
3542
  list(
3306
3543
  params: Params$Resource$Projects$Instanceconfigs$List,
3307
3544
  options: StreamMethodOptions
3308
- ): GaxiosPromise<Readable>;
3545
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3309
3546
  list(
3310
3547
  params?: Params$Resource$Projects$Instanceconfigs$List,
3311
3548
  options?: MethodOptions
3312
- ): GaxiosPromise<Schema$ListInstanceConfigsResponse>;
3549
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListInstanceConfigsResponse>>;
3313
3550
  list(
3314
3551
  params: Params$Resource$Projects$Instanceconfigs$List,
3315
3552
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3344,8 +3581,8 @@ export namespace spanner_v1 {
3344
3581
  | BodyResponseCallback<Readable>
3345
3582
  ):
3346
3583
  | void
3347
- | GaxiosPromise<Schema$ListInstanceConfigsResponse>
3348
- | GaxiosPromise<Readable> {
3584
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListInstanceConfigsResponse>>
3585
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3349
3586
  let params = (paramsOrCallback ||
3350
3587
  {}) as Params$Resource$Projects$Instanceconfigs$List;
3351
3588
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3400,11 +3637,11 @@ export namespace spanner_v1 {
3400
3637
  patch(
3401
3638
  params: Params$Resource$Projects$Instanceconfigs$Patch,
3402
3639
  options: StreamMethodOptions
3403
- ): GaxiosPromise<Readable>;
3640
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3404
3641
  patch(
3405
3642
  params?: Params$Resource$Projects$Instanceconfigs$Patch,
3406
3643
  options?: MethodOptions
3407
- ): GaxiosPromise<Schema$Operation>;
3644
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3408
3645
  patch(
3409
3646
  params: Params$Resource$Projects$Instanceconfigs$Patch,
3410
3647
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3433,7 +3670,10 @@ export namespace spanner_v1 {
3433
3670
  callback?:
3434
3671
  | BodyResponseCallback<Schema$Operation>
3435
3672
  | BodyResponseCallback<Readable>
3436
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
3673
+ ):
3674
+ | void
3675
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
3676
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3437
3677
  let params = (paramsOrCallback ||
3438
3678
  {}) as Params$Resource$Projects$Instanceconfigs$Patch;
3439
3679
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3544,7 +3784,7 @@ export namespace spanner_v1 {
3544
3784
  }
3545
3785
 
3546
3786
  /**
3547
- * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
3787
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
3548
3788
  *
3549
3789
  * @param params - Parameters for request
3550
3790
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3554,11 +3794,11 @@ export namespace spanner_v1 {
3554
3794
  cancel(
3555
3795
  params: Params$Resource$Projects$Instanceconfigs$Operations$Cancel,
3556
3796
  options: StreamMethodOptions
3557
- ): GaxiosPromise<Readable>;
3797
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3558
3798
  cancel(
3559
3799
  params?: Params$Resource$Projects$Instanceconfigs$Operations$Cancel,
3560
3800
  options?: MethodOptions
3561
- ): GaxiosPromise<Schema$Empty>;
3801
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
3562
3802
  cancel(
3563
3803
  params: Params$Resource$Projects$Instanceconfigs$Operations$Cancel,
3564
3804
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3587,7 +3827,10 @@ export namespace spanner_v1 {
3587
3827
  callback?:
3588
3828
  | BodyResponseCallback<Schema$Empty>
3589
3829
  | BodyResponseCallback<Readable>
3590
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
3830
+ ):
3831
+ | void
3832
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
3833
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3591
3834
  let params = (paramsOrCallback ||
3592
3835
  {}) as Params$Resource$Projects$Instanceconfigs$Operations$Cancel;
3593
3836
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3640,11 +3883,11 @@ export namespace spanner_v1 {
3640
3883
  delete(
3641
3884
  params: Params$Resource$Projects$Instanceconfigs$Operations$Delete,
3642
3885
  options: StreamMethodOptions
3643
- ): GaxiosPromise<Readable>;
3886
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3644
3887
  delete(
3645
3888
  params?: Params$Resource$Projects$Instanceconfigs$Operations$Delete,
3646
3889
  options?: MethodOptions
3647
- ): GaxiosPromise<Schema$Empty>;
3890
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
3648
3891
  delete(
3649
3892
  params: Params$Resource$Projects$Instanceconfigs$Operations$Delete,
3650
3893
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3673,7 +3916,10 @@ export namespace spanner_v1 {
3673
3916
  callback?:
3674
3917
  | BodyResponseCallback<Schema$Empty>
3675
3918
  | BodyResponseCallback<Readable>
3676
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
3919
+ ):
3920
+ | void
3921
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
3922
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3677
3923
  let params = (paramsOrCallback ||
3678
3924
  {}) as Params$Resource$Projects$Instanceconfigs$Operations$Delete;
3679
3925
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3726,11 +3972,11 @@ export namespace spanner_v1 {
3726
3972
  get(
3727
3973
  params: Params$Resource$Projects$Instanceconfigs$Operations$Get,
3728
3974
  options: StreamMethodOptions
3729
- ): GaxiosPromise<Readable>;
3975
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3730
3976
  get(
3731
3977
  params?: Params$Resource$Projects$Instanceconfigs$Operations$Get,
3732
3978
  options?: MethodOptions
3733
- ): GaxiosPromise<Schema$Operation>;
3979
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3734
3980
  get(
3735
3981
  params: Params$Resource$Projects$Instanceconfigs$Operations$Get,
3736
3982
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3759,7 +4005,10 @@ export namespace spanner_v1 {
3759
4005
  callback?:
3760
4006
  | BodyResponseCallback<Schema$Operation>
3761
4007
  | BodyResponseCallback<Readable>
3762
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
4008
+ ):
4009
+ | void
4010
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
4011
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3763
4012
  let params = (paramsOrCallback ||
3764
4013
  {}) as Params$Resource$Projects$Instanceconfigs$Operations$Get;
3765
4014
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3811,11 +4060,11 @@ export namespace spanner_v1 {
3811
4060
  list(
3812
4061
  params: Params$Resource$Projects$Instanceconfigs$Operations$List,
3813
4062
  options: StreamMethodOptions
3814
- ): GaxiosPromise<Readable>;
4063
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3815
4064
  list(
3816
4065
  params?: Params$Resource$Projects$Instanceconfigs$Operations$List,
3817
4066
  options?: MethodOptions
3818
- ): GaxiosPromise<Schema$ListOperationsResponse>;
4067
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>;
3819
4068
  list(
3820
4069
  params: Params$Resource$Projects$Instanceconfigs$Operations$List,
3821
4070
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3848,8 +4097,8 @@ export namespace spanner_v1 {
3848
4097
  | BodyResponseCallback<Readable>
3849
4098
  ):
3850
4099
  | void
3851
- | GaxiosPromise<Schema$ListOperationsResponse>
3852
- | GaxiosPromise<Readable> {
4100
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>
4101
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3853
4102
  let params = (paramsOrCallback ||
3854
4103
  {}) as Params$Resource$Projects$Instanceconfigs$Operations$List;
3855
4104
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3951,7 +4200,7 @@ export namespace spanner_v1 {
3951
4200
  }
3952
4201
 
3953
4202
  /**
3954
- * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
4203
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
3955
4204
  *
3956
4205
  * @param params - Parameters for request
3957
4206
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3961,11 +4210,11 @@ export namespace spanner_v1 {
3961
4210
  cancel(
3962
4211
  params: Params$Resource$Projects$Instanceconfigs$Ssdcaches$Operations$Cancel,
3963
4212
  options: StreamMethodOptions
3964
- ): GaxiosPromise<Readable>;
4213
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3965
4214
  cancel(
3966
4215
  params?: Params$Resource$Projects$Instanceconfigs$Ssdcaches$Operations$Cancel,
3967
4216
  options?: MethodOptions
3968
- ): GaxiosPromise<Schema$Empty>;
4217
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
3969
4218
  cancel(
3970
4219
  params: Params$Resource$Projects$Instanceconfigs$Ssdcaches$Operations$Cancel,
3971
4220
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3994,7 +4243,10 @@ export namespace spanner_v1 {
3994
4243
  callback?:
3995
4244
  | BodyResponseCallback<Schema$Empty>
3996
4245
  | BodyResponseCallback<Readable>
3997
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
4246
+ ):
4247
+ | void
4248
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
4249
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3998
4250
  let params = (paramsOrCallback ||
3999
4251
  {}) as Params$Resource$Projects$Instanceconfigs$Ssdcaches$Operations$Cancel;
4000
4252
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4047,11 +4299,11 @@ export namespace spanner_v1 {
4047
4299
  delete(
4048
4300
  params: Params$Resource$Projects$Instanceconfigs$Ssdcaches$Operations$Delete,
4049
4301
  options: StreamMethodOptions
4050
- ): GaxiosPromise<Readable>;
4302
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4051
4303
  delete(
4052
4304
  params?: Params$Resource$Projects$Instanceconfigs$Ssdcaches$Operations$Delete,
4053
4305
  options?: MethodOptions
4054
- ): GaxiosPromise<Schema$Empty>;
4306
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
4055
4307
  delete(
4056
4308
  params: Params$Resource$Projects$Instanceconfigs$Ssdcaches$Operations$Delete,
4057
4309
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4080,7 +4332,10 @@ export namespace spanner_v1 {
4080
4332
  callback?:
4081
4333
  | BodyResponseCallback<Schema$Empty>
4082
4334
  | BodyResponseCallback<Readable>
4083
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
4335
+ ):
4336
+ | void
4337
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
4338
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4084
4339
  let params = (paramsOrCallback ||
4085
4340
  {}) as Params$Resource$Projects$Instanceconfigs$Ssdcaches$Operations$Delete;
4086
4341
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4133,11 +4388,11 @@ export namespace spanner_v1 {
4133
4388
  get(
4134
4389
  params: Params$Resource$Projects$Instanceconfigs$Ssdcaches$Operations$Get,
4135
4390
  options: StreamMethodOptions
4136
- ): GaxiosPromise<Readable>;
4391
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4137
4392
  get(
4138
4393
  params?: Params$Resource$Projects$Instanceconfigs$Ssdcaches$Operations$Get,
4139
4394
  options?: MethodOptions
4140
- ): GaxiosPromise<Schema$Operation>;
4395
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4141
4396
  get(
4142
4397
  params: Params$Resource$Projects$Instanceconfigs$Ssdcaches$Operations$Get,
4143
4398
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4166,7 +4421,10 @@ export namespace spanner_v1 {
4166
4421
  callback?:
4167
4422
  | BodyResponseCallback<Schema$Operation>
4168
4423
  | BodyResponseCallback<Readable>
4169
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
4424
+ ):
4425
+ | void
4426
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
4427
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4170
4428
  let params = (paramsOrCallback ||
4171
4429
  {}) as Params$Resource$Projects$Instanceconfigs$Ssdcaches$Operations$Get;
4172
4430
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4219,11 +4477,11 @@ export namespace spanner_v1 {
4219
4477
  list(
4220
4478
  params: Params$Resource$Projects$Instanceconfigs$Ssdcaches$Operations$List,
4221
4479
  options: StreamMethodOptions
4222
- ): GaxiosPromise<Readable>;
4480
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4223
4481
  list(
4224
4482
  params?: Params$Resource$Projects$Instanceconfigs$Ssdcaches$Operations$List,
4225
4483
  options?: MethodOptions
4226
- ): GaxiosPromise<Schema$ListOperationsResponse>;
4484
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>;
4227
4485
  list(
4228
4486
  params: Params$Resource$Projects$Instanceconfigs$Ssdcaches$Operations$List,
4229
4487
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4256,8 +4514,8 @@ export namespace spanner_v1 {
4256
4514
  | BodyResponseCallback<Readable>
4257
4515
  ):
4258
4516
  | void
4259
- | GaxiosPromise<Schema$ListOperationsResponse>
4260
- | GaxiosPromise<Readable> {
4517
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>
4518
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4261
4519
  let params = (paramsOrCallback ||
4262
4520
  {}) as Params$Resource$Projects$Instanceconfigs$Ssdcaches$Operations$List;
4263
4521
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4381,11 +4639,11 @@ export namespace spanner_v1 {
4381
4639
  create(
4382
4640
  params: Params$Resource$Projects$Instances$Create,
4383
4641
  options: StreamMethodOptions
4384
- ): GaxiosPromise<Readable>;
4642
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4385
4643
  create(
4386
4644
  params?: Params$Resource$Projects$Instances$Create,
4387
4645
  options?: MethodOptions
4388
- ): GaxiosPromise<Schema$Operation>;
4646
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4389
4647
  create(
4390
4648
  params: Params$Resource$Projects$Instances$Create,
4391
4649
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4414,7 +4672,10 @@ export namespace spanner_v1 {
4414
4672
  callback?:
4415
4673
  | BodyResponseCallback<Schema$Operation>
4416
4674
  | BodyResponseCallback<Readable>
4417
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
4675
+ ):
4676
+ | void
4677
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
4678
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4418
4679
  let params = (paramsOrCallback ||
4419
4680
  {}) as Params$Resource$Projects$Instances$Create;
4420
4681
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4469,11 +4730,11 @@ export namespace spanner_v1 {
4469
4730
  delete(
4470
4731
  params: Params$Resource$Projects$Instances$Delete,
4471
4732
  options: StreamMethodOptions
4472
- ): GaxiosPromise<Readable>;
4733
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4473
4734
  delete(
4474
4735
  params?: Params$Resource$Projects$Instances$Delete,
4475
4736
  options?: MethodOptions
4476
- ): GaxiosPromise<Schema$Empty>;
4737
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
4477
4738
  delete(
4478
4739
  params: Params$Resource$Projects$Instances$Delete,
4479
4740
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4502,7 +4763,10 @@ export namespace spanner_v1 {
4502
4763
  callback?:
4503
4764
  | BodyResponseCallback<Schema$Empty>
4504
4765
  | BodyResponseCallback<Readable>
4505
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
4766
+ ):
4767
+ | void
4768
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
4769
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4506
4770
  let params = (paramsOrCallback ||
4507
4771
  {}) as Params$Resource$Projects$Instances$Delete;
4508
4772
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4554,11 +4818,11 @@ export namespace spanner_v1 {
4554
4818
  get(
4555
4819
  params: Params$Resource$Projects$Instances$Get,
4556
4820
  options: StreamMethodOptions
4557
- ): GaxiosPromise<Readable>;
4821
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4558
4822
  get(
4559
4823
  params?: Params$Resource$Projects$Instances$Get,
4560
4824
  options?: MethodOptions
4561
- ): GaxiosPromise<Schema$Instance>;
4825
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Instance>>;
4562
4826
  get(
4563
4827
  params: Params$Resource$Projects$Instances$Get,
4564
4828
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4587,7 +4851,10 @@ export namespace spanner_v1 {
4587
4851
  callback?:
4588
4852
  | BodyResponseCallback<Schema$Instance>
4589
4853
  | BodyResponseCallback<Readable>
4590
- ): void | GaxiosPromise<Schema$Instance> | GaxiosPromise<Readable> {
4854
+ ):
4855
+ | void
4856
+ | Promise<GaxiosResponseWithHTTP2<Schema$Instance>>
4857
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4591
4858
  let params = (paramsOrCallback ||
4592
4859
  {}) as Params$Resource$Projects$Instances$Get;
4593
4860
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4639,11 +4906,11 @@ export namespace spanner_v1 {
4639
4906
  getIamPolicy(
4640
4907
  params: Params$Resource$Projects$Instances$Getiampolicy,
4641
4908
  options: StreamMethodOptions
4642
- ): GaxiosPromise<Readable>;
4909
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4643
4910
  getIamPolicy(
4644
4911
  params?: Params$Resource$Projects$Instances$Getiampolicy,
4645
4912
  options?: MethodOptions
4646
- ): GaxiosPromise<Schema$Policy>;
4913
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
4647
4914
  getIamPolicy(
4648
4915
  params: Params$Resource$Projects$Instances$Getiampolicy,
4649
4916
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4672,7 +4939,10 @@ export namespace spanner_v1 {
4672
4939
  callback?:
4673
4940
  | BodyResponseCallback<Schema$Policy>
4674
4941
  | BodyResponseCallback<Readable>
4675
- ): void | GaxiosPromise<Schema$Policy> | GaxiosPromise<Readable> {
4942
+ ):
4943
+ | void
4944
+ | Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
4945
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4676
4946
  let params = (paramsOrCallback ||
4677
4947
  {}) as Params$Resource$Projects$Instances$Getiampolicy;
4678
4948
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4727,11 +4997,11 @@ export namespace spanner_v1 {
4727
4997
  list(
4728
4998
  params: Params$Resource$Projects$Instances$List,
4729
4999
  options: StreamMethodOptions
4730
- ): GaxiosPromise<Readable>;
5000
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4731
5001
  list(
4732
5002
  params?: Params$Resource$Projects$Instances$List,
4733
5003
  options?: MethodOptions
4734
- ): GaxiosPromise<Schema$ListInstancesResponse>;
5004
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListInstancesResponse>>;
4735
5005
  list(
4736
5006
  params: Params$Resource$Projects$Instances$List,
4737
5007
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4764,8 +5034,8 @@ export namespace spanner_v1 {
4764
5034
  | BodyResponseCallback<Readable>
4765
5035
  ):
4766
5036
  | void
4767
- | GaxiosPromise<Schema$ListInstancesResponse>
4768
- | GaxiosPromise<Readable> {
5037
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListInstancesResponse>>
5038
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4769
5039
  let params = (paramsOrCallback ||
4770
5040
  {}) as Params$Resource$Projects$Instances$List;
4771
5041
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4820,11 +5090,11 @@ export namespace spanner_v1 {
4820
5090
  move(
4821
5091
  params: Params$Resource$Projects$Instances$Move,
4822
5092
  options: StreamMethodOptions
4823
- ): GaxiosPromise<Readable>;
5093
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4824
5094
  move(
4825
5095
  params?: Params$Resource$Projects$Instances$Move,
4826
5096
  options?: MethodOptions
4827
- ): GaxiosPromise<Schema$Operation>;
5097
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4828
5098
  move(
4829
5099
  params: Params$Resource$Projects$Instances$Move,
4830
5100
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4853,7 +5123,10 @@ export namespace spanner_v1 {
4853
5123
  callback?:
4854
5124
  | BodyResponseCallback<Schema$Operation>
4855
5125
  | BodyResponseCallback<Readable>
4856
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
5126
+ ):
5127
+ | void
5128
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5129
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4857
5130
  let params = (paramsOrCallback ||
4858
5131
  {}) as Params$Resource$Projects$Instances$Move;
4859
5132
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4905,11 +5178,11 @@ export namespace spanner_v1 {
4905
5178
  patch(
4906
5179
  params: Params$Resource$Projects$Instances$Patch,
4907
5180
  options: StreamMethodOptions
4908
- ): GaxiosPromise<Readable>;
5181
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4909
5182
  patch(
4910
5183
  params?: Params$Resource$Projects$Instances$Patch,
4911
5184
  options?: MethodOptions
4912
- ): GaxiosPromise<Schema$Operation>;
5185
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4913
5186
  patch(
4914
5187
  params: Params$Resource$Projects$Instances$Patch,
4915
5188
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4938,7 +5211,10 @@ export namespace spanner_v1 {
4938
5211
  callback?:
4939
5212
  | BodyResponseCallback<Schema$Operation>
4940
5213
  | BodyResponseCallback<Readable>
4941
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
5214
+ ):
5215
+ | void
5216
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5217
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4942
5218
  let params = (paramsOrCallback ||
4943
5219
  {}) as Params$Resource$Projects$Instances$Patch;
4944
5220
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4990,11 +5266,11 @@ export namespace spanner_v1 {
4990
5266
  setIamPolicy(
4991
5267
  params: Params$Resource$Projects$Instances$Setiampolicy,
4992
5268
  options: StreamMethodOptions
4993
- ): GaxiosPromise<Readable>;
5269
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4994
5270
  setIamPolicy(
4995
5271
  params?: Params$Resource$Projects$Instances$Setiampolicy,
4996
5272
  options?: MethodOptions
4997
- ): GaxiosPromise<Schema$Policy>;
5273
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
4998
5274
  setIamPolicy(
4999
5275
  params: Params$Resource$Projects$Instances$Setiampolicy,
5000
5276
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5023,7 +5299,10 @@ export namespace spanner_v1 {
5023
5299
  callback?:
5024
5300
  | BodyResponseCallback<Schema$Policy>
5025
5301
  | BodyResponseCallback<Readable>
5026
- ): void | GaxiosPromise<Schema$Policy> | GaxiosPromise<Readable> {
5302
+ ):
5303
+ | void
5304
+ | Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
5305
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5027
5306
  let params = (paramsOrCallback ||
5028
5307
  {}) as Params$Resource$Projects$Instances$Setiampolicy;
5029
5308
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5078,11 +5357,11 @@ export namespace spanner_v1 {
5078
5357
  testIamPermissions(
5079
5358
  params: Params$Resource$Projects$Instances$Testiampermissions,
5080
5359
  options: StreamMethodOptions
5081
- ): GaxiosPromise<Readable>;
5360
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5082
5361
  testIamPermissions(
5083
5362
  params?: Params$Resource$Projects$Instances$Testiampermissions,
5084
5363
  options?: MethodOptions
5085
- ): GaxiosPromise<Schema$TestIamPermissionsResponse>;
5364
+ ): Promise<GaxiosResponseWithHTTP2<Schema$TestIamPermissionsResponse>>;
5086
5365
  testIamPermissions(
5087
5366
  params: Params$Resource$Projects$Instances$Testiampermissions,
5088
5367
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5117,8 +5396,8 @@ export namespace spanner_v1 {
5117
5396
  | BodyResponseCallback<Readable>
5118
5397
  ):
5119
5398
  | void
5120
- | GaxiosPromise<Schema$TestIamPermissionsResponse>
5121
- | GaxiosPromise<Readable> {
5399
+ | Promise<GaxiosResponseWithHTTP2<Schema$TestIamPermissionsResponse>>
5400
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5122
5401
  let params = (paramsOrCallback ||
5123
5402
  {}) as Params$Resource$Projects$Instances$Testiampermissions;
5124
5403
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5294,11 +5573,11 @@ export namespace spanner_v1 {
5294
5573
  list(
5295
5574
  params: Params$Resource$Projects$Instances$Backupoperations$List,
5296
5575
  options: StreamMethodOptions
5297
- ): GaxiosPromise<Readable>;
5576
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5298
5577
  list(
5299
5578
  params?: Params$Resource$Projects$Instances$Backupoperations$List,
5300
5579
  options?: MethodOptions
5301
- ): GaxiosPromise<Schema$ListBackupOperationsResponse>;
5580
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListBackupOperationsResponse>>;
5302
5581
  list(
5303
5582
  params: Params$Resource$Projects$Instances$Backupoperations$List,
5304
5583
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5333,8 +5612,8 @@ export namespace spanner_v1 {
5333
5612
  | BodyResponseCallback<Readable>
5334
5613
  ):
5335
5614
  | void
5336
- | GaxiosPromise<Schema$ListBackupOperationsResponse>
5337
- | GaxiosPromise<Readable> {
5615
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListBackupOperationsResponse>>
5616
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5338
5617
  let params = (paramsOrCallback ||
5339
5618
  {}) as Params$Resource$Projects$Instances$Backupoperations$List;
5340
5619
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5422,11 +5701,11 @@ export namespace spanner_v1 {
5422
5701
  copy(
5423
5702
  params: Params$Resource$Projects$Instances$Backups$Copy,
5424
5703
  options: StreamMethodOptions
5425
- ): GaxiosPromise<Readable>;
5704
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5426
5705
  copy(
5427
5706
  params?: Params$Resource$Projects$Instances$Backups$Copy,
5428
5707
  options?: MethodOptions
5429
- ): GaxiosPromise<Schema$Operation>;
5708
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5430
5709
  copy(
5431
5710
  params: Params$Resource$Projects$Instances$Backups$Copy,
5432
5711
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5455,7 +5734,10 @@ export namespace spanner_v1 {
5455
5734
  callback?:
5456
5735
  | BodyResponseCallback<Schema$Operation>
5457
5736
  | BodyResponseCallback<Readable>
5458
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
5737
+ ):
5738
+ | void
5739
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5740
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5459
5741
  let params = (paramsOrCallback ||
5460
5742
  {}) as Params$Resource$Projects$Instances$Backups$Copy;
5461
5743
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5510,11 +5792,11 @@ export namespace spanner_v1 {
5510
5792
  create(
5511
5793
  params: Params$Resource$Projects$Instances$Backups$Create,
5512
5794
  options: StreamMethodOptions
5513
- ): GaxiosPromise<Readable>;
5795
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5514
5796
  create(
5515
5797
  params?: Params$Resource$Projects$Instances$Backups$Create,
5516
5798
  options?: MethodOptions
5517
- ): GaxiosPromise<Schema$Operation>;
5799
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5518
5800
  create(
5519
5801
  params: Params$Resource$Projects$Instances$Backups$Create,
5520
5802
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5543,7 +5825,10 @@ export namespace spanner_v1 {
5543
5825
  callback?:
5544
5826
  | BodyResponseCallback<Schema$Operation>
5545
5827
  | BodyResponseCallback<Readable>
5546
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
5828
+ ):
5829
+ | void
5830
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5831
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5547
5832
  let params = (paramsOrCallback ||
5548
5833
  {}) as Params$Resource$Projects$Instances$Backups$Create;
5549
5834
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5598,11 +5883,11 @@ export namespace spanner_v1 {
5598
5883
  delete(
5599
5884
  params: Params$Resource$Projects$Instances$Backups$Delete,
5600
5885
  options: StreamMethodOptions
5601
- ): GaxiosPromise<Readable>;
5886
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5602
5887
  delete(
5603
5888
  params?: Params$Resource$Projects$Instances$Backups$Delete,
5604
5889
  options?: MethodOptions
5605
- ): GaxiosPromise<Schema$Empty>;
5890
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
5606
5891
  delete(
5607
5892
  params: Params$Resource$Projects$Instances$Backups$Delete,
5608
5893
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5631,7 +5916,10 @@ export namespace spanner_v1 {
5631
5916
  callback?:
5632
5917
  | BodyResponseCallback<Schema$Empty>
5633
5918
  | BodyResponseCallback<Readable>
5634
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
5919
+ ):
5920
+ | void
5921
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
5922
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5635
5923
  let params = (paramsOrCallback ||
5636
5924
  {}) as Params$Resource$Projects$Instances$Backups$Delete;
5637
5925
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5683,11 +5971,11 @@ export namespace spanner_v1 {
5683
5971
  get(
5684
5972
  params: Params$Resource$Projects$Instances$Backups$Get,
5685
5973
  options: StreamMethodOptions
5686
- ): GaxiosPromise<Readable>;
5974
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5687
5975
  get(
5688
5976
  params?: Params$Resource$Projects$Instances$Backups$Get,
5689
5977
  options?: MethodOptions
5690
- ): GaxiosPromise<Schema$Backup>;
5978
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Backup>>;
5691
5979
  get(
5692
5980
  params: Params$Resource$Projects$Instances$Backups$Get,
5693
5981
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5716,7 +6004,10 @@ export namespace spanner_v1 {
5716
6004
  callback?:
5717
6005
  | BodyResponseCallback<Schema$Backup>
5718
6006
  | BodyResponseCallback<Readable>
5719
- ): void | GaxiosPromise<Schema$Backup> | GaxiosPromise<Readable> {
6007
+ ):
6008
+ | void
6009
+ | Promise<GaxiosResponseWithHTTP2<Schema$Backup>>
6010
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5720
6011
  let params = (paramsOrCallback ||
5721
6012
  {}) as Params$Resource$Projects$Instances$Backups$Get;
5722
6013
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5758,7 +6049,7 @@ export namespace spanner_v1 {
5758
6049
  }
5759
6050
 
5760
6051
  /**
5761
- * 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.
6052
+ * 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. For backup schedules, authorization requires `spanner.backupSchedules.getIamPolicy` permission on resource.
5762
6053
  *
5763
6054
  * @param params - Parameters for request
5764
6055
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5768,11 +6059,11 @@ export namespace spanner_v1 {
5768
6059
  getIamPolicy(
5769
6060
  params: Params$Resource$Projects$Instances$Backups$Getiampolicy,
5770
6061
  options: StreamMethodOptions
5771
- ): GaxiosPromise<Readable>;
6062
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5772
6063
  getIamPolicy(
5773
6064
  params?: Params$Resource$Projects$Instances$Backups$Getiampolicy,
5774
6065
  options?: MethodOptions
5775
- ): GaxiosPromise<Schema$Policy>;
6066
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
5776
6067
  getIamPolicy(
5777
6068
  params: Params$Resource$Projects$Instances$Backups$Getiampolicy,
5778
6069
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5801,7 +6092,10 @@ export namespace spanner_v1 {
5801
6092
  callback?:
5802
6093
  | BodyResponseCallback<Schema$Policy>
5803
6094
  | BodyResponseCallback<Readable>
5804
- ): void | GaxiosPromise<Schema$Policy> | GaxiosPromise<Readable> {
6095
+ ):
6096
+ | void
6097
+ | Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
6098
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5805
6099
  let params = (paramsOrCallback ||
5806
6100
  {}) as Params$Resource$Projects$Instances$Backups$Getiampolicy;
5807
6101
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5856,11 +6150,11 @@ export namespace spanner_v1 {
5856
6150
  list(
5857
6151
  params: Params$Resource$Projects$Instances$Backups$List,
5858
6152
  options: StreamMethodOptions
5859
- ): GaxiosPromise<Readable>;
6153
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5860
6154
  list(
5861
6155
  params?: Params$Resource$Projects$Instances$Backups$List,
5862
6156
  options?: MethodOptions
5863
- ): GaxiosPromise<Schema$ListBackupsResponse>;
6157
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListBackupsResponse>>;
5864
6158
  list(
5865
6159
  params: Params$Resource$Projects$Instances$Backups$List,
5866
6160
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5891,8 +6185,8 @@ export namespace spanner_v1 {
5891
6185
  | BodyResponseCallback<Readable>
5892
6186
  ):
5893
6187
  | void
5894
- | GaxiosPromise<Schema$ListBackupsResponse>
5895
- | GaxiosPromise<Readable> {
6188
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListBackupsResponse>>
6189
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5896
6190
  let params = (paramsOrCallback ||
5897
6191
  {}) as Params$Resource$Projects$Instances$Backups$List;
5898
6192
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5947,11 +6241,11 @@ export namespace spanner_v1 {
5947
6241
  patch(
5948
6242
  params: Params$Resource$Projects$Instances$Backups$Patch,
5949
6243
  options: StreamMethodOptions
5950
- ): GaxiosPromise<Readable>;
6244
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5951
6245
  patch(
5952
6246
  params?: Params$Resource$Projects$Instances$Backups$Patch,
5953
6247
  options?: MethodOptions
5954
- ): GaxiosPromise<Schema$Backup>;
6248
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Backup>>;
5955
6249
  patch(
5956
6250
  params: Params$Resource$Projects$Instances$Backups$Patch,
5957
6251
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5980,7 +6274,10 @@ export namespace spanner_v1 {
5980
6274
  callback?:
5981
6275
  | BodyResponseCallback<Schema$Backup>
5982
6276
  | BodyResponseCallback<Readable>
5983
- ): void | GaxiosPromise<Schema$Backup> | GaxiosPromise<Readable> {
6277
+ ):
6278
+ | void
6279
+ | Promise<GaxiosResponseWithHTTP2<Schema$Backup>>
6280
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5984
6281
  let params = (paramsOrCallback ||
5985
6282
  {}) as Params$Resource$Projects$Instances$Backups$Patch;
5986
6283
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6022,7 +6319,7 @@ export namespace spanner_v1 {
6022
6319
  }
6023
6320
 
6024
6321
  /**
6025
- * 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.
6322
+ * 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. For backup schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on resource.
6026
6323
  *
6027
6324
  * @param params - Parameters for request
6028
6325
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6032,11 +6329,11 @@ export namespace spanner_v1 {
6032
6329
  setIamPolicy(
6033
6330
  params: Params$Resource$Projects$Instances$Backups$Setiampolicy,
6034
6331
  options: StreamMethodOptions
6035
- ): GaxiosPromise<Readable>;
6332
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6036
6333
  setIamPolicy(
6037
6334
  params?: Params$Resource$Projects$Instances$Backups$Setiampolicy,
6038
6335
  options?: MethodOptions
6039
- ): GaxiosPromise<Schema$Policy>;
6336
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
6040
6337
  setIamPolicy(
6041
6338
  params: Params$Resource$Projects$Instances$Backups$Setiampolicy,
6042
6339
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6065,7 +6362,10 @@ export namespace spanner_v1 {
6065
6362
  callback?:
6066
6363
  | BodyResponseCallback<Schema$Policy>
6067
6364
  | BodyResponseCallback<Readable>
6068
- ): void | GaxiosPromise<Schema$Policy> | GaxiosPromise<Readable> {
6365
+ ):
6366
+ | void
6367
+ | Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
6368
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6069
6369
  let params = (paramsOrCallback ||
6070
6370
  {}) as Params$Resource$Projects$Instances$Backups$Setiampolicy;
6071
6371
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6110,7 +6410,7 @@ export namespace spanner_v1 {
6110
6410
  }
6111
6411
 
6112
6412
  /**
6113
- * 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.
6413
+ * 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. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND error if the user has `spanner.backupSchedules.list` permission on the containing database.
6114
6414
  *
6115
6415
  * @param params - Parameters for request
6116
6416
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6120,11 +6420,11 @@ export namespace spanner_v1 {
6120
6420
  testIamPermissions(
6121
6421
  params: Params$Resource$Projects$Instances$Backups$Testiampermissions,
6122
6422
  options: StreamMethodOptions
6123
- ): GaxiosPromise<Readable>;
6423
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6124
6424
  testIamPermissions(
6125
6425
  params?: Params$Resource$Projects$Instances$Backups$Testiampermissions,
6126
6426
  options?: MethodOptions
6127
- ): GaxiosPromise<Schema$TestIamPermissionsResponse>;
6427
+ ): Promise<GaxiosResponseWithHTTP2<Schema$TestIamPermissionsResponse>>;
6128
6428
  testIamPermissions(
6129
6429
  params: Params$Resource$Projects$Instances$Backups$Testiampermissions,
6130
6430
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6159,8 +6459,8 @@ export namespace spanner_v1 {
6159
6459
  | BodyResponseCallback<Readable>
6160
6460
  ):
6161
6461
  | void
6162
- | GaxiosPromise<Schema$TestIamPermissionsResponse>
6163
- | GaxiosPromise<Readable> {
6462
+ | Promise<GaxiosResponseWithHTTP2<Schema$TestIamPermissionsResponse>>
6463
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6164
6464
  let params = (paramsOrCallback ||
6165
6465
  {}) as Params$Resource$Projects$Instances$Backups$Testiampermissions;
6166
6466
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6233,7 +6533,7 @@ export namespace spanner_v1 {
6233
6533
  */
6234
6534
  'encryptionConfig.kmsKeyName'?: string;
6235
6535
  /**
6236
- * 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.
6536
+ * 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.
6237
6537
  */
6238
6538
  'encryptionConfig.kmsKeyNames'?: string[];
6239
6539
  /**
@@ -6339,7 +6639,7 @@ export namespace spanner_v1 {
6339
6639
  }
6340
6640
 
6341
6641
  /**
6342
- * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
6642
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
6343
6643
  *
6344
6644
  * @param params - Parameters for request
6345
6645
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6349,11 +6649,11 @@ export namespace spanner_v1 {
6349
6649
  cancel(
6350
6650
  params: Params$Resource$Projects$Instances$Backups$Operations$Cancel,
6351
6651
  options: StreamMethodOptions
6352
- ): GaxiosPromise<Readable>;
6652
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6353
6653
  cancel(
6354
6654
  params?: Params$Resource$Projects$Instances$Backups$Operations$Cancel,
6355
6655
  options?: MethodOptions
6356
- ): GaxiosPromise<Schema$Empty>;
6656
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
6357
6657
  cancel(
6358
6658
  params: Params$Resource$Projects$Instances$Backups$Operations$Cancel,
6359
6659
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6382,7 +6682,10 @@ export namespace spanner_v1 {
6382
6682
  callback?:
6383
6683
  | BodyResponseCallback<Schema$Empty>
6384
6684
  | BodyResponseCallback<Readable>
6385
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
6685
+ ):
6686
+ | void
6687
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
6688
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6386
6689
  let params = (paramsOrCallback ||
6387
6690
  {}) as Params$Resource$Projects$Instances$Backups$Operations$Cancel;
6388
6691
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6435,11 +6738,11 @@ export namespace spanner_v1 {
6435
6738
  delete(
6436
6739
  params: Params$Resource$Projects$Instances$Backups$Operations$Delete,
6437
6740
  options: StreamMethodOptions
6438
- ): GaxiosPromise<Readable>;
6741
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6439
6742
  delete(
6440
6743
  params?: Params$Resource$Projects$Instances$Backups$Operations$Delete,
6441
6744
  options?: MethodOptions
6442
- ): GaxiosPromise<Schema$Empty>;
6745
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
6443
6746
  delete(
6444
6747
  params: Params$Resource$Projects$Instances$Backups$Operations$Delete,
6445
6748
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6468,7 +6771,10 @@ export namespace spanner_v1 {
6468
6771
  callback?:
6469
6772
  | BodyResponseCallback<Schema$Empty>
6470
6773
  | BodyResponseCallback<Readable>
6471
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
6774
+ ):
6775
+ | void
6776
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
6777
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6472
6778
  let params = (paramsOrCallback ||
6473
6779
  {}) as Params$Resource$Projects$Instances$Backups$Operations$Delete;
6474
6780
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6521,11 +6827,11 @@ export namespace spanner_v1 {
6521
6827
  get(
6522
6828
  params: Params$Resource$Projects$Instances$Backups$Operations$Get,
6523
6829
  options: StreamMethodOptions
6524
- ): GaxiosPromise<Readable>;
6830
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6525
6831
  get(
6526
6832
  params?: Params$Resource$Projects$Instances$Backups$Operations$Get,
6527
6833
  options?: MethodOptions
6528
- ): GaxiosPromise<Schema$Operation>;
6834
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6529
6835
  get(
6530
6836
  params: Params$Resource$Projects$Instances$Backups$Operations$Get,
6531
6837
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6554,7 +6860,10 @@ export namespace spanner_v1 {
6554
6860
  callback?:
6555
6861
  | BodyResponseCallback<Schema$Operation>
6556
6862
  | BodyResponseCallback<Readable>
6557
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
6863
+ ):
6864
+ | void
6865
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
6866
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6558
6867
  let params = (paramsOrCallback ||
6559
6868
  {}) as Params$Resource$Projects$Instances$Backups$Operations$Get;
6560
6869
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6607,11 +6916,11 @@ export namespace spanner_v1 {
6607
6916
  list(
6608
6917
  params: Params$Resource$Projects$Instances$Backups$Operations$List,
6609
6918
  options: StreamMethodOptions
6610
- ): GaxiosPromise<Readable>;
6919
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6611
6920
  list(
6612
6921
  params?: Params$Resource$Projects$Instances$Backups$Operations$List,
6613
6922
  options?: MethodOptions
6614
- ): GaxiosPromise<Schema$ListOperationsResponse>;
6923
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>;
6615
6924
  list(
6616
6925
  params: Params$Resource$Projects$Instances$Backups$Operations$List,
6617
6926
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6644,8 +6953,8 @@ export namespace spanner_v1 {
6644
6953
  | BodyResponseCallback<Readable>
6645
6954
  ):
6646
6955
  | void
6647
- | GaxiosPromise<Schema$ListOperationsResponse>
6648
- | GaxiosPromise<Readable> {
6956
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>
6957
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6649
6958
  let params = (paramsOrCallback ||
6650
6959
  {}) as Params$Resource$Projects$Instances$Backups$Operations$List;
6651
6960
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6746,11 +7055,11 @@ export namespace spanner_v1 {
6746
7055
  list(
6747
7056
  params: Params$Resource$Projects$Instances$Databaseoperations$List,
6748
7057
  options: StreamMethodOptions
6749
- ): GaxiosPromise<Readable>;
7058
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6750
7059
  list(
6751
7060
  params?: Params$Resource$Projects$Instances$Databaseoperations$List,
6752
7061
  options?: MethodOptions
6753
- ): GaxiosPromise<Schema$ListDatabaseOperationsResponse>;
7062
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListDatabaseOperationsResponse>>;
6754
7063
  list(
6755
7064
  params: Params$Resource$Projects$Instances$Databaseoperations$List,
6756
7065
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6785,8 +7094,8 @@ export namespace spanner_v1 {
6785
7094
  | BodyResponseCallback<Readable>
6786
7095
  ):
6787
7096
  | void
6788
- | GaxiosPromise<Schema$ListDatabaseOperationsResponse>
6789
- | GaxiosPromise<Readable> {
7097
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListDatabaseOperationsResponse>>
7098
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6790
7099
  let params = (paramsOrCallback ||
6791
7100
  {}) as Params$Resource$Projects$Instances$Databaseoperations$List;
6792
7101
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6837,7 +7146,7 @@ export namespace spanner_v1 {
6837
7146
  export interface Params$Resource$Projects$Instances$Databaseoperations$List
6838
7147
  extends StandardParameters {
6839
7148
  /**
6840
- * 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 RestoreDatabaseMetadata is `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`. * `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.database.v1.RestoreDatabaseMetadata) AND` \ `(metadata.source_type:BACKUP) AND` \ `(metadata.backup_info.backup:backup_howl) AND` \ `(metadata.name:restored_howl) AND` \ `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \ `(error:*)` - Return operations where: * The operation's metadata type is RestoreDatabaseMetadata. * The database is restored from a backup. * The backup name contains "backup_howl". * The restored database's name contains "restored_howl". * The operation started before 2018-03-28T14:50:00Z. * The operation resulted in an error.
7149
+ * 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 RestoreDatabaseMetadata is `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`. * `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.database.v1.RestoreDatabaseMetadata) AND` \ `(metadata.source_type:BACKUP) AND` \ `(metadata.backup_info.backup:backup_howl) AND` \ `(metadata.name:restored_howl) AND` \ `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \ `(error:*)` - Return operations where: * The operation's metadata type is RestoreDatabaseMetadata. * The database is restored from a backup. * The backup name contains "backup_howl". * The restored database's name contains "restored_howl". * The operation started before 2018-03-28T14:50:00Z. * The operation resulted in an error.
6841
7150
  */
6842
7151
  filter?: string;
6843
7152
  /**
@@ -6874,6 +7183,102 @@ export namespace spanner_v1 {
6874
7183
  );
6875
7184
  }
6876
7185
 
7186
+ /**
7187
+ * Adds split points to specified tables, indexes of a database.
7188
+ *
7189
+ * @param params - Parameters for request
7190
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7191
+ * @param callback - Optional callback that handles the response.
7192
+ * @returns A promise if used with async/await, or void if used with a callback.
7193
+ */
7194
+ addSplitPoints(
7195
+ params: Params$Resource$Projects$Instances$Databases$Addsplitpoints,
7196
+ options: StreamMethodOptions
7197
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7198
+ addSplitPoints(
7199
+ params?: Params$Resource$Projects$Instances$Databases$Addsplitpoints,
7200
+ options?: MethodOptions
7201
+ ): Promise<GaxiosResponseWithHTTP2<Schema$AddSplitPointsResponse>>;
7202
+ addSplitPoints(
7203
+ params: Params$Resource$Projects$Instances$Databases$Addsplitpoints,
7204
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7205
+ callback: BodyResponseCallback<Readable>
7206
+ ): void;
7207
+ addSplitPoints(
7208
+ params: Params$Resource$Projects$Instances$Databases$Addsplitpoints,
7209
+ options:
7210
+ | MethodOptions
7211
+ | BodyResponseCallback<Schema$AddSplitPointsResponse>,
7212
+ callback: BodyResponseCallback<Schema$AddSplitPointsResponse>
7213
+ ): void;
7214
+ addSplitPoints(
7215
+ params: Params$Resource$Projects$Instances$Databases$Addsplitpoints,
7216
+ callback: BodyResponseCallback<Schema$AddSplitPointsResponse>
7217
+ ): void;
7218
+ addSplitPoints(
7219
+ callback: BodyResponseCallback<Schema$AddSplitPointsResponse>
7220
+ ): void;
7221
+ addSplitPoints(
7222
+ paramsOrCallback?:
7223
+ | Params$Resource$Projects$Instances$Databases$Addsplitpoints
7224
+ | BodyResponseCallback<Schema$AddSplitPointsResponse>
7225
+ | BodyResponseCallback<Readable>,
7226
+ optionsOrCallback?:
7227
+ | MethodOptions
7228
+ | StreamMethodOptions
7229
+ | BodyResponseCallback<Schema$AddSplitPointsResponse>
7230
+ | BodyResponseCallback<Readable>,
7231
+ callback?:
7232
+ | BodyResponseCallback<Schema$AddSplitPointsResponse>
7233
+ | BodyResponseCallback<Readable>
7234
+ ):
7235
+ | void
7236
+ | Promise<GaxiosResponseWithHTTP2<Schema$AddSplitPointsResponse>>
7237
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7238
+ let params = (paramsOrCallback ||
7239
+ {}) as Params$Resource$Projects$Instances$Databases$Addsplitpoints;
7240
+ let options = (optionsOrCallback || {}) as MethodOptions;
7241
+
7242
+ if (typeof paramsOrCallback === 'function') {
7243
+ callback = paramsOrCallback;
7244
+ params =
7245
+ {} as Params$Resource$Projects$Instances$Databases$Addsplitpoints;
7246
+ options = {};
7247
+ }
7248
+
7249
+ if (typeof optionsOrCallback === 'function') {
7250
+ callback = optionsOrCallback;
7251
+ options = {};
7252
+ }
7253
+
7254
+ const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/';
7255
+ const parameters = {
7256
+ options: Object.assign(
7257
+ {
7258
+ url: (rootUrl + '/v1/{+database}:addSplitPoints').replace(
7259
+ /([^:]\/)\/+/g,
7260
+ '$1'
7261
+ ),
7262
+ method: 'POST',
7263
+ apiVersion: '',
7264
+ },
7265
+ options
7266
+ ),
7267
+ params,
7268
+ requiredParams: ['database'],
7269
+ pathParams: ['database'],
7270
+ context: this.context,
7271
+ };
7272
+ if (callback) {
7273
+ createAPIRequest<Schema$AddSplitPointsResponse>(
7274
+ parameters,
7275
+ callback as BodyResponseCallback<unknown>
7276
+ );
7277
+ } else {
7278
+ return createAPIRequest<Schema$AddSplitPointsResponse>(parameters);
7279
+ }
7280
+ }
7281
+
6877
7282
  /**
6878
7283
  * `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.
6879
7284
  *
@@ -6885,11 +7290,11 @@ export namespace spanner_v1 {
6885
7290
  changequorum(
6886
7291
  params: Params$Resource$Projects$Instances$Databases$Changequorum,
6887
7292
  options: StreamMethodOptions
6888
- ): GaxiosPromise<Readable>;
7293
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6889
7294
  changequorum(
6890
7295
  params?: Params$Resource$Projects$Instances$Databases$Changequorum,
6891
7296
  options?: MethodOptions
6892
- ): GaxiosPromise<Schema$Operation>;
7297
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6893
7298
  changequorum(
6894
7299
  params: Params$Resource$Projects$Instances$Databases$Changequorum,
6895
7300
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6918,7 +7323,10 @@ export namespace spanner_v1 {
6918
7323
  callback?:
6919
7324
  | BodyResponseCallback<Schema$Operation>
6920
7325
  | BodyResponseCallback<Readable>
6921
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
7326
+ ):
7327
+ | void
7328
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
7329
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6922
7330
  let params = (paramsOrCallback ||
6923
7331
  {}) as Params$Resource$Projects$Instances$Databases$Changequorum;
6924
7332
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6974,11 +7382,11 @@ export namespace spanner_v1 {
6974
7382
  create(
6975
7383
  params: Params$Resource$Projects$Instances$Databases$Create,
6976
7384
  options: StreamMethodOptions
6977
- ): GaxiosPromise<Readable>;
7385
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6978
7386
  create(
6979
7387
  params?: Params$Resource$Projects$Instances$Databases$Create,
6980
7388
  options?: MethodOptions
6981
- ): GaxiosPromise<Schema$Operation>;
7389
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6982
7390
  create(
6983
7391
  params: Params$Resource$Projects$Instances$Databases$Create,
6984
7392
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7007,7 +7415,10 @@ export namespace spanner_v1 {
7007
7415
  callback?:
7008
7416
  | BodyResponseCallback<Schema$Operation>
7009
7417
  | BodyResponseCallback<Readable>
7010
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
7418
+ ):
7419
+ | void
7420
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
7421
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7011
7422
  let params = (paramsOrCallback ||
7012
7423
  {}) as Params$Resource$Projects$Instances$Databases$Create;
7013
7424
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7062,11 +7473,11 @@ export namespace spanner_v1 {
7062
7473
  dropDatabase(
7063
7474
  params: Params$Resource$Projects$Instances$Databases$Dropdatabase,
7064
7475
  options: StreamMethodOptions
7065
- ): GaxiosPromise<Readable>;
7476
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7066
7477
  dropDatabase(
7067
7478
  params?: Params$Resource$Projects$Instances$Databases$Dropdatabase,
7068
7479
  options?: MethodOptions
7069
- ): GaxiosPromise<Schema$Empty>;
7480
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
7070
7481
  dropDatabase(
7071
7482
  params: Params$Resource$Projects$Instances$Databases$Dropdatabase,
7072
7483
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7095,7 +7506,10 @@ export namespace spanner_v1 {
7095
7506
  callback?:
7096
7507
  | BodyResponseCallback<Schema$Empty>
7097
7508
  | BodyResponseCallback<Readable>
7098
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
7509
+ ):
7510
+ | void
7511
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
7512
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7099
7513
  let params = (paramsOrCallback ||
7100
7514
  {}) as Params$Resource$Projects$Instances$Databases$Dropdatabase;
7101
7515
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7148,11 +7562,11 @@ export namespace spanner_v1 {
7148
7562
  get(
7149
7563
  params: Params$Resource$Projects$Instances$Databases$Get,
7150
7564
  options: StreamMethodOptions
7151
- ): GaxiosPromise<Readable>;
7565
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7152
7566
  get(
7153
7567
  params?: Params$Resource$Projects$Instances$Databases$Get,
7154
7568
  options?: MethodOptions
7155
- ): GaxiosPromise<Schema$Database>;
7569
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Database>>;
7156
7570
  get(
7157
7571
  params: Params$Resource$Projects$Instances$Databases$Get,
7158
7572
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7181,7 +7595,10 @@ export namespace spanner_v1 {
7181
7595
  callback?:
7182
7596
  | BodyResponseCallback<Schema$Database>
7183
7597
  | BodyResponseCallback<Readable>
7184
- ): void | GaxiosPromise<Schema$Database> | GaxiosPromise<Readable> {
7598
+ ):
7599
+ | void
7600
+ | Promise<GaxiosResponseWithHTTP2<Schema$Database>>
7601
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7185
7602
  let params = (paramsOrCallback ||
7186
7603
  {}) as Params$Resource$Projects$Instances$Databases$Get;
7187
7604
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7233,11 +7650,11 @@ export namespace spanner_v1 {
7233
7650
  getDdl(
7234
7651
  params: Params$Resource$Projects$Instances$Databases$Getddl,
7235
7652
  options: StreamMethodOptions
7236
- ): GaxiosPromise<Readable>;
7653
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7237
7654
  getDdl(
7238
7655
  params?: Params$Resource$Projects$Instances$Databases$Getddl,
7239
7656
  options?: MethodOptions
7240
- ): GaxiosPromise<Schema$GetDatabaseDdlResponse>;
7657
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GetDatabaseDdlResponse>>;
7241
7658
  getDdl(
7242
7659
  params: Params$Resource$Projects$Instances$Databases$Getddl,
7243
7660
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7270,8 +7687,8 @@ export namespace spanner_v1 {
7270
7687
  | BodyResponseCallback<Readable>
7271
7688
  ):
7272
7689
  | void
7273
- | GaxiosPromise<Schema$GetDatabaseDdlResponse>
7274
- | GaxiosPromise<Readable> {
7690
+ | Promise<GaxiosResponseWithHTTP2<Schema$GetDatabaseDdlResponse>>
7691
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7275
7692
  let params = (paramsOrCallback ||
7276
7693
  {}) as Params$Resource$Projects$Instances$Databases$Getddl;
7277
7694
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7316,7 +7733,7 @@ export namespace spanner_v1 {
7316
7733
  }
7317
7734
 
7318
7735
  /**
7319
- * 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.
7736
+ * 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. For backup schedules, authorization requires `spanner.backupSchedules.getIamPolicy` permission on resource.
7320
7737
  *
7321
7738
  * @param params - Parameters for request
7322
7739
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7326,11 +7743,11 @@ export namespace spanner_v1 {
7326
7743
  getIamPolicy(
7327
7744
  params: Params$Resource$Projects$Instances$Databases$Getiampolicy,
7328
7745
  options: StreamMethodOptions
7329
- ): GaxiosPromise<Readable>;
7746
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7330
7747
  getIamPolicy(
7331
7748
  params?: Params$Resource$Projects$Instances$Databases$Getiampolicy,
7332
7749
  options?: MethodOptions
7333
- ): GaxiosPromise<Schema$Policy>;
7750
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
7334
7751
  getIamPolicy(
7335
7752
  params: Params$Resource$Projects$Instances$Databases$Getiampolicy,
7336
7753
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7359,7 +7776,10 @@ export namespace spanner_v1 {
7359
7776
  callback?:
7360
7777
  | BodyResponseCallback<Schema$Policy>
7361
7778
  | BodyResponseCallback<Readable>
7362
- ): void | GaxiosPromise<Schema$Policy> | GaxiosPromise<Readable> {
7779
+ ):
7780
+ | void
7781
+ | Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
7782
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7363
7783
  let params = (paramsOrCallback ||
7364
7784
  {}) as Params$Resource$Projects$Instances$Databases$Getiampolicy;
7365
7785
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7415,11 +7835,11 @@ export namespace spanner_v1 {
7415
7835
  getScans(
7416
7836
  params: Params$Resource$Projects$Instances$Databases$Getscans,
7417
7837
  options: StreamMethodOptions
7418
- ): GaxiosPromise<Readable>;
7838
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7419
7839
  getScans(
7420
7840
  params?: Params$Resource$Projects$Instances$Databases$Getscans,
7421
7841
  options?: MethodOptions
7422
- ): GaxiosPromise<Schema$Scan>;
7842
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Scan>>;
7423
7843
  getScans(
7424
7844
  params: Params$Resource$Projects$Instances$Databases$Getscans,
7425
7845
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7448,7 +7868,10 @@ export namespace spanner_v1 {
7448
7868
  callback?:
7449
7869
  | BodyResponseCallback<Schema$Scan>
7450
7870
  | BodyResponseCallback<Readable>
7451
- ): void | GaxiosPromise<Schema$Scan> | GaxiosPromise<Readable> {
7871
+ ):
7872
+ | void
7873
+ | Promise<GaxiosResponseWithHTTP2<Schema$Scan>>
7874
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7452
7875
  let params = (paramsOrCallback ||
7453
7876
  {}) as Params$Resource$Projects$Instances$Databases$Getscans;
7454
7877
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7500,11 +7923,11 @@ export namespace spanner_v1 {
7500
7923
  list(
7501
7924
  params: Params$Resource$Projects$Instances$Databases$List,
7502
7925
  options: StreamMethodOptions
7503
- ): GaxiosPromise<Readable>;
7926
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7504
7927
  list(
7505
7928
  params?: Params$Resource$Projects$Instances$Databases$List,
7506
7929
  options?: MethodOptions
7507
- ): GaxiosPromise<Schema$ListDatabasesResponse>;
7930
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListDatabasesResponse>>;
7508
7931
  list(
7509
7932
  params: Params$Resource$Projects$Instances$Databases$List,
7510
7933
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7537,8 +7960,8 @@ export namespace spanner_v1 {
7537
7960
  | BodyResponseCallback<Readable>
7538
7961
  ):
7539
7962
  | void
7540
- | GaxiosPromise<Schema$ListDatabasesResponse>
7541
- | GaxiosPromise<Readable> {
7963
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListDatabasesResponse>>
7964
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7542
7965
  let params = (paramsOrCallback ||
7543
7966
  {}) as Params$Resource$Projects$Instances$Databases$List;
7544
7967
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7593,11 +8016,11 @@ export namespace spanner_v1 {
7593
8016
  patch(
7594
8017
  params: Params$Resource$Projects$Instances$Databases$Patch,
7595
8018
  options: StreamMethodOptions
7596
- ): GaxiosPromise<Readable>;
8019
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7597
8020
  patch(
7598
8021
  params?: Params$Resource$Projects$Instances$Databases$Patch,
7599
8022
  options?: MethodOptions
7600
- ): GaxiosPromise<Schema$Operation>;
8023
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
7601
8024
  patch(
7602
8025
  params: Params$Resource$Projects$Instances$Databases$Patch,
7603
8026
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7626,7 +8049,10 @@ export namespace spanner_v1 {
7626
8049
  callback?:
7627
8050
  | BodyResponseCallback<Schema$Operation>
7628
8051
  | BodyResponseCallback<Readable>
7629
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
8052
+ ):
8053
+ | void
8054
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
8055
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7630
8056
  let params = (paramsOrCallback ||
7631
8057
  {}) as Params$Resource$Projects$Instances$Databases$Patch;
7632
8058
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7678,11 +8104,11 @@ export namespace spanner_v1 {
7678
8104
  restore(
7679
8105
  params: Params$Resource$Projects$Instances$Databases$Restore,
7680
8106
  options: StreamMethodOptions
7681
- ): GaxiosPromise<Readable>;
8107
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7682
8108
  restore(
7683
8109
  params?: Params$Resource$Projects$Instances$Databases$Restore,
7684
8110
  options?: MethodOptions
7685
- ): GaxiosPromise<Schema$Operation>;
8111
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
7686
8112
  restore(
7687
8113
  params: Params$Resource$Projects$Instances$Databases$Restore,
7688
8114
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7711,7 +8137,10 @@ export namespace spanner_v1 {
7711
8137
  callback?:
7712
8138
  | BodyResponseCallback<Schema$Operation>
7713
8139
  | BodyResponseCallback<Readable>
7714
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
8140
+ ):
8141
+ | void
8142
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
8143
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7715
8144
  let params = (paramsOrCallback ||
7716
8145
  {}) as Params$Resource$Projects$Instances$Databases$Restore;
7717
8146
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7756,7 +8185,7 @@ export namespace spanner_v1 {
7756
8185
  }
7757
8186
 
7758
8187
  /**
7759
- * 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.
8188
+ * 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. For backup schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on resource.
7760
8189
  *
7761
8190
  * @param params - Parameters for request
7762
8191
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7766,11 +8195,11 @@ export namespace spanner_v1 {
7766
8195
  setIamPolicy(
7767
8196
  params: Params$Resource$Projects$Instances$Databases$Setiampolicy,
7768
8197
  options: StreamMethodOptions
7769
- ): GaxiosPromise<Readable>;
8198
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7770
8199
  setIamPolicy(
7771
8200
  params?: Params$Resource$Projects$Instances$Databases$Setiampolicy,
7772
8201
  options?: MethodOptions
7773
- ): GaxiosPromise<Schema$Policy>;
8202
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
7774
8203
  setIamPolicy(
7775
8204
  params: Params$Resource$Projects$Instances$Databases$Setiampolicy,
7776
8205
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7799,7 +8228,10 @@ export namespace spanner_v1 {
7799
8228
  callback?:
7800
8229
  | BodyResponseCallback<Schema$Policy>
7801
8230
  | BodyResponseCallback<Readable>
7802
- ): void | GaxiosPromise<Schema$Policy> | GaxiosPromise<Readable> {
8231
+ ):
8232
+ | void
8233
+ | Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
8234
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7803
8235
  let params = (paramsOrCallback ||
7804
8236
  {}) as Params$Resource$Projects$Instances$Databases$Setiampolicy;
7805
8237
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7845,7 +8277,7 @@ export namespace spanner_v1 {
7845
8277
  }
7846
8278
 
7847
8279
  /**
7848
- * 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.
8280
+ * 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. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND error if the user has `spanner.backupSchedules.list` permission on the containing database.
7849
8281
  *
7850
8282
  * @param params - Parameters for request
7851
8283
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7855,11 +8287,11 @@ export namespace spanner_v1 {
7855
8287
  testIamPermissions(
7856
8288
  params: Params$Resource$Projects$Instances$Databases$Testiampermissions,
7857
8289
  options: StreamMethodOptions
7858
- ): GaxiosPromise<Readable>;
8290
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7859
8291
  testIamPermissions(
7860
8292
  params?: Params$Resource$Projects$Instances$Databases$Testiampermissions,
7861
8293
  options?: MethodOptions
7862
- ): GaxiosPromise<Schema$TestIamPermissionsResponse>;
8294
+ ): Promise<GaxiosResponseWithHTTP2<Schema$TestIamPermissionsResponse>>;
7863
8295
  testIamPermissions(
7864
8296
  params: Params$Resource$Projects$Instances$Databases$Testiampermissions,
7865
8297
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7894,8 +8326,8 @@ export namespace spanner_v1 {
7894
8326
  | BodyResponseCallback<Readable>
7895
8327
  ):
7896
8328
  | void
7897
- | GaxiosPromise<Schema$TestIamPermissionsResponse>
7898
- | GaxiosPromise<Readable> {
8329
+ | Promise<GaxiosResponseWithHTTP2<Schema$TestIamPermissionsResponse>>
8330
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7899
8331
  let params = (paramsOrCallback ||
7900
8332
  {}) as Params$Resource$Projects$Instances$Databases$Testiampermissions;
7901
8333
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7951,11 +8383,11 @@ export namespace spanner_v1 {
7951
8383
  updateDdl(
7952
8384
  params: Params$Resource$Projects$Instances$Databases$Updateddl,
7953
8385
  options: StreamMethodOptions
7954
- ): GaxiosPromise<Readable>;
8386
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7955
8387
  updateDdl(
7956
8388
  params?: Params$Resource$Projects$Instances$Databases$Updateddl,
7957
8389
  options?: MethodOptions
7958
- ): GaxiosPromise<Schema$Operation>;
8390
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
7959
8391
  updateDdl(
7960
8392
  params: Params$Resource$Projects$Instances$Databases$Updateddl,
7961
8393
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7984,7 +8416,10 @@ export namespace spanner_v1 {
7984
8416
  callback?:
7985
8417
  | BodyResponseCallback<Schema$Operation>
7986
8418
  | BodyResponseCallback<Readable>
7987
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
8419
+ ):
8420
+ | void
8421
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
8422
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7988
8423
  let params = (paramsOrCallback ||
7989
8424
  {}) as Params$Resource$Projects$Instances$Databases$Updateddl;
7990
8425
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8029,6 +8464,18 @@ export namespace spanner_v1 {
8029
8464
  }
8030
8465
  }
8031
8466
 
8467
+ export interface Params$Resource$Projects$Instances$Databases$Addsplitpoints
8468
+ extends StandardParameters {
8469
+ /**
8470
+ * Required. The database on whose tables/indexes split points are to be added. Values are of the form `projects//instances//databases/`.
8471
+ */
8472
+ database?: string;
8473
+
8474
+ /**
8475
+ * Request body metadata
8476
+ */
8477
+ requestBody?: Schema$AddSplitPointsRequest;
8478
+ }
8032
8479
  export interface Params$Resource$Projects$Instances$Databases$Changequorum
8033
8480
  extends StandardParameters {
8034
8481
  /**
@@ -8202,11 +8649,11 @@ export namespace spanner_v1 {
8202
8649
  create(
8203
8650
  params: Params$Resource$Projects$Instances$Databases$Backupschedules$Create,
8204
8651
  options: StreamMethodOptions
8205
- ): GaxiosPromise<Readable>;
8652
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8206
8653
  create(
8207
8654
  params?: Params$Resource$Projects$Instances$Databases$Backupschedules$Create,
8208
8655
  options?: MethodOptions
8209
- ): GaxiosPromise<Schema$BackupSchedule>;
8656
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BackupSchedule>>;
8210
8657
  create(
8211
8658
  params: Params$Resource$Projects$Instances$Databases$Backupschedules$Create,
8212
8659
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8235,7 +8682,10 @@ export namespace spanner_v1 {
8235
8682
  callback?:
8236
8683
  | BodyResponseCallback<Schema$BackupSchedule>
8237
8684
  | BodyResponseCallback<Readable>
8238
- ): void | GaxiosPromise<Schema$BackupSchedule> | GaxiosPromise<Readable> {
8685
+ ):
8686
+ | void
8687
+ | Promise<GaxiosResponseWithHTTP2<Schema$BackupSchedule>>
8688
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8239
8689
  let params = (paramsOrCallback ||
8240
8690
  {}) as Params$Resource$Projects$Instances$Databases$Backupschedules$Create;
8241
8691
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8291,11 +8741,11 @@ export namespace spanner_v1 {
8291
8741
  delete(
8292
8742
  params: Params$Resource$Projects$Instances$Databases$Backupschedules$Delete,
8293
8743
  options: StreamMethodOptions
8294
- ): GaxiosPromise<Readable>;
8744
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8295
8745
  delete(
8296
8746
  params?: Params$Resource$Projects$Instances$Databases$Backupschedules$Delete,
8297
8747
  options?: MethodOptions
8298
- ): GaxiosPromise<Schema$Empty>;
8748
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
8299
8749
  delete(
8300
8750
  params: Params$Resource$Projects$Instances$Databases$Backupschedules$Delete,
8301
8751
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8324,7 +8774,10 @@ export namespace spanner_v1 {
8324
8774
  callback?:
8325
8775
  | BodyResponseCallback<Schema$Empty>
8326
8776
  | BodyResponseCallback<Readable>
8327
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
8777
+ ):
8778
+ | void
8779
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
8780
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8328
8781
  let params = (paramsOrCallback ||
8329
8782
  {}) as Params$Resource$Projects$Instances$Databases$Backupschedules$Delete;
8330
8783
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8377,11 +8830,11 @@ export namespace spanner_v1 {
8377
8830
  get(
8378
8831
  params: Params$Resource$Projects$Instances$Databases$Backupschedules$Get,
8379
8832
  options: StreamMethodOptions
8380
- ): GaxiosPromise<Readable>;
8833
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8381
8834
  get(
8382
8835
  params?: Params$Resource$Projects$Instances$Databases$Backupschedules$Get,
8383
8836
  options?: MethodOptions
8384
- ): GaxiosPromise<Schema$BackupSchedule>;
8837
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BackupSchedule>>;
8385
8838
  get(
8386
8839
  params: Params$Resource$Projects$Instances$Databases$Backupschedules$Get,
8387
8840
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8410,7 +8863,10 @@ export namespace spanner_v1 {
8410
8863
  callback?:
8411
8864
  | BodyResponseCallback<Schema$BackupSchedule>
8412
8865
  | BodyResponseCallback<Readable>
8413
- ): void | GaxiosPromise<Schema$BackupSchedule> | GaxiosPromise<Readable> {
8866
+ ):
8867
+ | void
8868
+ | Promise<GaxiosResponseWithHTTP2<Schema$BackupSchedule>>
8869
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8414
8870
  let params = (paramsOrCallback ||
8415
8871
  {}) as Params$Resource$Projects$Instances$Databases$Backupschedules$Get;
8416
8872
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8453,7 +8909,7 @@ export namespace spanner_v1 {
8453
8909
  }
8454
8910
 
8455
8911
  /**
8456
- * 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.
8912
+ * 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. For backup schedules, authorization requires `spanner.backupSchedules.getIamPolicy` permission on resource.
8457
8913
  *
8458
8914
  * @param params - Parameters for request
8459
8915
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8463,11 +8919,11 @@ export namespace spanner_v1 {
8463
8919
  getIamPolicy(
8464
8920
  params: Params$Resource$Projects$Instances$Databases$Backupschedules$Getiampolicy,
8465
8921
  options: StreamMethodOptions
8466
- ): GaxiosPromise<Readable>;
8922
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8467
8923
  getIamPolicy(
8468
8924
  params?: Params$Resource$Projects$Instances$Databases$Backupschedules$Getiampolicy,
8469
8925
  options?: MethodOptions
8470
- ): GaxiosPromise<Schema$Policy>;
8926
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
8471
8927
  getIamPolicy(
8472
8928
  params: Params$Resource$Projects$Instances$Databases$Backupschedules$Getiampolicy,
8473
8929
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8496,7 +8952,10 @@ export namespace spanner_v1 {
8496
8952
  callback?:
8497
8953
  | BodyResponseCallback<Schema$Policy>
8498
8954
  | BodyResponseCallback<Readable>
8499
- ): void | GaxiosPromise<Schema$Policy> | GaxiosPromise<Readable> {
8955
+ ):
8956
+ | void
8957
+ | Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
8958
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8500
8959
  let params = (paramsOrCallback ||
8501
8960
  {}) as Params$Resource$Projects$Instances$Databases$Backupschedules$Getiampolicy;
8502
8961
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8552,11 +9011,11 @@ export namespace spanner_v1 {
8552
9011
  list(
8553
9012
  params: Params$Resource$Projects$Instances$Databases$Backupschedules$List,
8554
9013
  options: StreamMethodOptions
8555
- ): GaxiosPromise<Readable>;
9014
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8556
9015
  list(
8557
9016
  params?: Params$Resource$Projects$Instances$Databases$Backupschedules$List,
8558
9017
  options?: MethodOptions
8559
- ): GaxiosPromise<Schema$ListBackupSchedulesResponse>;
9018
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListBackupSchedulesResponse>>;
8560
9019
  list(
8561
9020
  params: Params$Resource$Projects$Instances$Databases$Backupschedules$List,
8562
9021
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8591,8 +9050,8 @@ export namespace spanner_v1 {
8591
9050
  | BodyResponseCallback<Readable>
8592
9051
  ):
8593
9052
  | void
8594
- | GaxiosPromise<Schema$ListBackupSchedulesResponse>
8595
- | GaxiosPromise<Readable> {
9053
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListBackupSchedulesResponse>>
9054
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8596
9055
  let params = (paramsOrCallback ||
8597
9056
  {}) as Params$Resource$Projects$Instances$Databases$Backupschedules$List;
8598
9057
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8648,11 +9107,11 @@ export namespace spanner_v1 {
8648
9107
  patch(
8649
9108
  params: Params$Resource$Projects$Instances$Databases$Backupschedules$Patch,
8650
9109
  options: StreamMethodOptions
8651
- ): GaxiosPromise<Readable>;
9110
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8652
9111
  patch(
8653
9112
  params?: Params$Resource$Projects$Instances$Databases$Backupschedules$Patch,
8654
9113
  options?: MethodOptions
8655
- ): GaxiosPromise<Schema$BackupSchedule>;
9114
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BackupSchedule>>;
8656
9115
  patch(
8657
9116
  params: Params$Resource$Projects$Instances$Databases$Backupschedules$Patch,
8658
9117
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8681,7 +9140,10 @@ export namespace spanner_v1 {
8681
9140
  callback?:
8682
9141
  | BodyResponseCallback<Schema$BackupSchedule>
8683
9142
  | BodyResponseCallback<Readable>
8684
- ): void | GaxiosPromise<Schema$BackupSchedule> | GaxiosPromise<Readable> {
9143
+ ):
9144
+ | void
9145
+ | Promise<GaxiosResponseWithHTTP2<Schema$BackupSchedule>>
9146
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8685
9147
  let params = (paramsOrCallback ||
8686
9148
  {}) as Params$Resource$Projects$Instances$Databases$Backupschedules$Patch;
8687
9149
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8724,7 +9186,7 @@ export namespace spanner_v1 {
8724
9186
  }
8725
9187
 
8726
9188
  /**
8727
- * 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.
9189
+ * 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. For backup schedules, authorization requires `spanner.backupSchedules.setIamPolicy` permission on resource.
8728
9190
  *
8729
9191
  * @param params - Parameters for request
8730
9192
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8734,11 +9196,11 @@ export namespace spanner_v1 {
8734
9196
  setIamPolicy(
8735
9197
  params: Params$Resource$Projects$Instances$Databases$Backupschedules$Setiampolicy,
8736
9198
  options: StreamMethodOptions
8737
- ): GaxiosPromise<Readable>;
9199
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8738
9200
  setIamPolicy(
8739
9201
  params?: Params$Resource$Projects$Instances$Databases$Backupschedules$Setiampolicy,
8740
9202
  options?: MethodOptions
8741
- ): GaxiosPromise<Schema$Policy>;
9203
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
8742
9204
  setIamPolicy(
8743
9205
  params: Params$Resource$Projects$Instances$Databases$Backupschedules$Setiampolicy,
8744
9206
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8767,7 +9229,10 @@ export namespace spanner_v1 {
8767
9229
  callback?:
8768
9230
  | BodyResponseCallback<Schema$Policy>
8769
9231
  | BodyResponseCallback<Readable>
8770
- ): void | GaxiosPromise<Schema$Policy> | GaxiosPromise<Readable> {
9232
+ ):
9233
+ | void
9234
+ | Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
9235
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8771
9236
  let params = (paramsOrCallback ||
8772
9237
  {}) as Params$Resource$Projects$Instances$Databases$Backupschedules$Setiampolicy;
8773
9238
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8813,7 +9278,7 @@ export namespace spanner_v1 {
8813
9278
  }
8814
9279
 
8815
9280
  /**
8816
- * 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.
9281
+ * 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. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND error if the user has `spanner.backupSchedules.list` permission on the containing database.
8817
9282
  *
8818
9283
  * @param params - Parameters for request
8819
9284
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8823,11 +9288,11 @@ export namespace spanner_v1 {
8823
9288
  testIamPermissions(
8824
9289
  params: Params$Resource$Projects$Instances$Databases$Backupschedules$Testiampermissions,
8825
9290
  options: StreamMethodOptions
8826
- ): GaxiosPromise<Readable>;
9291
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8827
9292
  testIamPermissions(
8828
9293
  params?: Params$Resource$Projects$Instances$Databases$Backupschedules$Testiampermissions,
8829
9294
  options?: MethodOptions
8830
- ): GaxiosPromise<Schema$TestIamPermissionsResponse>;
9295
+ ): Promise<GaxiosResponseWithHTTP2<Schema$TestIamPermissionsResponse>>;
8831
9296
  testIamPermissions(
8832
9297
  params: Params$Resource$Projects$Instances$Databases$Backupschedules$Testiampermissions,
8833
9298
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8862,8 +9327,8 @@ export namespace spanner_v1 {
8862
9327
  | BodyResponseCallback<Readable>
8863
9328
  ):
8864
9329
  | void
8865
- | GaxiosPromise<Schema$TestIamPermissionsResponse>
8866
- | GaxiosPromise<Readable> {
9330
+ | Promise<GaxiosResponseWithHTTP2<Schema$TestIamPermissionsResponse>>
9331
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8867
9332
  let params = (paramsOrCallback ||
8868
9333
  {}) as Params$Resource$Projects$Instances$Databases$Backupschedules$Testiampermissions;
8869
9334
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -9024,11 +9489,11 @@ export namespace spanner_v1 {
9024
9489
  list(
9025
9490
  params: Params$Resource$Projects$Instances$Databases$Databaseroles$List,
9026
9491
  options: StreamMethodOptions
9027
- ): GaxiosPromise<Readable>;
9492
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9028
9493
  list(
9029
9494
  params?: Params$Resource$Projects$Instances$Databases$Databaseroles$List,
9030
9495
  options?: MethodOptions
9031
- ): GaxiosPromise<Schema$ListDatabaseRolesResponse>;
9496
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListDatabaseRolesResponse>>;
9032
9497
  list(
9033
9498
  params: Params$Resource$Projects$Instances$Databases$Databaseroles$List,
9034
9499
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -9063,8 +9528,8 @@ export namespace spanner_v1 {
9063
9528
  | BodyResponseCallback<Readable>
9064
9529
  ):
9065
9530
  | void
9066
- | GaxiosPromise<Schema$ListDatabaseRolesResponse>
9067
- | GaxiosPromise<Readable> {
9531
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListDatabaseRolesResponse>>
9532
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9068
9533
  let params = (paramsOrCallback ||
9069
9534
  {}) as Params$Resource$Projects$Instances$Databases$Databaseroles$List;
9070
9535
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -9110,7 +9575,7 @@ export namespace spanner_v1 {
9110
9575
  }
9111
9576
 
9112
9577
  /**
9113
- * 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.
9578
+ * 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. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND error if the user has `spanner.backupSchedules.list` permission on the containing database.
9114
9579
  *
9115
9580
  * @param params - Parameters for request
9116
9581
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -9120,11 +9585,11 @@ export namespace spanner_v1 {
9120
9585
  testIamPermissions(
9121
9586
  params: Params$Resource$Projects$Instances$Databases$Databaseroles$Testiampermissions,
9122
9587
  options: StreamMethodOptions
9123
- ): GaxiosPromise<Readable>;
9588
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9124
9589
  testIamPermissions(
9125
9590
  params?: Params$Resource$Projects$Instances$Databases$Databaseroles$Testiampermissions,
9126
9591
  options?: MethodOptions
9127
- ): GaxiosPromise<Schema$TestIamPermissionsResponse>;
9592
+ ): Promise<GaxiosResponseWithHTTP2<Schema$TestIamPermissionsResponse>>;
9128
9593
  testIamPermissions(
9129
9594
  params: Params$Resource$Projects$Instances$Databases$Databaseroles$Testiampermissions,
9130
9595
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -9159,8 +9624,8 @@ export namespace spanner_v1 {
9159
9624
  | BodyResponseCallback<Readable>
9160
9625
  ):
9161
9626
  | void
9162
- | GaxiosPromise<Schema$TestIamPermissionsResponse>
9163
- | GaxiosPromise<Readable> {
9627
+ | Promise<GaxiosResponseWithHTTP2<Schema$TestIamPermissionsResponse>>
9628
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9164
9629
  let params = (paramsOrCallback ||
9165
9630
  {}) as Params$Resource$Projects$Instances$Databases$Databaseroles$Testiampermissions;
9166
9631
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -9241,7 +9706,7 @@ export namespace spanner_v1 {
9241
9706
  }
9242
9707
 
9243
9708
  /**
9244
- * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
9709
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
9245
9710
  *
9246
9711
  * @param params - Parameters for request
9247
9712
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -9251,11 +9716,11 @@ export namespace spanner_v1 {
9251
9716
  cancel(
9252
9717
  params: Params$Resource$Projects$Instances$Databases$Operations$Cancel,
9253
9718
  options: StreamMethodOptions
9254
- ): GaxiosPromise<Readable>;
9719
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9255
9720
  cancel(
9256
9721
  params?: Params$Resource$Projects$Instances$Databases$Operations$Cancel,
9257
9722
  options?: MethodOptions
9258
- ): GaxiosPromise<Schema$Empty>;
9723
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
9259
9724
  cancel(
9260
9725
  params: Params$Resource$Projects$Instances$Databases$Operations$Cancel,
9261
9726
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -9284,7 +9749,10 @@ export namespace spanner_v1 {
9284
9749
  callback?:
9285
9750
  | BodyResponseCallback<Schema$Empty>
9286
9751
  | BodyResponseCallback<Readable>
9287
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
9752
+ ):
9753
+ | void
9754
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
9755
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9288
9756
  let params = (paramsOrCallback ||
9289
9757
  {}) as Params$Resource$Projects$Instances$Databases$Operations$Cancel;
9290
9758
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -9337,11 +9805,11 @@ export namespace spanner_v1 {
9337
9805
  delete(
9338
9806
  params: Params$Resource$Projects$Instances$Databases$Operations$Delete,
9339
9807
  options: StreamMethodOptions
9340
- ): GaxiosPromise<Readable>;
9808
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9341
9809
  delete(
9342
9810
  params?: Params$Resource$Projects$Instances$Databases$Operations$Delete,
9343
9811
  options?: MethodOptions
9344
- ): GaxiosPromise<Schema$Empty>;
9812
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
9345
9813
  delete(
9346
9814
  params: Params$Resource$Projects$Instances$Databases$Operations$Delete,
9347
9815
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -9370,7 +9838,10 @@ export namespace spanner_v1 {
9370
9838
  callback?:
9371
9839
  | BodyResponseCallback<Schema$Empty>
9372
9840
  | BodyResponseCallback<Readable>
9373
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
9841
+ ):
9842
+ | void
9843
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
9844
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9374
9845
  let params = (paramsOrCallback ||
9375
9846
  {}) as Params$Resource$Projects$Instances$Databases$Operations$Delete;
9376
9847
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -9423,11 +9894,11 @@ export namespace spanner_v1 {
9423
9894
  get(
9424
9895
  params: Params$Resource$Projects$Instances$Databases$Operations$Get,
9425
9896
  options: StreamMethodOptions
9426
- ): GaxiosPromise<Readable>;
9897
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9427
9898
  get(
9428
9899
  params?: Params$Resource$Projects$Instances$Databases$Operations$Get,
9429
9900
  options?: MethodOptions
9430
- ): GaxiosPromise<Schema$Operation>;
9901
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
9431
9902
  get(
9432
9903
  params: Params$Resource$Projects$Instances$Databases$Operations$Get,
9433
9904
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -9456,7 +9927,10 @@ export namespace spanner_v1 {
9456
9927
  callback?:
9457
9928
  | BodyResponseCallback<Schema$Operation>
9458
9929
  | BodyResponseCallback<Readable>
9459
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
9930
+ ):
9931
+ | void
9932
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
9933
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9460
9934
  let params = (paramsOrCallback ||
9461
9935
  {}) as Params$Resource$Projects$Instances$Databases$Operations$Get;
9462
9936
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -9509,11 +9983,11 @@ export namespace spanner_v1 {
9509
9983
  list(
9510
9984
  params: Params$Resource$Projects$Instances$Databases$Operations$List,
9511
9985
  options: StreamMethodOptions
9512
- ): GaxiosPromise<Readable>;
9986
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9513
9987
  list(
9514
9988
  params?: Params$Resource$Projects$Instances$Databases$Operations$List,
9515
9989
  options?: MethodOptions
9516
- ): GaxiosPromise<Schema$ListOperationsResponse>;
9990
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>;
9517
9991
  list(
9518
9992
  params: Params$Resource$Projects$Instances$Databases$Operations$List,
9519
9993
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -9546,8 +10020,8 @@ export namespace spanner_v1 {
9546
10020
  | BodyResponseCallback<Readable>
9547
10021
  ):
9548
10022
  | void
9549
- | GaxiosPromise<Schema$ListOperationsResponse>
9550
- | GaxiosPromise<Readable> {
10023
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>
10024
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9551
10025
  let params = (paramsOrCallback ||
9552
10026
  {}) as Params$Resource$Projects$Instances$Databases$Operations$List;
9553
10027
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -9637,6 +10111,194 @@ export namespace spanner_v1 {
9637
10111
  this.context = context;
9638
10112
  }
9639
10113
 
10114
+ /**
10115
+ * Creates a new session to be used for requests made by the adapter. A session identifies a specific incarnation of a database resource and is meant to be reused across many `AdaptMessage` calls.
10116
+ *
10117
+ * @param params - Parameters for request
10118
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
10119
+ * @param callback - Optional callback that handles the response.
10120
+ * @returns A promise if used with async/await, or void if used with a callback.
10121
+ */
10122
+ adapter(
10123
+ params: Params$Resource$Projects$Instances$Databases$Sessions$Adapter,
10124
+ options: StreamMethodOptions
10125
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
10126
+ adapter(
10127
+ params?: Params$Resource$Projects$Instances$Databases$Sessions$Adapter,
10128
+ options?: MethodOptions
10129
+ ): Promise<GaxiosResponseWithHTTP2<Schema$AdapterSession>>;
10130
+ adapter(
10131
+ params: Params$Resource$Projects$Instances$Databases$Sessions$Adapter,
10132
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
10133
+ callback: BodyResponseCallback<Readable>
10134
+ ): void;
10135
+ adapter(
10136
+ params: Params$Resource$Projects$Instances$Databases$Sessions$Adapter,
10137
+ options: MethodOptions | BodyResponseCallback<Schema$AdapterSession>,
10138
+ callback: BodyResponseCallback<Schema$AdapterSession>
10139
+ ): void;
10140
+ adapter(
10141
+ params: Params$Resource$Projects$Instances$Databases$Sessions$Adapter,
10142
+ callback: BodyResponseCallback<Schema$AdapterSession>
10143
+ ): void;
10144
+ adapter(callback: BodyResponseCallback<Schema$AdapterSession>): void;
10145
+ adapter(
10146
+ paramsOrCallback?:
10147
+ | Params$Resource$Projects$Instances$Databases$Sessions$Adapter
10148
+ | BodyResponseCallback<Schema$AdapterSession>
10149
+ | BodyResponseCallback<Readable>,
10150
+ optionsOrCallback?:
10151
+ | MethodOptions
10152
+ | StreamMethodOptions
10153
+ | BodyResponseCallback<Schema$AdapterSession>
10154
+ | BodyResponseCallback<Readable>,
10155
+ callback?:
10156
+ | BodyResponseCallback<Schema$AdapterSession>
10157
+ | BodyResponseCallback<Readable>
10158
+ ):
10159
+ | void
10160
+ | Promise<GaxiosResponseWithHTTP2<Schema$AdapterSession>>
10161
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
10162
+ let params = (paramsOrCallback ||
10163
+ {}) as Params$Resource$Projects$Instances$Databases$Sessions$Adapter;
10164
+ let options = (optionsOrCallback || {}) as MethodOptions;
10165
+
10166
+ if (typeof paramsOrCallback === 'function') {
10167
+ callback = paramsOrCallback;
10168
+ params =
10169
+ {} as Params$Resource$Projects$Instances$Databases$Sessions$Adapter;
10170
+ options = {};
10171
+ }
10172
+
10173
+ if (typeof optionsOrCallback === 'function') {
10174
+ callback = optionsOrCallback;
10175
+ options = {};
10176
+ }
10177
+
10178
+ const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/';
10179
+ const parameters = {
10180
+ options: Object.assign(
10181
+ {
10182
+ url: (rootUrl + '/v1/{+parent}/sessions:adapter').replace(
10183
+ /([^:]\/)\/+/g,
10184
+ '$1'
10185
+ ),
10186
+ method: 'POST',
10187
+ apiVersion: '',
10188
+ },
10189
+ options
10190
+ ),
10191
+ params,
10192
+ requiredParams: ['parent'],
10193
+ pathParams: ['parent'],
10194
+ context: this.context,
10195
+ };
10196
+ if (callback) {
10197
+ createAPIRequest<Schema$AdapterSession>(
10198
+ parameters,
10199
+ callback as BodyResponseCallback<unknown>
10200
+ );
10201
+ } else {
10202
+ return createAPIRequest<Schema$AdapterSession>(parameters);
10203
+ }
10204
+ }
10205
+
10206
+ /**
10207
+ * Handles a single message from the client and returns the result as a stream. The server will interpret the message frame and respond with message frames to the client.
10208
+ *
10209
+ * @param params - Parameters for request
10210
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
10211
+ * @param callback - Optional callback that handles the response.
10212
+ * @returns A promise if used with async/await, or void if used with a callback.
10213
+ */
10214
+ adaptMessage(
10215
+ params: Params$Resource$Projects$Instances$Databases$Sessions$Adaptmessage,
10216
+ options: StreamMethodOptions
10217
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
10218
+ adaptMessage(
10219
+ params?: Params$Resource$Projects$Instances$Databases$Sessions$Adaptmessage,
10220
+ options?: MethodOptions
10221
+ ): Promise<GaxiosResponseWithHTTP2<Schema$AdaptMessageResponse>>;
10222
+ adaptMessage(
10223
+ params: Params$Resource$Projects$Instances$Databases$Sessions$Adaptmessage,
10224
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
10225
+ callback: BodyResponseCallback<Readable>
10226
+ ): void;
10227
+ adaptMessage(
10228
+ params: Params$Resource$Projects$Instances$Databases$Sessions$Adaptmessage,
10229
+ options:
10230
+ | MethodOptions
10231
+ | BodyResponseCallback<Schema$AdaptMessageResponse>,
10232
+ callback: BodyResponseCallback<Schema$AdaptMessageResponse>
10233
+ ): void;
10234
+ adaptMessage(
10235
+ params: Params$Resource$Projects$Instances$Databases$Sessions$Adaptmessage,
10236
+ callback: BodyResponseCallback<Schema$AdaptMessageResponse>
10237
+ ): void;
10238
+ adaptMessage(
10239
+ callback: BodyResponseCallback<Schema$AdaptMessageResponse>
10240
+ ): void;
10241
+ adaptMessage(
10242
+ paramsOrCallback?:
10243
+ | Params$Resource$Projects$Instances$Databases$Sessions$Adaptmessage
10244
+ | BodyResponseCallback<Schema$AdaptMessageResponse>
10245
+ | BodyResponseCallback<Readable>,
10246
+ optionsOrCallback?:
10247
+ | MethodOptions
10248
+ | StreamMethodOptions
10249
+ | BodyResponseCallback<Schema$AdaptMessageResponse>
10250
+ | BodyResponseCallback<Readable>,
10251
+ callback?:
10252
+ | BodyResponseCallback<Schema$AdaptMessageResponse>
10253
+ | BodyResponseCallback<Readable>
10254
+ ):
10255
+ | void
10256
+ | Promise<GaxiosResponseWithHTTP2<Schema$AdaptMessageResponse>>
10257
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
10258
+ let params = (paramsOrCallback ||
10259
+ {}) as Params$Resource$Projects$Instances$Databases$Sessions$Adaptmessage;
10260
+ let options = (optionsOrCallback || {}) as MethodOptions;
10261
+
10262
+ if (typeof paramsOrCallback === 'function') {
10263
+ callback = paramsOrCallback;
10264
+ params =
10265
+ {} as Params$Resource$Projects$Instances$Databases$Sessions$Adaptmessage;
10266
+ options = {};
10267
+ }
10268
+
10269
+ if (typeof optionsOrCallback === 'function') {
10270
+ callback = optionsOrCallback;
10271
+ options = {};
10272
+ }
10273
+
10274
+ const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/';
10275
+ const parameters = {
10276
+ options: Object.assign(
10277
+ {
10278
+ url: (rootUrl + '/v1/{+name}:adaptMessage').replace(
10279
+ /([^:]\/)\/+/g,
10280
+ '$1'
10281
+ ),
10282
+ method: 'POST',
10283
+ apiVersion: '',
10284
+ },
10285
+ options
10286
+ ),
10287
+ params,
10288
+ requiredParams: ['name'],
10289
+ pathParams: ['name'],
10290
+ context: this.context,
10291
+ };
10292
+ if (callback) {
10293
+ createAPIRequest<Schema$AdaptMessageResponse>(
10294
+ parameters,
10295
+ callback as BodyResponseCallback<unknown>
10296
+ );
10297
+ } else {
10298
+ return createAPIRequest<Schema$AdaptMessageResponse>(parameters);
10299
+ }
10300
+ }
10301
+
9640
10302
  /**
9641
10303
  * Creates multiple new sessions. This API can be used to initialize a session cache on the clients. See https://goo.gl/TgSFN2 for best practices on session cache management.
9642
10304
  *
@@ -9648,11 +10310,11 @@ export namespace spanner_v1 {
9648
10310
  batchCreate(
9649
10311
  params: Params$Resource$Projects$Instances$Databases$Sessions$Batchcreate,
9650
10312
  options: StreamMethodOptions
9651
- ): GaxiosPromise<Readable>;
10313
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9652
10314
  batchCreate(
9653
10315
  params?: Params$Resource$Projects$Instances$Databases$Sessions$Batchcreate,
9654
10316
  options?: MethodOptions
9655
- ): GaxiosPromise<Schema$BatchCreateSessionsResponse>;
10317
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BatchCreateSessionsResponse>>;
9656
10318
  batchCreate(
9657
10319
  params: Params$Resource$Projects$Instances$Databases$Sessions$Batchcreate,
9658
10320
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -9687,8 +10349,8 @@ export namespace spanner_v1 {
9687
10349
  | BodyResponseCallback<Readable>
9688
10350
  ):
9689
10351
  | void
9690
- | GaxiosPromise<Schema$BatchCreateSessionsResponse>
9691
- | GaxiosPromise<Readable> {
10352
+ | Promise<GaxiosResponseWithHTTP2<Schema$BatchCreateSessionsResponse>>
10353
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9692
10354
  let params = (paramsOrCallback ||
9693
10355
  {}) as Params$Resource$Projects$Instances$Databases$Sessions$Batchcreate;
9694
10356
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -9734,7 +10396,7 @@ export namespace spanner_v1 {
9734
10396
  }
9735
10397
 
9736
10398
  /**
9737
- * Batches the supplied mutation groups in a collection of efficient transactions. All mutations in a group are committed atomically. However, mutations across groups can be committed non-atomically in an unspecified order and thus, they must be independent of each other. Partial failure is possible, i.e., some groups may have been committed successfully, while some may have failed. The results of individual batches are streamed into the response as the batches are applied. BatchWrite requests are not replay protected, meaning that each mutation group may be applied more than once. Replays of non-idempotent mutations may have undesirable effects. For example, replays of an insert mutation may produce an already exists error or if you use generated or commit timestamp-based keys, it may result in additional rows being added to the mutation's table. We recommend structuring your mutation groups to be idempotent to avoid this issue.
10399
+ * Batches the supplied mutation groups in a collection of efficient transactions. All mutations in a group are committed atomically. However, mutations across groups can be committed non-atomically in an unspecified order and thus, they must be independent of each other. Partial failure is possible, that is, some groups might have been committed successfully, while some might have failed. The results of individual batches are streamed into the response as the batches are applied. `BatchWrite` requests are not replay protected, meaning that each mutation group can be applied more than once. Replays of non-idempotent mutations can have undesirable effects. For example, replays of an insert mutation can produce an already exists error or if you use generated or commit timestamp-based keys, it can result in additional rows being added to the mutation's table. We recommend structuring your mutation groups to be idempotent to avoid this issue.
9738
10400
  *
9739
10401
  * @param params - Parameters for request
9740
10402
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -9744,11 +10406,11 @@ export namespace spanner_v1 {
9744
10406
  batchWrite(
9745
10407
  params: Params$Resource$Projects$Instances$Databases$Sessions$Batchwrite,
9746
10408
  options: StreamMethodOptions
9747
- ): GaxiosPromise<Readable>;
10409
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9748
10410
  batchWrite(
9749
10411
  params?: Params$Resource$Projects$Instances$Databases$Sessions$Batchwrite,
9750
10412
  options?: MethodOptions
9751
- ): GaxiosPromise<Schema$BatchWriteResponse>;
10413
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BatchWriteResponse>>;
9752
10414
  batchWrite(
9753
10415
  params: Params$Resource$Projects$Instances$Databases$Sessions$Batchwrite,
9754
10416
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -9779,8 +10441,8 @@ export namespace spanner_v1 {
9779
10441
  | BodyResponseCallback<Readable>
9780
10442
  ):
9781
10443
  | void
9782
- | GaxiosPromise<Schema$BatchWriteResponse>
9783
- | GaxiosPromise<Readable> {
10444
+ | Promise<GaxiosResponseWithHTTP2<Schema$BatchWriteResponse>>
10445
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9784
10446
  let params = (paramsOrCallback ||
9785
10447
  {}) as Params$Resource$Projects$Instances$Databases$Sessions$Batchwrite;
9786
10448
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -9836,11 +10498,11 @@ export namespace spanner_v1 {
9836
10498
  beginTransaction(
9837
10499
  params: Params$Resource$Projects$Instances$Databases$Sessions$Begintransaction,
9838
10500
  options: StreamMethodOptions
9839
- ): GaxiosPromise<Readable>;
10501
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9840
10502
  beginTransaction(
9841
10503
  params?: Params$Resource$Projects$Instances$Databases$Sessions$Begintransaction,
9842
10504
  options?: MethodOptions
9843
- ): GaxiosPromise<Schema$Transaction>;
10505
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Transaction>>;
9844
10506
  beginTransaction(
9845
10507
  params: Params$Resource$Projects$Instances$Databases$Sessions$Begintransaction,
9846
10508
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -9869,7 +10531,10 @@ export namespace spanner_v1 {
9869
10531
  callback?:
9870
10532
  | BodyResponseCallback<Schema$Transaction>
9871
10533
  | BodyResponseCallback<Readable>
9872
- ): void | GaxiosPromise<Schema$Transaction> | GaxiosPromise<Readable> {
10534
+ ):
10535
+ | void
10536
+ | Promise<GaxiosResponseWithHTTP2<Schema$Transaction>>
10537
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9873
10538
  let params = (paramsOrCallback ||
9874
10539
  {}) as Params$Resource$Projects$Instances$Databases$Sessions$Begintransaction;
9875
10540
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -9915,7 +10580,7 @@ export namespace spanner_v1 {
9915
10580
  }
9916
10581
 
9917
10582
  /**
9918
- * Commits a transaction. The request includes the mutations to be applied to rows in the database. `Commit` might return an `ABORTED` error. This can occur at any time; commonly, the cause is conflicts with concurrent transactions. However, it can also happen for a variety of other reasons. If `Commit` returns `ABORTED`, the caller should re-attempt the transaction from the beginning, re-using the same session. On very rare occasions, `Commit` might return `UNKNOWN`. This can happen, for example, if the client job experiences a 1+ hour networking failure. At that point, Cloud Spanner has lost track of the transaction outcome and we recommend that you perform another read from the database to see the state of things as they are now.
10583
+ * Commits a transaction. The request includes the mutations to be applied to rows in the database. `Commit` might return an `ABORTED` error. This can occur at any time; commonly, the cause is conflicts with concurrent transactions. However, it can also happen for a variety of other reasons. If `Commit` returns `ABORTED`, the caller should retry the transaction from the beginning, reusing the same session. On very rare occasions, `Commit` might return `UNKNOWN`. This can happen, for example, if the client job experiences a 1+ hour networking failure. At that point, Cloud Spanner has lost track of the transaction outcome and we recommend that you perform another read from the database to see the state of things as they are now.
9919
10584
  *
9920
10585
  * @param params - Parameters for request
9921
10586
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -9925,11 +10590,11 @@ export namespace spanner_v1 {
9925
10590
  commit(
9926
10591
  params: Params$Resource$Projects$Instances$Databases$Sessions$Commit,
9927
10592
  options: StreamMethodOptions
9928
- ): GaxiosPromise<Readable>;
10593
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9929
10594
  commit(
9930
10595
  params?: Params$Resource$Projects$Instances$Databases$Sessions$Commit,
9931
10596
  options?: MethodOptions
9932
- ): GaxiosPromise<Schema$CommitResponse>;
10597
+ ): Promise<GaxiosResponseWithHTTP2<Schema$CommitResponse>>;
9933
10598
  commit(
9934
10599
  params: Params$Resource$Projects$Instances$Databases$Sessions$Commit,
9935
10600
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -9958,7 +10623,10 @@ export namespace spanner_v1 {
9958
10623
  callback?:
9959
10624
  | BodyResponseCallback<Schema$CommitResponse>
9960
10625
  | BodyResponseCallback<Readable>
9961
- ): void | GaxiosPromise<Schema$CommitResponse> | GaxiosPromise<Readable> {
10626
+ ):
10627
+ | void
10628
+ | Promise<GaxiosResponseWithHTTP2<Schema$CommitResponse>>
10629
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9962
10630
  let params = (paramsOrCallback ||
9963
10631
  {}) as Params$Resource$Projects$Instances$Databases$Sessions$Commit;
9964
10632
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -10004,7 +10672,7 @@ export namespace spanner_v1 {
10004
10672
  }
10005
10673
 
10006
10674
  /**
10007
- * Creates a new session. A session can be used to perform transactions that read and/or modify data in a Cloud Spanner database. Sessions are meant to be reused for many consecutive transactions. Sessions can only execute one transaction at a time. To execute multiple concurrent read-write/write-only transactions, create multiple sessions. Note that standalone reads and queries use a transaction internally, and count toward the one transaction limit. Active sessions use additional server resources, so it is a good idea to delete idle and unneeded sessions. Aside from explicit deletes, Cloud Spanner may delete sessions for which no operations are sent for more than an hour. If a session is deleted, requests to it return `NOT_FOUND`. Idle sessions can be kept alive by sending a trivial SQL query periodically, e.g., `"SELECT 1"`.
10675
+ * Creates a new session. A session can be used to perform transactions that read and/or modify data in a Cloud Spanner database. Sessions are meant to be reused for many consecutive transactions. Sessions can only execute one transaction at a time. To execute multiple concurrent read-write/write-only transactions, create multiple sessions. Note that standalone reads and queries use a transaction internally, and count toward the one transaction limit. Active sessions use additional server resources, so it's a good idea to delete idle and unneeded sessions. Aside from explicit deletes, Cloud Spanner can delete sessions when no operations are sent for more than an hour. If a session is deleted, requests to it return `NOT_FOUND`. Idle sessions can be kept alive by sending a trivial SQL query periodically, for example, `"SELECT 1"`.
10008
10676
  *
10009
10677
  * @param params - Parameters for request
10010
10678
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -10014,11 +10682,11 @@ export namespace spanner_v1 {
10014
10682
  create(
10015
10683
  params: Params$Resource$Projects$Instances$Databases$Sessions$Create,
10016
10684
  options: StreamMethodOptions
10017
- ): GaxiosPromise<Readable>;
10685
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
10018
10686
  create(
10019
10687
  params?: Params$Resource$Projects$Instances$Databases$Sessions$Create,
10020
10688
  options?: MethodOptions
10021
- ): GaxiosPromise<Schema$Session>;
10689
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Session>>;
10022
10690
  create(
10023
10691
  params: Params$Resource$Projects$Instances$Databases$Sessions$Create,
10024
10692
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -10047,7 +10715,10 @@ export namespace spanner_v1 {
10047
10715
  callback?:
10048
10716
  | BodyResponseCallback<Schema$Session>
10049
10717
  | BodyResponseCallback<Readable>
10050
- ): void | GaxiosPromise<Schema$Session> | GaxiosPromise<Readable> {
10718
+ ):
10719
+ | void
10720
+ | Promise<GaxiosResponseWithHTTP2<Schema$Session>>
10721
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
10051
10722
  let params = (paramsOrCallback ||
10052
10723
  {}) as Params$Resource$Projects$Instances$Databases$Sessions$Create;
10053
10724
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -10093,7 +10764,7 @@ export namespace spanner_v1 {
10093
10764
  }
10094
10765
 
10095
10766
  /**
10096
- * Ends a session, releasing server resources associated with it. This will asynchronously trigger cancellation of any operations that are running with this session.
10767
+ * Ends a session, releasing server resources associated with it. This asynchronously triggers the cancellation of any operations that are running with this session.
10097
10768
  *
10098
10769
  * @param params - Parameters for request
10099
10770
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -10103,11 +10774,11 @@ export namespace spanner_v1 {
10103
10774
  delete(
10104
10775
  params: Params$Resource$Projects$Instances$Databases$Sessions$Delete,
10105
10776
  options: StreamMethodOptions
10106
- ): GaxiosPromise<Readable>;
10777
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
10107
10778
  delete(
10108
10779
  params?: Params$Resource$Projects$Instances$Databases$Sessions$Delete,
10109
10780
  options?: MethodOptions
10110
- ): GaxiosPromise<Schema$Empty>;
10781
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
10111
10782
  delete(
10112
10783
  params: Params$Resource$Projects$Instances$Databases$Sessions$Delete,
10113
10784
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -10136,7 +10807,10 @@ export namespace spanner_v1 {
10136
10807
  callback?:
10137
10808
  | BodyResponseCallback<Schema$Empty>
10138
10809
  | BodyResponseCallback<Readable>
10139
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
10810
+ ):
10811
+ | void
10812
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
10813
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
10140
10814
  let params = (paramsOrCallback ||
10141
10815
  {}) as Params$Resource$Projects$Instances$Databases$Sessions$Delete;
10142
10816
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -10189,11 +10863,11 @@ export namespace spanner_v1 {
10189
10863
  executeBatchDml(
10190
10864
  params: Params$Resource$Projects$Instances$Databases$Sessions$Executebatchdml,
10191
10865
  options: StreamMethodOptions
10192
- ): GaxiosPromise<Readable>;
10866
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
10193
10867
  executeBatchDml(
10194
10868
  params?: Params$Resource$Projects$Instances$Databases$Sessions$Executebatchdml,
10195
10869
  options?: MethodOptions
10196
- ): GaxiosPromise<Schema$ExecuteBatchDmlResponse>;
10870
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ExecuteBatchDmlResponse>>;
10197
10871
  executeBatchDml(
10198
10872
  params: Params$Resource$Projects$Instances$Databases$Sessions$Executebatchdml,
10199
10873
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -10228,8 +10902,8 @@ export namespace spanner_v1 {
10228
10902
  | BodyResponseCallback<Readable>
10229
10903
  ):
10230
10904
  | void
10231
- | GaxiosPromise<Schema$ExecuteBatchDmlResponse>
10232
- | GaxiosPromise<Readable> {
10905
+ | Promise<GaxiosResponseWithHTTP2<Schema$ExecuteBatchDmlResponse>>
10906
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
10233
10907
  let params = (paramsOrCallback ||
10234
10908
  {}) as Params$Resource$Projects$Instances$Databases$Sessions$Executebatchdml;
10235
10909
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -10275,7 +10949,7 @@ export namespace spanner_v1 {
10275
10949
  }
10276
10950
 
10277
10951
  /**
10278
- * Executes an SQL statement, returning all results in a single reply. This method cannot be used to return a result set larger than 10 MiB; if the query yields more data than that, the query fails with a `FAILED_PRECONDITION` error. Operations inside read-write transactions might return `ABORTED`. If this occurs, the application should restart the transaction from the beginning. See Transaction for more details. Larger result sets can be fetched in streaming fashion by calling ExecuteStreamingSql instead.
10952
+ * Executes an SQL statement, returning all results in a single reply. This method can't be used to return a result set larger than 10 MiB; if the query yields more data than that, the query fails with a `FAILED_PRECONDITION` error. Operations inside read-write transactions might return `ABORTED`. If this occurs, the application should restart the transaction from the beginning. See Transaction for more details. Larger result sets can be fetched in streaming fashion by calling ExecuteStreamingSql instead. The query string can be SQL or [Graph Query Language (GQL)](https://cloud.google.com/spanner/docs/reference/standard-sql/graph-intro).
10279
10953
  *
10280
10954
  * @param params - Parameters for request
10281
10955
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -10285,11 +10959,11 @@ export namespace spanner_v1 {
10285
10959
  executeSql(
10286
10960
  params: Params$Resource$Projects$Instances$Databases$Sessions$Executesql,
10287
10961
  options: StreamMethodOptions
10288
- ): GaxiosPromise<Readable>;
10962
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
10289
10963
  executeSql(
10290
10964
  params?: Params$Resource$Projects$Instances$Databases$Sessions$Executesql,
10291
10965
  options?: MethodOptions
10292
- ): GaxiosPromise<Schema$ResultSet>;
10966
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResultSet>>;
10293
10967
  executeSql(
10294
10968
  params: Params$Resource$Projects$Instances$Databases$Sessions$Executesql,
10295
10969
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -10318,7 +10992,10 @@ export namespace spanner_v1 {
10318
10992
  callback?:
10319
10993
  | BodyResponseCallback<Schema$ResultSet>
10320
10994
  | BodyResponseCallback<Readable>
10321
- ): void | GaxiosPromise<Schema$ResultSet> | GaxiosPromise<Readable> {
10995
+ ):
10996
+ | void
10997
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResultSet>>
10998
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
10322
10999
  let params = (paramsOrCallback ||
10323
11000
  {}) as Params$Resource$Projects$Instances$Databases$Sessions$Executesql;
10324
11001
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -10364,7 +11041,7 @@ export namespace spanner_v1 {
10364
11041
  }
10365
11042
 
10366
11043
  /**
10367
- * Like ExecuteSql, except returns the result set as a stream. Unlike ExecuteSql, there is no limit on the size of the returned result set. However, no individual row in the result set can exceed 100 MiB, and no column value can exceed 10 MiB.
11044
+ * Like ExecuteSql, except returns the result set as a stream. Unlike ExecuteSql, there is no limit on the size of the returned result set. However, no individual row in the result set can exceed 100 MiB, and no column value can exceed 10 MiB. The query string can be SQL or [Graph Query Language (GQL)](https://cloud.google.com/spanner/docs/reference/standard-sql/graph-intro).
10368
11045
  *
10369
11046
  * @param params - Parameters for request
10370
11047
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -10374,11 +11051,11 @@ export namespace spanner_v1 {
10374
11051
  executeStreamingSql(
10375
11052
  params: Params$Resource$Projects$Instances$Databases$Sessions$Executestreamingsql,
10376
11053
  options: StreamMethodOptions
10377
- ): GaxiosPromise<Readable>;
11054
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
10378
11055
  executeStreamingSql(
10379
11056
  params?: Params$Resource$Projects$Instances$Databases$Sessions$Executestreamingsql,
10380
11057
  options?: MethodOptions
10381
- ): GaxiosPromise<Schema$PartialResultSet>;
11058
+ ): Promise<GaxiosResponseWithHTTP2<Schema$PartialResultSet>>;
10382
11059
  executeStreamingSql(
10383
11060
  params: Params$Resource$Projects$Instances$Databases$Sessions$Executestreamingsql,
10384
11061
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -10409,7 +11086,10 @@ export namespace spanner_v1 {
10409
11086
  callback?:
10410
11087
  | BodyResponseCallback<Schema$PartialResultSet>
10411
11088
  | BodyResponseCallback<Readable>
10412
- ): void | GaxiosPromise<Schema$PartialResultSet> | GaxiosPromise<Readable> {
11089
+ ):
11090
+ | void
11091
+ | Promise<GaxiosResponseWithHTTP2<Schema$PartialResultSet>>
11092
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
10413
11093
  let params = (paramsOrCallback ||
10414
11094
  {}) as Params$Resource$Projects$Instances$Databases$Sessions$Executestreamingsql;
10415
11095
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -10455,7 +11135,7 @@ export namespace spanner_v1 {
10455
11135
  }
10456
11136
 
10457
11137
  /**
10458
- * Gets a session. Returns `NOT_FOUND` if the session does not exist. This is mainly useful for determining whether a session is still alive.
11138
+ * Gets a session. Returns `NOT_FOUND` if the session doesn't exist. This is mainly useful for determining whether a session is still alive.
10459
11139
  *
10460
11140
  * @param params - Parameters for request
10461
11141
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -10465,11 +11145,11 @@ export namespace spanner_v1 {
10465
11145
  get(
10466
11146
  params: Params$Resource$Projects$Instances$Databases$Sessions$Get,
10467
11147
  options: StreamMethodOptions
10468
- ): GaxiosPromise<Readable>;
11148
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
10469
11149
  get(
10470
11150
  params?: Params$Resource$Projects$Instances$Databases$Sessions$Get,
10471
11151
  options?: MethodOptions
10472
- ): GaxiosPromise<Schema$Session>;
11152
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Session>>;
10473
11153
  get(
10474
11154
  params: Params$Resource$Projects$Instances$Databases$Sessions$Get,
10475
11155
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -10498,7 +11178,10 @@ export namespace spanner_v1 {
10498
11178
  callback?:
10499
11179
  | BodyResponseCallback<Schema$Session>
10500
11180
  | BodyResponseCallback<Readable>
10501
- ): void | GaxiosPromise<Schema$Session> | GaxiosPromise<Readable> {
11181
+ ):
11182
+ | void
11183
+ | Promise<GaxiosResponseWithHTTP2<Schema$Session>>
11184
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
10502
11185
  let params = (paramsOrCallback ||
10503
11186
  {}) as Params$Resource$Projects$Instances$Databases$Sessions$Get;
10504
11187
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -10551,11 +11234,11 @@ export namespace spanner_v1 {
10551
11234
  list(
10552
11235
  params: Params$Resource$Projects$Instances$Databases$Sessions$List,
10553
11236
  options: StreamMethodOptions
10554
- ): GaxiosPromise<Readable>;
11237
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
10555
11238
  list(
10556
11239
  params?: Params$Resource$Projects$Instances$Databases$Sessions$List,
10557
11240
  options?: MethodOptions
10558
- ): GaxiosPromise<Schema$ListSessionsResponse>;
11241
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListSessionsResponse>>;
10559
11242
  list(
10560
11243
  params: Params$Resource$Projects$Instances$Databases$Sessions$List,
10561
11244
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -10588,8 +11271,8 @@ export namespace spanner_v1 {
10588
11271
  | BodyResponseCallback<Readable>
10589
11272
  ):
10590
11273
  | void
10591
- | GaxiosPromise<Schema$ListSessionsResponse>
10592
- | GaxiosPromise<Readable> {
11274
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListSessionsResponse>>
11275
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
10593
11276
  let params = (paramsOrCallback ||
10594
11277
  {}) as Params$Resource$Projects$Instances$Databases$Sessions$List;
10595
11278
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -10635,7 +11318,7 @@ export namespace spanner_v1 {
10635
11318
  }
10636
11319
 
10637
11320
  /**
10638
- * Creates a set of partition tokens that can be used to execute a query operation in parallel. Each of the returned partition tokens can be used by ExecuteStreamingSql to specify a subset of the query result to read. The same session and read-only transaction must be used by the PartitionQueryRequest used to create the partition tokens and the ExecuteSqlRequests that use the partition tokens. Partition tokens become invalid when the session used to create them is deleted, is idle for too long, begins a new transaction, or becomes too old. When any of these happen, it is not possible to resume the query, and the whole operation must be restarted from the beginning.
11321
+ * Creates a set of partition tokens that can be used to execute a query operation in parallel. Each of the returned partition tokens can be used by ExecuteStreamingSql to specify a subset of the query result to read. The same session and read-only transaction must be used by the `PartitionQueryRequest` used to create the partition tokens and the `ExecuteSqlRequests` that use the partition tokens. Partition tokens become invalid when the session used to create them is deleted, is idle for too long, begins a new transaction, or becomes too old. When any of these happen, it isn't possible to resume the query, and the whole operation must be restarted from the beginning.
10639
11322
  *
10640
11323
  * @param params - Parameters for request
10641
11324
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -10645,11 +11328,11 @@ export namespace spanner_v1 {
10645
11328
  partitionQuery(
10646
11329
  params: Params$Resource$Projects$Instances$Databases$Sessions$Partitionquery,
10647
11330
  options: StreamMethodOptions
10648
- ): GaxiosPromise<Readable>;
11331
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
10649
11332
  partitionQuery(
10650
11333
  params?: Params$Resource$Projects$Instances$Databases$Sessions$Partitionquery,
10651
11334
  options?: MethodOptions
10652
- ): GaxiosPromise<Schema$PartitionResponse>;
11335
+ ): Promise<GaxiosResponseWithHTTP2<Schema$PartitionResponse>>;
10653
11336
  partitionQuery(
10654
11337
  params: Params$Resource$Projects$Instances$Databases$Sessions$Partitionquery,
10655
11338
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -10682,8 +11365,8 @@ export namespace spanner_v1 {
10682
11365
  | BodyResponseCallback<Readable>
10683
11366
  ):
10684
11367
  | void
10685
- | GaxiosPromise<Schema$PartitionResponse>
10686
- | GaxiosPromise<Readable> {
11368
+ | Promise<GaxiosResponseWithHTTP2<Schema$PartitionResponse>>
11369
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
10687
11370
  let params = (paramsOrCallback ||
10688
11371
  {}) as Params$Resource$Projects$Instances$Databases$Sessions$Partitionquery;
10689
11372
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -10729,7 +11412,7 @@ export namespace spanner_v1 {
10729
11412
  }
10730
11413
 
10731
11414
  /**
10732
- * Creates a set of partition tokens that can be used to execute a read operation in parallel. Each of the returned partition tokens can be used by StreamingRead to specify a subset of the read result to read. The same session and read-only transaction must be used by the PartitionReadRequest used to create the partition tokens and the ReadRequests that use the partition tokens. There are no ordering guarantees on rows returned among the returned partition tokens, or even within each individual StreamingRead call issued with a partition_token. Partition tokens become invalid when the session used to create them is deleted, is idle for too long, begins a new transaction, or becomes too old. When any of these happen, it is not possible to resume the read, and the whole operation must be restarted from the beginning.
11415
+ * Creates a set of partition tokens that can be used to execute a read operation in parallel. Each of the returned partition tokens can be used by StreamingRead to specify a subset of the read result to read. The same session and read-only transaction must be used by the `PartitionReadRequest` used to create the partition tokens and the `ReadRequests` that use the partition tokens. There are no ordering guarantees on rows returned among the returned partition tokens, or even within each individual `StreamingRead` call issued with a `partition_token`. Partition tokens become invalid when the session used to create them is deleted, is idle for too long, begins a new transaction, or becomes too old. When any of these happen, it isn't possible to resume the read, and the whole operation must be restarted from the beginning.
10733
11416
  *
10734
11417
  * @param params - Parameters for request
10735
11418
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -10739,11 +11422,11 @@ export namespace spanner_v1 {
10739
11422
  partitionRead(
10740
11423
  params: Params$Resource$Projects$Instances$Databases$Sessions$Partitionread,
10741
11424
  options: StreamMethodOptions
10742
- ): GaxiosPromise<Readable>;
11425
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
10743
11426
  partitionRead(
10744
11427
  params?: Params$Resource$Projects$Instances$Databases$Sessions$Partitionread,
10745
11428
  options?: MethodOptions
10746
- ): GaxiosPromise<Schema$PartitionResponse>;
11429
+ ): Promise<GaxiosResponseWithHTTP2<Schema$PartitionResponse>>;
10747
11430
  partitionRead(
10748
11431
  params: Params$Resource$Projects$Instances$Databases$Sessions$Partitionread,
10749
11432
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -10776,8 +11459,8 @@ export namespace spanner_v1 {
10776
11459
  | BodyResponseCallback<Readable>
10777
11460
  ):
10778
11461
  | void
10779
- | GaxiosPromise<Schema$PartitionResponse>
10780
- | GaxiosPromise<Readable> {
11462
+ | Promise<GaxiosResponseWithHTTP2<Schema$PartitionResponse>>
11463
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
10781
11464
  let params = (paramsOrCallback ||
10782
11465
  {}) as Params$Resource$Projects$Instances$Databases$Sessions$Partitionread;
10783
11466
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -10823,7 +11506,7 @@ export namespace spanner_v1 {
10823
11506
  }
10824
11507
 
10825
11508
  /**
10826
- * Reads rows from the database using key lookups and scans, as a simple key/value style alternative to ExecuteSql. This method cannot be used to return a result set larger than 10 MiB; if the read matches more data than that, the read fails with a `FAILED_PRECONDITION` error. Reads inside read-write transactions might return `ABORTED`. If this occurs, the application should restart the transaction from the beginning. See Transaction for more details. Larger result sets can be yielded in streaming fashion by calling StreamingRead instead.
11509
+ * Reads rows from the database using key lookups and scans, as a simple key/value style alternative to ExecuteSql. This method can't be used to return a result set larger than 10 MiB; if the read matches more data than that, the read fails with a `FAILED_PRECONDITION` error. Reads inside read-write transactions might return `ABORTED`. If this occurs, the application should restart the transaction from the beginning. See Transaction for more details. Larger result sets can be yielded in streaming fashion by calling StreamingRead instead.
10827
11510
  *
10828
11511
  * @param params - Parameters for request
10829
11512
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -10833,11 +11516,11 @@ export namespace spanner_v1 {
10833
11516
  read(
10834
11517
  params: Params$Resource$Projects$Instances$Databases$Sessions$Read,
10835
11518
  options: StreamMethodOptions
10836
- ): GaxiosPromise<Readable>;
11519
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
10837
11520
  read(
10838
11521
  params?: Params$Resource$Projects$Instances$Databases$Sessions$Read,
10839
11522
  options?: MethodOptions
10840
- ): GaxiosPromise<Schema$ResultSet>;
11523
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResultSet>>;
10841
11524
  read(
10842
11525
  params: Params$Resource$Projects$Instances$Databases$Sessions$Read,
10843
11526
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -10866,7 +11549,10 @@ export namespace spanner_v1 {
10866
11549
  callback?:
10867
11550
  | BodyResponseCallback<Schema$ResultSet>
10868
11551
  | BodyResponseCallback<Readable>
10869
- ): void | GaxiosPromise<Schema$ResultSet> | GaxiosPromise<Readable> {
11552
+ ):
11553
+ | void
11554
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResultSet>>
11555
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
10870
11556
  let params = (paramsOrCallback ||
10871
11557
  {}) as Params$Resource$Projects$Instances$Databases$Sessions$Read;
10872
11558
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -10912,7 +11598,7 @@ export namespace spanner_v1 {
10912
11598
  }
10913
11599
 
10914
11600
  /**
10915
- * Rolls back a transaction, releasing any locks it holds. It is a good idea to call this for any transaction that includes one or more Read or ExecuteSql requests and ultimately decides not to commit. `Rollback` returns `OK` if it successfully aborts the transaction, the transaction was already aborted, or the transaction is not found. `Rollback` never returns `ABORTED`.
11601
+ * Rolls back a transaction, releasing any locks it holds. It's a good idea to call this for any transaction that includes one or more Read or ExecuteSql requests and ultimately decides not to commit. `Rollback` returns `OK` if it successfully aborts the transaction, the transaction was already aborted, or the transaction isn't found. `Rollback` never returns `ABORTED`.
10916
11602
  *
10917
11603
  * @param params - Parameters for request
10918
11604
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -10922,11 +11608,11 @@ export namespace spanner_v1 {
10922
11608
  rollback(
10923
11609
  params: Params$Resource$Projects$Instances$Databases$Sessions$Rollback,
10924
11610
  options: StreamMethodOptions
10925
- ): GaxiosPromise<Readable>;
11611
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
10926
11612
  rollback(
10927
11613
  params?: Params$Resource$Projects$Instances$Databases$Sessions$Rollback,
10928
11614
  options?: MethodOptions
10929
- ): GaxiosPromise<Schema$Empty>;
11615
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
10930
11616
  rollback(
10931
11617
  params: Params$Resource$Projects$Instances$Databases$Sessions$Rollback,
10932
11618
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -10955,7 +11641,10 @@ export namespace spanner_v1 {
10955
11641
  callback?:
10956
11642
  | BodyResponseCallback<Schema$Empty>
10957
11643
  | BodyResponseCallback<Readable>
10958
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
11644
+ ):
11645
+ | void
11646
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
11647
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
10959
11648
  let params = (paramsOrCallback ||
10960
11649
  {}) as Params$Resource$Projects$Instances$Databases$Sessions$Rollback;
10961
11650
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -11011,11 +11700,11 @@ export namespace spanner_v1 {
11011
11700
  streamingRead(
11012
11701
  params: Params$Resource$Projects$Instances$Databases$Sessions$Streamingread,
11013
11702
  options: StreamMethodOptions
11014
- ): GaxiosPromise<Readable>;
11703
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
11015
11704
  streamingRead(
11016
11705
  params?: Params$Resource$Projects$Instances$Databases$Sessions$Streamingread,
11017
11706
  options?: MethodOptions
11018
- ): GaxiosPromise<Schema$PartialResultSet>;
11707
+ ): Promise<GaxiosResponseWithHTTP2<Schema$PartialResultSet>>;
11019
11708
  streamingRead(
11020
11709
  params: Params$Resource$Projects$Instances$Databases$Sessions$Streamingread,
11021
11710
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -11046,7 +11735,10 @@ export namespace spanner_v1 {
11046
11735
  callback?:
11047
11736
  | BodyResponseCallback<Schema$PartialResultSet>
11048
11737
  | BodyResponseCallback<Readable>
11049
- ): void | GaxiosPromise<Schema$PartialResultSet> | GaxiosPromise<Readable> {
11738
+ ):
11739
+ | void
11740
+ | Promise<GaxiosResponseWithHTTP2<Schema$PartialResultSet>>
11741
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
11050
11742
  let params = (paramsOrCallback ||
11051
11743
  {}) as Params$Resource$Projects$Instances$Databases$Sessions$Streamingread;
11052
11744
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -11092,6 +11784,30 @@ export namespace spanner_v1 {
11092
11784
  }
11093
11785
  }
11094
11786
 
11787
+ export interface Params$Resource$Projects$Instances$Databases$Sessions$Adapter
11788
+ extends StandardParameters {
11789
+ /**
11790
+ * Required. The database in which the new session is created.
11791
+ */
11792
+ parent?: string;
11793
+
11794
+ /**
11795
+ * Request body metadata
11796
+ */
11797
+ requestBody?: Schema$AdapterSession;
11798
+ }
11799
+ export interface Params$Resource$Projects$Instances$Databases$Sessions$Adaptmessage
11800
+ extends StandardParameters {
11801
+ /**
11802
+ * Required. The database session in which the adapter request is processed.
11803
+ */
11804
+ name?: string;
11805
+
11806
+ /**
11807
+ * Request body metadata
11808
+ */
11809
+ requestBody?: Schema$AdaptMessageRequest;
11810
+ }
11095
11811
  export interface Params$Resource$Projects$Instances$Databases$Sessions$Batchcreate
11096
11812
  extends StandardParameters {
11097
11813
  /**
@@ -11299,11 +12015,13 @@ export namespace spanner_v1 {
11299
12015
  list(
11300
12016
  params: Params$Resource$Projects$Instances$Instancepartitionoperations$List,
11301
12017
  options: StreamMethodOptions
11302
- ): GaxiosPromise<Readable>;
12018
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
11303
12019
  list(
11304
12020
  params?: Params$Resource$Projects$Instances$Instancepartitionoperations$List,
11305
12021
  options?: MethodOptions
11306
- ): GaxiosPromise<Schema$ListInstancePartitionOperationsResponse>;
12022
+ ): Promise<
12023
+ GaxiosResponseWithHTTP2<Schema$ListInstancePartitionOperationsResponse>
12024
+ >;
11307
12025
  list(
11308
12026
  params: Params$Resource$Projects$Instances$Instancepartitionoperations$List,
11309
12027
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -11338,8 +12056,10 @@ export namespace spanner_v1 {
11338
12056
  | BodyResponseCallback<Readable>
11339
12057
  ):
11340
12058
  | void
11341
- | GaxiosPromise<Schema$ListInstancePartitionOperationsResponse>
11342
- | GaxiosPromise<Readable> {
12059
+ | Promise<
12060
+ GaxiosResponseWithHTTP2<Schema$ListInstancePartitionOperationsResponse>
12061
+ >
12062
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
11343
12063
  let params = (paramsOrCallback ||
11344
12064
  {}) as Params$Resource$Projects$Instances$Instancepartitionoperations$List;
11345
12065
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -11393,7 +12113,7 @@ export namespace spanner_v1 {
11393
12113
  */
11394
12114
  filter?: string;
11395
12115
  /**
11396
- * Optional. Deadline used while retrieving metadata for instance partition operations. Instance partitions whose operation metadata cannot be retrieved within this deadline will be added to unreachable in ListInstancePartitionOperationsResponse.
12116
+ * Optional. Deadline used while retrieving metadata for instance partition operations. Instance partitions whose operation metadata cannot be retrieved within this deadline will be added to unreachable_instance_partitions in ListInstancePartitionOperationsResponse.
11397
12117
  */
11398
12118
  instancePartitionDeadline?: string;
11399
12119
  /**
@@ -11432,11 +12152,11 @@ export namespace spanner_v1 {
11432
12152
  create(
11433
12153
  params: Params$Resource$Projects$Instances$Instancepartitions$Create,
11434
12154
  options: StreamMethodOptions
11435
- ): GaxiosPromise<Readable>;
12155
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
11436
12156
  create(
11437
12157
  params?: Params$Resource$Projects$Instances$Instancepartitions$Create,
11438
12158
  options?: MethodOptions
11439
- ): GaxiosPromise<Schema$Operation>;
12159
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
11440
12160
  create(
11441
12161
  params: Params$Resource$Projects$Instances$Instancepartitions$Create,
11442
12162
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -11465,7 +12185,10 @@ export namespace spanner_v1 {
11465
12185
  callback?:
11466
12186
  | BodyResponseCallback<Schema$Operation>
11467
12187
  | BodyResponseCallback<Readable>
11468
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
12188
+ ):
12189
+ | void
12190
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
12191
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
11469
12192
  let params = (paramsOrCallback ||
11470
12193
  {}) as Params$Resource$Projects$Instances$Instancepartitions$Create;
11471
12194
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -11521,11 +12244,11 @@ export namespace spanner_v1 {
11521
12244
  delete(
11522
12245
  params: Params$Resource$Projects$Instances$Instancepartitions$Delete,
11523
12246
  options: StreamMethodOptions
11524
- ): GaxiosPromise<Readable>;
12247
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
11525
12248
  delete(
11526
12249
  params?: Params$Resource$Projects$Instances$Instancepartitions$Delete,
11527
12250
  options?: MethodOptions
11528
- ): GaxiosPromise<Schema$Empty>;
12251
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
11529
12252
  delete(
11530
12253
  params: Params$Resource$Projects$Instances$Instancepartitions$Delete,
11531
12254
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -11554,7 +12277,10 @@ export namespace spanner_v1 {
11554
12277
  callback?:
11555
12278
  | BodyResponseCallback<Schema$Empty>
11556
12279
  | BodyResponseCallback<Readable>
11557
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
12280
+ ):
12281
+ | void
12282
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
12283
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
11558
12284
  let params = (paramsOrCallback ||
11559
12285
  {}) as Params$Resource$Projects$Instances$Instancepartitions$Delete;
11560
12286
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -11607,11 +12333,11 @@ export namespace spanner_v1 {
11607
12333
  get(
11608
12334
  params: Params$Resource$Projects$Instances$Instancepartitions$Get,
11609
12335
  options: StreamMethodOptions
11610
- ): GaxiosPromise<Readable>;
12336
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
11611
12337
  get(
11612
12338
  params?: Params$Resource$Projects$Instances$Instancepartitions$Get,
11613
12339
  options?: MethodOptions
11614
- ): GaxiosPromise<Schema$InstancePartition>;
12340
+ ): Promise<GaxiosResponseWithHTTP2<Schema$InstancePartition>>;
11615
12341
  get(
11616
12342
  params: Params$Resource$Projects$Instances$Instancepartitions$Get,
11617
12343
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -11642,8 +12368,8 @@ export namespace spanner_v1 {
11642
12368
  | BodyResponseCallback<Readable>
11643
12369
  ):
11644
12370
  | void
11645
- | GaxiosPromise<Schema$InstancePartition>
11646
- | GaxiosPromise<Readable> {
12371
+ | Promise<GaxiosResponseWithHTTP2<Schema$InstancePartition>>
12372
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
11647
12373
  let params = (paramsOrCallback ||
11648
12374
  {}) as Params$Resource$Projects$Instances$Instancepartitions$Get;
11649
12375
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -11696,11 +12422,11 @@ export namespace spanner_v1 {
11696
12422
  list(
11697
12423
  params: Params$Resource$Projects$Instances$Instancepartitions$List,
11698
12424
  options: StreamMethodOptions
11699
- ): GaxiosPromise<Readable>;
12425
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
11700
12426
  list(
11701
12427
  params?: Params$Resource$Projects$Instances$Instancepartitions$List,
11702
12428
  options?: MethodOptions
11703
- ): GaxiosPromise<Schema$ListInstancePartitionsResponse>;
12429
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListInstancePartitionsResponse>>;
11704
12430
  list(
11705
12431
  params: Params$Resource$Projects$Instances$Instancepartitions$List,
11706
12432
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -11735,8 +12461,8 @@ export namespace spanner_v1 {
11735
12461
  | BodyResponseCallback<Readable>
11736
12462
  ):
11737
12463
  | void
11738
- | GaxiosPromise<Schema$ListInstancePartitionsResponse>
11739
- | GaxiosPromise<Readable> {
12464
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListInstancePartitionsResponse>>
12465
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
11740
12466
  let params = (paramsOrCallback ||
11741
12467
  {}) as Params$Resource$Projects$Instances$Instancepartitions$List;
11742
12468
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -11794,11 +12520,11 @@ export namespace spanner_v1 {
11794
12520
  patch(
11795
12521
  params: Params$Resource$Projects$Instances$Instancepartitions$Patch,
11796
12522
  options: StreamMethodOptions
11797
- ): GaxiosPromise<Readable>;
12523
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
11798
12524
  patch(
11799
12525
  params?: Params$Resource$Projects$Instances$Instancepartitions$Patch,
11800
12526
  options?: MethodOptions
11801
- ): GaxiosPromise<Schema$Operation>;
12527
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
11802
12528
  patch(
11803
12529
  params: Params$Resource$Projects$Instances$Instancepartitions$Patch,
11804
12530
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -11827,7 +12553,10 @@ export namespace spanner_v1 {
11827
12553
  callback?:
11828
12554
  | BodyResponseCallback<Schema$Operation>
11829
12555
  | BodyResponseCallback<Readable>
11830
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
12556
+ ):
12557
+ | void
12558
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
12559
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
11831
12560
  let params = (paramsOrCallback ||
11832
12561
  {}) as Params$Resource$Projects$Instances$Instancepartitions$Patch;
11833
12562
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -11939,7 +12668,7 @@ export namespace spanner_v1 {
11939
12668
  }
11940
12669
 
11941
12670
  /**
11942
- * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
12671
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
11943
12672
  *
11944
12673
  * @param params - Parameters for request
11945
12674
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -11949,11 +12678,11 @@ export namespace spanner_v1 {
11949
12678
  cancel(
11950
12679
  params: Params$Resource$Projects$Instances$Instancepartitions$Operations$Cancel,
11951
12680
  options: StreamMethodOptions
11952
- ): GaxiosPromise<Readable>;
12681
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
11953
12682
  cancel(
11954
12683
  params?: Params$Resource$Projects$Instances$Instancepartitions$Operations$Cancel,
11955
12684
  options?: MethodOptions
11956
- ): GaxiosPromise<Schema$Empty>;
12685
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
11957
12686
  cancel(
11958
12687
  params: Params$Resource$Projects$Instances$Instancepartitions$Operations$Cancel,
11959
12688
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -11982,7 +12711,10 @@ export namespace spanner_v1 {
11982
12711
  callback?:
11983
12712
  | BodyResponseCallback<Schema$Empty>
11984
12713
  | BodyResponseCallback<Readable>
11985
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
12714
+ ):
12715
+ | void
12716
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
12717
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
11986
12718
  let params = (paramsOrCallback ||
11987
12719
  {}) as Params$Resource$Projects$Instances$Instancepartitions$Operations$Cancel;
11988
12720
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -12035,11 +12767,11 @@ export namespace spanner_v1 {
12035
12767
  delete(
12036
12768
  params: Params$Resource$Projects$Instances$Instancepartitions$Operations$Delete,
12037
12769
  options: StreamMethodOptions
12038
- ): GaxiosPromise<Readable>;
12770
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
12039
12771
  delete(
12040
12772
  params?: Params$Resource$Projects$Instances$Instancepartitions$Operations$Delete,
12041
12773
  options?: MethodOptions
12042
- ): GaxiosPromise<Schema$Empty>;
12774
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
12043
12775
  delete(
12044
12776
  params: Params$Resource$Projects$Instances$Instancepartitions$Operations$Delete,
12045
12777
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -12068,7 +12800,10 @@ export namespace spanner_v1 {
12068
12800
  callback?:
12069
12801
  | BodyResponseCallback<Schema$Empty>
12070
12802
  | BodyResponseCallback<Readable>
12071
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
12803
+ ):
12804
+ | void
12805
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
12806
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
12072
12807
  let params = (paramsOrCallback ||
12073
12808
  {}) as Params$Resource$Projects$Instances$Instancepartitions$Operations$Delete;
12074
12809
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -12121,11 +12856,11 @@ export namespace spanner_v1 {
12121
12856
  get(
12122
12857
  params: Params$Resource$Projects$Instances$Instancepartitions$Operations$Get,
12123
12858
  options: StreamMethodOptions
12124
- ): GaxiosPromise<Readable>;
12859
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
12125
12860
  get(
12126
12861
  params?: Params$Resource$Projects$Instances$Instancepartitions$Operations$Get,
12127
12862
  options?: MethodOptions
12128
- ): GaxiosPromise<Schema$Operation>;
12863
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
12129
12864
  get(
12130
12865
  params: Params$Resource$Projects$Instances$Instancepartitions$Operations$Get,
12131
12866
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -12154,7 +12889,10 @@ export namespace spanner_v1 {
12154
12889
  callback?:
12155
12890
  | BodyResponseCallback<Schema$Operation>
12156
12891
  | BodyResponseCallback<Readable>
12157
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
12892
+ ):
12893
+ | void
12894
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
12895
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
12158
12896
  let params = (paramsOrCallback ||
12159
12897
  {}) as Params$Resource$Projects$Instances$Instancepartitions$Operations$Get;
12160
12898
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -12207,11 +12945,11 @@ export namespace spanner_v1 {
12207
12945
  list(
12208
12946
  params: Params$Resource$Projects$Instances$Instancepartitions$Operations$List,
12209
12947
  options: StreamMethodOptions
12210
- ): GaxiosPromise<Readable>;
12948
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
12211
12949
  list(
12212
12950
  params?: Params$Resource$Projects$Instances$Instancepartitions$Operations$List,
12213
12951
  options?: MethodOptions
12214
- ): GaxiosPromise<Schema$ListOperationsResponse>;
12952
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>;
12215
12953
  list(
12216
12954
  params: Params$Resource$Projects$Instances$Instancepartitions$Operations$List,
12217
12955
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -12244,8 +12982,8 @@ export namespace spanner_v1 {
12244
12982
  | BodyResponseCallback<Readable>
12245
12983
  ):
12246
12984
  | void
12247
- | GaxiosPromise<Schema$ListOperationsResponse>
12248
- | GaxiosPromise<Readable> {
12985
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>
12986
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
12249
12987
  let params = (paramsOrCallback ||
12250
12988
  {}) as Params$Resource$Projects$Instances$Instancepartitions$Operations$List;
12251
12989
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -12336,7 +13074,7 @@ export namespace spanner_v1 {
12336
13074
  }
12337
13075
 
12338
13076
  /**
12339
- * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
13077
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
12340
13078
  *
12341
13079
  * @param params - Parameters for request
12342
13080
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -12346,11 +13084,11 @@ export namespace spanner_v1 {
12346
13084
  cancel(
12347
13085
  params: Params$Resource$Projects$Instances$Operations$Cancel,
12348
13086
  options: StreamMethodOptions
12349
- ): GaxiosPromise<Readable>;
13087
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
12350
13088
  cancel(
12351
13089
  params?: Params$Resource$Projects$Instances$Operations$Cancel,
12352
13090
  options?: MethodOptions
12353
- ): GaxiosPromise<Schema$Empty>;
13091
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
12354
13092
  cancel(
12355
13093
  params: Params$Resource$Projects$Instances$Operations$Cancel,
12356
13094
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -12379,7 +13117,10 @@ export namespace spanner_v1 {
12379
13117
  callback?:
12380
13118
  | BodyResponseCallback<Schema$Empty>
12381
13119
  | BodyResponseCallback<Readable>
12382
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
13120
+ ):
13121
+ | void
13122
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
13123
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
12383
13124
  let params = (paramsOrCallback ||
12384
13125
  {}) as Params$Resource$Projects$Instances$Operations$Cancel;
12385
13126
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -12431,11 +13172,11 @@ export namespace spanner_v1 {
12431
13172
  delete(
12432
13173
  params: Params$Resource$Projects$Instances$Operations$Delete,
12433
13174
  options: StreamMethodOptions
12434
- ): GaxiosPromise<Readable>;
13175
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
12435
13176
  delete(
12436
13177
  params?: Params$Resource$Projects$Instances$Operations$Delete,
12437
13178
  options?: MethodOptions
12438
- ): GaxiosPromise<Schema$Empty>;
13179
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
12439
13180
  delete(
12440
13181
  params: Params$Resource$Projects$Instances$Operations$Delete,
12441
13182
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -12464,7 +13205,10 @@ export namespace spanner_v1 {
12464
13205
  callback?:
12465
13206
  | BodyResponseCallback<Schema$Empty>
12466
13207
  | BodyResponseCallback<Readable>
12467
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
13208
+ ):
13209
+ | void
13210
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
13211
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
12468
13212
  let params = (paramsOrCallback ||
12469
13213
  {}) as Params$Resource$Projects$Instances$Operations$Delete;
12470
13214
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -12516,11 +13260,11 @@ export namespace spanner_v1 {
12516
13260
  get(
12517
13261
  params: Params$Resource$Projects$Instances$Operations$Get,
12518
13262
  options: StreamMethodOptions
12519
- ): GaxiosPromise<Readable>;
13263
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
12520
13264
  get(
12521
13265
  params?: Params$Resource$Projects$Instances$Operations$Get,
12522
13266
  options?: MethodOptions
12523
- ): GaxiosPromise<Schema$Operation>;
13267
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
12524
13268
  get(
12525
13269
  params: Params$Resource$Projects$Instances$Operations$Get,
12526
13270
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -12549,7 +13293,10 @@ export namespace spanner_v1 {
12549
13293
  callback?:
12550
13294
  | BodyResponseCallback<Schema$Operation>
12551
13295
  | BodyResponseCallback<Readable>
12552
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
13296
+ ):
13297
+ | void
13298
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
13299
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
12553
13300
  let params = (paramsOrCallback ||
12554
13301
  {}) as Params$Resource$Projects$Instances$Operations$Get;
12555
13302
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -12601,11 +13348,11 @@ export namespace spanner_v1 {
12601
13348
  list(
12602
13349
  params: Params$Resource$Projects$Instances$Operations$List,
12603
13350
  options: StreamMethodOptions
12604
- ): GaxiosPromise<Readable>;
13351
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
12605
13352
  list(
12606
13353
  params?: Params$Resource$Projects$Instances$Operations$List,
12607
13354
  options?: MethodOptions
12608
- ): GaxiosPromise<Schema$ListOperationsResponse>;
13355
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>;
12609
13356
  list(
12610
13357
  params: Params$Resource$Projects$Instances$Operations$List,
12611
13358
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -12638,8 +13385,8 @@ export namespace spanner_v1 {
12638
13385
  | BodyResponseCallback<Readable>
12639
13386
  ):
12640
13387
  | void
12641
- | GaxiosPromise<Schema$ListOperationsResponse>
12642
- | GaxiosPromise<Readable> {
13388
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>
13389
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
12643
13390
  let params = (paramsOrCallback ||
12644
13391
  {}) as Params$Resource$Projects$Instances$Operations$List;
12645
13392
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -12739,11 +13486,11 @@ export namespace spanner_v1 {
12739
13486
  list(
12740
13487
  params: Params$Resource$Scans$List,
12741
13488
  options: StreamMethodOptions
12742
- ): GaxiosPromise<Readable>;
13489
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
12743
13490
  list(
12744
13491
  params?: Params$Resource$Scans$List,
12745
13492
  options?: MethodOptions
12746
- ): GaxiosPromise<Schema$ListScansResponse>;
13493
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListScansResponse>>;
12747
13494
  list(
12748
13495
  params: Params$Resource$Scans$List,
12749
13496
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -12774,8 +13521,8 @@ export namespace spanner_v1 {
12774
13521
  | BodyResponseCallback<Readable>
12775
13522
  ):
12776
13523
  | void
12777
- | GaxiosPromise<Schema$ListScansResponse>
12778
- | GaxiosPromise<Readable> {
13524
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListScansResponse>>
13525
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
12779
13526
  let params = (paramsOrCallback || {}) as Params$Resource$Scans$List;
12780
13527
  let options = (optionsOrCallback || {}) as MethodOptions;
12781
13528