@maxim_mazurok/gapi.client.spanner-v1 0.37.20260213 → 0.38.20260218

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.
Files changed (2) hide show
  1. package/index.d.ts +432 -311
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://spanner.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260213
12
+ // Revision: 20260218
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -111,7 +111,10 @@ declare namespace gapi.client {
111
111
  /** Required for the CreateBackup operation. Name of the database from which this backup was created. This needs to be in the same instance as the backup. Values are of the form `projects//instances//databases/`. */
112
112
  database?: string;
113
113
  /** Output only. The database dialect information for the backup. */
114
- databaseDialect?: string;
114
+ databaseDialect?:
115
+ | 'DATABASE_DIALECT_UNSPECIFIED'
116
+ | 'GOOGLE_STANDARD_SQL'
117
+ | 'POSTGRESQL';
115
118
  /** Output only. The encryption information for the backup. */
116
119
  encryptionInfo?: EncryptionInfo;
117
120
  /** 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. */
@@ -129,7 +132,11 @@ declare namespace gapi.client {
129
132
  /** 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`. */
130
133
  maxExpireTime?: string;
131
134
  /** Output only. The minimum edition required to successfully restore the backup. Populated only if the edition is Enterprise or Enterprise Plus. */
132
- minimumRestorableEdition?: string;
135
+ minimumRestorableEdition?:
136
+ | 'EDITION_UNSPECIFIED'
137
+ | 'STANDARD'
138
+ | 'ENTERPRISE'
139
+ | 'ENTERPRISE_PLUS';
133
140
  /** Output only for the CreateBackup operation. Required for the UpdateBackup operation. A globally unique identifier for the backup which cannot be changed. Values are of the form `projects//instances//backups/a-z*[a-z0-9]` The final segment of the name must be between 2 and 60 characters in length. The backup is stored in the location(s) specified in the instance configuration of the instance containing the backup, identified by the prefix of the backup name of the form `projects//instances/`. */
134
141
  name?: string;
135
142
  /** Output only. Data deleted at a time older than this is guaranteed not to be retained in order to support this backup. For a backup in an incremental backup chain, this is the version time of the oldest backup that exists or ever existed in the chain. For all other backups, this is the version time of the backup. This field can be used to understand what data is being retained by the backup system. */
@@ -141,7 +148,7 @@ declare namespace gapi.client {
141
148
  /** Output only. Size of the backup in bytes. For a backup in an incremental backup chain, this is the sum of the `exclusive_size_bytes` of itself and all older backups in the chain. */
142
149
  sizeBytes?: string;
143
150
  /** Output only. The current state of the backup. */
144
- state?: string;
151
+ state?: 'STATE_UNSPECIFIED' | 'CREATING' | 'READY';
145
152
  /** The backup will contain an externally consistent copy of the database at the timestamp specified by `version_time`. If `version_time` is not specified, the system will set `version_time` to the `create_time` of the backup. */
146
153
  versionTime?: string;
147
154
  }
@@ -313,7 +320,12 @@ declare namespace gapi.client {
313
320
  /** The label for the context value. e.g. "latency". */
314
321
  label?: LocalizedString;
315
322
  /** The severity of this context. */
316
- severity?: string;
323
+ severity?:
324
+ | 'SEVERITY_UNSPECIFIED'
325
+ | 'INFO'
326
+ | 'WARNING'
327
+ | 'ERROR'
328
+ | 'FATAL';
317
329
  /** The unit of the context value. */
318
330
  unit?: string;
319
331
  /** The value for the context. */
@@ -321,7 +333,11 @@ declare namespace gapi.client {
321
333
  }
322
334
  interface CopyBackupEncryptionConfig {
323
335
  /** Required. The encryption type of the backup. */
324
- encryptionType?: string;
336
+ encryptionType?:
337
+ | 'ENCRYPTION_TYPE_UNSPECIFIED'
338
+ | 'USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION'
339
+ | 'GOOGLE_DEFAULT_ENCRYPTION'
340
+ | 'CUSTOMER_MANAGED_ENCRYPTION';
325
341
  /** Optional. This field is maintained for backwards compatibility. For new callers, we recommend using `kms_key_names` to specify the KMS key. Only use `kms_key_name` if the location of the KMS key matches the database instance's configuration (location) exactly. For example, if the KMS location is in `us-central1` or `nam3`, then the database instance must also be in `us-central1` or `nam3`. The Cloud KMS key that is used to encrypt and decrypt the restored database. Set this field only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//keyRings//cryptoKeys/`. */
326
342
  kmsKeyName?: string;
327
343
  /** 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. */
@@ -349,7 +365,11 @@ declare namespace gapi.client {
349
365
  }
350
366
  interface CreateBackupEncryptionConfig {
351
367
  /** Required. The encryption type of the backup. */
352
- encryptionType?: string;
368
+ encryptionType?:
369
+ | 'ENCRYPTION_TYPE_UNSPECIFIED'
370
+ | 'USE_DATABASE_ENCRYPTION'
371
+ | 'GOOGLE_DEFAULT_ENCRYPTION'
372
+ | 'CUSTOMER_MANAGED_ENCRYPTION';
353
373
  /** Optional. This field is maintained for backwards compatibility. For new callers, we recommend using `kms_key_names` to specify the KMS key. Only use `kms_key_name` if the location of the KMS key matches the database instance's configuration (location) exactly. For example, if the KMS location is in `us-central1` or `nam3`, then the database instance must also be in `us-central1` or `nam3`. The Cloud KMS key that is used to encrypt and decrypt the restored database. Set this field only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//keyRings//cryptoKeys/`. */
354
374
  kmsKeyName?: string;
355
375
  /** 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. */
@@ -373,7 +393,10 @@ declare namespace gapi.client {
373
393
  /** Required. A `CREATE DATABASE` statement, which specifies the ID of the new database. The database ID must conform to the regular expression `a-z*[a-z0-9]` and be between 2 and 30 characters in length. If the database ID is a reserved word or if it contains a hyphen, the database ID must be enclosed in backticks (`` ` ``). */
374
394
  createStatement?: string;
375
395
  /** Optional. The dialect of the Cloud Spanner Database. */
376
- databaseDialect?: string;
396
+ databaseDialect?:
397
+ | 'DATABASE_DIALECT_UNSPECIFIED'
398
+ | 'GOOGLE_STANDARD_SQL'
399
+ | 'POSTGRESQL';
377
400
  /** Optional. The encryption configuration for the database. If this field is not specified, Cloud Spanner will encrypt/decrypt all data at rest using Google default encryption. */
378
401
  encryptionConfig?: EncryptionConfig;
379
402
  /** Optional. A list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created. */
@@ -403,7 +426,10 @@ declare namespace gapi.client {
403
426
  /** The time at which this operation failed or was completed successfully. */
404
427
  endTime?: string;
405
428
  /** The expected fulfillment period of this create operation. */
406
- expectedFulfillmentPeriod?: string;
429
+ expectedFulfillmentPeriod?:
430
+ | 'FULFILLMENT_PERIOD_UNSPECIFIED'
431
+ | 'FULFILLMENT_PERIOD_NORMAL'
432
+ | 'FULFILLMENT_PERIOD_EXTENDED';
407
433
  /** The instance being created. */
408
434
  instance?: Instance;
409
435
  /** The time at which the CreateInstance request was received. */
@@ -447,7 +473,10 @@ declare namespace gapi.client {
447
473
  /** Output only. If exists, the time at which the database creation started. */
448
474
  createTime?: string;
449
475
  /** Output only. The dialect of the Cloud Spanner Database. */
450
- databaseDialect?: string;
476
+ databaseDialect?:
477
+ | 'DATABASE_DIALECT_UNSPECIFIED'
478
+ | 'GOOGLE_STANDARD_SQL'
479
+ | 'POSTGRESQL';
451
480
  /** Output only. The read-write region which contains the database's leader replicas. This is the same as the value of default_leader database option set using DatabaseAdmin.CreateDatabase or DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty. */
452
481
  defaultLeader?: string;
453
482
  /** Output only. Earliest timestamp at which older versions of the data can be read. This value is continuously updated by Cloud Spanner and becomes stale the moment it is queried. If you are using this value to recover data, make sure to account for the time from the moment when the value is queried to the moment when you initiate the recovery. */
@@ -467,7 +496,7 @@ declare namespace gapi.client {
467
496
  /** Output only. Applicable only for restored databases. Contains information about the restore source. */
468
497
  restoreInfo?: RestoreInfo;
469
498
  /** Output only. The current database state. */
470
- state?: string;
499
+ state?: 'STATE_UNSPECIFIED' | 'CREATING' | 'READY' | 'READY_OPTIMIZING';
471
500
  /** Output only. The period in which Cloud Spanner retains all versions of data for the database. This is the same as the value of version_retention_period database option set using UpdateDatabaseDdl. Defaults to 1 hour, if not set. */
472
501
  versionRetentionPeriod?: string;
473
502
  }
@@ -493,7 +522,7 @@ declare namespace gapi.client {
493
522
  /** Describes the changes that were made. */
494
523
  mods?: Mod[];
495
524
  /** Describes the type of change. */
496
- modType?: string;
525
+ modType?: 'MOD_TYPE_UNSPECIFIED' | 'INSERT' | 'UPDATE' | 'DELETE';
497
526
  /** Indicates the number of partitions that return data change records for this transaction. This value can be helpful in assembling all records associated with a particular transaction. */
498
527
  numberOfPartitionsInTransaction?: number;
499
528
  /** Indicates the number of data change records that are part of this transaction across all change stream partitions. This value can be used to assemble all the records associated with a particular transaction. */
@@ -507,7 +536,12 @@ declare namespace gapi.client {
507
536
  /** Indicates the transaction tag associated with this transaction. */
508
537
  transactionTag?: string;
509
538
  /** Describes the value capture type that was specified in the change stream configuration when this change was captured. */
510
- valueCaptureType?: string;
539
+ valueCaptureType?:
540
+ | 'VALUE_CAPTURE_TYPE_UNSPECIFIED'
541
+ | 'OLD_AND_NEW_VALUES'
542
+ | 'NEW_VALUES'
543
+ | 'NEW_ROW'
544
+ | 'NEW_ROW_AND_OLD_VALUES';
511
545
  }
512
546
  interface DdlStatementActionInfo {
513
547
  /** The action for the DDL statement, for example, CREATE, ALTER, DROP, GRANT, etc. This field is a non-empty string. */
@@ -537,7 +571,12 @@ declare namespace gapi.client {
537
571
  /** Whether this message is specific only for the current metric. By default Diagnostics are shown for all metrics, regardless which metric is the currently selected metric in the UI. However occasionally a metric will generate so many messages that the resulting visual clutter becomes overwhelming. In this case setting this to true, will show the diagnostic messages for that metric only if it is the currently selected metric. */
538
572
  metricSpecific?: boolean;
539
573
  /** The severity of the diagnostic message. */
540
- severity?: string;
574
+ severity?:
575
+ | 'SEVERITY_UNSPECIFIED'
576
+ | 'INFO'
577
+ | 'WARNING'
578
+ | 'ERROR'
579
+ | 'FATAL';
541
580
  /** The short message. */
542
581
  shortMessage?: LocalizedString;
543
582
  }
@@ -559,7 +598,10 @@ declare namespace gapi.client {
559
598
  /** Output only. If present, the status of a recent encrypt/decrypt call on underlying data for this database or backup. Regardless of status, data is always encrypted at rest. */
560
599
  encryptionStatus?: Status;
561
600
  /** Output only. The type of encryption. */
562
- encryptionType?: string;
601
+ encryptionType?:
602
+ | 'TYPE_UNSPECIFIED'
603
+ | 'GOOGLE_DEFAULT_ENCRYPTION'
604
+ | 'CUSTOMER_MANAGED_ENCRYPTION';
563
605
  /** Output only. A Cloud KMS key version that is being used to protect the database or backup. */
564
606
  kmsKeyVersion?: string;
565
607
  }
@@ -601,7 +643,12 @@ declare namespace gapi.client {
601
643
  /** 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`. */
602
644
  partitionToken?: string;
603
645
  /** Used to control the amount of debugging information returned in ResultSetStats. If partition_token is set, query_mode can only be set to QueryMode.NORMAL. */
604
- queryMode?: string;
646
+ queryMode?:
647
+ | 'NORMAL'
648
+ | 'PLAN'
649
+ | 'PROFILE'
650
+ | 'WITH_STATS'
651
+ | 'WITH_PLAN_AND_STATS';
605
652
  /** Query optimizer configuration to use for the given query. */
606
653
  queryOptions?: QueryOptions;
607
654
  /** Common options for this request. */
@@ -633,7 +680,10 @@ declare namespace gapi.client {
633
680
  }
634
681
  interface FreeInstanceMetadata {
635
682
  /** Specifies the expiration behavior of a free instance. The default of ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during or after creation, and before expiration. */
636
- expireBehavior?: string;
683
+ expireBehavior?:
684
+ | 'EXPIRE_BEHAVIOR_UNSPECIFIED'
685
+ | 'FREE_TO_PROVISIONED'
686
+ | 'REMOVE_AFTER_GRACE_PERIOD';
637
687
  /** Output only. Timestamp after which the instance will either be upgraded or scheduled for deletion after a grace period. ExpireBehavior is used to choose between upgrading or scheduling the free instance for deletion. This timestamp is set during the creation of a free instance. */
638
688
  expireTime?: string;
639
689
  /** Output only. If present, the timestamp at which the free instance was upgraded to a provisioned instance. */
@@ -687,17 +737,27 @@ declare namespace gapi.client {
687
737
  /** Output only. The time at which the instance was created. */
688
738
  createTime?: string;
689
739
  /** 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. */
690
- defaultBackupScheduleType?: string;
740
+ defaultBackupScheduleType?:
741
+ | 'DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED'
742
+ | 'NONE'
743
+ | 'AUTOMATIC';
691
744
  /** 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. */
692
745
  displayName?: string;
693
746
  /** Optional. The `Edition` of the current instance. */
694
- edition?: string;
747
+ edition?:
748
+ | 'EDITION_UNSPECIFIED'
749
+ | 'STANDARD'
750
+ | 'ENTERPRISE'
751
+ | 'ENTERPRISE_PLUS';
695
752
  /** Deprecated. This field is not populated. */
696
753
  endpointUris?: string[];
697
754
  /** Free instance metadata. Only populated for free instances. */
698
755
  freeInstanceMetadata?: FreeInstanceMetadata;
699
756
  /** The `InstanceType` of the current instance. */
700
- instanceType?: string;
757
+ instanceType?:
758
+ | 'INSTANCE_TYPE_UNSPECIFIED'
759
+ | 'PROVISIONED'
760
+ | 'FREE_INSTANCE';
701
761
  /** Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. Cloud Labels can be used to filter collections of resources. They can be used to control how resource metrics are aggregated. And they can be used as arguments to policy management rules (e.g. route, firewall, load balancing, etc.). * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `a-z{0,62}`. * Label values must be between 0 and 63 characters long and must conform to the regular expression `[a-z0-9_-]{0,63}`. * No more than 64 labels can be associated with a given resource. See https://goo.gl/xmQnxf for more information on and examples of labels. If you plan to use labels in your own code, please note that additional characters may be allowed in the future. And so you are advised to use an internal label representation, such as JSON, which doesn't rely upon specific characters being disallowed. For example, representing labels as the string: name + "_" + value would prove problematic if we were to allow "_" in a future release. */
702
762
  labels?: {[P in string]: string};
703
763
  /** Required. A unique identifier for the instance, which cannot be changed after the instance is created. Values are of the form `projects//instances/a-z*[a-z0-9]`. The final segment of the name must be between 2 and 64 characters in length. */
@@ -709,7 +769,7 @@ declare namespace gapi.client {
709
769
  /** 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. */
710
770
  replicaComputeCapacity?: ReplicaComputeCapacity[];
711
771
  /** 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`. */
712
- state?: string;
772
+ state?: 'STATE_UNSPECIFIED' | 'CREATING' | 'READY';
713
773
  /** Output only. The time at which the instance was most recently updated. */
714
774
  updateTime?: string;
715
775
  }
@@ -717,13 +777,18 @@ declare namespace gapi.client {
717
777
  /** Base configuration name, e.g. projects//instanceConfigs/nam3, based on which this configuration is created. Only set for user-managed configurations. `base_config` must refer to a configuration of type `GOOGLE_MANAGED` in the same project as this configuration. */
718
778
  baseConfig?: string;
719
779
  /** Output only. Whether this instance configuration is a Google-managed or user-managed configuration. */
720
- configType?: string;
780
+ configType?: 'TYPE_UNSPECIFIED' | 'GOOGLE_MANAGED' | 'USER_MANAGED';
721
781
  /** The name of this instance configuration as it appears in UIs. */
722
782
  displayName?: string;
723
783
  /** etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance configuration from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform instance configuration updates in order to avoid race conditions: An etag is returned in the response which contains instance configurations, and systems are expected to put that etag in the request to update instance configuration to ensure that their change is applied to the same version of the instance configuration. If no etag is provided in the call to update the instance configuration, then the existing instance configuration is overwritten blindly. */
724
784
  etag?: string;
725
785
  /** Output only. Describes whether free instances are available to be created in this instance configuration. */
726
- freeInstanceAvailability?: string;
786
+ freeInstanceAvailability?:
787
+ | 'FREE_INSTANCE_AVAILABILITY_UNSPECIFIED'
788
+ | 'AVAILABLE'
789
+ | 'UNSUPPORTED'
790
+ | 'DISABLED'
791
+ | 'QUOTA_EXCEEDED';
727
792
  /** Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. Cloud Labels can be used to filter collections of resources. They can be used to control how resource metrics are aggregated. And they can be used as arguments to policy management rules (e.g. route, firewall, load balancing, etc.). * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `a-z{0,62}`. * Label values must be between 0 and 63 characters long and must conform to the regular expression `[a-z0-9_-]{0,63}`. * No more than 64 labels can be associated with a given resource. See https://goo.gl/xmQnxf for more information on and examples of labels. If you plan to use labels in your own code, please note that additional characters may be allowed in the future. Therefore, you are advised to use an internal label representation, such as JSON, which doesn't rely upon specific characters being disallowed. For example, representing labels as the string: name + "_" + value would prove problematic if we were to allow "_" in a future release. */
728
793
  labels?: {[P in string]: string};
729
794
  /** Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration. */
@@ -733,13 +798,17 @@ declare namespace gapi.client {
733
798
  /** Output only. The available optional replicas to choose from for user-managed configurations. Populated for Google-managed configurations. */
734
799
  optionalReplicas?: ReplicaInfo[];
735
800
  /** Output only. The `QuorumType` of the instance configuration. */
736
- quorumType?: string;
801
+ quorumType?:
802
+ | 'QUORUM_TYPE_UNSPECIFIED'
803
+ | 'REGION'
804
+ | 'DUAL_REGION'
805
+ | 'MULTI_REGION';
737
806
  /** Output only. If true, the instance configuration is being created or updated. If false, there are no ongoing operations for the instance configuration. */
738
807
  reconciling?: boolean;
739
808
  /** The geographic placement of nodes in this instance configuration and their replication properties. To create user-managed configurations, input `replicas` must include all replicas in `replicas` of the `base_config` and include one or more replicas in the `optional_replicas` of the `base_config`. */
740
809
  replicas?: ReplicaInfo[];
741
810
  /** Output only. The current instance configuration state. Applicable only for `USER_MANAGED` configurations. */
742
- state?: string;
811
+ state?: 'STATE_UNSPECIFIED' | 'CREATING' | 'READY';
743
812
  /** Output only. The storage limit in bytes per processing unit. */
744
813
  storageLimitPerProcessingUnit?: string;
745
814
  }
@@ -779,7 +848,7 @@ declare namespace gapi.client {
779
848
  /** Output only. The names of the databases that reference this instance partition. Referencing databases should share the parent instance. The existence of any referencing database prevents the instance partition from being deleted. */
780
849
  referencingDatabases?: string[];
781
850
  /** Output only. The current instance partition state. */
782
- state?: string;
851
+ state?: 'STATE_UNSPECIFIED' | 'CREATING' | 'READY';
783
852
  /** Output only. The time at which the instance partition was most recently updated. */
784
853
  updateTime?: string;
785
854
  }
@@ -937,7 +1006,7 @@ declare namespace gapi.client {
937
1006
  }
938
1007
  interface Metric {
939
1008
  /** The aggregation function used to aggregate each key bucket */
940
- aggregation?: string;
1009
+ aggregation?: 'AGGREGATION_UNSPECIFIED' | 'MAX' | 'SUM';
941
1010
  /** The category of the metric, e.g. "Activity", "Alerts", "Reads", etc. */
942
1011
  category?: LocalizedString;
943
1012
  /** The references to numerator and denominator metrics for a derived metric. */
@@ -1146,7 +1215,7 @@ declare namespace gapi.client {
1146
1215
  /** The `PlanNode`'s index in node list. */
1147
1216
  index?: number;
1148
1217
  /** Used to determine the type of node. May be needed for visualizing different kinds of nodes differently. For example, If the node is a SCALAR node, it will have a condensed representation which can be used to directly embed a description of the node in its parent. */
1149
- kind?: string;
1218
+ kind?: 'KIND_UNSPECIFIED' | 'RELATIONAL' | 'SCALAR';
1150
1219
  /** Attributes relevant to the node contained in a group of key-value pairs. For example, a Parameter Reference node could have the following information in its metadata: { "parameter_reference": "param1", "parameter_type": "array" } */
1151
1220
  metadata?: {[P in string]: any};
1152
1221
  /** Condensed representation for SCALAR nodes. */
@@ -1192,7 +1261,7 @@ declare namespace gapi.client {
1192
1261
  /** Output only. The etag is used for optimistic concurrency control as a way to help prevent simultaneous `ChangeQuorum` requests that might create a race condition. */
1193
1262
  etag?: string;
1194
1263
  /** Output only. Whether this `ChangeQuorum` is Google or User initiated. */
1195
- initiator?: string;
1264
+ initiator?: 'INITIATOR_UNSPECIFIED' | 'GOOGLE' | 'USER';
1196
1265
  /** Output only. The type of this quorum. See QuorumType for more information about quorum type specifications. */
1197
1266
  quorumType?: QuorumType;
1198
1267
  /** Output only. The timestamp when the request was triggered. */
@@ -1232,9 +1301,15 @@ declare namespace gapi.client {
1232
1301
  /** 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. */
1233
1302
  limit?: string;
1234
1303
  /** Optional. Lock Hint for the request, it can only be used with read-write transactions. */
1235
- lockHint?: string;
1304
+ lockHint?:
1305
+ | 'LOCK_HINT_UNSPECIFIED'
1306
+ | 'LOCK_HINT_SHARED'
1307
+ | 'LOCK_HINT_EXCLUSIVE';
1236
1308
  /** 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). */
1237
- orderBy?: string;
1309
+ orderBy?:
1310
+ | 'ORDER_BY_UNSPECIFIED'
1311
+ | 'ORDER_BY_PRIMARY_KEY'
1312
+ | 'ORDER_BY_NO_ORDER';
1238
1313
  /** 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. */
1239
1314
  partitionToken?: string;
1240
1315
  /** Common options for this request. */
@@ -1250,7 +1325,10 @@ declare namespace gapi.client {
1250
1325
  /** 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. */
1251
1326
  multiplexedSessionPreviousTransactionId?: string;
1252
1327
  /** Read lock mode for the transaction. */
1253
- readLockMode?: string;
1328
+ readLockMode?:
1329
+ | 'READ_LOCK_MODE_UNSPECIFIED'
1330
+ | 'PESSIMISTIC'
1331
+ | 'OPTIMISTIC';
1254
1332
  }
1255
1333
  interface ReplicaComputeCapacity {
1256
1334
  /** The number of nodes allocated to each replica. This may be zero in API responses for instances that are not yet in state `READY`. */
@@ -1266,19 +1344,23 @@ declare namespace gapi.client {
1266
1344
  /** The location of the serving resources, e.g., "us-central1". */
1267
1345
  location?: string;
1268
1346
  /** The type of replica. */
1269
- type?: string;
1347
+ type?: 'TYPE_UNSPECIFIED' | 'READ_WRITE' | 'READ_ONLY' | 'WITNESS';
1270
1348
  }
1271
1349
  interface ReplicaSelection {
1272
1350
  /** The location or region of the serving requests, for example, "us-east1". */
1273
1351
  location?: string;
1274
1352
  /** The type of replica. */
1275
- type?: string;
1353
+ type?: 'TYPE_UNSPECIFIED' | 'READ_WRITE' | 'READ_ONLY';
1276
1354
  }
1277
1355
  interface RequestOptions {
1278
1356
  /** Optional. Optional context that may be needed for some requests. */
1279
1357
  clientContext?: ClientContext;
1280
1358
  /** Priority for the request. */
1281
- priority?: string;
1359
+ priority?:
1360
+ | 'PRIORITY_UNSPECIFIED'
1361
+ | 'PRIORITY_LOW'
1362
+ | 'PRIORITY_MEDIUM'
1363
+ | 'PRIORITY_HIGH';
1282
1364
  /** 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. */
1283
1365
  requestTag?: string;
1284
1366
  /** 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. To enable tagging on a transaction, `transaction_tag` must be set to the same value for all requests belonging to the same transaction, including BeginTransaction. 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. */
@@ -1286,7 +1368,11 @@ declare namespace gapi.client {
1286
1368
  }
1287
1369
  interface RestoreDatabaseEncryptionConfig {
1288
1370
  /** Required. The encryption type of the restored database. */
1289
- encryptionType?: string;
1371
+ encryptionType?:
1372
+ | 'ENCRYPTION_TYPE_UNSPECIFIED'
1373
+ | 'USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION'
1374
+ | 'GOOGLE_DEFAULT_ENCRYPTION'
1375
+ | 'CUSTOMER_MANAGED_ENCRYPTION';
1290
1376
  /** Optional. This field is maintained for backwards compatibility. For new callers, we recommend using `kms_key_names` to specify the KMS key. Only use `kms_key_name` if the location of the KMS key matches the database instance's configuration (location) exactly. For example, if the KMS location is in `us-central1` or `nam3`, then the database instance must also be in `us-central1` or `nam3`. The Cloud KMS key that is used to encrypt and decrypt the restored database. Set this field only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//keyRings//cryptoKeys/`. */
1291
1377
  kmsKeyName?: string;
1292
1378
  /** 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. */
@@ -1304,7 +1390,7 @@ declare namespace gapi.client {
1304
1390
  /** The progress of the RestoreDatabase operation. */
1305
1391
  progress?: OperationProgress;
1306
1392
  /** The type of the restore source. */
1307
- sourceType?: string;
1393
+ sourceType?: 'TYPE_UNSPECIFIED' | 'BACKUP';
1308
1394
  }
1309
1395
  interface RestoreDatabaseRequest {
1310
1396
  /** Name of the backup from which to restore. Values are of the form `projects//instances//backups/`. */
@@ -1318,7 +1404,7 @@ declare namespace gapi.client {
1318
1404
  /** Information about the backup used to restore the database. The backup may no longer exist. */
1319
1405
  backupInfo?: BackupInfo;
1320
1406
  /** The type of the restore source. */
1321
- sourceType?: string;
1407
+ sourceType?: 'TYPE_UNSPECIFIED' | 'BACKUP';
1322
1408
  }
1323
1409
  interface ResultSet {
1324
1410
  /** Metadata about the result set, such as row type information. */
@@ -1460,7 +1546,10 @@ declare namespace gapi.client {
1460
1546
  /** When `exclude_txn_from_change_streams` is set to `true`, it prevents read or write transactions from being tracked in change streams. * If the DDL option `allow_txn_exclusion` is set to `true`, then the updates made within this transaction aren't recorded in the change stream. * If you don't set the DDL option `allow_txn_exclusion` or if it's set to `false`, then the updates made within this transaction are recorded in the change stream. When `exclude_txn_from_change_streams` is set to `false` or not set, modifications from this transaction are recorded in all change streams that are tracking columns modified by these transactions. The `exclude_txn_from_change_streams` option can only be specified for read-write or partitioned DML transactions, otherwise the API returns an `INVALID_ARGUMENT` error. */
1461
1547
  excludeTxnFromChangeStreams?: boolean;
1462
1548
  /** Isolation level for the transaction. */
1463
- isolationLevel?: string;
1549
+ isolationLevel?:
1550
+ | 'ISOLATION_LEVEL_UNSPECIFIED'
1551
+ | 'SERIALIZABLE'
1552
+ | 'REPEATABLE_READ';
1464
1553
  /** Partitioned DML transaction. Authorization to begin a Partitioned DML transaction requires `spanner.databases.beginPartitionedDmlTransaction` permission on the `session` resource. */
1465
1554
  partitionedDml?: any;
1466
1555
  /** Transaction does not write. Authorization to begin a read-only transaction requires `spanner.databases.beginReadOnlyTransaction` permission on the `session` resource. */
@@ -1480,13 +1569,34 @@ declare namespace gapi.client {
1480
1569
  /** If code == ARRAY, then `array_element_type` is the type of the array elements. */
1481
1570
  arrayElementType?: Type;
1482
1571
  /** Required. The TypeCode for this type. */
1483
- code?: string;
1572
+ code?:
1573
+ | 'TYPE_CODE_UNSPECIFIED'
1574
+ | 'BOOL'
1575
+ | 'INT64'
1576
+ | 'FLOAT64'
1577
+ | 'FLOAT32'
1578
+ | 'TIMESTAMP'
1579
+ | 'DATE'
1580
+ | 'STRING'
1581
+ | 'BYTES'
1582
+ | 'ARRAY'
1583
+ | 'STRUCT'
1584
+ | 'NUMERIC'
1585
+ | 'JSON'
1586
+ | 'PROTO'
1587
+ | 'ENUM'
1588
+ | 'INTERVAL'
1589
+ | 'UUID';
1484
1590
  /** If code == PROTO or code == ENUM, then `proto_type_fqn` is the fully qualified name of the proto type representing the proto/enum definition. */
1485
1591
  protoTypeFqn?: string;
1486
1592
  /** If code == STRUCT, then `struct_type` provides type information for the struct's fields. */
1487
1593
  structType?: StructType;
1488
1594
  /** The TypeAnnotationCode that disambiguates SQL type that Spanner will use to represent values of this type during query processing. This is necessary for some type codes because a single TypeCode can be mapped to different SQL types depending on the SQL dialect. type_annotation typically is not needed to process the content of a value (it doesn't affect serialization) and clients can ignore it on the read path. */
1489
- typeAnnotation?: string;
1595
+ typeAnnotation?:
1596
+ | 'TYPE_ANNOTATION_CODE_UNSPECIFIED'
1597
+ | 'PG_NUMERIC'
1598
+ | 'PG_JSONB'
1599
+ | 'PG_OID';
1490
1600
  }
1491
1601
  interface UpdateDatabaseDdlMetadata {
1492
1602
  /** The brief action info for the DDL statements. `actions[i]` is the brief info for `statements[i]`. */
@@ -1546,7 +1656,10 @@ declare namespace gapi.client {
1546
1656
  /** The time at which this operation failed or was completed successfully. */
1547
1657
  endTime?: string;
1548
1658
  /** The expected fulfillment period of this update operation. */
1549
- expectedFulfillmentPeriod?: string;
1659
+ expectedFulfillmentPeriod?:
1660
+ | 'FULFILLMENT_PERIOD_UNSPECIFIED'
1661
+ | 'FULFILLMENT_PERIOD_NORMAL'
1662
+ | 'FULFILLMENT_PERIOD_EXTENDED';
1550
1663
  /** The desired end state of the update. */
1551
1664
  instance?: Instance;
1552
1665
  /** The time at which UpdateInstance request was received. */
@@ -1590,7 +1703,7 @@ declare namespace gapi.client {
1590
1703
  /** The token delimiting the key prefixes. */
1591
1704
  keySeparator?: string;
1592
1705
  /** The unit for the key: e.g. 'key' or 'chunk'. */
1593
- keyUnit?: string;
1706
+ keyUnit?: 'KEY_UNIT_UNSPECIFIED' | 'KEY' | 'CHUNK';
1594
1707
  /** The list of data objects for each metric. */
1595
1708
  metrics?: Metric[];
1596
1709
  /** The list of extracted key prefix nodes used in the key prefix hierarchy. */
@@ -1608,11 +1721,11 @@ declare namespace gapi.client {
1608
1721
  /** Lists the user-managed instance configuration long-running operations in the given project. An instance configuration operation has a name of the form `projects//instanceConfigs//operations/`. The long-running operation metadata field type `metadata.type_url` describes the type of the metadata. Operations returned include those that have completed/failed/canceled within the last 7 days, and pending operations. Operations returned are ordered by `operation.metadata.value.start_time` in descending order starting from the most recently started operation. */
1609
1722
  list(request?: {
1610
1723
  /** V1 error format. */
1611
- '$.xgafv'?: string;
1724
+ '$.xgafv'?: '1' | '2';
1612
1725
  /** OAuth access token. */
1613
1726
  access_token?: string;
1614
1727
  /** Data format for response. */
1615
- alt?: string;
1728
+ alt?: 'json' | 'media' | 'proto';
1616
1729
  /** JSONP */
1617
1730
  callback?: string;
1618
1731
  /** Selector specifying which fields to include in a partial response. */
@@ -1643,11 +1756,11 @@ declare namespace gapi.client {
1643
1756
  /** 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`. */
1644
1757
  cancel(request?: {
1645
1758
  /** V1 error format. */
1646
- '$.xgafv'?: string;
1759
+ '$.xgafv'?: '1' | '2';
1647
1760
  /** OAuth access token. */
1648
1761
  access_token?: string;
1649
1762
  /** Data format for response. */
1650
- alt?: string;
1763
+ alt?: 'json' | 'media' | 'proto';
1651
1764
  /** JSONP */
1652
1765
  callback?: string;
1653
1766
  /** Selector specifying which fields to include in a partial response. */
@@ -1670,11 +1783,11 @@ declare namespace gapi.client {
1670
1783
  /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
1671
1784
  delete(request?: {
1672
1785
  /** V1 error format. */
1673
- '$.xgafv'?: string;
1786
+ '$.xgafv'?: '1' | '2';
1674
1787
  /** OAuth access token. */
1675
1788
  access_token?: string;
1676
1789
  /** Data format for response. */
1677
- alt?: string;
1790
+ alt?: 'json' | 'media' | 'proto';
1678
1791
  /** JSONP */
1679
1792
  callback?: string;
1680
1793
  /** Selector specifying which fields to include in a partial response. */
@@ -1697,11 +1810,11 @@ declare namespace gapi.client {
1697
1810
  /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
1698
1811
  get(request?: {
1699
1812
  /** V1 error format. */
1700
- '$.xgafv'?: string;
1813
+ '$.xgafv'?: '1' | '2';
1701
1814
  /** OAuth access token. */
1702
1815
  access_token?: string;
1703
1816
  /** Data format for response. */
1704
- alt?: string;
1817
+ alt?: 'json' | 'media' | 'proto';
1705
1818
  /** JSONP */
1706
1819
  callback?: string;
1707
1820
  /** Selector specifying which fields to include in a partial response. */
@@ -1724,11 +1837,11 @@ declare namespace gapi.client {
1724
1837
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1725
1838
  list(request?: {
1726
1839
  /** V1 error format. */
1727
- '$.xgafv'?: string;
1840
+ '$.xgafv'?: '1' | '2';
1728
1841
  /** OAuth access token. */
1729
1842
  access_token?: string;
1730
1843
  /** Data format for response. */
1731
- alt?: string;
1844
+ alt?: 'json' | 'media' | 'proto';
1732
1845
  /** JSONP */
1733
1846
  callback?: string;
1734
1847
  /** Selector specifying which fields to include in a partial response. */
@@ -1761,11 +1874,11 @@ declare namespace gapi.client {
1761
1874
  /** 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`. */
1762
1875
  cancel(request?: {
1763
1876
  /** V1 error format. */
1764
- '$.xgafv'?: string;
1877
+ '$.xgafv'?: '1' | '2';
1765
1878
  /** OAuth access token. */
1766
1879
  access_token?: string;
1767
1880
  /** Data format for response. */
1768
- alt?: string;
1881
+ alt?: 'json' | 'media' | 'proto';
1769
1882
  /** JSONP */
1770
1883
  callback?: string;
1771
1884
  /** Selector specifying which fields to include in a partial response. */
@@ -1788,11 +1901,11 @@ declare namespace gapi.client {
1788
1901
  /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
1789
1902
  delete(request?: {
1790
1903
  /** V1 error format. */
1791
- '$.xgafv'?: string;
1904
+ '$.xgafv'?: '1' | '2';
1792
1905
  /** OAuth access token. */
1793
1906
  access_token?: string;
1794
1907
  /** Data format for response. */
1795
- alt?: string;
1908
+ alt?: 'json' | 'media' | 'proto';
1796
1909
  /** JSONP */
1797
1910
  callback?: string;
1798
1911
  /** Selector specifying which fields to include in a partial response. */
@@ -1815,11 +1928,11 @@ declare namespace gapi.client {
1815
1928
  /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
1816
1929
  get(request?: {
1817
1930
  /** V1 error format. */
1818
- '$.xgafv'?: string;
1931
+ '$.xgafv'?: '1' | '2';
1819
1932
  /** OAuth access token. */
1820
1933
  access_token?: string;
1821
1934
  /** Data format for response. */
1822
- alt?: string;
1935
+ alt?: 'json' | 'media' | 'proto';
1823
1936
  /** JSONP */
1824
1937
  callback?: string;
1825
1938
  /** Selector specifying which fields to include in a partial response. */
@@ -1842,11 +1955,11 @@ declare namespace gapi.client {
1842
1955
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1843
1956
  list(request?: {
1844
1957
  /** V1 error format. */
1845
- '$.xgafv'?: string;
1958
+ '$.xgafv'?: '1' | '2';
1846
1959
  /** OAuth access token. */
1847
1960
  access_token?: string;
1848
1961
  /** Data format for response. */
1849
- alt?: string;
1962
+ alt?: 'json' | 'media' | 'proto';
1850
1963
  /** JSONP */
1851
1964
  callback?: string;
1852
1965
  /** Selector specifying which fields to include in a partial response. */
@@ -1882,11 +1995,11 @@ declare namespace gapi.client {
1882
1995
  /** Creates an instance configuration and begins preparing it to be used. The returned long-running operation can be used to track the progress of preparing the new instance configuration. The instance configuration name is assigned by the caller. If the named instance configuration already exists, `CreateInstanceConfig` returns `ALREADY_EXISTS`. Immediately after the request returns: * The instance configuration is readable via the API, with all requested attributes. The instance configuration's reconciling field is set to true. Its state is `CREATING`. While the operation is pending: * Cancelling the operation renders the instance configuration immediately unreadable via the API. * Except for deleting the creating resource, all other attempts to modify the instance configuration are rejected. Upon completion of the returned operation: * Instances can be created using the instance configuration. * The instance configuration's reconciling field becomes false. Its state becomes `READY`. The returned long-running operation will have a name of the format `/operations/` and can be used to track creation of the instance configuration. The metadata field type is CreateInstanceConfigMetadata. The response field type is InstanceConfig, if successful. Authorization requires `spanner.instanceConfigs.create` permission on the resource parent. */
1883
1996
  create(request: {
1884
1997
  /** V1 error format. */
1885
- '$.xgafv'?: string;
1998
+ '$.xgafv'?: '1' | '2';
1886
1999
  /** OAuth access token. */
1887
2000
  access_token?: string;
1888
2001
  /** Data format for response. */
1889
- alt?: string;
2002
+ alt?: 'json' | 'media' | 'proto';
1890
2003
  /** JSONP */
1891
2004
  callback?: string;
1892
2005
  /** Selector specifying which fields to include in a partial response. */
@@ -1911,11 +2024,11 @@ declare namespace gapi.client {
1911
2024
  create(
1912
2025
  request: {
1913
2026
  /** V1 error format. */
1914
- '$.xgafv'?: string;
2027
+ '$.xgafv'?: '1' | '2';
1915
2028
  /** OAuth access token. */
1916
2029
  access_token?: string;
1917
2030
  /** Data format for response. */
1918
- alt?: string;
2031
+ alt?: 'json' | 'media' | 'proto';
1919
2032
  /** JSONP */
1920
2033
  callback?: string;
1921
2034
  /** Selector specifying which fields to include in a partial response. */
@@ -1940,11 +2053,11 @@ declare namespace gapi.client {
1940
2053
  /** Deletes the instance configuration. Deletion is only allowed when no instances are using the configuration. If any instances are using the configuration, returns `FAILED_PRECONDITION`. Only user-managed configurations can be deleted. Authorization requires `spanner.instanceConfigs.delete` permission on the resource name. */
1941
2054
  delete(request?: {
1942
2055
  /** V1 error format. */
1943
- '$.xgafv'?: string;
2056
+ '$.xgafv'?: '1' | '2';
1944
2057
  /** OAuth access token. */
1945
2058
  access_token?: string;
1946
2059
  /** Data format for response. */
1947
- alt?: string;
2060
+ alt?: 'json' | 'media' | 'proto';
1948
2061
  /** JSONP */
1949
2062
  callback?: string;
1950
2063
  /** Used for optimistic concurrency control as a way to help prevent simultaneous deletes of an instance configuration from overwriting each other. If not empty, the API only deletes the instance configuration when the etag provided matches the current status of the requested instance configuration. Otherwise, deletes the instance configuration without checking the current status of the requested instance configuration. */
@@ -1971,11 +2084,11 @@ declare namespace gapi.client {
1971
2084
  /** Gets information about a particular instance configuration. */
1972
2085
  get(request?: {
1973
2086
  /** V1 error format. */
1974
- '$.xgafv'?: string;
2087
+ '$.xgafv'?: '1' | '2';
1975
2088
  /** OAuth access token. */
1976
2089
  access_token?: string;
1977
2090
  /** Data format for response. */
1978
- alt?: string;
2091
+ alt?: 'json' | 'media' | 'proto';
1979
2092
  /** JSONP */
1980
2093
  callback?: string;
1981
2094
  /** Selector specifying which fields to include in a partial response. */
@@ -1998,11 +2111,11 @@ declare namespace gapi.client {
1998
2111
  /** Lists the supported instance configurations for a given project. Returns both Google-managed configurations and user-managed configurations. */
1999
2112
  list(request?: {
2000
2113
  /** V1 error format. */
2001
- '$.xgafv'?: string;
2114
+ '$.xgafv'?: '1' | '2';
2002
2115
  /** OAuth access token. */
2003
2116
  access_token?: string;
2004
2117
  /** Data format for response. */
2005
- alt?: string;
2118
+ alt?: 'json' | 'media' | 'proto';
2006
2119
  /** JSONP */
2007
2120
  callback?: string;
2008
2121
  /** Selector specifying which fields to include in a partial response. */
@@ -2029,11 +2142,11 @@ declare namespace gapi.client {
2029
2142
  /** Updates an instance configuration. The returned long-running operation can be used to track the progress of updating the instance. If the named instance configuration does not exist, returns `NOT_FOUND`. Only user-managed configurations can be updated. Immediately after the request returns: * The instance configuration's reconciling field is set to true. While the operation is pending: * Cancelling the operation sets its metadata's cancel_time. The operation is guaranteed to succeed at undoing all changes, after which point it terminates with a `CANCELLED` status. * All other attempts to modify the instance configuration are rejected. * Reading the instance configuration via the API continues to give the pre-request values. Upon completion of the returned operation: * Creating instances using the instance configuration uses the new values. * The new values of the instance configuration are readable via the API. * The instance configuration's reconciling field becomes false. The returned long-running operation will have a name of the format `/operations/` and can be used to track the instance configuration modification. The metadata field type is UpdateInstanceConfigMetadata. The response field type is InstanceConfig, if successful. Authorization requires `spanner.instanceConfigs.update` permission on the resource name. */
2030
2143
  patch(request: {
2031
2144
  /** V1 error format. */
2032
- '$.xgafv'?: string;
2145
+ '$.xgafv'?: '1' | '2';
2033
2146
  /** OAuth access token. */
2034
2147
  access_token?: string;
2035
2148
  /** Data format for response. */
2036
- alt?: string;
2149
+ alt?: 'json' | 'media' | 'proto';
2037
2150
  /** JSONP */
2038
2151
  callback?: string;
2039
2152
  /** Selector specifying which fields to include in a partial response. */
@@ -2058,11 +2171,11 @@ declare namespace gapi.client {
2058
2171
  patch(
2059
2172
  request: {
2060
2173
  /** V1 error format. */
2061
- '$.xgafv'?: string;
2174
+ '$.xgafv'?: '1' | '2';
2062
2175
  /** OAuth access token. */
2063
2176
  access_token?: string;
2064
2177
  /** Data format for response. */
2065
- alt?: string;
2178
+ alt?: 'json' | 'media' | 'proto';
2066
2179
  /** JSONP */
2067
2180
  callback?: string;
2068
2181
  /** Selector specifying which fields to include in a partial response. */
@@ -2091,11 +2204,11 @@ declare namespace gapi.client {
2091
2204
  /** Lists the backup long-running operations in the given instance. A backup operation has a name of the form `projects//instances//backups//operations/`. The long-running operation metadata field type `metadata.type_url` describes the type of the metadata. Operations returned include those that have completed/failed/canceled within the last 7 days, and pending operations. Operations returned are ordered by `operation.metadata.value.progress.start_time` in descending order starting from the most recently started operation. */
2092
2205
  list(request?: {
2093
2206
  /** V1 error format. */
2094
- '$.xgafv'?: string;
2207
+ '$.xgafv'?: '1' | '2';
2095
2208
  /** OAuth access token. */
2096
2209
  access_token?: string;
2097
2210
  /** Data format for response. */
2098
- alt?: string;
2211
+ alt?: 'json' | 'media' | 'proto';
2099
2212
  /** JSONP */
2100
2213
  callback?: string;
2101
2214
  /** Selector specifying which fields to include in a partial response. */
@@ -2126,11 +2239,11 @@ declare namespace gapi.client {
2126
2239
  /** 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`. */
2127
2240
  cancel(request?: {
2128
2241
  /** V1 error format. */
2129
- '$.xgafv'?: string;
2242
+ '$.xgafv'?: '1' | '2';
2130
2243
  /** OAuth access token. */
2131
2244
  access_token?: string;
2132
2245
  /** Data format for response. */
2133
- alt?: string;
2246
+ alt?: 'json' | 'media' | 'proto';
2134
2247
  /** JSONP */
2135
2248
  callback?: string;
2136
2249
  /** Selector specifying which fields to include in a partial response. */
@@ -2153,11 +2266,11 @@ declare namespace gapi.client {
2153
2266
  /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
2154
2267
  delete(request?: {
2155
2268
  /** V1 error format. */
2156
- '$.xgafv'?: string;
2269
+ '$.xgafv'?: '1' | '2';
2157
2270
  /** OAuth access token. */
2158
2271
  access_token?: string;
2159
2272
  /** Data format for response. */
2160
- alt?: string;
2273
+ alt?: 'json' | 'media' | 'proto';
2161
2274
  /** JSONP */
2162
2275
  callback?: string;
2163
2276
  /** Selector specifying which fields to include in a partial response. */
@@ -2180,11 +2293,11 @@ declare namespace gapi.client {
2180
2293
  /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
2181
2294
  get(request?: {
2182
2295
  /** V1 error format. */
2183
- '$.xgafv'?: string;
2296
+ '$.xgafv'?: '1' | '2';
2184
2297
  /** OAuth access token. */
2185
2298
  access_token?: string;
2186
2299
  /** Data format for response. */
2187
- alt?: string;
2300
+ alt?: 'json' | 'media' | 'proto';
2188
2301
  /** JSONP */
2189
2302
  callback?: string;
2190
2303
  /** Selector specifying which fields to include in a partial response. */
@@ -2207,11 +2320,11 @@ declare namespace gapi.client {
2207
2320
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2208
2321
  list(request?: {
2209
2322
  /** V1 error format. */
2210
- '$.xgafv'?: string;
2323
+ '$.xgafv'?: '1' | '2';
2211
2324
  /** OAuth access token. */
2212
2325
  access_token?: string;
2213
2326
  /** Data format for response. */
2214
- alt?: string;
2327
+ alt?: 'json' | 'media' | 'proto';
2215
2328
  /** JSONP */
2216
2329
  callback?: string;
2217
2330
  /** Selector specifying which fields to include in a partial response. */
@@ -2244,11 +2357,11 @@ declare namespace gapi.client {
2244
2357
  /** Starts copying a Cloud Spanner Backup. The returned backup long-running operation will have a name of the format `projects//instances//backups//operations/` and can be used to track copying of the backup. The operation is associated with the destination backup. The metadata field type is CopyBackupMetadata. The response field type is Backup, if successful. Cancelling the returned operation will stop the copying and delete the destination backup. Concurrent CopyBackup requests can run on the same source backup. */
2245
2358
  copy(request: {
2246
2359
  /** V1 error format. */
2247
- '$.xgafv'?: string;
2360
+ '$.xgafv'?: '1' | '2';
2248
2361
  /** OAuth access token. */
2249
2362
  access_token?: string;
2250
2363
  /** Data format for response. */
2251
- alt?: string;
2364
+ alt?: 'json' | 'media' | 'proto';
2252
2365
  /** JSONP */
2253
2366
  callback?: string;
2254
2367
  /** Selector specifying which fields to include in a partial response. */
@@ -2273,11 +2386,11 @@ declare namespace gapi.client {
2273
2386
  copy(
2274
2387
  request: {
2275
2388
  /** V1 error format. */
2276
- '$.xgafv'?: string;
2389
+ '$.xgafv'?: '1' | '2';
2277
2390
  /** OAuth access token. */
2278
2391
  access_token?: string;
2279
2392
  /** Data format for response. */
2280
- alt?: string;
2393
+ alt?: 'json' | 'media' | 'proto';
2281
2394
  /** JSONP */
2282
2395
  callback?: string;
2283
2396
  /** Selector specifying which fields to include in a partial response. */
@@ -2302,17 +2415,21 @@ declare namespace gapi.client {
2302
2415
  /** Starts creating a new Cloud Spanner Backup. The returned backup long-running operation will have a name of the format `projects//instances//backups//operations/` and can be used to track creation of the backup. The metadata field type is CreateBackupMetadata. The response field type is Backup, if successful. Cancelling the returned operation will stop the creation and delete the backup. There can be only one pending backup creation per database. Backup creation of different databases can run concurrently. */
2303
2416
  create(request: {
2304
2417
  /** V1 error format. */
2305
- '$.xgafv'?: string;
2418
+ '$.xgafv'?: '1' | '2';
2306
2419
  /** OAuth access token. */
2307
2420
  access_token?: string;
2308
2421
  /** Data format for response. */
2309
- alt?: string;
2422
+ alt?: 'json' | 'media' | 'proto';
2310
2423
  /** Required. The id of the backup to be created. The `backup_id` appended to `parent` forms the full backup name of the form `projects//instances//backups/`. */
2311
2424
  backupId?: string;
2312
2425
  /** JSONP */
2313
2426
  callback?: string;
2314
2427
  /** Required. The encryption type of the backup. */
2315
- 'encryptionConfig.encryptionType'?: string;
2428
+ 'encryptionConfig.encryptionType'?:
2429
+ | 'ENCRYPTION_TYPE_UNSPECIFIED'
2430
+ | 'USE_DATABASE_ENCRYPTION'
2431
+ | 'GOOGLE_DEFAULT_ENCRYPTION'
2432
+ | 'CUSTOMER_MANAGED_ENCRYPTION';
2316
2433
  /** Optional. This field is maintained for backwards compatibility. For new callers, we recommend using `kms_key_names` to specify the KMS key. Only use `kms_key_name` if the location of the KMS key matches the database instance's configuration (location) exactly. For example, if the KMS location is in `us-central1` or `nam3`, then the database instance must also be in `us-central1` or `nam3`. The Cloud KMS key that is used to encrypt and decrypt the restored database. Set this field only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//keyRings//cryptoKeys/`. */
2317
2434
  'encryptionConfig.kmsKeyName'?: string;
2318
2435
  /** 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. */
@@ -2339,17 +2456,21 @@ declare namespace gapi.client {
2339
2456
  create(
2340
2457
  request: {
2341
2458
  /** V1 error format. */
2342
- '$.xgafv'?: string;
2459
+ '$.xgafv'?: '1' | '2';
2343
2460
  /** OAuth access token. */
2344
2461
  access_token?: string;
2345
2462
  /** Data format for response. */
2346
- alt?: string;
2463
+ alt?: 'json' | 'media' | 'proto';
2347
2464
  /** Required. The id of the backup to be created. The `backup_id` appended to `parent` forms the full backup name of the form `projects//instances//backups/`. */
2348
2465
  backupId?: string;
2349
2466
  /** JSONP */
2350
2467
  callback?: string;
2351
2468
  /** Required. The encryption type of the backup. */
2352
- 'encryptionConfig.encryptionType'?: string;
2469
+ 'encryptionConfig.encryptionType'?:
2470
+ | 'ENCRYPTION_TYPE_UNSPECIFIED'
2471
+ | 'USE_DATABASE_ENCRYPTION'
2472
+ | 'GOOGLE_DEFAULT_ENCRYPTION'
2473
+ | 'CUSTOMER_MANAGED_ENCRYPTION';
2353
2474
  /** Optional. This field is maintained for backwards compatibility. For new callers, we recommend using `kms_key_names` to specify the KMS key. Only use `kms_key_name` if the location of the KMS key matches the database instance's configuration (location) exactly. For example, if the KMS location is in `us-central1` or `nam3`, then the database instance must also be in `us-central1` or `nam3`. The Cloud KMS key that is used to encrypt and decrypt the restored database. Set this field only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form `projects//locations//keyRings//cryptoKeys/`. */
2354
2475
  'encryptionConfig.kmsKeyName'?: string;
2355
2476
  /** 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. */
@@ -2376,11 +2497,11 @@ declare namespace gapi.client {
2376
2497
  /** Deletes a pending or completed Backup. */
2377
2498
  delete(request?: {
2378
2499
  /** V1 error format. */
2379
- '$.xgafv'?: string;
2500
+ '$.xgafv'?: '1' | '2';
2380
2501
  /** OAuth access token. */
2381
2502
  access_token?: string;
2382
2503
  /** Data format for response. */
2383
- alt?: string;
2504
+ alt?: 'json' | 'media' | 'proto';
2384
2505
  /** JSONP */
2385
2506
  callback?: string;
2386
2507
  /** Selector specifying which fields to include in a partial response. */
@@ -2403,11 +2524,11 @@ declare namespace gapi.client {
2403
2524
  /** Gets metadata on a pending or completed Backup. */
2404
2525
  get(request?: {
2405
2526
  /** V1 error format. */
2406
- '$.xgafv'?: string;
2527
+ '$.xgafv'?: '1' | '2';
2407
2528
  /** OAuth access token. */
2408
2529
  access_token?: string;
2409
2530
  /** Data format for response. */
2410
- alt?: string;
2531
+ alt?: 'json' | 'media' | 'proto';
2411
2532
  /** JSONP */
2412
2533
  callback?: string;
2413
2534
  /** Selector specifying which fields to include in a partial response. */
@@ -2431,11 +2552,11 @@ declare namespace gapi.client {
2431
2552
  getIamPolicy(
2432
2553
  request: {
2433
2554
  /** V1 error format. */
2434
- '$.xgafv'?: string;
2555
+ '$.xgafv'?: '1' | '2';
2435
2556
  /** OAuth access token. */
2436
2557
  access_token?: string;
2437
2558
  /** Data format for response. */
2438
- alt?: string;
2559
+ alt?: 'json' | 'media' | 'proto';
2439
2560
  /** JSONP */
2440
2561
  callback?: string;
2441
2562
  /** Selector specifying which fields to include in a partial response. */
@@ -2460,11 +2581,11 @@ declare namespace gapi.client {
2460
2581
  /** Lists completed and pending backups. Backups returned are ordered by `create_time` in descending order, starting from the most recent `create_time`. */
2461
2582
  list(request?: {
2462
2583
  /** V1 error format. */
2463
- '$.xgafv'?: string;
2584
+ '$.xgafv'?: '1' | '2';
2464
2585
  /** OAuth access token. */
2465
2586
  access_token?: string;
2466
2587
  /** Data format for response. */
2467
- alt?: string;
2588
+ alt?: 'json' | 'media' | 'proto';
2468
2589
  /** JSONP */
2469
2590
  callback?: string;
2470
2591
  /** Selector specifying which fields to include in a partial response. */
@@ -2493,11 +2614,11 @@ declare namespace gapi.client {
2493
2614
  /** Updates a pending or completed Backup. */
2494
2615
  patch(request: {
2495
2616
  /** V1 error format. */
2496
- '$.xgafv'?: string;
2617
+ '$.xgafv'?: '1' | '2';
2497
2618
  /** OAuth access token. */
2498
2619
  access_token?: string;
2499
2620
  /** Data format for response. */
2500
- alt?: string;
2621
+ alt?: 'json' | 'media' | 'proto';
2501
2622
  /** JSONP */
2502
2623
  callback?: string;
2503
2624
  /** Selector specifying which fields to include in a partial response. */
@@ -2524,11 +2645,11 @@ declare namespace gapi.client {
2524
2645
  patch(
2525
2646
  request: {
2526
2647
  /** V1 error format. */
2527
- '$.xgafv'?: string;
2648
+ '$.xgafv'?: '1' | '2';
2528
2649
  /** OAuth access token. */
2529
2650
  access_token?: string;
2530
2651
  /** Data format for response. */
2531
- alt?: string;
2652
+ alt?: 'json' | 'media' | 'proto';
2532
2653
  /** JSONP */
2533
2654
  callback?: string;
2534
2655
  /** Selector specifying which fields to include in a partial response. */
@@ -2556,11 +2677,11 @@ declare namespace gapi.client {
2556
2677
  setIamPolicy(
2557
2678
  request: {
2558
2679
  /** V1 error format. */
2559
- '$.xgafv'?: string;
2680
+ '$.xgafv'?: '1' | '2';
2560
2681
  /** OAuth access token. */
2561
2682
  access_token?: string;
2562
2683
  /** Data format for response. */
2563
- alt?: string;
2684
+ alt?: 'json' | 'media' | 'proto';
2564
2685
  /** JSONP */
2565
2686
  callback?: string;
2566
2687
  /** Selector specifying which fields to include in a partial response. */
@@ -2586,11 +2707,11 @@ declare namespace gapi.client {
2586
2707
  testIamPermissions(
2587
2708
  request: {
2588
2709
  /** V1 error format. */
2589
- '$.xgafv'?: string;
2710
+ '$.xgafv'?: '1' | '2';
2590
2711
  /** OAuth access token. */
2591
2712
  access_token?: string;
2592
2713
  /** Data format for response. */
2593
- alt?: string;
2714
+ alt?: 'json' | 'media' | 'proto';
2594
2715
  /** JSONP */
2595
2716
  callback?: string;
2596
2717
  /** Selector specifying which fields to include in a partial response. */
@@ -2618,11 +2739,11 @@ declare namespace gapi.client {
2618
2739
  /** Lists database longrunning-operations. A database operation has a name of the form `projects//instances//databases//operations/`. The long-running operation metadata field type `metadata.type_url` describes the type of the metadata. Operations returned include those that have completed/failed/canceled within the last 7 days, and pending operations. */
2619
2740
  list(request?: {
2620
2741
  /** V1 error format. */
2621
- '$.xgafv'?: string;
2742
+ '$.xgafv'?: '1' | '2';
2622
2743
  /** OAuth access token. */
2623
2744
  access_token?: string;
2624
2745
  /** Data format for response. */
2625
- alt?: string;
2746
+ alt?: 'json' | 'media' | 'proto';
2626
2747
  /** JSONP */
2627
2748
  callback?: string;
2628
2749
  /** Selector specifying which fields to include in a partial response. */
@@ -2653,11 +2774,11 @@ declare namespace gapi.client {
2653
2774
  /** Creates a new backup schedule. */
2654
2775
  create(request: {
2655
2776
  /** V1 error format. */
2656
- '$.xgafv'?: string;
2777
+ '$.xgafv'?: '1' | '2';
2657
2778
  /** OAuth access token. */
2658
2779
  access_token?: string;
2659
2780
  /** Data format for response. */
2660
- alt?: string;
2781
+ alt?: 'json' | 'media' | 'proto';
2661
2782
  /** Required. The Id to use for the backup schedule. The `backup_schedule_id` appended to `parent` forms the full backup schedule name of the form `projects//instances//databases//backupSchedules/`. */
2662
2783
  backupScheduleId?: string;
2663
2784
  /** JSONP */
@@ -2684,11 +2805,11 @@ declare namespace gapi.client {
2684
2805
  create(
2685
2806
  request: {
2686
2807
  /** V1 error format. */
2687
- '$.xgafv'?: string;
2808
+ '$.xgafv'?: '1' | '2';
2688
2809
  /** OAuth access token. */
2689
2810
  access_token?: string;
2690
2811
  /** Data format for response. */
2691
- alt?: string;
2812
+ alt?: 'json' | 'media' | 'proto';
2692
2813
  /** Required. The Id to use for the backup schedule. The `backup_schedule_id` appended to `parent` forms the full backup schedule name of the form `projects//instances//databases//backupSchedules/`. */
2693
2814
  backupScheduleId?: string;
2694
2815
  /** JSONP */
@@ -2715,11 +2836,11 @@ declare namespace gapi.client {
2715
2836
  /** Deletes a backup schedule. */
2716
2837
  delete(request?: {
2717
2838
  /** V1 error format. */
2718
- '$.xgafv'?: string;
2839
+ '$.xgafv'?: '1' | '2';
2719
2840
  /** OAuth access token. */
2720
2841
  access_token?: string;
2721
2842
  /** Data format for response. */
2722
- alt?: string;
2843
+ alt?: 'json' | 'media' | 'proto';
2723
2844
  /** JSONP */
2724
2845
  callback?: string;
2725
2846
  /** Selector specifying which fields to include in a partial response. */
@@ -2742,11 +2863,11 @@ declare namespace gapi.client {
2742
2863
  /** Gets backup schedule for the input schedule name. */
2743
2864
  get(request?: {
2744
2865
  /** V1 error format. */
2745
- '$.xgafv'?: string;
2866
+ '$.xgafv'?: '1' | '2';
2746
2867
  /** OAuth access token. */
2747
2868
  access_token?: string;
2748
2869
  /** Data format for response. */
2749
- alt?: string;
2870
+ alt?: 'json' | 'media' | 'proto';
2750
2871
  /** JSONP */
2751
2872
  callback?: string;
2752
2873
  /** Selector specifying which fields to include in a partial response. */
@@ -2770,11 +2891,11 @@ declare namespace gapi.client {
2770
2891
  getIamPolicy(
2771
2892
  request: {
2772
2893
  /** V1 error format. */
2773
- '$.xgafv'?: string;
2894
+ '$.xgafv'?: '1' | '2';
2774
2895
  /** OAuth access token. */
2775
2896
  access_token?: string;
2776
2897
  /** Data format for response. */
2777
- alt?: string;
2898
+ alt?: 'json' | 'media' | 'proto';
2778
2899
  /** JSONP */
2779
2900
  callback?: string;
2780
2901
  /** Selector specifying which fields to include in a partial response. */
@@ -2799,11 +2920,11 @@ declare namespace gapi.client {
2799
2920
  /** Lists all the backup schedules for the database. */
2800
2921
  list(request?: {
2801
2922
  /** V1 error format. */
2802
- '$.xgafv'?: string;
2923
+ '$.xgafv'?: '1' | '2';
2803
2924
  /** OAuth access token. */
2804
2925
  access_token?: string;
2805
2926
  /** Data format for response. */
2806
- alt?: string;
2927
+ alt?: 'json' | 'media' | 'proto';
2807
2928
  /** JSONP */
2808
2929
  callback?: string;
2809
2930
  /** Selector specifying which fields to include in a partial response. */
@@ -2830,11 +2951,11 @@ declare namespace gapi.client {
2830
2951
  /** Updates a backup schedule. */
2831
2952
  patch(request: {
2832
2953
  /** V1 error format. */
2833
- '$.xgafv'?: string;
2954
+ '$.xgafv'?: '1' | '2';
2834
2955
  /** OAuth access token. */
2835
2956
  access_token?: string;
2836
2957
  /** Data format for response. */
2837
- alt?: string;
2958
+ alt?: 'json' | 'media' | 'proto';
2838
2959
  /** JSONP */
2839
2960
  callback?: string;
2840
2961
  /** Selector specifying which fields to include in a partial response. */
@@ -2861,11 +2982,11 @@ declare namespace gapi.client {
2861
2982
  patch(
2862
2983
  request: {
2863
2984
  /** V1 error format. */
2864
- '$.xgafv'?: string;
2985
+ '$.xgafv'?: '1' | '2';
2865
2986
  /** OAuth access token. */
2866
2987
  access_token?: string;
2867
2988
  /** Data format for response. */
2868
- alt?: string;
2989
+ alt?: 'json' | 'media' | 'proto';
2869
2990
  /** JSONP */
2870
2991
  callback?: string;
2871
2992
  /** Selector specifying which fields to include in a partial response. */
@@ -2893,11 +3014,11 @@ declare namespace gapi.client {
2893
3014
  setIamPolicy(
2894
3015
  request: {
2895
3016
  /** V1 error format. */
2896
- '$.xgafv'?: string;
3017
+ '$.xgafv'?: '1' | '2';
2897
3018
  /** OAuth access token. */
2898
3019
  access_token?: string;
2899
3020
  /** Data format for response. */
2900
- alt?: string;
3021
+ alt?: 'json' | 'media' | 'proto';
2901
3022
  /** JSONP */
2902
3023
  callback?: string;
2903
3024
  /** Selector specifying which fields to include in a partial response. */
@@ -2923,11 +3044,11 @@ declare namespace gapi.client {
2923
3044
  testIamPermissions(
2924
3045
  request: {
2925
3046
  /** V1 error format. */
2926
- '$.xgafv'?: string;
3047
+ '$.xgafv'?: '1' | '2';
2927
3048
  /** OAuth access token. */
2928
3049
  access_token?: string;
2929
3050
  /** Data format for response. */
2930
- alt?: string;
3051
+ alt?: 'json' | 'media' | 'proto';
2931
3052
  /** JSONP */
2932
3053
  callback?: string;
2933
3054
  /** Selector specifying which fields to include in a partial response. */
@@ -2954,11 +3075,11 @@ declare namespace gapi.client {
2954
3075
  /** Lists Cloud Spanner database roles. */
2955
3076
  list(request?: {
2956
3077
  /** V1 error format. */
2957
- '$.xgafv'?: string;
3078
+ '$.xgafv'?: '1' | '2';
2958
3079
  /** OAuth access token. */
2959
3080
  access_token?: string;
2960
3081
  /** Data format for response. */
2961
- alt?: string;
3082
+ alt?: 'json' | 'media' | 'proto';
2962
3083
  /** JSONP */
2963
3084
  callback?: string;
2964
3085
  /** Selector specifying which fields to include in a partial response. */
@@ -2986,11 +3107,11 @@ declare namespace gapi.client {
2986
3107
  testIamPermissions(
2987
3108
  request: {
2988
3109
  /** V1 error format. */
2989
- '$.xgafv'?: string;
3110
+ '$.xgafv'?: '1' | '2';
2990
3111
  /** OAuth access token. */
2991
3112
  access_token?: string;
2992
3113
  /** Data format for response. */
2993
- alt?: string;
3114
+ alt?: 'json' | 'media' | 'proto';
2994
3115
  /** JSONP */
2995
3116
  callback?: string;
2996
3117
  /** Selector specifying which fields to include in a partial response. */
@@ -3017,11 +3138,11 @@ declare namespace gapi.client {
3017
3138
  /** 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`. */
3018
3139
  cancel(request?: {
3019
3140
  /** V1 error format. */
3020
- '$.xgafv'?: string;
3141
+ '$.xgafv'?: '1' | '2';
3021
3142
  /** OAuth access token. */
3022
3143
  access_token?: string;
3023
3144
  /** Data format for response. */
3024
- alt?: string;
3145
+ alt?: 'json' | 'media' | 'proto';
3025
3146
  /** JSONP */
3026
3147
  callback?: string;
3027
3148
  /** Selector specifying which fields to include in a partial response. */
@@ -3044,11 +3165,11 @@ declare namespace gapi.client {
3044
3165
  /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
3045
3166
  delete(request?: {
3046
3167
  /** V1 error format. */
3047
- '$.xgafv'?: string;
3168
+ '$.xgafv'?: '1' | '2';
3048
3169
  /** OAuth access token. */
3049
3170
  access_token?: string;
3050
3171
  /** Data format for response. */
3051
- alt?: string;
3172
+ alt?: 'json' | 'media' | 'proto';
3052
3173
  /** JSONP */
3053
3174
  callback?: string;
3054
3175
  /** Selector specifying which fields to include in a partial response. */
@@ -3071,11 +3192,11 @@ declare namespace gapi.client {
3071
3192
  /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
3072
3193
  get(request?: {
3073
3194
  /** V1 error format. */
3074
- '$.xgafv'?: string;
3195
+ '$.xgafv'?: '1' | '2';
3075
3196
  /** OAuth access token. */
3076
3197
  access_token?: string;
3077
3198
  /** Data format for response. */
3078
- alt?: string;
3199
+ alt?: 'json' | 'media' | 'proto';
3079
3200
  /** JSONP */
3080
3201
  callback?: string;
3081
3202
  /** Selector specifying which fields to include in a partial response. */
@@ -3098,11 +3219,11 @@ declare namespace gapi.client {
3098
3219
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
3099
3220
  list(request?: {
3100
3221
  /** V1 error format. */
3101
- '$.xgafv'?: string;
3222
+ '$.xgafv'?: '1' | '2';
3102
3223
  /** OAuth access token. */
3103
3224
  access_token?: string;
3104
3225
  /** Data format for response. */
3105
- alt?: string;
3226
+ alt?: 'json' | 'media' | 'proto';
3106
3227
  /** JSONP */
3107
3228
  callback?: string;
3108
3229
  /** Selector specifying which fields to include in a partial response. */
@@ -3135,11 +3256,11 @@ declare namespace gapi.client {
3135
3256
  /** 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. */
3136
3257
  adapter(request: {
3137
3258
  /** V1 error format. */
3138
- '$.xgafv'?: string;
3259
+ '$.xgafv'?: '1' | '2';
3139
3260
  /** OAuth access token. */
3140
3261
  access_token?: string;
3141
3262
  /** Data format for response. */
3142
- alt?: string;
3263
+ alt?: 'json' | 'media' | 'proto';
3143
3264
  /** JSONP */
3144
3265
  callback?: string;
3145
3266
  /** Selector specifying which fields to include in a partial response. */
@@ -3164,11 +3285,11 @@ declare namespace gapi.client {
3164
3285
  adapter(
3165
3286
  request: {
3166
3287
  /** V1 error format. */
3167
- '$.xgafv'?: string;
3288
+ '$.xgafv'?: '1' | '2';
3168
3289
  /** OAuth access token. */
3169
3290
  access_token?: string;
3170
3291
  /** Data format for response. */
3171
- alt?: string;
3292
+ alt?: 'json' | 'media' | 'proto';
3172
3293
  /** JSONP */
3173
3294
  callback?: string;
3174
3295
  /** Selector specifying which fields to include in a partial response. */
@@ -3193,11 +3314,11 @@ declare namespace gapi.client {
3193
3314
  /** 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. */
3194
3315
  adaptMessage(request: {
3195
3316
  /** V1 error format. */
3196
- '$.xgafv'?: string;
3317
+ '$.xgafv'?: '1' | '2';
3197
3318
  /** OAuth access token. */
3198
3319
  access_token?: string;
3199
3320
  /** Data format for response. */
3200
- alt?: string;
3321
+ alt?: 'json' | 'media' | 'proto';
3201
3322
  /** JSONP */
3202
3323
  callback?: string;
3203
3324
  /** Selector specifying which fields to include in a partial response. */
@@ -3222,11 +3343,11 @@ declare namespace gapi.client {
3222
3343
  adaptMessage(
3223
3344
  request: {
3224
3345
  /** V1 error format. */
3225
- '$.xgafv'?: string;
3346
+ '$.xgafv'?: '1' | '2';
3226
3347
  /** OAuth access token. */
3227
3348
  access_token?: string;
3228
3349
  /** Data format for response. */
3229
- alt?: string;
3350
+ alt?: 'json' | 'media' | 'proto';
3230
3351
  /** JSONP */
3231
3352
  callback?: string;
3232
3353
  /** Selector specifying which fields to include in a partial response. */
@@ -3251,11 +3372,11 @@ declare namespace gapi.client {
3251
3372
  /** 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. */
3252
3373
  batchCreate(request: {
3253
3374
  /** V1 error format. */
3254
- '$.xgafv'?: string;
3375
+ '$.xgafv'?: '1' | '2';
3255
3376
  /** OAuth access token. */
3256
3377
  access_token?: string;
3257
3378
  /** Data format for response. */
3258
- alt?: string;
3379
+ alt?: 'json' | 'media' | 'proto';
3259
3380
  /** JSONP */
3260
3381
  callback?: string;
3261
3382
  /** Required. The database in which the new sessions are created. */
@@ -3280,11 +3401,11 @@ declare namespace gapi.client {
3280
3401
  batchCreate(
3281
3402
  request: {
3282
3403
  /** V1 error format. */
3283
- '$.xgafv'?: string;
3404
+ '$.xgafv'?: '1' | '2';
3284
3405
  /** OAuth access token. */
3285
3406
  access_token?: string;
3286
3407
  /** Data format for response. */
3287
- alt?: string;
3408
+ alt?: 'json' | 'media' | 'proto';
3288
3409
  /** JSONP */
3289
3410
  callback?: string;
3290
3411
  /** Required. The database in which the new sessions are created. */
@@ -3309,11 +3430,11 @@ declare namespace gapi.client {
3309
3430
  /** 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. */
3310
3431
  batchWrite(request: {
3311
3432
  /** V1 error format. */
3312
- '$.xgafv'?: string;
3433
+ '$.xgafv'?: '1' | '2';
3313
3434
  /** OAuth access token. */
3314
3435
  access_token?: string;
3315
3436
  /** Data format for response. */
3316
- alt?: string;
3437
+ alt?: 'json' | 'media' | 'proto';
3317
3438
  /** JSONP */
3318
3439
  callback?: string;
3319
3440
  /** Selector specifying which fields to include in a partial response. */
@@ -3338,11 +3459,11 @@ declare namespace gapi.client {
3338
3459
  batchWrite(
3339
3460
  request: {
3340
3461
  /** V1 error format. */
3341
- '$.xgafv'?: string;
3462
+ '$.xgafv'?: '1' | '2';
3342
3463
  /** OAuth access token. */
3343
3464
  access_token?: string;
3344
3465
  /** Data format for response. */
3345
- alt?: string;
3466
+ alt?: 'json' | 'media' | 'proto';
3346
3467
  /** JSONP */
3347
3468
  callback?: string;
3348
3469
  /** Selector specifying which fields to include in a partial response. */
@@ -3367,11 +3488,11 @@ declare namespace gapi.client {
3367
3488
  /** Begins a new transaction. This step can often be skipped: Read, ExecuteSql and Commit can begin a new transaction as a side-effect. */
3368
3489
  beginTransaction(request: {
3369
3490
  /** V1 error format. */
3370
- '$.xgafv'?: string;
3491
+ '$.xgafv'?: '1' | '2';
3371
3492
  /** OAuth access token. */
3372
3493
  access_token?: string;
3373
3494
  /** Data format for response. */
3374
- alt?: string;
3495
+ alt?: 'json' | 'media' | 'proto';
3375
3496
  /** JSONP */
3376
3497
  callback?: string;
3377
3498
  /** Selector specifying which fields to include in a partial response. */
@@ -3396,11 +3517,11 @@ declare namespace gapi.client {
3396
3517
  beginTransaction(
3397
3518
  request: {
3398
3519
  /** V1 error format. */
3399
- '$.xgafv'?: string;
3520
+ '$.xgafv'?: '1' | '2';
3400
3521
  /** OAuth access token. */
3401
3522
  access_token?: string;
3402
3523
  /** Data format for response. */
3403
- alt?: string;
3524
+ alt?: 'json' | 'media' | 'proto';
3404
3525
  /** JSONP */
3405
3526
  callback?: string;
3406
3527
  /** Selector specifying which fields to include in a partial response. */
@@ -3425,11 +3546,11 @@ declare namespace gapi.client {
3425
3546
  /** 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. */
3426
3547
  commit(request: {
3427
3548
  /** V1 error format. */
3428
- '$.xgafv'?: string;
3549
+ '$.xgafv'?: '1' | '2';
3429
3550
  /** OAuth access token. */
3430
3551
  access_token?: string;
3431
3552
  /** Data format for response. */
3432
- alt?: string;
3553
+ alt?: 'json' | 'media' | 'proto';
3433
3554
  /** JSONP */
3434
3555
  callback?: string;
3435
3556
  /** Selector specifying which fields to include in a partial response. */
@@ -3454,11 +3575,11 @@ declare namespace gapi.client {
3454
3575
  commit(
3455
3576
  request: {
3456
3577
  /** V1 error format. */
3457
- '$.xgafv'?: string;
3578
+ '$.xgafv'?: '1' | '2';
3458
3579
  /** OAuth access token. */
3459
3580
  access_token?: string;
3460
3581
  /** Data format for response. */
3461
- alt?: string;
3582
+ alt?: 'json' | 'media' | 'proto';
3462
3583
  /** JSONP */
3463
3584
  callback?: string;
3464
3585
  /** Selector specifying which fields to include in a partial response. */
@@ -3483,11 +3604,11 @@ declare namespace gapi.client {
3483
3604
  /** 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"`. */
3484
3605
  create(request: {
3485
3606
  /** V1 error format. */
3486
- '$.xgafv'?: string;
3607
+ '$.xgafv'?: '1' | '2';
3487
3608
  /** OAuth access token. */
3488
3609
  access_token?: string;
3489
3610
  /** Data format for response. */
3490
- alt?: string;
3611
+ alt?: 'json' | 'media' | 'proto';
3491
3612
  /** JSONP */
3492
3613
  callback?: string;
3493
3614
  /** Required. The database in which the new session is created. */
@@ -3512,11 +3633,11 @@ declare namespace gapi.client {
3512
3633
  create(
3513
3634
  request: {
3514
3635
  /** V1 error format. */
3515
- '$.xgafv'?: string;
3636
+ '$.xgafv'?: '1' | '2';
3516
3637
  /** OAuth access token. */
3517
3638
  access_token?: string;
3518
3639
  /** Data format for response. */
3519
- alt?: string;
3640
+ alt?: 'json' | 'media' | 'proto';
3520
3641
  /** JSONP */
3521
3642
  callback?: string;
3522
3643
  /** Required. The database in which the new session is created. */
@@ -3541,11 +3662,11 @@ declare namespace gapi.client {
3541
3662
  /** Ends a session, releasing server resources associated with it. This asynchronously triggers the cancellation of any operations that are running with this session. */
3542
3663
  delete(request?: {
3543
3664
  /** V1 error format. */
3544
- '$.xgafv'?: string;
3665
+ '$.xgafv'?: '1' | '2';
3545
3666
  /** OAuth access token. */
3546
3667
  access_token?: string;
3547
3668
  /** Data format for response. */
3548
- alt?: string;
3669
+ alt?: 'json' | 'media' | 'proto';
3549
3670
  /** JSONP */
3550
3671
  callback?: string;
3551
3672
  /** Selector specifying which fields to include in a partial response. */
@@ -3568,11 +3689,11 @@ declare namespace gapi.client {
3568
3689
  /** Executes a batch of SQL DML statements. This method allows many statements to be run with lower latency than submitting them sequentially with ExecuteSql. Statements are executed in sequential order. A request can succeed even if a statement fails. The ExecuteBatchDmlResponse.status field in the response provides information about the statement that failed. Clients must inspect this field to determine whether an error occurred. Execution stops after the first failed statement; the remaining statements are not executed. */
3569
3690
  executeBatchDml(request: {
3570
3691
  /** V1 error format. */
3571
- '$.xgafv'?: string;
3692
+ '$.xgafv'?: '1' | '2';
3572
3693
  /** OAuth access token. */
3573
3694
  access_token?: string;
3574
3695
  /** Data format for response. */
3575
- alt?: string;
3696
+ alt?: 'json' | 'media' | 'proto';
3576
3697
  /** JSONP */
3577
3698
  callback?: string;
3578
3699
  /** Selector specifying which fields to include in a partial response. */
@@ -3597,11 +3718,11 @@ declare namespace gapi.client {
3597
3718
  executeBatchDml(
3598
3719
  request: {
3599
3720
  /** V1 error format. */
3600
- '$.xgafv'?: string;
3721
+ '$.xgafv'?: '1' | '2';
3601
3722
  /** OAuth access token. */
3602
3723
  access_token?: string;
3603
3724
  /** Data format for response. */
3604
- alt?: string;
3725
+ alt?: 'json' | 'media' | 'proto';
3605
3726
  /** JSONP */
3606
3727
  callback?: string;
3607
3728
  /** Selector specifying which fields to include in a partial response. */
@@ -3626,11 +3747,11 @@ declare namespace gapi.client {
3626
3747
  /** 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). */
3627
3748
  executeSql(request: {
3628
3749
  /** V1 error format. */
3629
- '$.xgafv'?: string;
3750
+ '$.xgafv'?: '1' | '2';
3630
3751
  /** OAuth access token. */
3631
3752
  access_token?: string;
3632
3753
  /** Data format for response. */
3633
- alt?: string;
3754
+ alt?: 'json' | 'media' | 'proto';
3634
3755
  /** JSONP */
3635
3756
  callback?: string;
3636
3757
  /** Selector specifying which fields to include in a partial response. */
@@ -3655,11 +3776,11 @@ declare namespace gapi.client {
3655
3776
  executeSql(
3656
3777
  request: {
3657
3778
  /** V1 error format. */
3658
- '$.xgafv'?: string;
3779
+ '$.xgafv'?: '1' | '2';
3659
3780
  /** OAuth access token. */
3660
3781
  access_token?: string;
3661
3782
  /** Data format for response. */
3662
- alt?: string;
3783
+ alt?: 'json' | 'media' | 'proto';
3663
3784
  /** JSONP */
3664
3785
  callback?: string;
3665
3786
  /** Selector specifying which fields to include in a partial response. */
@@ -3684,11 +3805,11 @@ declare namespace gapi.client {
3684
3805
  /** 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). */
3685
3806
  executeStreamingSql(request: {
3686
3807
  /** V1 error format. */
3687
- '$.xgafv'?: string;
3808
+ '$.xgafv'?: '1' | '2';
3688
3809
  /** OAuth access token. */
3689
3810
  access_token?: string;
3690
3811
  /** Data format for response. */
3691
- alt?: string;
3812
+ alt?: 'json' | 'media' | 'proto';
3692
3813
  /** JSONP */
3693
3814
  callback?: string;
3694
3815
  /** Selector specifying which fields to include in a partial response. */
@@ -3713,11 +3834,11 @@ declare namespace gapi.client {
3713
3834
  executeStreamingSql(
3714
3835
  request: {
3715
3836
  /** V1 error format. */
3716
- '$.xgafv'?: string;
3837
+ '$.xgafv'?: '1' | '2';
3717
3838
  /** OAuth access token. */
3718
3839
  access_token?: string;
3719
3840
  /** Data format for response. */
3720
- alt?: string;
3841
+ alt?: 'json' | 'media' | 'proto';
3721
3842
  /** JSONP */
3722
3843
  callback?: string;
3723
3844
  /** Selector specifying which fields to include in a partial response. */
@@ -3742,11 +3863,11 @@ declare namespace gapi.client {
3742
3863
  /** Gets a session. Returns `NOT_FOUND` if the session doesn't exist. This is mainly useful for determining whether a session is still alive. */
3743
3864
  get(request?: {
3744
3865
  /** V1 error format. */
3745
- '$.xgafv'?: string;
3866
+ '$.xgafv'?: '1' | '2';
3746
3867
  /** OAuth access token. */
3747
3868
  access_token?: string;
3748
3869
  /** Data format for response. */
3749
- alt?: string;
3870
+ alt?: 'json' | 'media' | 'proto';
3750
3871
  /** JSONP */
3751
3872
  callback?: string;
3752
3873
  /** Selector specifying which fields to include in a partial response. */
@@ -3769,11 +3890,11 @@ declare namespace gapi.client {
3769
3890
  /** Lists all sessions in a given database. */
3770
3891
  list(request?: {
3771
3892
  /** V1 error format. */
3772
- '$.xgafv'?: string;
3893
+ '$.xgafv'?: '1' | '2';
3773
3894
  /** OAuth access token. */
3774
3895
  access_token?: string;
3775
3896
  /** Data format for response. */
3776
- alt?: string;
3897
+ alt?: 'json' | 'media' | 'proto';
3777
3898
  /** JSONP */
3778
3899
  callback?: string;
3779
3900
  /** Required. The database in which to list sessions. */
@@ -3802,11 +3923,11 @@ declare namespace gapi.client {
3802
3923
  /** 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. */
3803
3924
  partitionQuery(request: {
3804
3925
  /** V1 error format. */
3805
- '$.xgafv'?: string;
3926
+ '$.xgafv'?: '1' | '2';
3806
3927
  /** OAuth access token. */
3807
3928
  access_token?: string;
3808
3929
  /** Data format for response. */
3809
- alt?: string;
3930
+ alt?: 'json' | 'media' | 'proto';
3810
3931
  /** JSONP */
3811
3932
  callback?: string;
3812
3933
  /** Selector specifying which fields to include in a partial response. */
@@ -3831,11 +3952,11 @@ declare namespace gapi.client {
3831
3952
  partitionQuery(
3832
3953
  request: {
3833
3954
  /** V1 error format. */
3834
- '$.xgafv'?: string;
3955
+ '$.xgafv'?: '1' | '2';
3835
3956
  /** OAuth access token. */
3836
3957
  access_token?: string;
3837
3958
  /** Data format for response. */
3838
- alt?: string;
3959
+ alt?: 'json' | 'media' | 'proto';
3839
3960
  /** JSONP */
3840
3961
  callback?: string;
3841
3962
  /** Selector specifying which fields to include in a partial response. */
@@ -3860,11 +3981,11 @@ declare namespace gapi.client {
3860
3981
  /** 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. */
3861
3982
  partitionRead(request: {
3862
3983
  /** V1 error format. */
3863
- '$.xgafv'?: string;
3984
+ '$.xgafv'?: '1' | '2';
3864
3985
  /** OAuth access token. */
3865
3986
  access_token?: string;
3866
3987
  /** Data format for response. */
3867
- alt?: string;
3988
+ alt?: 'json' | 'media' | 'proto';
3868
3989
  /** JSONP */
3869
3990
  callback?: string;
3870
3991
  /** Selector specifying which fields to include in a partial response. */
@@ -3889,11 +4010,11 @@ declare namespace gapi.client {
3889
4010
  partitionRead(
3890
4011
  request: {
3891
4012
  /** V1 error format. */
3892
- '$.xgafv'?: string;
4013
+ '$.xgafv'?: '1' | '2';
3893
4014
  /** OAuth access token. */
3894
4015
  access_token?: string;
3895
4016
  /** Data format for response. */
3896
- alt?: string;
4017
+ alt?: 'json' | 'media' | 'proto';
3897
4018
  /** JSONP */
3898
4019
  callback?: string;
3899
4020
  /** Selector specifying which fields to include in a partial response. */
@@ -3918,11 +4039,11 @@ declare namespace gapi.client {
3918
4039
  /** 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. */
3919
4040
  read(request: {
3920
4041
  /** V1 error format. */
3921
- '$.xgafv'?: string;
4042
+ '$.xgafv'?: '1' | '2';
3922
4043
  /** OAuth access token. */
3923
4044
  access_token?: string;
3924
4045
  /** Data format for response. */
3925
- alt?: string;
4046
+ alt?: 'json' | 'media' | 'proto';
3926
4047
  /** JSONP */
3927
4048
  callback?: string;
3928
4049
  /** Selector specifying which fields to include in a partial response. */
@@ -3947,11 +4068,11 @@ declare namespace gapi.client {
3947
4068
  read(
3948
4069
  request: {
3949
4070
  /** V1 error format. */
3950
- '$.xgafv'?: string;
4071
+ '$.xgafv'?: '1' | '2';
3951
4072
  /** OAuth access token. */
3952
4073
  access_token?: string;
3953
4074
  /** Data format for response. */
3954
- alt?: string;
4075
+ alt?: 'json' | 'media' | 'proto';
3955
4076
  /** JSONP */
3956
4077
  callback?: string;
3957
4078
  /** Selector specifying which fields to include in a partial response. */
@@ -3976,11 +4097,11 @@ declare namespace gapi.client {
3976
4097
  /** 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`. */
3977
4098
  rollback(request: {
3978
4099
  /** V1 error format. */
3979
- '$.xgafv'?: string;
4100
+ '$.xgafv'?: '1' | '2';
3980
4101
  /** OAuth access token. */
3981
4102
  access_token?: string;
3982
4103
  /** Data format for response. */
3983
- alt?: string;
4104
+ alt?: 'json' | 'media' | 'proto';
3984
4105
  /** JSONP */
3985
4106
  callback?: string;
3986
4107
  /** Selector specifying which fields to include in a partial response. */
@@ -4005,11 +4126,11 @@ declare namespace gapi.client {
4005
4126
  rollback(
4006
4127
  request: {
4007
4128
  /** V1 error format. */
4008
- '$.xgafv'?: string;
4129
+ '$.xgafv'?: '1' | '2';
4009
4130
  /** OAuth access token. */
4010
4131
  access_token?: string;
4011
4132
  /** Data format for response. */
4012
- alt?: string;
4133
+ alt?: 'json' | 'media' | 'proto';
4013
4134
  /** JSONP */
4014
4135
  callback?: string;
4015
4136
  /** Selector specifying which fields to include in a partial response. */
@@ -4034,11 +4155,11 @@ declare namespace gapi.client {
4034
4155
  /** Like Read, except returns the result set as a stream. Unlike Read, 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. */
4035
4156
  streamingRead(request: {
4036
4157
  /** V1 error format. */
4037
- '$.xgafv'?: string;
4158
+ '$.xgafv'?: '1' | '2';
4038
4159
  /** OAuth access token. */
4039
4160
  access_token?: string;
4040
4161
  /** Data format for response. */
4041
- alt?: string;
4162
+ alt?: 'json' | 'media' | 'proto';
4042
4163
  /** JSONP */
4043
4164
  callback?: string;
4044
4165
  /** Selector specifying which fields to include in a partial response. */
@@ -4063,11 +4184,11 @@ declare namespace gapi.client {
4063
4184
  streamingRead(
4064
4185
  request: {
4065
4186
  /** V1 error format. */
4066
- '$.xgafv'?: string;
4187
+ '$.xgafv'?: '1' | '2';
4067
4188
  /** OAuth access token. */
4068
4189
  access_token?: string;
4069
4190
  /** Data format for response. */
4070
- alt?: string;
4191
+ alt?: 'json' | 'media' | 'proto';
4071
4192
  /** JSONP */
4072
4193
  callback?: string;
4073
4194
  /** Selector specifying which fields to include in a partial response. */
@@ -4094,11 +4215,11 @@ declare namespace gapi.client {
4094
4215
  /** Adds split points to specified tables and indexes of a database. */
4095
4216
  addSplitPoints(request: {
4096
4217
  /** V1 error format. */
4097
- '$.xgafv'?: string;
4218
+ '$.xgafv'?: '1' | '2';
4098
4219
  /** OAuth access token. */
4099
4220
  access_token?: string;
4100
4221
  /** Data format for response. */
4101
- alt?: string;
4222
+ alt?: 'json' | 'media' | 'proto';
4102
4223
  /** JSONP */
4103
4224
  callback?: string;
4104
4225
  /** Required. The database on whose tables or indexes the split points are to be added. Values are of the form `projects//instances//databases/`. */
@@ -4123,11 +4244,11 @@ declare namespace gapi.client {
4123
4244
  addSplitPoints(
4124
4245
  request: {
4125
4246
  /** V1 error format. */
4126
- '$.xgafv'?: string;
4247
+ '$.xgafv'?: '1' | '2';
4127
4248
  /** OAuth access token. */
4128
4249
  access_token?: string;
4129
4250
  /** Data format for response. */
4130
- alt?: string;
4251
+ alt?: 'json' | 'media' | 'proto';
4131
4252
  /** JSONP */
4132
4253
  callback?: string;
4133
4254
  /** Required. The database on whose tables or indexes the split points are to be added. Values are of the form `projects//instances//databases/`. */
@@ -4152,11 +4273,11 @@ declare namespace gapi.client {
4152
4273
  /** `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. */
4153
4274
  changequorum(request: {
4154
4275
  /** V1 error format. */
4155
- '$.xgafv'?: string;
4276
+ '$.xgafv'?: '1' | '2';
4156
4277
  /** OAuth access token. */
4157
4278
  access_token?: string;
4158
4279
  /** Data format for response. */
4159
- alt?: string;
4280
+ alt?: 'json' | 'media' | 'proto';
4160
4281
  /** JSONP */
4161
4282
  callback?: string;
4162
4283
  /** Selector specifying which fields to include in a partial response. */
@@ -4181,11 +4302,11 @@ declare namespace gapi.client {
4181
4302
  changequorum(
4182
4303
  request: {
4183
4304
  /** V1 error format. */
4184
- '$.xgafv'?: string;
4305
+ '$.xgafv'?: '1' | '2';
4185
4306
  /** OAuth access token. */
4186
4307
  access_token?: string;
4187
4308
  /** Data format for response. */
4188
- alt?: string;
4309
+ alt?: 'json' | 'media' | 'proto';
4189
4310
  /** JSONP */
4190
4311
  callback?: string;
4191
4312
  /** Selector specifying which fields to include in a partial response. */
@@ -4210,11 +4331,11 @@ declare namespace gapi.client {
4210
4331
  /** Creates a new Spanner database and starts to prepare it for serving. The returned long-running operation will have a name of the format `/operations/` and can be used to track preparation of the database. The metadata field type is CreateDatabaseMetadata. The response field type is Database, if successful. */
4211
4332
  create(request: {
4212
4333
  /** V1 error format. */
4213
- '$.xgafv'?: string;
4334
+ '$.xgafv'?: '1' | '2';
4214
4335
  /** OAuth access token. */
4215
4336
  access_token?: string;
4216
4337
  /** Data format for response. */
4217
- alt?: string;
4338
+ alt?: 'json' | 'media' | 'proto';
4218
4339
  /** JSONP */
4219
4340
  callback?: string;
4220
4341
  /** Selector specifying which fields to include in a partial response. */
@@ -4239,11 +4360,11 @@ declare namespace gapi.client {
4239
4360
  create(
4240
4361
  request: {
4241
4362
  /** V1 error format. */
4242
- '$.xgafv'?: string;
4363
+ '$.xgafv'?: '1' | '2';
4243
4364
  /** OAuth access token. */
4244
4365
  access_token?: string;
4245
4366
  /** Data format for response. */
4246
- alt?: string;
4367
+ alt?: 'json' | 'media' | 'proto';
4247
4368
  /** JSONP */
4248
4369
  callback?: string;
4249
4370
  /** Selector specifying which fields to include in a partial response. */
@@ -4268,11 +4389,11 @@ declare namespace gapi.client {
4268
4389
  /** Drops (aka deletes) a Cloud Spanner database. Completed backups for the database will be retained according to their `expire_time`. Note: Cloud Spanner might continue to accept requests for a few seconds after the database has been deleted. */
4269
4390
  dropDatabase(request?: {
4270
4391
  /** V1 error format. */
4271
- '$.xgafv'?: string;
4392
+ '$.xgafv'?: '1' | '2';
4272
4393
  /** OAuth access token. */
4273
4394
  access_token?: string;
4274
4395
  /** Data format for response. */
4275
- alt?: string;
4396
+ alt?: 'json' | 'media' | 'proto';
4276
4397
  /** JSONP */
4277
4398
  callback?: string;
4278
4399
  /** Required. The database to be dropped. */
@@ -4295,11 +4416,11 @@ declare namespace gapi.client {
4295
4416
  /** Gets the state of a Cloud Spanner database. */
4296
4417
  get(request?: {
4297
4418
  /** V1 error format. */
4298
- '$.xgafv'?: string;
4419
+ '$.xgafv'?: '1' | '2';
4299
4420
  /** OAuth access token. */
4300
4421
  access_token?: string;
4301
4422
  /** Data format for response. */
4302
- alt?: string;
4423
+ alt?: 'json' | 'media' | 'proto';
4303
4424
  /** JSONP */
4304
4425
  callback?: string;
4305
4426
  /** Selector specifying which fields to include in a partial response. */
@@ -4322,11 +4443,11 @@ declare namespace gapi.client {
4322
4443
  /** Returns the schema of a Cloud Spanner database as a list of formatted DDL statements. This method does not show pending schema updates, those may be queried using the Operations API. */
4323
4444
  getDdl(request?: {
4324
4445
  /** V1 error format. */
4325
- '$.xgafv'?: string;
4446
+ '$.xgafv'?: '1' | '2';
4326
4447
  /** OAuth access token. */
4327
4448
  access_token?: string;
4328
4449
  /** Data format for response. */
4329
- alt?: string;
4450
+ alt?: 'json' | 'media' | 'proto';
4330
4451
  /** JSONP */
4331
4452
  callback?: string;
4332
4453
  /** Required. The database whose schema we wish to get. Values are of the form `projects//instances//databases/` */
@@ -4350,11 +4471,11 @@ declare namespace gapi.client {
4350
4471
  getIamPolicy(
4351
4472
  request: {
4352
4473
  /** V1 error format. */
4353
- '$.xgafv'?: string;
4474
+ '$.xgafv'?: '1' | '2';
4354
4475
  /** OAuth access token. */
4355
4476
  access_token?: string;
4356
4477
  /** Data format for response. */
4357
- alt?: string;
4478
+ alt?: 'json' | 'media' | 'proto';
4358
4479
  /** JSONP */
4359
4480
  callback?: string;
4360
4481
  /** Selector specifying which fields to include in a partial response. */
@@ -4379,11 +4500,11 @@ declare namespace gapi.client {
4379
4500
  /** Request a specific scan with Database-specific data for Cloud Key Visualizer. */
4380
4501
  getScans(request?: {
4381
4502
  /** V1 error format. */
4382
- '$.xgafv'?: string;
4503
+ '$.xgafv'?: '1' | '2';
4383
4504
  /** OAuth access token. */
4384
4505
  access_token?: string;
4385
4506
  /** Data format for response. */
4386
- alt?: string;
4507
+ alt?: 'json' | 'media' | 'proto';
4387
4508
  /** JSONP */
4388
4509
  callback?: string;
4389
4510
  /** The upper bound for the time range to retrieve Scan data for. */
@@ -4407,16 +4528,16 @@ declare namespace gapi.client {
4407
4528
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4408
4529
  uploadType?: string;
4409
4530
  /** Specifies which parts of the Scan should be returned in the response. Note, if left unspecified, the FULL view is assumed. */
4410
- view?: string;
4531
+ view?: 'VIEW_UNSPECIFIED' | 'SUMMARY' | 'FULL';
4411
4532
  }): Request<Scan>;
4412
4533
  /** Lists Cloud Spanner databases. */
4413
4534
  list(request?: {
4414
4535
  /** V1 error format. */
4415
- '$.xgafv'?: string;
4536
+ '$.xgafv'?: '1' | '2';
4416
4537
  /** OAuth access token. */
4417
4538
  access_token?: string;
4418
4539
  /** Data format for response. */
4419
- alt?: string;
4540
+ alt?: 'json' | 'media' | 'proto';
4420
4541
  /** JSONP */
4421
4542
  callback?: string;
4422
4543
  /** Selector specifying which fields to include in a partial response. */
@@ -4443,11 +4564,11 @@ declare namespace gapi.client {
4443
4564
  /** Updates a Cloud Spanner database. The returned long-running operation can be used to track the progress of updating the database. If the named database does not exist, returns `NOT_FOUND`. While the operation is pending: * The database's reconciling field is set to true. * Cancelling the operation is best-effort. If the cancellation succeeds, the operation metadata's cancel_time is set, the updates are reverted, and the operation terminates with a `CANCELLED` status. * New UpdateDatabase requests will return a `FAILED_PRECONDITION` error until the pending operation is done (returns successfully or with error). * Reading the database via the API continues to give the pre-request values. Upon completion of the returned operation: * The new values are in effect and readable via the API. * The database's reconciling field becomes false. The returned long-running operation will have a name of the format `projects//instances//databases//operations/` and can be used to track the database modification. The metadata field type is UpdateDatabaseMetadata. The response field type is Database, if successful. */
4444
4565
  patch(request: {
4445
4566
  /** V1 error format. */
4446
- '$.xgafv'?: string;
4567
+ '$.xgafv'?: '1' | '2';
4447
4568
  /** OAuth access token. */
4448
4569
  access_token?: string;
4449
4570
  /** Data format for response. */
4450
- alt?: string;
4571
+ alt?: 'json' | 'media' | 'proto';
4451
4572
  /** JSONP */
4452
4573
  callback?: string;
4453
4574
  /** Selector specifying which fields to include in a partial response. */
@@ -4474,11 +4595,11 @@ declare namespace gapi.client {
4474
4595
  patch(
4475
4596
  request: {
4476
4597
  /** V1 error format. */
4477
- '$.xgafv'?: string;
4598
+ '$.xgafv'?: '1' | '2';
4478
4599
  /** OAuth access token. */
4479
4600
  access_token?: string;
4480
4601
  /** Data format for response. */
4481
- alt?: string;
4602
+ alt?: 'json' | 'media' | 'proto';
4482
4603
  /** JSONP */
4483
4604
  callback?: string;
4484
4605
  /** Selector specifying which fields to include in a partial response. */
@@ -4505,11 +4626,11 @@ declare namespace gapi.client {
4505
4626
  /** Create a new database by restoring from a completed backup. The new database must be in the same project and in an instance with the same instance configuration as the instance containing the backup. The returned database long-running operation has a name of the format `projects//instances//databases//operations/`, and can be used to track the progress of the operation, and to cancel it. The metadata field type is RestoreDatabaseMetadata. The response type is Database, if successful. Cancelling the returned operation will stop the restore and delete the database. There can be only one database being restored into an instance at a time. Once the restore operation completes, a new restore operation can be initiated, without waiting for the optimize operation associated with the first restore to complete. */
4506
4627
  restore(request: {
4507
4628
  /** V1 error format. */
4508
- '$.xgafv'?: string;
4629
+ '$.xgafv'?: '1' | '2';
4509
4630
  /** OAuth access token. */
4510
4631
  access_token?: string;
4511
4632
  /** Data format for response. */
4512
- alt?: string;
4633
+ alt?: 'json' | 'media' | 'proto';
4513
4634
  /** JSONP */
4514
4635
  callback?: string;
4515
4636
  /** Selector specifying which fields to include in a partial response. */
@@ -4534,11 +4655,11 @@ declare namespace gapi.client {
4534
4655
  restore(
4535
4656
  request: {
4536
4657
  /** V1 error format. */
4537
- '$.xgafv'?: string;
4658
+ '$.xgafv'?: '1' | '2';
4538
4659
  /** OAuth access token. */
4539
4660
  access_token?: string;
4540
4661
  /** Data format for response. */
4541
- alt?: string;
4662
+ alt?: 'json' | 'media' | 'proto';
4542
4663
  /** JSONP */
4543
4664
  callback?: string;
4544
4665
  /** Selector specifying which fields to include in a partial response. */
@@ -4564,11 +4685,11 @@ declare namespace gapi.client {
4564
4685
  setIamPolicy(
4565
4686
  request: {
4566
4687
  /** V1 error format. */
4567
- '$.xgafv'?: string;
4688
+ '$.xgafv'?: '1' | '2';
4568
4689
  /** OAuth access token. */
4569
4690
  access_token?: string;
4570
4691
  /** Data format for response. */
4571
- alt?: string;
4692
+ alt?: 'json' | 'media' | 'proto';
4572
4693
  /** JSONP */
4573
4694
  callback?: string;
4574
4695
  /** Selector specifying which fields to include in a partial response. */
@@ -4594,11 +4715,11 @@ declare namespace gapi.client {
4594
4715
  testIamPermissions(
4595
4716
  request: {
4596
4717
  /** V1 error format. */
4597
- '$.xgafv'?: string;
4718
+ '$.xgafv'?: '1' | '2';
4598
4719
  /** OAuth access token. */
4599
4720
  access_token?: string;
4600
4721
  /** Data format for response. */
4601
- alt?: string;
4722
+ alt?: 'json' | 'media' | 'proto';
4602
4723
  /** JSONP */
4603
4724
  callback?: string;
4604
4725
  /** Selector specifying which fields to include in a partial response. */
@@ -4623,11 +4744,11 @@ declare namespace gapi.client {
4623
4744
  /** Updates the schema of a Cloud Spanner database by creating/altering/dropping tables, columns, indexes, etc. The returned long-running operation will have a name of the format `/operations/` and can be used to track execution of the schema changes. The metadata field type is UpdateDatabaseDdlMetadata. The operation has no response. */
4624
4745
  updateDdl(request: {
4625
4746
  /** V1 error format. */
4626
- '$.xgafv'?: string;
4747
+ '$.xgafv'?: '1' | '2';
4627
4748
  /** OAuth access token. */
4628
4749
  access_token?: string;
4629
4750
  /** Data format for response. */
4630
- alt?: string;
4751
+ alt?: 'json' | 'media' | 'proto';
4631
4752
  /** JSONP */
4632
4753
  callback?: string;
4633
4754
  /** Required. The database to update. */
@@ -4652,11 +4773,11 @@ declare namespace gapi.client {
4652
4773
  updateDdl(
4653
4774
  request: {
4654
4775
  /** V1 error format. */
4655
- '$.xgafv'?: string;
4776
+ '$.xgafv'?: '1' | '2';
4656
4777
  /** OAuth access token. */
4657
4778
  access_token?: string;
4658
4779
  /** Data format for response. */
4659
- alt?: string;
4780
+ alt?: 'json' | 'media' | 'proto';
4660
4781
  /** JSONP */
4661
4782
  callback?: string;
4662
4783
  /** Required. The database to update. */
@@ -4687,11 +4808,11 @@ declare namespace gapi.client {
4687
4808
  /** Lists instance partition long-running operations in the given instance. An instance partition operation has a name of the form `projects//instances//instancePartitions//operations/`. The long-running operation metadata field type `metadata.type_url` describes the type of the metadata. Operations returned include those that have completed/failed/canceled within the last 7 days, and pending operations. Operations returned are ordered by `operation.metadata.value.start_time` in descending order starting from the most recently started operation. Authorization requires `spanner.instancePartitionOperations.list` permission on the resource parent. */
4688
4809
  list(request?: {
4689
4810
  /** V1 error format. */
4690
- '$.xgafv'?: string;
4811
+ '$.xgafv'?: '1' | '2';
4691
4812
  /** OAuth access token. */
4692
4813
  access_token?: string;
4693
4814
  /** Data format for response. */
4694
- alt?: string;
4815
+ alt?: 'json' | 'media' | 'proto';
4695
4816
  /** JSONP */
4696
4817
  callback?: string;
4697
4818
  /** Selector specifying which fields to include in a partial response. */
@@ -4724,11 +4845,11 @@ declare namespace gapi.client {
4724
4845
  /** 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`. */
4725
4846
  cancel(request?: {
4726
4847
  /** V1 error format. */
4727
- '$.xgafv'?: string;
4848
+ '$.xgafv'?: '1' | '2';
4728
4849
  /** OAuth access token. */
4729
4850
  access_token?: string;
4730
4851
  /** Data format for response. */
4731
- alt?: string;
4852
+ alt?: 'json' | 'media' | 'proto';
4732
4853
  /** JSONP */
4733
4854
  callback?: string;
4734
4855
  /** Selector specifying which fields to include in a partial response. */
@@ -4751,11 +4872,11 @@ declare namespace gapi.client {
4751
4872
  /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
4752
4873
  delete(request?: {
4753
4874
  /** V1 error format. */
4754
- '$.xgafv'?: string;
4875
+ '$.xgafv'?: '1' | '2';
4755
4876
  /** OAuth access token. */
4756
4877
  access_token?: string;
4757
4878
  /** Data format for response. */
4758
- alt?: string;
4879
+ alt?: 'json' | 'media' | 'proto';
4759
4880
  /** JSONP */
4760
4881
  callback?: string;
4761
4882
  /** Selector specifying which fields to include in a partial response. */
@@ -4778,11 +4899,11 @@ declare namespace gapi.client {
4778
4899
  /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
4779
4900
  get(request?: {
4780
4901
  /** V1 error format. */
4781
- '$.xgafv'?: string;
4902
+ '$.xgafv'?: '1' | '2';
4782
4903
  /** OAuth access token. */
4783
4904
  access_token?: string;
4784
4905
  /** Data format for response. */
4785
- alt?: string;
4906
+ alt?: 'json' | 'media' | 'proto';
4786
4907
  /** JSONP */
4787
4908
  callback?: string;
4788
4909
  /** Selector specifying which fields to include in a partial response. */
@@ -4805,11 +4926,11 @@ declare namespace gapi.client {
4805
4926
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
4806
4927
  list(request?: {
4807
4928
  /** V1 error format. */
4808
- '$.xgafv'?: string;
4929
+ '$.xgafv'?: '1' | '2';
4809
4930
  /** OAuth access token. */
4810
4931
  access_token?: string;
4811
4932
  /** Data format for response. */
4812
- alt?: string;
4933
+ alt?: 'json' | 'media' | 'proto';
4813
4934
  /** JSONP */
4814
4935
  callback?: string;
4815
4936
  /** Selector specifying which fields to include in a partial response. */
@@ -4842,11 +4963,11 @@ declare namespace gapi.client {
4842
4963
  /** Creates an instance partition and begins preparing it to be used. The returned long-running operation can be used to track the progress of preparing the new instance partition. The instance partition name is assigned by the caller. If the named instance partition already exists, `CreateInstancePartition` returns `ALREADY_EXISTS`. Immediately upon completion of this request: * The instance partition is readable via the API, with all requested attributes but no allocated resources. Its state is `CREATING`. Until completion of the returned operation: * Cancelling the operation renders the instance partition immediately unreadable via the API. * The instance partition can be deleted. * All other attempts to modify the instance partition are rejected. Upon completion of the returned operation: * Billing for all successfully-allocated resources begins (some types may have lower than the requested levels). * Databases can start using this instance partition. * The instance partition's allocated resource levels are readable via the API. * The instance partition's state becomes `READY`. The returned long-running operation will have a name of the format `/operations/` and can be used to track creation of the instance partition. The metadata field type is CreateInstancePartitionMetadata. The response field type is InstancePartition, if successful. */
4843
4964
  create(request: {
4844
4965
  /** V1 error format. */
4845
- '$.xgafv'?: string;
4966
+ '$.xgafv'?: '1' | '2';
4846
4967
  /** OAuth access token. */
4847
4968
  access_token?: string;
4848
4969
  /** Data format for response. */
4849
- alt?: string;
4970
+ alt?: 'json' | 'media' | 'proto';
4850
4971
  /** JSONP */
4851
4972
  callback?: string;
4852
4973
  /** Selector specifying which fields to include in a partial response. */
@@ -4871,11 +4992,11 @@ declare namespace gapi.client {
4871
4992
  create(
4872
4993
  request: {
4873
4994
  /** V1 error format. */
4874
- '$.xgafv'?: string;
4995
+ '$.xgafv'?: '1' | '2';
4875
4996
  /** OAuth access token. */
4876
4997
  access_token?: string;
4877
4998
  /** Data format for response. */
4878
- alt?: string;
4999
+ alt?: 'json' | 'media' | 'proto';
4879
5000
  /** JSONP */
4880
5001
  callback?: string;
4881
5002
  /** Selector specifying which fields to include in a partial response. */
@@ -4900,11 +5021,11 @@ declare namespace gapi.client {
4900
5021
  /** Deletes an existing instance partition. Requires that the instance partition is not used by any database or backup and is not the default instance partition of an instance. Authorization requires `spanner.instancePartitions.delete` permission on the resource name. */
4901
5022
  delete(request?: {
4902
5023
  /** V1 error format. */
4903
- '$.xgafv'?: string;
5024
+ '$.xgafv'?: '1' | '2';
4904
5025
  /** OAuth access token. */
4905
5026
  access_token?: string;
4906
5027
  /** Data format for response. */
4907
- alt?: string;
5028
+ alt?: 'json' | 'media' | 'proto';
4908
5029
  /** JSONP */
4909
5030
  callback?: string;
4910
5031
  /** Optional. If not empty, the API only deletes the instance partition when the etag provided matches the current status of the requested instance partition. Otherwise, deletes the instance partition without checking the current status of the requested instance partition. */
@@ -4929,11 +5050,11 @@ declare namespace gapi.client {
4929
5050
  /** Gets information about a particular instance partition. */
4930
5051
  get(request?: {
4931
5052
  /** V1 error format. */
4932
- '$.xgafv'?: string;
5053
+ '$.xgafv'?: '1' | '2';
4933
5054
  /** OAuth access token. */
4934
5055
  access_token?: string;
4935
5056
  /** Data format for response. */
4936
- alt?: string;
5057
+ alt?: 'json' | 'media' | 'proto';
4937
5058
  /** JSONP */
4938
5059
  callback?: string;
4939
5060
  /** Selector specifying which fields to include in a partial response. */
@@ -4956,11 +5077,11 @@ declare namespace gapi.client {
4956
5077
  /** Lists all instance partitions for the given instance. */
4957
5078
  list(request?: {
4958
5079
  /** V1 error format. */
4959
- '$.xgafv'?: string;
5080
+ '$.xgafv'?: '1' | '2';
4960
5081
  /** OAuth access token. */
4961
5082
  access_token?: string;
4962
5083
  /** Data format for response. */
4963
- alt?: string;
5084
+ alt?: 'json' | 'media' | 'proto';
4964
5085
  /** JSONP */
4965
5086
  callback?: string;
4966
5087
  /** Selector specifying which fields to include in a partial response. */
@@ -4989,11 +5110,11 @@ declare namespace gapi.client {
4989
5110
  /** Updates an instance partition, and begins allocating or releasing resources as requested. The returned long-running operation can be used to track the progress of updating the instance partition. If the named instance partition does not exist, returns `NOT_FOUND`. Immediately upon completion of this request: * For resource types for which a decrease in the instance partition's allocation has been requested, billing is based on the newly-requested level. Until completion of the returned operation: * Cancelling the operation sets its metadata's cancel_time, and begins restoring resources to their pre-request values. The operation is guaranteed to succeed at undoing all resource changes, after which point it terminates with a `CANCELLED` status. * All other attempts to modify the instance partition are rejected. * Reading the instance partition via the API continues to give the pre-request resource levels. Upon completion of the returned operation: * Billing begins for all successfully-allocated resources (some types may have lower than the requested levels). * All newly-reserved resources are available for serving the instance partition's tables. * The instance partition's new resource levels are readable via the API. The returned long-running operation will have a name of the format `/operations/` and can be used to track the instance partition modification. The metadata field type is UpdateInstancePartitionMetadata. The response field type is InstancePartition, if successful. Authorization requires `spanner.instancePartitions.update` permission on the resource name. */
4990
5111
  patch(request: {
4991
5112
  /** V1 error format. */
4992
- '$.xgafv'?: string;
5113
+ '$.xgafv'?: '1' | '2';
4993
5114
  /** OAuth access token. */
4994
5115
  access_token?: string;
4995
5116
  /** Data format for response. */
4996
- alt?: string;
5117
+ alt?: 'json' | 'media' | 'proto';
4997
5118
  /** JSONP */
4998
5119
  callback?: string;
4999
5120
  /** Selector specifying which fields to include in a partial response. */
@@ -5018,11 +5139,11 @@ declare namespace gapi.client {
5018
5139
  patch(
5019
5140
  request: {
5020
5141
  /** V1 error format. */
5021
- '$.xgafv'?: string;
5142
+ '$.xgafv'?: '1' | '2';
5022
5143
  /** OAuth access token. */
5023
5144
  access_token?: string;
5024
5145
  /** Data format for response. */
5025
- alt?: string;
5146
+ alt?: 'json' | 'media' | 'proto';
5026
5147
  /** JSONP */
5027
5148
  callback?: string;
5028
5149
  /** Selector specifying which fields to include in a partial response. */
@@ -5050,11 +5171,11 @@ declare namespace gapi.client {
5050
5171
  /** 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`. */
5051
5172
  cancel(request?: {
5052
5173
  /** V1 error format. */
5053
- '$.xgafv'?: string;
5174
+ '$.xgafv'?: '1' | '2';
5054
5175
  /** OAuth access token. */
5055
5176
  access_token?: string;
5056
5177
  /** Data format for response. */
5057
- alt?: string;
5178
+ alt?: 'json' | 'media' | 'proto';
5058
5179
  /** JSONP */
5059
5180
  callback?: string;
5060
5181
  /** Selector specifying which fields to include in a partial response. */
@@ -5077,11 +5198,11 @@ declare namespace gapi.client {
5077
5198
  /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
5078
5199
  delete(request?: {
5079
5200
  /** V1 error format. */
5080
- '$.xgafv'?: string;
5201
+ '$.xgafv'?: '1' | '2';
5081
5202
  /** OAuth access token. */
5082
5203
  access_token?: string;
5083
5204
  /** Data format for response. */
5084
- alt?: string;
5205
+ alt?: 'json' | 'media' | 'proto';
5085
5206
  /** JSONP */
5086
5207
  callback?: string;
5087
5208
  /** Selector specifying which fields to include in a partial response. */
@@ -5104,11 +5225,11 @@ declare namespace gapi.client {
5104
5225
  /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
5105
5226
  get(request?: {
5106
5227
  /** V1 error format. */
5107
- '$.xgafv'?: string;
5228
+ '$.xgafv'?: '1' | '2';
5108
5229
  /** OAuth access token. */
5109
5230
  access_token?: string;
5110
5231
  /** Data format for response. */
5111
- alt?: string;
5232
+ alt?: 'json' | 'media' | 'proto';
5112
5233
  /** JSONP */
5113
5234
  callback?: string;
5114
5235
  /** Selector specifying which fields to include in a partial response. */
@@ -5131,11 +5252,11 @@ declare namespace gapi.client {
5131
5252
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
5132
5253
  list(request?: {
5133
5254
  /** V1 error format. */
5134
- '$.xgafv'?: string;
5255
+ '$.xgafv'?: '1' | '2';
5135
5256
  /** OAuth access token. */
5136
5257
  access_token?: string;
5137
5258
  /** Data format for response. */
5138
- alt?: string;
5259
+ alt?: 'json' | 'media' | 'proto';
5139
5260
  /** JSONP */
5140
5261
  callback?: string;
5141
5262
  /** Selector specifying which fields to include in a partial response. */
@@ -5168,11 +5289,11 @@ declare namespace gapi.client {
5168
5289
  /** Creates an instance and begins preparing it to begin serving. The returned long-running operation can be used to track the progress of preparing the new instance. The instance name is assigned by the caller. If the named instance already exists, `CreateInstance` returns `ALREADY_EXISTS`. Immediately upon completion of this request: * The instance is readable via the API, with all requested attributes but no allocated resources. Its state is `CREATING`. Until completion of the returned operation: * Cancelling the operation renders the instance immediately unreadable via the API. * The instance can be deleted. * All other attempts to modify the instance are rejected. Upon completion of the returned operation: * Billing for all successfully-allocated resources begins (some types may have lower than the requested levels). * Databases can be created in the instance. * The instance's allocated resource levels are readable via the API. * The instance's state becomes `READY`. The returned long-running operation will have a name of the format `/operations/` and can be used to track creation of the instance. The metadata field type is CreateInstanceMetadata. The response field type is Instance, if successful. */
5169
5290
  create(request: {
5170
5291
  /** V1 error format. */
5171
- '$.xgafv'?: string;
5292
+ '$.xgafv'?: '1' | '2';
5172
5293
  /** OAuth access token. */
5173
5294
  access_token?: string;
5174
5295
  /** Data format for response. */
5175
- alt?: string;
5296
+ alt?: 'json' | 'media' | 'proto';
5176
5297
  /** JSONP */
5177
5298
  callback?: string;
5178
5299
  /** Selector specifying which fields to include in a partial response. */
@@ -5197,11 +5318,11 @@ declare namespace gapi.client {
5197
5318
  create(
5198
5319
  request: {
5199
5320
  /** V1 error format. */
5200
- '$.xgafv'?: string;
5321
+ '$.xgafv'?: '1' | '2';
5201
5322
  /** OAuth access token. */
5202
5323
  access_token?: string;
5203
5324
  /** Data format for response. */
5204
- alt?: string;
5325
+ alt?: 'json' | 'media' | 'proto';
5205
5326
  /** JSONP */
5206
5327
  callback?: string;
5207
5328
  /** Selector specifying which fields to include in a partial response. */
@@ -5226,11 +5347,11 @@ declare namespace gapi.client {
5226
5347
  /** Deletes an instance. Immediately upon completion of the request: * Billing ceases for all of the instance's reserved resources. Soon afterward: * The instance and *all of its databases* immediately and irrevocably disappear from the API. All data in the databases is permanently deleted. */
5227
5348
  delete(request?: {
5228
5349
  /** V1 error format. */
5229
- '$.xgafv'?: string;
5350
+ '$.xgafv'?: '1' | '2';
5230
5351
  /** OAuth access token. */
5231
5352
  access_token?: string;
5232
5353
  /** Data format for response. */
5233
- alt?: string;
5354
+ alt?: 'json' | 'media' | 'proto';
5234
5355
  /** JSONP */
5235
5356
  callback?: string;
5236
5357
  /** Selector specifying which fields to include in a partial response. */
@@ -5253,11 +5374,11 @@ declare namespace gapi.client {
5253
5374
  /** Gets information about a particular instance. */
5254
5375
  get(request?: {
5255
5376
  /** V1 error format. */
5256
- '$.xgafv'?: string;
5377
+ '$.xgafv'?: '1' | '2';
5257
5378
  /** OAuth access token. */
5258
5379
  access_token?: string;
5259
5380
  /** Data format for response. */
5260
- alt?: string;
5381
+ alt?: 'json' | 'media' | 'proto';
5261
5382
  /** JSONP */
5262
5383
  callback?: string;
5263
5384
  /** If field_mask is present, specifies the subset of Instance fields that should be returned. If absent, all Instance fields are returned. */
@@ -5283,11 +5404,11 @@ declare namespace gapi.client {
5283
5404
  getIamPolicy(
5284
5405
  request: {
5285
5406
  /** V1 error format. */
5286
- '$.xgafv'?: string;
5407
+ '$.xgafv'?: '1' | '2';
5287
5408
  /** OAuth access token. */
5288
5409
  access_token?: string;
5289
5410
  /** Data format for response. */
5290
- alt?: string;
5411
+ alt?: 'json' | 'media' | 'proto';
5291
5412
  /** JSONP */
5292
5413
  callback?: string;
5293
5414
  /** Selector specifying which fields to include in a partial response. */
@@ -5312,11 +5433,11 @@ declare namespace gapi.client {
5312
5433
  /** Lists all instances in the given project. */
5313
5434
  list(request?: {
5314
5435
  /** V1 error format. */
5315
- '$.xgafv'?: string;
5436
+ '$.xgafv'?: '1' | '2';
5316
5437
  /** OAuth access token. */
5317
5438
  access_token?: string;
5318
5439
  /** Data format for response. */
5319
- alt?: string;
5440
+ alt?: 'json' | 'media' | 'proto';
5320
5441
  /** JSONP */
5321
5442
  callback?: string;
5322
5443
  /** Selector specifying which fields to include in a partial response. */
@@ -5347,11 +5468,11 @@ declare namespace gapi.client {
5347
5468
  /** Moves an instance to the target instance configuration. You can use the returned long-running operation to track the progress of moving the instance. `MoveInstance` returns `FAILED_PRECONDITION` if the instance meets any of the following criteria: * Is undergoing a move to a different instance configuration * Has backups * Has an ongoing update * Contains any CMEK-enabled databases * Is a free trial instance While the operation is pending: * All other attempts to modify the instance, including changes to its compute capacity, are rejected. * The following database and backup admin operations are rejected: * `DatabaseAdmin.CreateDatabase` * `DatabaseAdmin.UpdateDatabaseDdl` (disabled if default_leader is specified in the request.) * `DatabaseAdmin.RestoreDatabase` * `DatabaseAdmin.CreateBackup` * `DatabaseAdmin.CopyBackup` * Both the source and target instance configurations are subject to hourly compute and storage charges. * The instance might experience higher read-write latencies and a higher transaction abort rate. However, moving an instance doesn't cause any downtime. The returned long-running operation has a name of the format `/operations/` and can be used to track the move instance operation. The metadata field type is MoveInstanceMetadata. The response field type is Instance, if successful. Cancelling the operation sets its metadata's cancel_time. Cancellation is not immediate because it involves moving any data previously moved to the target instance configuration back to the original instance configuration. You can use this operation to track the progress of the cancellation. Upon successful completion of the cancellation, the operation terminates with `CANCELLED` status. If not cancelled, upon completion of the returned operation: * The instance successfully moves to the target instance configuration. * You are billed for compute and storage in target instance configuration. Authorization requires the `spanner.instances.update` permission on the resource instance. For more details, see [Move an instance](https://cloud.google.com/spanner/docs/move-instance). */
5348
5469
  move(request: {
5349
5470
  /** V1 error format. */
5350
- '$.xgafv'?: string;
5471
+ '$.xgafv'?: '1' | '2';
5351
5472
  /** OAuth access token. */
5352
5473
  access_token?: string;
5353
5474
  /** Data format for response. */
5354
- alt?: string;
5475
+ alt?: 'json' | 'media' | 'proto';
5355
5476
  /** JSONP */
5356
5477
  callback?: string;
5357
5478
  /** Selector specifying which fields to include in a partial response. */
@@ -5376,11 +5497,11 @@ declare namespace gapi.client {
5376
5497
  move(
5377
5498
  request: {
5378
5499
  /** V1 error format. */
5379
- '$.xgafv'?: string;
5500
+ '$.xgafv'?: '1' | '2';
5380
5501
  /** OAuth access token. */
5381
5502
  access_token?: string;
5382
5503
  /** Data format for response. */
5383
- alt?: string;
5504
+ alt?: 'json' | 'media' | 'proto';
5384
5505
  /** JSONP */
5385
5506
  callback?: string;
5386
5507
  /** Selector specifying which fields to include in a partial response. */
@@ -5405,11 +5526,11 @@ declare namespace gapi.client {
5405
5526
  /** Updates an instance, and begins allocating or releasing resources as requested. The returned long-running operation can be used to track the progress of updating the instance. If the named instance does not exist, returns `NOT_FOUND`. Immediately upon completion of this request: * For resource types for which a decrease in the instance's allocation has been requested, billing is based on the newly-requested level. Until completion of the returned operation: * Cancelling the operation sets its metadata's cancel_time, and begins restoring resources to their pre-request values. The operation is guaranteed to succeed at undoing all resource changes, after which point it terminates with a `CANCELLED` status. * All other attempts to modify the instance are rejected. * Reading the instance via the API continues to give the pre-request resource levels. Upon completion of the returned operation: * Billing begins for all successfully-allocated resources (some types may have lower than the requested levels). * All newly-reserved resources are available for serving the instance's tables. * The instance's new resource levels are readable via the API. The returned long-running operation will have a name of the format `/operations/` and can be used to track the instance modification. The metadata field type is UpdateInstanceMetadata. The response field type is Instance, if successful. Authorization requires `spanner.instances.update` permission on the resource name. */
5406
5527
  patch(request: {
5407
5528
  /** V1 error format. */
5408
- '$.xgafv'?: string;
5529
+ '$.xgafv'?: '1' | '2';
5409
5530
  /** OAuth access token. */
5410
5531
  access_token?: string;
5411
5532
  /** Data format for response. */
5412
- alt?: string;
5533
+ alt?: 'json' | 'media' | 'proto';
5413
5534
  /** JSONP */
5414
5535
  callback?: string;
5415
5536
  /** Selector specifying which fields to include in a partial response. */
@@ -5434,11 +5555,11 @@ declare namespace gapi.client {
5434
5555
  patch(
5435
5556
  request: {
5436
5557
  /** V1 error format. */
5437
- '$.xgafv'?: string;
5558
+ '$.xgafv'?: '1' | '2';
5438
5559
  /** OAuth access token. */
5439
5560
  access_token?: string;
5440
5561
  /** Data format for response. */
5441
- alt?: string;
5562
+ alt?: 'json' | 'media' | 'proto';
5442
5563
  /** JSONP */
5443
5564
  callback?: string;
5444
5565
  /** Selector specifying which fields to include in a partial response. */
@@ -5464,11 +5585,11 @@ declare namespace gapi.client {
5464
5585
  setIamPolicy(
5465
5586
  request: {
5466
5587
  /** V1 error format. */
5467
- '$.xgafv'?: string;
5588
+ '$.xgafv'?: '1' | '2';
5468
5589
  /** OAuth access token. */
5469
5590
  access_token?: string;
5470
5591
  /** Data format for response. */
5471
- alt?: string;
5592
+ alt?: 'json' | 'media' | 'proto';
5472
5593
  /** JSONP */
5473
5594
  callback?: string;
5474
5595
  /** Selector specifying which fields to include in a partial response. */
@@ -5494,11 +5615,11 @@ declare namespace gapi.client {
5494
5615
  testIamPermissions(
5495
5616
  request: {
5496
5617
  /** V1 error format. */
5497
- '$.xgafv'?: string;
5618
+ '$.xgafv'?: '1' | '2';
5498
5619
  /** OAuth access token. */
5499
5620
  access_token?: string;
5500
5621
  /** Data format for response. */
5501
- alt?: string;
5622
+ alt?: 'json' | 'media' | 'proto';
5502
5623
  /** JSONP */
5503
5624
  callback?: string;
5504
5625
  /** Selector specifying which fields to include in a partial response. */
@@ -5537,11 +5658,11 @@ declare namespace gapi.client {
5537
5658
  /** Return available scans given a Database-specific resource name. */
5538
5659
  list(request?: {
5539
5660
  /** V1 error format. */
5540
- '$.xgafv'?: string;
5661
+ '$.xgafv'?: '1' | '2';
5541
5662
  /** OAuth access token. */
5542
5663
  access_token?: string;
5543
5664
  /** Data format for response. */
5544
- alt?: string;
5665
+ alt?: 'json' | 'media' | 'proto';
5545
5666
  /** JSONP */
5546
5667
  callback?: string;
5547
5668
  /** Selector specifying which fields to include in a partial response. */
@@ -5567,7 +5688,7 @@ declare namespace gapi.client {
5567
5688
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5568
5689
  uploadType?: string;
5569
5690
  /** Specifies which parts of the Scan should be returned in the response. Note, only the SUMMARY view (the default) is currently supported for ListScans. */
5570
- view?: string;
5691
+ view?: 'VIEW_UNSPECIFIED' | 'SUMMARY' | 'FULL';
5571
5692
  }): Request<ListScansResponse>;
5572
5693
  }
5573
5694