@maxim_mazurok/gapi.client.cloudkms-v1 0.1.20260219 → 0.2.20260226

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 +625 -267
  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://cloudkms.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260219
12
+ // Revision: 20260226
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -47,7 +47,13 @@ declare namespace gapi.client {
47
47
  /** Integrity verification field. A CRC32C checksum of the returned AsymmetricDecryptResponse.plaintext. An integrity check of AsymmetricDecryptResponse.plaintext can be performed by computing the CRC32C checksum of AsymmetricDecryptResponse.plaintext and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type. */
48
48
  plaintextCrc32c?: string;
49
49
  /** The ProtectionLevel of the CryptoKeyVersion used in decryption. */
50
- protectionLevel?: string;
50
+ protectionLevel?:
51
+ | 'PROTECTION_LEVEL_UNSPECIFIED'
52
+ | 'SOFTWARE'
53
+ | 'HSM'
54
+ | 'EXTERNAL'
55
+ | 'EXTERNAL_VPC'
56
+ | 'HSM_SINGLE_TENANT';
51
57
  /** Integrity verification field. A flag indicating whether AsymmetricDecryptRequest.ciphertext_crc32c was received by KeyManagementService and used for the integrity verification of the ciphertext. A false value of this field indicates either that AsymmetricDecryptRequest.ciphertext_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set AsymmetricDecryptRequest.ciphertext_crc32c but this field is still false, discard the response and perform a limited number of retries. */
52
58
  verifiedCiphertextCrc32c?: boolean;
53
59
  }
@@ -65,7 +71,13 @@ declare namespace gapi.client {
65
71
  /** The resource name of the CryptoKeyVersion used for signing. Check this field to verify that the intended resource was used for signing. */
66
72
  name?: string;
67
73
  /** The ProtectionLevel of the CryptoKeyVersion used for signing. */
68
- protectionLevel?: string;
74
+ protectionLevel?:
75
+ | 'PROTECTION_LEVEL_UNSPECIFIED'
76
+ | 'SOFTWARE'
77
+ | 'HSM'
78
+ | 'EXTERNAL'
79
+ | 'EXTERNAL_VPC'
80
+ | 'HSM_SINGLE_TENANT';
69
81
  /** The created signature. */
70
82
  signature?: string;
71
83
  /** Integrity verification field. A CRC32C checksum of the returned AsymmetricSignResponse.signature. An integrity check of AsymmetricSignResponse.signature can be performed by computing the CRC32C checksum of AsymmetricSignResponse.signature and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type. */
@@ -85,7 +97,11 @@ declare namespace gapi.client {
85
97
  /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
86
98
  exemptedMembers?: string[];
87
99
  /** The log type that this config enables. */
88
- logType?: string;
100
+ logType?:
101
+ | 'LOG_TYPE_UNSPECIFIED'
102
+ | 'ADMIN_READ'
103
+ | 'DATA_WRITE'
104
+ | 'DATA_READ';
89
105
  }
90
106
  interface AutokeyConfig {
91
107
  /** Optional. A checksum computed by the server based on the value of other fields. This may be sent on update requests to ensure that the client has an up-to-date value before proceeding. The request will be rejected with an ABORTED error on a mismatched etag. */
@@ -93,11 +109,19 @@ declare namespace gapi.client {
93
109
  /** Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or `projects/{PROJECT_NUMBER}`, where Cloud KMS Autokey will provision a new CryptoKey when a KeyHandle is created. On UpdateAutokeyConfig, the caller will require `cloudkms.cryptoKeys.setIamPolicy` permission on this key project. Once configured, for Cloud KMS Autokey to function properly, this key project must have the Cloud KMS API activated and the Cloud KMS Service Agent for this key project must be granted the `cloudkms.admin` role (or pertinent permissions). A request with an empty key project field will clear the configuration. */
94
110
  keyProject?: string;
95
111
  /** Optional. KeyProjectResolutionMode for the AutokeyConfig. Valid values are `DEDICATED_KEY_PROJECT`, `RESOURCE_PROJECT`, or `DISABLED`. */
96
- keyProjectResolutionMode?: string;
112
+ keyProjectResolutionMode?:
113
+ | 'KEY_PROJECT_RESOLUTION_MODE_UNSPECIFIED'
114
+ | 'DEDICATED_KEY_PROJECT'
115
+ | 'RESOURCE_PROJECT'
116
+ | 'DISABLED';
97
117
  /** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or `projects/{PROJECT_NUMBER}/autokeyConfig`. */
98
118
  name?: string;
99
119
  /** Output only. The state for the AutokeyConfig. */
100
- state?: string;
120
+ state?:
121
+ | 'STATE_UNSPECIFIED'
122
+ | 'ACTIVE'
123
+ | 'KEY_PROJECT_DELETED'
124
+ | 'UNINITIALIZED';
101
125
  }
102
126
  interface Binding {
103
127
  /** The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
@@ -173,7 +197,14 @@ declare namespace gapi.client {
173
197
  /** Output only. A copy of the "primary" CryptoKeyVersion that will be used by Encrypt when this CryptoKey is given in EncryptRequest.name. The CryptoKey's primary version can be updated via UpdateCryptoKeyPrimaryVersion. Keys with purpose ENCRYPT_DECRYPT may have a primary. For other keys, this field will be omitted. */
174
198
  primary?: CryptoKeyVersion;
175
199
  /** Immutable. The immutable purpose of this CryptoKey. */
176
- purpose?: string;
200
+ purpose?:
201
+ | 'CRYPTO_KEY_PURPOSE_UNSPECIFIED'
202
+ | 'ENCRYPT_DECRYPT'
203
+ | 'ASYMMETRIC_SIGN'
204
+ | 'ASYMMETRIC_DECRYPT'
205
+ | 'RAW_ENCRYPT_DECRYPT'
206
+ | 'MAC'
207
+ | 'KEY_ENCAPSULATION';
177
208
  /** next_rotation_time will be advanced by this period when the service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours. If rotation_period is set, next_rotation_time must also be set. Keys with purpose ENCRYPT_DECRYPT support automatic rotation. For other keys, this field must be omitted. */
178
209
  rotationPeriod?: string;
179
210
  /** A template describing settings for new CryptoKeyVersion instances. The properties of new CryptoKeyVersion instances created by either CreateCryptoKeyVersion or auto-rotation are controlled by this template. */
@@ -181,7 +212,54 @@ declare namespace gapi.client {
181
212
  }
182
213
  interface CryptoKeyVersion {
183
214
  /** Output only. The CryptoKeyVersionAlgorithm that this CryptoKeyVersion supports. */
184
- algorithm?: string;
215
+ algorithm?:
216
+ | 'CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED'
217
+ | 'GOOGLE_SYMMETRIC_ENCRYPTION'
218
+ | 'AES_128_GCM'
219
+ | 'AES_256_GCM'
220
+ | 'AES_128_CBC'
221
+ | 'AES_256_CBC'
222
+ | 'AES_128_CTR'
223
+ | 'AES_256_CTR'
224
+ | 'RSA_SIGN_PSS_2048_SHA256'
225
+ | 'RSA_SIGN_PSS_3072_SHA256'
226
+ | 'RSA_SIGN_PSS_4096_SHA256'
227
+ | 'RSA_SIGN_PSS_4096_SHA512'
228
+ | 'RSA_SIGN_PKCS1_2048_SHA256'
229
+ | 'RSA_SIGN_PKCS1_3072_SHA256'
230
+ | 'RSA_SIGN_PKCS1_4096_SHA256'
231
+ | 'RSA_SIGN_PKCS1_4096_SHA512'
232
+ | 'RSA_SIGN_RAW_PKCS1_2048'
233
+ | 'RSA_SIGN_RAW_PKCS1_3072'
234
+ | 'RSA_SIGN_RAW_PKCS1_4096'
235
+ | 'RSA_DECRYPT_OAEP_2048_SHA256'
236
+ | 'RSA_DECRYPT_OAEP_3072_SHA256'
237
+ | 'RSA_DECRYPT_OAEP_4096_SHA256'
238
+ | 'RSA_DECRYPT_OAEP_4096_SHA512'
239
+ | 'RSA_DECRYPT_OAEP_2048_SHA1'
240
+ | 'RSA_DECRYPT_OAEP_3072_SHA1'
241
+ | 'RSA_DECRYPT_OAEP_4096_SHA1'
242
+ | 'EC_SIGN_P256_SHA256'
243
+ | 'EC_SIGN_P384_SHA384'
244
+ | 'EC_SIGN_SECP256K1_SHA256'
245
+ | 'EC_SIGN_ED25519'
246
+ | 'HMAC_SHA256'
247
+ | 'HMAC_SHA1'
248
+ | 'HMAC_SHA384'
249
+ | 'HMAC_SHA512'
250
+ | 'HMAC_SHA224'
251
+ | 'EXTERNAL_SYMMETRIC_ENCRYPTION'
252
+ | 'ML_KEM_768'
253
+ | 'ML_KEM_1024'
254
+ | 'KEM_XWING'
255
+ | 'PQ_SIGN_ML_DSA_44'
256
+ | 'PQ_SIGN_ML_DSA_65'
257
+ | 'PQ_SIGN_ML_DSA_87'
258
+ | 'PQ_SIGN_SLH_DSA_SHA2_128S'
259
+ | 'PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256'
260
+ | 'PQ_SIGN_ML_DSA_44_EXTERNAL_MU'
261
+ | 'PQ_SIGN_ML_DSA_65_EXTERNAL_MU'
262
+ | 'PQ_SIGN_ML_DSA_87_EXTERNAL_MU';
185
263
  /** Output only. Statement that was generated and signed by the HSM at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only provided for key versions with protection_level HSM. */
186
264
  attestation?: KeyOperationAttestation;
187
265
  /** Output only. The time at which this CryptoKeyVersion was created. */
@@ -207,17 +285,87 @@ declare namespace gapi.client {
207
285
  /** Output only. The resource name for this CryptoKeyVersion in the format `projects/*‍/locations/*‍/keyRings/*‍/cryptoKeys/*‍/cryptoKeyVersions/*`. */
208
286
  name?: string;
209
287
  /** Output only. The ProtectionLevel describing how crypto operations are performed with this CryptoKeyVersion. */
210
- protectionLevel?: string;
288
+ protectionLevel?:
289
+ | 'PROTECTION_LEVEL_UNSPECIFIED'
290
+ | 'SOFTWARE'
291
+ | 'HSM'
292
+ | 'EXTERNAL'
293
+ | 'EXTERNAL_VPC'
294
+ | 'HSM_SINGLE_TENANT';
211
295
  /** Output only. Whether or not this key version is eligible for reimport, by being specified as a target in ImportCryptoKeyVersionRequest.crypto_key_version. */
212
296
  reimportEligible?: boolean;
213
297
  /** The current state of the CryptoKeyVersion. */
214
- state?: string;
298
+ state?:
299
+ | 'CRYPTO_KEY_VERSION_STATE_UNSPECIFIED'
300
+ | 'PENDING_GENERATION'
301
+ | 'ENABLED'
302
+ | 'DISABLED'
303
+ | 'DESTROYED'
304
+ | 'DESTROY_SCHEDULED'
305
+ | 'PENDING_IMPORT'
306
+ | 'IMPORT_FAILED'
307
+ | 'GENERATION_FAILED'
308
+ | 'PENDING_EXTERNAL_DESTRUCTION'
309
+ | 'EXTERNAL_DESTRUCTION_FAILED';
215
310
  }
216
311
  interface CryptoKeyVersionTemplate {
217
312
  /** Required. Algorithm to use when creating a CryptoKeyVersion based on this template. For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION is implied if both this field is omitted and CryptoKey.purpose is ENCRYPT_DECRYPT. */
218
- algorithm?: string;
313
+ algorithm?:
314
+ | 'CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED'
315
+ | 'GOOGLE_SYMMETRIC_ENCRYPTION'
316
+ | 'AES_128_GCM'
317
+ | 'AES_256_GCM'
318
+ | 'AES_128_CBC'
319
+ | 'AES_256_CBC'
320
+ | 'AES_128_CTR'
321
+ | 'AES_256_CTR'
322
+ | 'RSA_SIGN_PSS_2048_SHA256'
323
+ | 'RSA_SIGN_PSS_3072_SHA256'
324
+ | 'RSA_SIGN_PSS_4096_SHA256'
325
+ | 'RSA_SIGN_PSS_4096_SHA512'
326
+ | 'RSA_SIGN_PKCS1_2048_SHA256'
327
+ | 'RSA_SIGN_PKCS1_3072_SHA256'
328
+ | 'RSA_SIGN_PKCS1_4096_SHA256'
329
+ | 'RSA_SIGN_PKCS1_4096_SHA512'
330
+ | 'RSA_SIGN_RAW_PKCS1_2048'
331
+ | 'RSA_SIGN_RAW_PKCS1_3072'
332
+ | 'RSA_SIGN_RAW_PKCS1_4096'
333
+ | 'RSA_DECRYPT_OAEP_2048_SHA256'
334
+ | 'RSA_DECRYPT_OAEP_3072_SHA256'
335
+ | 'RSA_DECRYPT_OAEP_4096_SHA256'
336
+ | 'RSA_DECRYPT_OAEP_4096_SHA512'
337
+ | 'RSA_DECRYPT_OAEP_2048_SHA1'
338
+ | 'RSA_DECRYPT_OAEP_3072_SHA1'
339
+ | 'RSA_DECRYPT_OAEP_4096_SHA1'
340
+ | 'EC_SIGN_P256_SHA256'
341
+ | 'EC_SIGN_P384_SHA384'
342
+ | 'EC_SIGN_SECP256K1_SHA256'
343
+ | 'EC_SIGN_ED25519'
344
+ | 'HMAC_SHA256'
345
+ | 'HMAC_SHA1'
346
+ | 'HMAC_SHA384'
347
+ | 'HMAC_SHA512'
348
+ | 'HMAC_SHA224'
349
+ | 'EXTERNAL_SYMMETRIC_ENCRYPTION'
350
+ | 'ML_KEM_768'
351
+ | 'ML_KEM_1024'
352
+ | 'KEM_XWING'
353
+ | 'PQ_SIGN_ML_DSA_44'
354
+ | 'PQ_SIGN_ML_DSA_65'
355
+ | 'PQ_SIGN_ML_DSA_87'
356
+ | 'PQ_SIGN_SLH_DSA_SHA2_128S'
357
+ | 'PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256'
358
+ | 'PQ_SIGN_ML_DSA_44_EXTERNAL_MU'
359
+ | 'PQ_SIGN_ML_DSA_65_EXTERNAL_MU'
360
+ | 'PQ_SIGN_ML_DSA_87_EXTERNAL_MU';
219
361
  /** ProtectionLevel to use when creating a CryptoKeyVersion based on this template. Immutable. Defaults to SOFTWARE. */
220
- protectionLevel?: string;
362
+ protectionLevel?:
363
+ | 'PROTECTION_LEVEL_UNSPECIFIED'
364
+ | 'SOFTWARE'
365
+ | 'HSM'
366
+ | 'EXTERNAL'
367
+ | 'EXTERNAL_VPC'
368
+ | 'HSM_SINGLE_TENANT';
221
369
  }
222
370
  interface DecapsulateRequest {
223
371
  /** Required. The ciphertext produced from encapsulation with the named CryptoKeyVersion public key(s). */
@@ -229,7 +377,13 @@ declare namespace gapi.client {
229
377
  /** The resource name of the CryptoKeyVersion used for decapsulation. Check this field to verify that the intended resource was used for decapsulation. */
230
378
  name?: string;
231
379
  /** The ProtectionLevel of the CryptoKeyVersion used in decapsulation. */
232
- protectionLevel?: string;
380
+ protectionLevel?:
381
+ | 'PROTECTION_LEVEL_UNSPECIFIED'
382
+ | 'SOFTWARE'
383
+ | 'HSM'
384
+ | 'EXTERNAL'
385
+ | 'EXTERNAL_VPC'
386
+ | 'HSM_SINGLE_TENANT';
233
387
  /** The decapsulated shared_secret originally encapsulated with the matching public key. */
234
388
  sharedSecret?: string;
235
389
  /** Integrity verification field. A CRC32C checksum of the returned DecapsulateResponse.shared_secret. An integrity check of DecapsulateResponse.shared_secret can be performed by computing the CRC32C checksum of DecapsulateResponse.shared_secret and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: receiving this response message indicates that KeyManagementService is able to successfully decrypt the ciphertext. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type. */
@@ -253,7 +407,13 @@ declare namespace gapi.client {
253
407
  /** Integrity verification field. A CRC32C checksum of the returned DecryptResponse.plaintext. An integrity check of DecryptResponse.plaintext can be performed by computing the CRC32C checksum of DecryptResponse.plaintext and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: receiving this response message indicates that KeyManagementService is able to successfully decrypt the ciphertext. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type. */
254
408
  plaintextCrc32c?: string;
255
409
  /** The ProtectionLevel of the CryptoKeyVersion used in decryption. */
256
- protectionLevel?: string;
410
+ protectionLevel?:
411
+ | 'PROTECTION_LEVEL_UNSPECIFIED'
412
+ | 'SOFTWARE'
413
+ | 'HSM'
414
+ | 'EXTERNAL'
415
+ | 'EXTERNAL_VPC'
416
+ | 'HSM_SINGLE_TENANT';
257
417
  /** Whether the Decryption was performed using the primary key version. */
258
418
  usedPrimary?: boolean;
259
419
  }
@@ -284,7 +444,10 @@ declare namespace gapi.client {
284
444
  /** Optional. Etag of the currently stored EkmConnection. */
285
445
  etag?: string;
286
446
  /** Optional. Describes who can perform control plane operations on the EKM. If unset, this defaults to MANUAL. */
287
- keyManagementMode?: string;
447
+ keyManagementMode?:
448
+ | 'KEY_MANAGEMENT_MODE_UNSPECIFIED'
449
+ | 'MANUAL'
450
+ | 'CLOUD_KMS';
288
451
  /** Output only. The resource name for the EkmConnection in the format `projects/*‍/locations/*‍/ekmConnections/*`. */
289
452
  name?: string;
290
453
  /** Optional. A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported. */
@@ -310,7 +473,13 @@ declare namespace gapi.client {
310
473
  /** The resource name of the CryptoKeyVersion used in encryption. Check this field to verify that the intended resource was used for encryption. */
311
474
  name?: string;
312
475
  /** The ProtectionLevel of the CryptoKeyVersion used in encryption. */
313
- protectionLevel?: string;
476
+ protectionLevel?:
477
+ | 'PROTECTION_LEVEL_UNSPECIFIED'
478
+ | 'SOFTWARE'
479
+ | 'HSM'
480
+ | 'EXTERNAL'
481
+ | 'EXTERNAL_VPC'
482
+ | 'HSM_SINGLE_TENANT';
314
483
  /** Integrity verification field. A flag indicating whether EncryptRequest.additional_authenticated_data_crc32c was received by KeyManagementService and used for the integrity verification of the AAD. A false value of this field indicates either that EncryptRequest.additional_authenticated_data_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set EncryptRequest.additional_authenticated_data_crc32c but this field is still false, discard the response and perform a limited number of retries. */
315
484
  verifiedAdditionalAuthenticatedDataCrc32c?: boolean;
316
485
  /** Integrity verification field. A flag indicating whether EncryptRequest.plaintext_crc32c was received by KeyManagementService and used for the integrity verification of the plaintext. A false value of this field indicates either that EncryptRequest.plaintext_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set EncryptRequest.plaintext_crc32c but this field is still false, discard the response and perform a limited number of retries. */
@@ -337,7 +506,13 @@ declare namespace gapi.client {
337
506
  /** The length in bytes of the amount of randomness to retrieve. Minimum 8 bytes, maximum 1024 bytes. */
338
507
  lengthBytes?: number;
339
508
  /** The ProtectionLevel to use when generating the random data. Currently, only HSM protection level is supported. */
340
- protectionLevel?: string;
509
+ protectionLevel?:
510
+ | 'PROTECTION_LEVEL_UNSPECIFIED'
511
+ | 'SOFTWARE'
512
+ | 'HSM'
513
+ | 'EXTERNAL'
514
+ | 'EXTERNAL_VPC'
515
+ | 'HSM_SINGLE_TENANT';
341
516
  }
342
517
  interface GenerateRandomBytesResponse {
343
518
  /** The generated data. */
@@ -347,7 +522,54 @@ declare namespace gapi.client {
347
522
  }
348
523
  interface ImportCryptoKeyVersionRequest {
349
524
  /** Required. The algorithm of the key being imported. This does not need to match the version_template of the CryptoKey this version imports into. */
350
- algorithm?: string;
525
+ algorithm?:
526
+ | 'CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED'
527
+ | 'GOOGLE_SYMMETRIC_ENCRYPTION'
528
+ | 'AES_128_GCM'
529
+ | 'AES_256_GCM'
530
+ | 'AES_128_CBC'
531
+ | 'AES_256_CBC'
532
+ | 'AES_128_CTR'
533
+ | 'AES_256_CTR'
534
+ | 'RSA_SIGN_PSS_2048_SHA256'
535
+ | 'RSA_SIGN_PSS_3072_SHA256'
536
+ | 'RSA_SIGN_PSS_4096_SHA256'
537
+ | 'RSA_SIGN_PSS_4096_SHA512'
538
+ | 'RSA_SIGN_PKCS1_2048_SHA256'
539
+ | 'RSA_SIGN_PKCS1_3072_SHA256'
540
+ | 'RSA_SIGN_PKCS1_4096_SHA256'
541
+ | 'RSA_SIGN_PKCS1_4096_SHA512'
542
+ | 'RSA_SIGN_RAW_PKCS1_2048'
543
+ | 'RSA_SIGN_RAW_PKCS1_3072'
544
+ | 'RSA_SIGN_RAW_PKCS1_4096'
545
+ | 'RSA_DECRYPT_OAEP_2048_SHA256'
546
+ | 'RSA_DECRYPT_OAEP_3072_SHA256'
547
+ | 'RSA_DECRYPT_OAEP_4096_SHA256'
548
+ | 'RSA_DECRYPT_OAEP_4096_SHA512'
549
+ | 'RSA_DECRYPT_OAEP_2048_SHA1'
550
+ | 'RSA_DECRYPT_OAEP_3072_SHA1'
551
+ | 'RSA_DECRYPT_OAEP_4096_SHA1'
552
+ | 'EC_SIGN_P256_SHA256'
553
+ | 'EC_SIGN_P384_SHA384'
554
+ | 'EC_SIGN_SECP256K1_SHA256'
555
+ | 'EC_SIGN_ED25519'
556
+ | 'HMAC_SHA256'
557
+ | 'HMAC_SHA1'
558
+ | 'HMAC_SHA384'
559
+ | 'HMAC_SHA512'
560
+ | 'HMAC_SHA224'
561
+ | 'EXTERNAL_SYMMETRIC_ENCRYPTION'
562
+ | 'ML_KEM_768'
563
+ | 'ML_KEM_1024'
564
+ | 'KEM_XWING'
565
+ | 'PQ_SIGN_ML_DSA_44'
566
+ | 'PQ_SIGN_ML_DSA_65'
567
+ | 'PQ_SIGN_ML_DSA_87'
568
+ | 'PQ_SIGN_SLH_DSA_SHA2_128S'
569
+ | 'PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256'
570
+ | 'PQ_SIGN_ML_DSA_44_EXTERNAL_MU'
571
+ | 'PQ_SIGN_ML_DSA_65_EXTERNAL_MU'
572
+ | 'PQ_SIGN_ML_DSA_87_EXTERNAL_MU';
351
573
  /** Optional. The optional name of an existing CryptoKeyVersion to target for an import operation. If this field is not present, a new CryptoKeyVersion containing the supplied key material is created. If this field is present, the supplied key material is imported into the existing CryptoKeyVersion. To import into an existing CryptoKeyVersion, the CryptoKeyVersion must be a child of ImportCryptoKeyVersionRequest.parent, have been previously created via ImportCryptoKeyVersion, and be in DESTROYED or IMPORT_FAILED state. The key material and algorithm must match the previous CryptoKeyVersion exactly if the CryptoKeyVersion has ever contained key material. */
352
574
  cryptoKeyVersion?: string;
353
575
  /** Required. The name of the ImportJob that was used to wrap this key material. */
@@ -371,15 +593,32 @@ declare namespace gapi.client {
371
593
  /** Output only. The time this ImportJob's key material was generated. */
372
594
  generateTime?: string;
373
595
  /** Required. Immutable. The wrapping method to be used for incoming key material. */
374
- importMethod?: string;
596
+ importMethod?:
597
+ | 'IMPORT_METHOD_UNSPECIFIED'
598
+ | 'RSA_OAEP_3072_SHA1_AES_256'
599
+ | 'RSA_OAEP_4096_SHA1_AES_256'
600
+ | 'RSA_OAEP_3072_SHA256_AES_256'
601
+ | 'RSA_OAEP_4096_SHA256_AES_256'
602
+ | 'RSA_OAEP_3072_SHA256'
603
+ | 'RSA_OAEP_4096_SHA256';
375
604
  /** Output only. The resource name for this ImportJob in the format `projects/*‍/locations/*‍/keyRings/*‍/importJobs/*`. */
376
605
  name?: string;
377
606
  /** Required. Immutable. The protection level of the ImportJob. This must match the protection_level of the version_template on the CryptoKey you attempt to import into. */
378
- protectionLevel?: string;
607
+ protectionLevel?:
608
+ | 'PROTECTION_LEVEL_UNSPECIFIED'
609
+ | 'SOFTWARE'
610
+ | 'HSM'
611
+ | 'EXTERNAL'
612
+ | 'EXTERNAL_VPC'
613
+ | 'HSM_SINGLE_TENANT';
379
614
  /** Output only. The public key with which to wrap key material prior to import. Only returned if state is ACTIVE. */
380
615
  publicKey?: WrappingPublicKey;
381
616
  /** Output only. The current state of the ImportJob, indicating if it can be used. */
382
- state?: string;
617
+ state?:
618
+ | 'IMPORT_JOB_STATE_UNSPECIFIED'
619
+ | 'PENDING_GENERATION'
620
+ | 'ACTIVE'
621
+ | 'EXPIRED';
383
622
  }
384
623
  interface KeyAccessJustificationsEnrollmentConfig {
385
624
  /** Whether the project has KAJ logging enabled. */
@@ -389,7 +628,19 @@ declare namespace gapi.client {
389
628
  }
390
629
  interface KeyAccessJustificationsPolicy {
391
630
  /** The list of allowed reasons for access to a CryptoKey. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the CryptoKey associated with this policy will fail. */
392
- allowedAccessReasons?: string[];
631
+ allowedAccessReasons?:
632
+ | 'REASON_UNSPECIFIED'
633
+ | 'CUSTOMER_INITIATED_SUPPORT'
634
+ | 'GOOGLE_INITIATED_SERVICE'
635
+ | 'THIRD_PARTY_DATA_REQUEST'
636
+ | 'GOOGLE_INITIATED_REVIEW'
637
+ | 'CUSTOMER_INITIATED_ACCESS'
638
+ | 'GOOGLE_INITIATED_SYSTEM_OPERATION'
639
+ | 'REASON_NOT_EXPECTED'
640
+ | 'MODIFIED_CUSTOMER_INITIATED_ACCESS'
641
+ | 'MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION'
642
+ | 'GOOGLE_RESPONSE_TO_PRODUCTION_ALERT'
643
+ | 'CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING'[];
393
644
  }
394
645
  interface KeyAccessJustificationsPolicyConfig {
395
646
  /** Optional. The default key access justification policy used when a CryptoKey is created in this folder. This is only used when a Key Access Justifications policy is not provided in the CreateCryptoKeyRequest. This overrides any default policies in its ancestry. */
@@ -411,7 +662,10 @@ declare namespace gapi.client {
411
662
  /** Output only. The attestation data provided by the HSM when the key operation was performed. */
412
663
  content?: string;
413
664
  /** Output only. The format of the attestation data. */
414
- format?: string;
665
+ format?:
666
+ | 'ATTESTATION_FORMAT_UNSPECIFIED'
667
+ | 'CAVIUM_V1_COMPRESSED'
668
+ | 'CAVIUM_V2_COMPRESSED';
415
669
  }
416
670
  interface KeyRing {
417
671
  /** Output only. The time at which this KeyRing was created. */
@@ -529,7 +783,13 @@ declare namespace gapi.client {
529
783
  /** The resource name of the CryptoKeyVersion used for signing. Check this field to verify that the intended resource was used for signing. */
530
784
  name?: string;
531
785
  /** The ProtectionLevel of the CryptoKeyVersion used for signing. */
532
- protectionLevel?: string;
786
+ protectionLevel?:
787
+ | 'PROTECTION_LEVEL_UNSPECIFIED'
788
+ | 'SOFTWARE'
789
+ | 'HSM'
790
+ | 'EXTERNAL'
791
+ | 'EXTERNAL_VPC'
792
+ | 'HSM_SINGLE_TENANT';
533
793
  /** Integrity verification field. A flag indicating whether MacSignRequest.data_crc32c was received by KeyManagementService and used for the integrity verification of the data. A false value of this field indicates either that MacSignRequest.data_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set MacSignRequest.data_crc32c but this field is still false, discard the response and perform a limited number of retries. */
534
794
  verifiedDataCrc32c?: boolean;
535
795
  }
@@ -547,7 +807,13 @@ declare namespace gapi.client {
547
807
  /** The resource name of the CryptoKeyVersion used for verification. Check this field to verify that the intended resource was used for verification. */
548
808
  name?: string;
549
809
  /** The ProtectionLevel of the CryptoKeyVersion used for verification. */
550
- protectionLevel?: string;
810
+ protectionLevel?:
811
+ | 'PROTECTION_LEVEL_UNSPECIFIED'
812
+ | 'SOFTWARE'
813
+ | 'HSM'
814
+ | 'EXTERNAL'
815
+ | 'EXTERNAL_VPC'
816
+ | 'HSM_SINGLE_TENANT';
551
817
  /** This field indicates whether or not the verification operation for MacVerifyRequest.mac over MacVerifyRequest.data was successful. */
552
818
  success?: boolean;
553
819
  /** Integrity verification field. A flag indicating whether MacVerifyRequest.data_crc32c was received by KeyManagementService and used for the integrity verification of the data. A false value of this field indicates either that MacVerifyRequest.data_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set MacVerifyRequest.data_crc32c but this field is still false, discard the response and perform a limited number of retries. */
@@ -581,7 +847,54 @@ declare namespace gapi.client {
581
847
  }
582
848
  interface PublicKey {
583
849
  /** The Algorithm associated with this key. */
584
- algorithm?: string;
850
+ algorithm?:
851
+ | 'CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED'
852
+ | 'GOOGLE_SYMMETRIC_ENCRYPTION'
853
+ | 'AES_128_GCM'
854
+ | 'AES_256_GCM'
855
+ | 'AES_128_CBC'
856
+ | 'AES_256_CBC'
857
+ | 'AES_128_CTR'
858
+ | 'AES_256_CTR'
859
+ | 'RSA_SIGN_PSS_2048_SHA256'
860
+ | 'RSA_SIGN_PSS_3072_SHA256'
861
+ | 'RSA_SIGN_PSS_4096_SHA256'
862
+ | 'RSA_SIGN_PSS_4096_SHA512'
863
+ | 'RSA_SIGN_PKCS1_2048_SHA256'
864
+ | 'RSA_SIGN_PKCS1_3072_SHA256'
865
+ | 'RSA_SIGN_PKCS1_4096_SHA256'
866
+ | 'RSA_SIGN_PKCS1_4096_SHA512'
867
+ | 'RSA_SIGN_RAW_PKCS1_2048'
868
+ | 'RSA_SIGN_RAW_PKCS1_3072'
869
+ | 'RSA_SIGN_RAW_PKCS1_4096'
870
+ | 'RSA_DECRYPT_OAEP_2048_SHA256'
871
+ | 'RSA_DECRYPT_OAEP_3072_SHA256'
872
+ | 'RSA_DECRYPT_OAEP_4096_SHA256'
873
+ | 'RSA_DECRYPT_OAEP_4096_SHA512'
874
+ | 'RSA_DECRYPT_OAEP_2048_SHA1'
875
+ | 'RSA_DECRYPT_OAEP_3072_SHA1'
876
+ | 'RSA_DECRYPT_OAEP_4096_SHA1'
877
+ | 'EC_SIGN_P256_SHA256'
878
+ | 'EC_SIGN_P384_SHA384'
879
+ | 'EC_SIGN_SECP256K1_SHA256'
880
+ | 'EC_SIGN_ED25519'
881
+ | 'HMAC_SHA256'
882
+ | 'HMAC_SHA1'
883
+ | 'HMAC_SHA384'
884
+ | 'HMAC_SHA512'
885
+ | 'HMAC_SHA224'
886
+ | 'EXTERNAL_SYMMETRIC_ENCRYPTION'
887
+ | 'ML_KEM_768'
888
+ | 'ML_KEM_1024'
889
+ | 'KEM_XWING'
890
+ | 'PQ_SIGN_ML_DSA_44'
891
+ | 'PQ_SIGN_ML_DSA_65'
892
+ | 'PQ_SIGN_ML_DSA_87'
893
+ | 'PQ_SIGN_SLH_DSA_SHA2_128S'
894
+ | 'PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256'
895
+ | 'PQ_SIGN_ML_DSA_44_EXTERNAL_MU'
896
+ | 'PQ_SIGN_ML_DSA_65_EXTERNAL_MU'
897
+ | 'PQ_SIGN_ML_DSA_87_EXTERNAL_MU';
585
898
  /** The name of the CryptoKeyVersion public key. Provided here for verification. NOTE: This field is in Beta. */
586
899
  name?: string;
587
900
  /** The public key, encoded in PEM format. For more information, see the [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and [Textual Encoding of Subject Public Key Info] (https://tools.ietf.org/html/rfc7468#section-13). */
@@ -589,11 +902,22 @@ declare namespace gapi.client {
589
902
  /** Integrity verification field. A CRC32C checksum of the returned PublicKey.pem. An integrity check of PublicKey.pem can be performed by computing the CRC32C checksum of PublicKey.pem and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed `2^32-1`, and can be safely downconverted to uint32 in languages that support this type. NOTE: This field is in Beta. */
590
903
  pemCrc32c?: string;
591
904
  /** The ProtectionLevel of the CryptoKeyVersion public key. */
592
- protectionLevel?: string;
905
+ protectionLevel?:
906
+ | 'PROTECTION_LEVEL_UNSPECIFIED'
907
+ | 'SOFTWARE'
908
+ | 'HSM'
909
+ | 'EXTERNAL'
910
+ | 'EXTERNAL_VPC'
911
+ | 'HSM_SINGLE_TENANT';
593
912
  /** This field contains the public key (with integrity verification), formatted according to the public_key_format field. */
594
913
  publicKey?: ChecksummedData;
595
914
  /** The PublicKey format specified by the customer through the public_key_format field. */
596
- publicKeyFormat?: string;
915
+ publicKeyFormat?:
916
+ | 'PUBLIC_KEY_FORMAT_UNSPECIFIED'
917
+ | 'PEM'
918
+ | 'DER'
919
+ | 'NIST_PQC'
920
+ | 'XWING_RAW_BYTES';
597
921
  }
598
922
  interface QuorumAuth {
599
923
  /** Output only. The required numbers of approvers. The M value used for M of N quorum auth. Must be greater than or equal to 2 and less than or equal to total_approver_count - 1. */
@@ -637,7 +961,13 @@ declare namespace gapi.client {
637
961
  /** Integrity verification field. A CRC32C checksum of the returned RawDecryptResponse.plaintext. An integrity check of plaintext can be performed by computing the CRC32C checksum of plaintext and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: receiving this response message indicates that KeyManagementService is able to successfully decrypt the ciphertext. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type. */
638
962
  plaintextCrc32c?: string;
639
963
  /** The ProtectionLevel of the CryptoKeyVersion used in decryption. */
640
- protectionLevel?: string;
964
+ protectionLevel?:
965
+ | 'PROTECTION_LEVEL_UNSPECIFIED'
966
+ | 'SOFTWARE'
967
+ | 'HSM'
968
+ | 'EXTERNAL'
969
+ | 'EXTERNAL_VPC'
970
+ | 'HSM_SINGLE_TENANT';
641
971
  /** Integrity verification field. A flag indicating whether RawDecryptRequest.additional_authenticated_data_crc32c was received by KeyManagementService and used for the integrity verification of additional_authenticated_data. A false value of this field indicates either that // RawDecryptRequest.additional_authenticated_data_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set RawDecryptRequest.additional_authenticated_data_crc32c but this field is still false, discard the response and perform a limited number of retries. */
642
972
  verifiedAdditionalAuthenticatedDataCrc32c?: boolean;
643
973
  /** Integrity verification field. A flag indicating whether RawDecryptRequest.ciphertext_crc32c was received by KeyManagementService and used for the integrity verification of the ciphertext. A false value of this field indicates either that RawDecryptRequest.ciphertext_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set RawDecryptRequest.ciphertext_crc32c but this field is still false, discard the response and perform a limited number of retries. */
@@ -671,7 +1001,13 @@ declare namespace gapi.client {
671
1001
  /** The resource name of the CryptoKeyVersion used in encryption. Check this field to verify that the intended resource was used for encryption. */
672
1002
  name?: string;
673
1003
  /** The ProtectionLevel of the CryptoKeyVersion used in encryption. */
674
- protectionLevel?: string;
1004
+ protectionLevel?:
1005
+ | 'PROTECTION_LEVEL_UNSPECIFIED'
1006
+ | 'SOFTWARE'
1007
+ | 'HSM'
1008
+ | 'EXTERNAL'
1009
+ | 'EXTERNAL_VPC'
1010
+ | 'HSM_SINGLE_TENANT';
675
1011
  /** The length of the authentication tag that is appended to the end of the ciphertext. */
676
1012
  tagLength?: number;
677
1013
  /** Integrity verification field. A flag indicating whether RawEncryptRequest.additional_authenticated_data_crc32c was received by KeyManagementService and used for the integrity verification of additional_authenticated_data. A false value of this field indicates either that // RawEncryptRequest.additional_authenticated_data_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set RawEncryptRequest.additional_authenticated_data_crc32c but this field is still false, discard the response and perform a limited number of retries. */
@@ -763,7 +1099,16 @@ declare namespace gapi.client {
763
1099
  /** Required. The quorum auth configuration for the SingleTenantHsmInstance. */
764
1100
  quorumAuth?: QuorumAuth;
765
1101
  /** Output only. The state of the SingleTenantHsmInstance. */
766
- state?: string;
1102
+ state?:
1103
+ | 'STATE_UNSPECIFIED'
1104
+ | 'CREATING'
1105
+ | 'PENDING_TWO_FACTOR_AUTH_REGISTRATION'
1106
+ | 'ACTIVE'
1107
+ | 'DISABLING'
1108
+ | 'DISABLED'
1109
+ | 'DELETING'
1110
+ | 'DELETED'
1111
+ | 'FAILED';
767
1112
  /** Output only. The system-defined duration that an instance can remain unrefreshed until it is automatically disabled. This will have a value of 120 days. */
768
1113
  unrefreshedDurationUntilDisable?: string;
769
1114
  }
@@ -799,7 +1144,15 @@ declare namespace gapi.client {
799
1144
  /** Output only. Parameters for an approval of a SingleTenantHsmInstanceProposal that has both required challenges and a quorum. */
800
1145
  requiredActionQuorumParameters?: RequiredActionQuorumParameters;
801
1146
  /** Output only. The state of the SingleTenantHsmInstanceProposal. */
802
- state?: string;
1147
+ state?:
1148
+ | 'STATE_UNSPECIFIED'
1149
+ | 'CREATING'
1150
+ | 'PENDING'
1151
+ | 'APPROVED'
1152
+ | 'RUNNING'
1153
+ | 'SUCCEEDED'
1154
+ | 'FAILED'
1155
+ | 'DELETED';
803
1156
  /** Input only. The TTL for the SingleTenantHsmInstanceProposal. Proposals will expire after this duration. */
804
1157
  ttl?: string;
805
1158
  }
@@ -832,11 +1185,11 @@ declare namespace gapi.client {
832
1185
  /** Returns the AutokeyConfig for a folder or project. */
833
1186
  getAutokeyConfig(request?: {
834
1187
  /** V1 error format. */
835
- '$.xgafv'?: string;
1188
+ '$.xgafv'?: '1' | '2';
836
1189
  /** OAuth access token. */
837
1190
  access_token?: string;
838
1191
  /** Data format for response. */
839
- alt?: string;
1192
+ alt?: 'json' | 'media' | 'proto';
840
1193
  /** JSONP */
841
1194
  callback?: string;
842
1195
  /** Selector specifying which fields to include in a partial response. */
@@ -859,11 +1212,11 @@ declare namespace gapi.client {
859
1212
  /** Gets the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project. */
860
1213
  getKajPolicyConfig(request?: {
861
1214
  /** V1 error format. */
862
- '$.xgafv'?: string;
1215
+ '$.xgafv'?: '1' | '2';
863
1216
  /** OAuth access token. */
864
1217
  access_token?: string;
865
1218
  /** Data format for response. */
866
- alt?: string;
1219
+ alt?: 'json' | 'media' | 'proto';
867
1220
  /** JSONP */
868
1221
  callback?: string;
869
1222
  /** Selector specifying which fields to include in a partial response. */
@@ -886,11 +1239,11 @@ declare namespace gapi.client {
886
1239
  /** Updates the AutokeyConfig for a folder or a project. The caller must have both `cloudkms.autokeyConfigs.update` permission on the parent folder and `cloudkms.cryptoKeys.setIamPolicy` permission on the provided key project. A KeyHandle creation in the folder's descendant projects will use this configuration to determine where to create the resulting CryptoKey. */
887
1240
  updateAutokeyConfig(request: {
888
1241
  /** V1 error format. */
889
- '$.xgafv'?: string;
1242
+ '$.xgafv'?: '1' | '2';
890
1243
  /** OAuth access token. */
891
1244
  access_token?: string;
892
1245
  /** Data format for response. */
893
- alt?: string;
1246
+ alt?: 'json' | 'media' | 'proto';
894
1247
  /** JSONP */
895
1248
  callback?: string;
896
1249
  /** Selector specifying which fields to include in a partial response. */
@@ -917,11 +1270,11 @@ declare namespace gapi.client {
917
1270
  updateAutokeyConfig(
918
1271
  request: {
919
1272
  /** V1 error format. */
920
- '$.xgafv'?: string;
1273
+ '$.xgafv'?: '1' | '2';
921
1274
  /** OAuth access token. */
922
1275
  access_token?: string;
923
1276
  /** Data format for response. */
924
- alt?: string;
1277
+ alt?: 'json' | 'media' | 'proto';
925
1278
  /** JSONP */
926
1279
  callback?: string;
927
1280
  /** Selector specifying which fields to include in a partial response. */
@@ -948,11 +1301,11 @@ declare namespace gapi.client {
948
1301
  /** Updates the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project. */
949
1302
  updateKajPolicyConfig(request: {
950
1303
  /** V1 error format. */
951
- '$.xgafv'?: string;
1304
+ '$.xgafv'?: '1' | '2';
952
1305
  /** OAuth access token. */
953
1306
  access_token?: string;
954
1307
  /** Data format for response. */
955
- alt?: string;
1308
+ alt?: 'json' | 'media' | 'proto';
956
1309
  /** JSONP */
957
1310
  callback?: string;
958
1311
  /** Selector specifying which fields to include in a partial response. */
@@ -979,11 +1332,11 @@ declare namespace gapi.client {
979
1332
  updateKajPolicyConfig(
980
1333
  request: {
981
1334
  /** V1 error format. */
982
- '$.xgafv'?: string;
1335
+ '$.xgafv'?: '1' | '2';
983
1336
  /** OAuth access token. */
984
1337
  access_token?: string;
985
1338
  /** Data format for response. */
986
- alt?: string;
1339
+ alt?: 'json' | 'media' | 'proto';
987
1340
  /** JSONP */
988
1341
  callback?: string;
989
1342
  /** Selector specifying which fields to include in a partial response. */
@@ -1012,11 +1365,11 @@ declare namespace gapi.client {
1012
1365
  /** Gets the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project. */
1013
1366
  getKajPolicyConfig(request?: {
1014
1367
  /** V1 error format. */
1015
- '$.xgafv'?: string;
1368
+ '$.xgafv'?: '1' | '2';
1016
1369
  /** OAuth access token. */
1017
1370
  access_token?: string;
1018
1371
  /** Data format for response. */
1019
- alt?: string;
1372
+ alt?: 'json' | 'media' | 'proto';
1020
1373
  /** JSONP */
1021
1374
  callback?: string;
1022
1375
  /** Selector specifying which fields to include in a partial response. */
@@ -1039,11 +1392,11 @@ declare namespace gapi.client {
1039
1392
  /** Updates the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project. */
1040
1393
  updateKajPolicyConfig(request: {
1041
1394
  /** V1 error format. */
1042
- '$.xgafv'?: string;
1395
+ '$.xgafv'?: '1' | '2';
1043
1396
  /** OAuth access token. */
1044
1397
  access_token?: string;
1045
1398
  /** Data format for response. */
1046
- alt?: string;
1399
+ alt?: 'json' | 'media' | 'proto';
1047
1400
  /** JSONP */
1048
1401
  callback?: string;
1049
1402
  /** Selector specifying which fields to include in a partial response. */
@@ -1070,11 +1423,11 @@ declare namespace gapi.client {
1070
1423
  updateKajPolicyConfig(
1071
1424
  request: {
1072
1425
  /** V1 error format. */
1073
- '$.xgafv'?: string;
1426
+ '$.xgafv'?: '1' | '2';
1074
1427
  /** OAuth access token. */
1075
1428
  access_token?: string;
1076
1429
  /** Data format for response. */
1077
- alt?: string;
1430
+ alt?: 'json' | 'media' | 'proto';
1078
1431
  /** JSONP */
1079
1432
  callback?: string;
1080
1433
  /** Selector specifying which fields to include in a partial response. */
@@ -1103,11 +1456,11 @@ declare namespace gapi.client {
1103
1456
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
1104
1457
  getIamPolicy(request?: {
1105
1458
  /** V1 error format. */
1106
- '$.xgafv'?: string;
1459
+ '$.xgafv'?: '1' | '2';
1107
1460
  /** OAuth access token. */
1108
1461
  access_token?: string;
1109
1462
  /** Data format for response. */
1110
- alt?: string;
1463
+ alt?: 'json' | 'media' | 'proto';
1111
1464
  /** JSONP */
1112
1465
  callback?: string;
1113
1466
  /** Selector specifying which fields to include in a partial response. */
@@ -1133,11 +1486,11 @@ declare namespace gapi.client {
1133
1486
  setIamPolicy(
1134
1487
  request: {
1135
1488
  /** V1 error format. */
1136
- '$.xgafv'?: string;
1489
+ '$.xgafv'?: '1' | '2';
1137
1490
  /** OAuth access token. */
1138
1491
  access_token?: string;
1139
1492
  /** Data format for response. */
1140
- alt?: string;
1493
+ alt?: 'json' | 'media' | 'proto';
1141
1494
  /** JSONP */
1142
1495
  callback?: string;
1143
1496
  /** Selector specifying which fields to include in a partial response. */
@@ -1163,11 +1516,11 @@ declare namespace gapi.client {
1163
1516
  testIamPermissions(
1164
1517
  request: {
1165
1518
  /** V1 error format. */
1166
- '$.xgafv'?: string;
1519
+ '$.xgafv'?: '1' | '2';
1167
1520
  /** OAuth access token. */
1168
1521
  access_token?: string;
1169
1522
  /** Data format for response. */
1170
- alt?: string;
1523
+ alt?: 'json' | 'media' | 'proto';
1171
1524
  /** JSONP */
1172
1525
  callback?: string;
1173
1526
  /** Selector specifying which fields to include in a partial response. */
@@ -1194,11 +1547,11 @@ declare namespace gapi.client {
1194
1547
  /** Creates a new EkmConnection in a given Project and Location. */
1195
1548
  create(request: {
1196
1549
  /** V1 error format. */
1197
- '$.xgafv'?: string;
1550
+ '$.xgafv'?: '1' | '2';
1198
1551
  /** OAuth access token. */
1199
1552
  access_token?: string;
1200
1553
  /** Data format for response. */
1201
- alt?: string;
1554
+ alt?: 'json' | 'media' | 'proto';
1202
1555
  /** JSONP */
1203
1556
  callback?: string;
1204
1557
  /** Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. */
@@ -1225,11 +1578,11 @@ declare namespace gapi.client {
1225
1578
  create(
1226
1579
  request: {
1227
1580
  /** V1 error format. */
1228
- '$.xgafv'?: string;
1581
+ '$.xgafv'?: '1' | '2';
1229
1582
  /** OAuth access token. */
1230
1583
  access_token?: string;
1231
1584
  /** Data format for response. */
1232
- alt?: string;
1585
+ alt?: 'json' | 'media' | 'proto';
1233
1586
  /** JSONP */
1234
1587
  callback?: string;
1235
1588
  /** Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. */
@@ -1256,11 +1609,11 @@ declare namespace gapi.client {
1256
1609
  /** Returns metadata for a given EkmConnection. */
1257
1610
  get(request?: {
1258
1611
  /** V1 error format. */
1259
- '$.xgafv'?: string;
1612
+ '$.xgafv'?: '1' | '2';
1260
1613
  /** OAuth access token. */
1261
1614
  access_token?: string;
1262
1615
  /** Data format for response. */
1263
- alt?: string;
1616
+ alt?: 'json' | 'media' | 'proto';
1264
1617
  /** JSONP */
1265
1618
  callback?: string;
1266
1619
  /** Selector specifying which fields to include in a partial response. */
@@ -1283,11 +1636,11 @@ declare namespace gapi.client {
1283
1636
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
1284
1637
  getIamPolicy(request?: {
1285
1638
  /** V1 error format. */
1286
- '$.xgafv'?: string;
1639
+ '$.xgafv'?: '1' | '2';
1287
1640
  /** OAuth access token. */
1288
1641
  access_token?: string;
1289
1642
  /** Data format for response. */
1290
- alt?: string;
1643
+ alt?: 'json' | 'media' | 'proto';
1291
1644
  /** JSONP */
1292
1645
  callback?: string;
1293
1646
  /** Selector specifying which fields to include in a partial response. */
@@ -1312,11 +1665,11 @@ declare namespace gapi.client {
1312
1665
  /** Lists EkmConnections. */
1313
1666
  list(request?: {
1314
1667
  /** V1 error format. */
1315
- '$.xgafv'?: string;
1668
+ '$.xgafv'?: '1' | '2';
1316
1669
  /** OAuth access token. */
1317
1670
  access_token?: string;
1318
1671
  /** Data format for response. */
1319
- alt?: string;
1672
+ alt?: 'json' | 'media' | 'proto';
1320
1673
  /** JSONP */
1321
1674
  callback?: string;
1322
1675
  /** Selector specifying which fields to include in a partial response. */
@@ -1347,11 +1700,11 @@ declare namespace gapi.client {
1347
1700
  /** Updates an EkmConnection's metadata. */
1348
1701
  patch(request: {
1349
1702
  /** V1 error format. */
1350
- '$.xgafv'?: string;
1703
+ '$.xgafv'?: '1' | '2';
1351
1704
  /** OAuth access token. */
1352
1705
  access_token?: string;
1353
1706
  /** Data format for response. */
1354
- alt?: string;
1707
+ alt?: 'json' | 'media' | 'proto';
1355
1708
  /** JSONP */
1356
1709
  callback?: string;
1357
1710
  /** Selector specifying which fields to include in a partial response. */
@@ -1378,11 +1731,11 @@ declare namespace gapi.client {
1378
1731
  patch(
1379
1732
  request: {
1380
1733
  /** V1 error format. */
1381
- '$.xgafv'?: string;
1734
+ '$.xgafv'?: '1' | '2';
1382
1735
  /** OAuth access token. */
1383
1736
  access_token?: string;
1384
1737
  /** Data format for response. */
1385
- alt?: string;
1738
+ alt?: 'json' | 'media' | 'proto';
1386
1739
  /** JSONP */
1387
1740
  callback?: string;
1388
1741
  /** Selector specifying which fields to include in a partial response. */
@@ -1410,11 +1763,11 @@ declare namespace gapi.client {
1410
1763
  setIamPolicy(
1411
1764
  request: {
1412
1765
  /** V1 error format. */
1413
- '$.xgafv'?: string;
1766
+ '$.xgafv'?: '1' | '2';
1414
1767
  /** OAuth access token. */
1415
1768
  access_token?: string;
1416
1769
  /** Data format for response. */
1417
- alt?: string;
1770
+ alt?: 'json' | 'media' | 'proto';
1418
1771
  /** JSONP */
1419
1772
  callback?: string;
1420
1773
  /** Selector specifying which fields to include in a partial response. */
@@ -1440,11 +1793,11 @@ declare namespace gapi.client {
1440
1793
  testIamPermissions(
1441
1794
  request: {
1442
1795
  /** V1 error format. */
1443
- '$.xgafv'?: string;
1796
+ '$.xgafv'?: '1' | '2';
1444
1797
  /** OAuth access token. */
1445
1798
  access_token?: string;
1446
1799
  /** Data format for response. */
1447
- alt?: string;
1800
+ alt?: 'json' | 'media' | 'proto';
1448
1801
  /** JSONP */
1449
1802
  callback?: string;
1450
1803
  /** Selector specifying which fields to include in a partial response. */
@@ -1469,11 +1822,11 @@ declare namespace gapi.client {
1469
1822
  /** Verifies that Cloud KMS can successfully connect to the external key manager specified by an EkmConnection. If there is an error connecting to the EKM, this method returns a FAILED_PRECONDITION status containing structured information as described at https://cloud.google.com/kms/docs/reference/ekm_errors. */
1470
1823
  verifyConnectivity(request?: {
1471
1824
  /** V1 error format. */
1472
- '$.xgafv'?: string;
1825
+ '$.xgafv'?: '1' | '2';
1473
1826
  /** OAuth access token. */
1474
1827
  access_token?: string;
1475
1828
  /** Data format for response. */
1476
- alt?: string;
1829
+ alt?: 'json' | 'media' | 'proto';
1477
1830
  /** JSONP */
1478
1831
  callback?: string;
1479
1832
  /** Selector specifying which fields to include in a partial response. */
@@ -1498,11 +1851,11 @@ declare namespace gapi.client {
1498
1851
  /** Creates a new KeyHandle, triggering the provisioning of a new CryptoKey for CMEK use with the given resource type in the configured key project and the same location. GetOperation should be used to resolve the resulting long-running operation and get the resulting KeyHandle and CryptoKey. */
1499
1852
  create(request: {
1500
1853
  /** V1 error format. */
1501
- '$.xgafv'?: string;
1854
+ '$.xgafv'?: '1' | '2';
1502
1855
  /** OAuth access token. */
1503
1856
  access_token?: string;
1504
1857
  /** Data format for response. */
1505
- alt?: string;
1858
+ alt?: 'json' | 'media' | 'proto';
1506
1859
  /** JSONP */
1507
1860
  callback?: string;
1508
1861
  /** Selector specifying which fields to include in a partial response. */
@@ -1529,11 +1882,11 @@ declare namespace gapi.client {
1529
1882
  create(
1530
1883
  request: {
1531
1884
  /** V1 error format. */
1532
- '$.xgafv'?: string;
1885
+ '$.xgafv'?: '1' | '2';
1533
1886
  /** OAuth access token. */
1534
1887
  access_token?: string;
1535
1888
  /** Data format for response. */
1536
- alt?: string;
1889
+ alt?: 'json' | 'media' | 'proto';
1537
1890
  /** JSONP */
1538
1891
  callback?: string;
1539
1892
  /** Selector specifying which fields to include in a partial response. */
@@ -1560,11 +1913,11 @@ declare namespace gapi.client {
1560
1913
  /** Returns the KeyHandle. */
1561
1914
  get(request?: {
1562
1915
  /** V1 error format. */
1563
- '$.xgafv'?: string;
1916
+ '$.xgafv'?: '1' | '2';
1564
1917
  /** OAuth access token. */
1565
1918
  access_token?: string;
1566
1919
  /** Data format for response. */
1567
- alt?: string;
1920
+ alt?: 'json' | 'media' | 'proto';
1568
1921
  /** JSONP */
1569
1922
  callback?: string;
1570
1923
  /** Selector specifying which fields to include in a partial response. */
@@ -1587,11 +1940,11 @@ declare namespace gapi.client {
1587
1940
  /** Lists KeyHandles. */
1588
1941
  list(request?: {
1589
1942
  /** V1 error format. */
1590
- '$.xgafv'?: string;
1943
+ '$.xgafv'?: '1' | '2';
1591
1944
  /** OAuth access token. */
1592
1945
  access_token?: string;
1593
1946
  /** Data format for response. */
1594
- alt?: string;
1947
+ alt?: 'json' | 'media' | 'proto';
1595
1948
  /** JSONP */
1596
1949
  callback?: string;
1597
1950
  /** Selector specifying which fields to include in a partial response. */
@@ -1622,11 +1975,11 @@ declare namespace gapi.client {
1622
1975
  /** Decrypts data that was encrypted with a public key retrieved from GetPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose ASYMMETRIC_DECRYPT. */
1623
1976
  asymmetricDecrypt(request: {
1624
1977
  /** V1 error format. */
1625
- '$.xgafv'?: string;
1978
+ '$.xgafv'?: '1' | '2';
1626
1979
  /** OAuth access token. */
1627
1980
  access_token?: string;
1628
1981
  /** Data format for response. */
1629
- alt?: string;
1982
+ alt?: 'json' | 'media' | 'proto';
1630
1983
  /** JSONP */
1631
1984
  callback?: string;
1632
1985
  /** Selector specifying which fields to include in a partial response. */
@@ -1651,11 +2004,11 @@ declare namespace gapi.client {
1651
2004
  asymmetricDecrypt(
1652
2005
  request: {
1653
2006
  /** V1 error format. */
1654
- '$.xgafv'?: string;
2007
+ '$.xgafv'?: '1' | '2';
1655
2008
  /** OAuth access token. */
1656
2009
  access_token?: string;
1657
2010
  /** Data format for response. */
1658
- alt?: string;
2011
+ alt?: 'json' | 'media' | 'proto';
1659
2012
  /** JSONP */
1660
2013
  callback?: string;
1661
2014
  /** Selector specifying which fields to include in a partial response. */
@@ -1680,11 +2033,11 @@ declare namespace gapi.client {
1680
2033
  /** Signs data using a CryptoKeyVersion with CryptoKey.purpose ASYMMETRIC_SIGN, producing a signature that can be verified with the public key retrieved from GetPublicKey. */
1681
2034
  asymmetricSign(request: {
1682
2035
  /** V1 error format. */
1683
- '$.xgafv'?: string;
2036
+ '$.xgafv'?: '1' | '2';
1684
2037
  /** OAuth access token. */
1685
2038
  access_token?: string;
1686
2039
  /** Data format for response. */
1687
- alt?: string;
2040
+ alt?: 'json' | 'media' | 'proto';
1688
2041
  /** JSONP */
1689
2042
  callback?: string;
1690
2043
  /** Selector specifying which fields to include in a partial response. */
@@ -1709,11 +2062,11 @@ declare namespace gapi.client {
1709
2062
  asymmetricSign(
1710
2063
  request: {
1711
2064
  /** V1 error format. */
1712
- '$.xgafv'?: string;
2065
+ '$.xgafv'?: '1' | '2';
1713
2066
  /** OAuth access token. */
1714
2067
  access_token?: string;
1715
2068
  /** Data format for response. */
1716
- alt?: string;
2069
+ alt?: 'json' | 'media' | 'proto';
1717
2070
  /** JSONP */
1718
2071
  callback?: string;
1719
2072
  /** Selector specifying which fields to include in a partial response. */
@@ -1738,11 +2091,11 @@ declare namespace gapi.client {
1738
2091
  /** Create a new CryptoKeyVersion in a CryptoKey. The server will assign the next sequential id. If unset, state will be set to ENABLED. */
1739
2092
  create(request: {
1740
2093
  /** V1 error format. */
1741
- '$.xgafv'?: string;
2094
+ '$.xgafv'?: '1' | '2';
1742
2095
  /** OAuth access token. */
1743
2096
  access_token?: string;
1744
2097
  /** Data format for response. */
1745
- alt?: string;
2098
+ alt?: 'json' | 'media' | 'proto';
1746
2099
  /** JSONP */
1747
2100
  callback?: string;
1748
2101
  /** Selector specifying which fields to include in a partial response. */
@@ -1767,11 +2120,11 @@ declare namespace gapi.client {
1767
2120
  create(
1768
2121
  request: {
1769
2122
  /** V1 error format. */
1770
- '$.xgafv'?: string;
2123
+ '$.xgafv'?: '1' | '2';
1771
2124
  /** OAuth access token. */
1772
2125
  access_token?: string;
1773
2126
  /** Data format for response. */
1774
- alt?: string;
2127
+ alt?: 'json' | 'media' | 'proto';
1775
2128
  /** JSONP */
1776
2129
  callback?: string;
1777
2130
  /** Selector specifying which fields to include in a partial response. */
@@ -1796,11 +2149,11 @@ declare namespace gapi.client {
1796
2149
  /** Decapsulates data that was encapsulated with a public key retrieved from GetPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose KEY_ENCAPSULATION. */
1797
2150
  decapsulate(request: {
1798
2151
  /** V1 error format. */
1799
- '$.xgafv'?: string;
2152
+ '$.xgafv'?: '1' | '2';
1800
2153
  /** OAuth access token. */
1801
2154
  access_token?: string;
1802
2155
  /** Data format for response. */
1803
- alt?: string;
2156
+ alt?: 'json' | 'media' | 'proto';
1804
2157
  /** JSONP */
1805
2158
  callback?: string;
1806
2159
  /** Selector specifying which fields to include in a partial response. */
@@ -1825,11 +2178,11 @@ declare namespace gapi.client {
1825
2178
  decapsulate(
1826
2179
  request: {
1827
2180
  /** V1 error format. */
1828
- '$.xgafv'?: string;
2181
+ '$.xgafv'?: '1' | '2';
1829
2182
  /** OAuth access token. */
1830
2183
  access_token?: string;
1831
2184
  /** Data format for response. */
1832
- alt?: string;
2185
+ alt?: 'json' | 'media' | 'proto';
1833
2186
  /** JSONP */
1834
2187
  callback?: string;
1835
2188
  /** Selector specifying which fields to include in a partial response. */
@@ -1854,11 +2207,11 @@ declare namespace gapi.client {
1854
2207
  /** Permanently deletes the given CryptoKeyVersion. Only possible if the version has not been previously imported and if its state is one of DESTROYED, IMPORT_FAILED, or GENERATION_FAILED. Successfully imported CryptoKeyVersions cannot be deleted at this time. The specified version will be immediately and permanently deleted upon calling this method. This action cannot be undone. */
1855
2208
  delete(request?: {
1856
2209
  /** V1 error format. */
1857
- '$.xgafv'?: string;
2210
+ '$.xgafv'?: '1' | '2';
1858
2211
  /** OAuth access token. */
1859
2212
  access_token?: string;
1860
2213
  /** Data format for response. */
1861
- alt?: string;
2214
+ alt?: 'json' | 'media' | 'proto';
1862
2215
  /** JSONP */
1863
2216
  callback?: string;
1864
2217
  /** Selector specifying which fields to include in a partial response. */
@@ -1881,11 +2234,11 @@ declare namespace gapi.client {
1881
2234
  /** Schedule a CryptoKeyVersion for destruction. Upon calling this method, CryptoKeyVersion.state will be set to DESTROY_SCHEDULED, and destroy_time will be set to the time destroy_scheduled_duration in the future. At that time, the state will automatically change to DESTROYED, and the key material will be irrevocably destroyed. Before the destroy_time is reached, RestoreCryptoKeyVersion may be called to reverse the process. */
1882
2235
  destroy(request: {
1883
2236
  /** V1 error format. */
1884
- '$.xgafv'?: string;
2237
+ '$.xgafv'?: '1' | '2';
1885
2238
  /** OAuth access token. */
1886
2239
  access_token?: string;
1887
2240
  /** Data format for response. */
1888
- alt?: string;
2241
+ alt?: 'json' | 'media' | 'proto';
1889
2242
  /** JSONP */
1890
2243
  callback?: string;
1891
2244
  /** Selector specifying which fields to include in a partial response. */
@@ -1910,11 +2263,11 @@ declare namespace gapi.client {
1910
2263
  destroy(
1911
2264
  request: {
1912
2265
  /** V1 error format. */
1913
- '$.xgafv'?: string;
2266
+ '$.xgafv'?: '1' | '2';
1914
2267
  /** OAuth access token. */
1915
2268
  access_token?: string;
1916
2269
  /** Data format for response. */
1917
- alt?: string;
2270
+ alt?: 'json' | 'media' | 'proto';
1918
2271
  /** JSONP */
1919
2272
  callback?: string;
1920
2273
  /** Selector specifying which fields to include in a partial response. */
@@ -1939,11 +2292,11 @@ declare namespace gapi.client {
1939
2292
  /** Returns metadata for a given CryptoKeyVersion. */
1940
2293
  get(request?: {
1941
2294
  /** V1 error format. */
1942
- '$.xgafv'?: string;
2295
+ '$.xgafv'?: '1' | '2';
1943
2296
  /** OAuth access token. */
1944
2297
  access_token?: string;
1945
2298
  /** Data format for response. */
1946
- alt?: string;
2299
+ alt?: 'json' | 'media' | 'proto';
1947
2300
  /** JSONP */
1948
2301
  callback?: string;
1949
2302
  /** Selector specifying which fields to include in a partial response. */
@@ -1966,11 +2319,11 @@ declare namespace gapi.client {
1966
2319
  /** Returns the public key for the given CryptoKeyVersion. The CryptoKey.purpose must be ASYMMETRIC_SIGN or ASYMMETRIC_DECRYPT. */
1967
2320
  getPublicKey(request?: {
1968
2321
  /** V1 error format. */
1969
- '$.xgafv'?: string;
2322
+ '$.xgafv'?: '1' | '2';
1970
2323
  /** OAuth access token. */
1971
2324
  access_token?: string;
1972
2325
  /** Data format for response. */
1973
- alt?: string;
2326
+ alt?: 'json' | 'media' | 'proto';
1974
2327
  /** JSONP */
1975
2328
  callback?: string;
1976
2329
  /** Selector specifying which fields to include in a partial response. */
@@ -1984,7 +2337,12 @@ declare namespace gapi.client {
1984
2337
  /** Returns response with indentations and line breaks. */
1985
2338
  prettyPrint?: boolean;
1986
2339
  /** Optional. The PublicKey format specified by the user. This field is required for PQC algorithms. If specified, the public key will be exported through the public_key field in the requested format. Otherwise, the pem field will be populated for non-PQC algorithms, and an error will be returned for PQC algorithms. */
1987
- publicKeyFormat?: string;
2340
+ publicKeyFormat?:
2341
+ | 'PUBLIC_KEY_FORMAT_UNSPECIFIED'
2342
+ | 'PEM'
2343
+ | 'DER'
2344
+ | 'NIST_PQC'
2345
+ | 'XWING_RAW_BYTES';
1988
2346
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1989
2347
  quotaUser?: string;
1990
2348
  /** Upload protocol for media (e.g. "raw", "multipart"). */
@@ -1995,11 +2353,11 @@ declare namespace gapi.client {
1995
2353
  /** Import wrapped key material into a CryptoKeyVersion. All requests must specify a CryptoKey. If a CryptoKeyVersion is additionally specified in the request, key material will be reimported into that version. Otherwise, a new version will be created, and will be assigned the next sequential id within the CryptoKey. */
1996
2354
  import(request: {
1997
2355
  /** V1 error format. */
1998
- '$.xgafv'?: string;
2356
+ '$.xgafv'?: '1' | '2';
1999
2357
  /** OAuth access token. */
2000
2358
  access_token?: string;
2001
2359
  /** Data format for response. */
2002
- alt?: string;
2360
+ alt?: 'json' | 'media' | 'proto';
2003
2361
  /** JSONP */
2004
2362
  callback?: string;
2005
2363
  /** Selector specifying which fields to include in a partial response. */
@@ -2024,11 +2382,11 @@ declare namespace gapi.client {
2024
2382
  import(
2025
2383
  request: {
2026
2384
  /** V1 error format. */
2027
- '$.xgafv'?: string;
2385
+ '$.xgafv'?: '1' | '2';
2028
2386
  /** OAuth access token. */
2029
2387
  access_token?: string;
2030
2388
  /** Data format for response. */
2031
- alt?: string;
2389
+ alt?: 'json' | 'media' | 'proto';
2032
2390
  /** JSONP */
2033
2391
  callback?: string;
2034
2392
  /** Selector specifying which fields to include in a partial response. */
@@ -2053,11 +2411,11 @@ declare namespace gapi.client {
2053
2411
  /** Lists CryptoKeyVersions. */
2054
2412
  list(request?: {
2055
2413
  /** V1 error format. */
2056
- '$.xgafv'?: string;
2414
+ '$.xgafv'?: '1' | '2';
2057
2415
  /** OAuth access token. */
2058
2416
  access_token?: string;
2059
2417
  /** Data format for response. */
2060
- alt?: string;
2418
+ alt?: 'json' | 'media' | 'proto';
2061
2419
  /** JSONP */
2062
2420
  callback?: string;
2063
2421
  /** Selector specifying which fields to include in a partial response. */
@@ -2085,16 +2443,16 @@ declare namespace gapi.client {
2085
2443
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2086
2444
  uploadType?: string;
2087
2445
  /** The fields to include in the response. */
2088
- view?: string;
2446
+ view?: 'CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED' | 'FULL';
2089
2447
  }): Request<ListCryptoKeyVersionsResponse>;
2090
2448
  /** Signs data using a CryptoKeyVersion with CryptoKey.purpose MAC, producing a tag that can be verified by another source with the same key. */
2091
2449
  macSign(request: {
2092
2450
  /** V1 error format. */
2093
- '$.xgafv'?: string;
2451
+ '$.xgafv'?: '1' | '2';
2094
2452
  /** OAuth access token. */
2095
2453
  access_token?: string;
2096
2454
  /** Data format for response. */
2097
- alt?: string;
2455
+ alt?: 'json' | 'media' | 'proto';
2098
2456
  /** JSONP */
2099
2457
  callback?: string;
2100
2458
  /** Selector specifying which fields to include in a partial response. */
@@ -2119,11 +2477,11 @@ declare namespace gapi.client {
2119
2477
  macSign(
2120
2478
  request: {
2121
2479
  /** V1 error format. */
2122
- '$.xgafv'?: string;
2480
+ '$.xgafv'?: '1' | '2';
2123
2481
  /** OAuth access token. */
2124
2482
  access_token?: string;
2125
2483
  /** Data format for response. */
2126
- alt?: string;
2484
+ alt?: 'json' | 'media' | 'proto';
2127
2485
  /** JSONP */
2128
2486
  callback?: string;
2129
2487
  /** Selector specifying which fields to include in a partial response. */
@@ -2148,11 +2506,11 @@ declare namespace gapi.client {
2148
2506
  /** Verifies MAC tag using a CryptoKeyVersion with CryptoKey.purpose MAC, and returns a response that indicates whether or not the verification was successful. */
2149
2507
  macVerify(request: {
2150
2508
  /** V1 error format. */
2151
- '$.xgafv'?: string;
2509
+ '$.xgafv'?: '1' | '2';
2152
2510
  /** OAuth access token. */
2153
2511
  access_token?: string;
2154
2512
  /** Data format for response. */
2155
- alt?: string;
2513
+ alt?: 'json' | 'media' | 'proto';
2156
2514
  /** JSONP */
2157
2515
  callback?: string;
2158
2516
  /** Selector specifying which fields to include in a partial response. */
@@ -2177,11 +2535,11 @@ declare namespace gapi.client {
2177
2535
  macVerify(
2178
2536
  request: {
2179
2537
  /** V1 error format. */
2180
- '$.xgafv'?: string;
2538
+ '$.xgafv'?: '1' | '2';
2181
2539
  /** OAuth access token. */
2182
2540
  access_token?: string;
2183
2541
  /** Data format for response. */
2184
- alt?: string;
2542
+ alt?: 'json' | 'media' | 'proto';
2185
2543
  /** JSONP */
2186
2544
  callback?: string;
2187
2545
  /** Selector specifying which fields to include in a partial response. */
@@ -2206,11 +2564,11 @@ declare namespace gapi.client {
2206
2564
  /** Update a CryptoKeyVersion's metadata. state may be changed between ENABLED and DISABLED using this method. See DestroyCryptoKeyVersion and RestoreCryptoKeyVersion to move between other states. */
2207
2565
  patch(request: {
2208
2566
  /** V1 error format. */
2209
- '$.xgafv'?: string;
2567
+ '$.xgafv'?: '1' | '2';
2210
2568
  /** OAuth access token. */
2211
2569
  access_token?: string;
2212
2570
  /** Data format for response. */
2213
- alt?: string;
2571
+ alt?: 'json' | 'media' | 'proto';
2214
2572
  /** JSONP */
2215
2573
  callback?: string;
2216
2574
  /** Selector specifying which fields to include in a partial response. */
@@ -2237,11 +2595,11 @@ declare namespace gapi.client {
2237
2595
  patch(
2238
2596
  request: {
2239
2597
  /** V1 error format. */
2240
- '$.xgafv'?: string;
2598
+ '$.xgafv'?: '1' | '2';
2241
2599
  /** OAuth access token. */
2242
2600
  access_token?: string;
2243
2601
  /** Data format for response. */
2244
- alt?: string;
2602
+ alt?: 'json' | 'media' | 'proto';
2245
2603
  /** JSONP */
2246
2604
  callback?: string;
2247
2605
  /** Selector specifying which fields to include in a partial response. */
@@ -2268,11 +2626,11 @@ declare namespace gapi.client {
2268
2626
  /** Decrypts data that was originally encrypted using a raw cryptographic mechanism. The CryptoKey.purpose must be RAW_ENCRYPT_DECRYPT. */
2269
2627
  rawDecrypt(request: {
2270
2628
  /** V1 error format. */
2271
- '$.xgafv'?: string;
2629
+ '$.xgafv'?: '1' | '2';
2272
2630
  /** OAuth access token. */
2273
2631
  access_token?: string;
2274
2632
  /** Data format for response. */
2275
- alt?: string;
2633
+ alt?: 'json' | 'media' | 'proto';
2276
2634
  /** JSONP */
2277
2635
  callback?: string;
2278
2636
  /** Selector specifying which fields to include in a partial response. */
@@ -2297,11 +2655,11 @@ declare namespace gapi.client {
2297
2655
  rawDecrypt(
2298
2656
  request: {
2299
2657
  /** V1 error format. */
2300
- '$.xgafv'?: string;
2658
+ '$.xgafv'?: '1' | '2';
2301
2659
  /** OAuth access token. */
2302
2660
  access_token?: string;
2303
2661
  /** Data format for response. */
2304
- alt?: string;
2662
+ alt?: 'json' | 'media' | 'proto';
2305
2663
  /** JSONP */
2306
2664
  callback?: string;
2307
2665
  /** Selector specifying which fields to include in a partial response. */
@@ -2326,11 +2684,11 @@ declare namespace gapi.client {
2326
2684
  /** Encrypts data using portable cryptographic primitives. Most users should choose Encrypt and Decrypt rather than their raw counterparts. The CryptoKey.purpose must be RAW_ENCRYPT_DECRYPT. */
2327
2685
  rawEncrypt(request: {
2328
2686
  /** V1 error format. */
2329
- '$.xgafv'?: string;
2687
+ '$.xgafv'?: '1' | '2';
2330
2688
  /** OAuth access token. */
2331
2689
  access_token?: string;
2332
2690
  /** Data format for response. */
2333
- alt?: string;
2691
+ alt?: 'json' | 'media' | 'proto';
2334
2692
  /** JSONP */
2335
2693
  callback?: string;
2336
2694
  /** Selector specifying which fields to include in a partial response. */
@@ -2355,11 +2713,11 @@ declare namespace gapi.client {
2355
2713
  rawEncrypt(
2356
2714
  request: {
2357
2715
  /** V1 error format. */
2358
- '$.xgafv'?: string;
2716
+ '$.xgafv'?: '1' | '2';
2359
2717
  /** OAuth access token. */
2360
2718
  access_token?: string;
2361
2719
  /** Data format for response. */
2362
- alt?: string;
2720
+ alt?: 'json' | 'media' | 'proto';
2363
2721
  /** JSONP */
2364
2722
  callback?: string;
2365
2723
  /** Selector specifying which fields to include in a partial response. */
@@ -2384,11 +2742,11 @@ declare namespace gapi.client {
2384
2742
  /** Restore a CryptoKeyVersion in the DESTROY_SCHEDULED state. Upon restoration of the CryptoKeyVersion, state will be set to DISABLED, and destroy_time will be cleared. */
2385
2743
  restore(request: {
2386
2744
  /** V1 error format. */
2387
- '$.xgafv'?: string;
2745
+ '$.xgafv'?: '1' | '2';
2388
2746
  /** OAuth access token. */
2389
2747
  access_token?: string;
2390
2748
  /** Data format for response. */
2391
- alt?: string;
2749
+ alt?: 'json' | 'media' | 'proto';
2392
2750
  /** JSONP */
2393
2751
  callback?: string;
2394
2752
  /** Selector specifying which fields to include in a partial response. */
@@ -2413,11 +2771,11 @@ declare namespace gapi.client {
2413
2771
  restore(
2414
2772
  request: {
2415
2773
  /** V1 error format. */
2416
- '$.xgafv'?: string;
2774
+ '$.xgafv'?: '1' | '2';
2417
2775
  /** OAuth access token. */
2418
2776
  access_token?: string;
2419
2777
  /** Data format for response. */
2420
- alt?: string;
2778
+ alt?: 'json' | 'media' | 'proto';
2421
2779
  /** JSONP */
2422
2780
  callback?: string;
2423
2781
  /** Selector specifying which fields to include in a partial response. */
@@ -2444,11 +2802,11 @@ declare namespace gapi.client {
2444
2802
  /** Create a new CryptoKey within a KeyRing. CryptoKey.purpose and CryptoKey.version_template.algorithm are required. */
2445
2803
  create(request: {
2446
2804
  /** V1 error format. */
2447
- '$.xgafv'?: string;
2805
+ '$.xgafv'?: '1' | '2';
2448
2806
  /** OAuth access token. */
2449
2807
  access_token?: string;
2450
2808
  /** Data format for response. */
2451
- alt?: string;
2809
+ alt?: 'json' | 'media' | 'proto';
2452
2810
  /** JSONP */
2453
2811
  callback?: string;
2454
2812
  /** Required. It must be unique within a KeyRing and match the regular expression `[a-zA-Z0-9_-]{1,63}` */
@@ -2477,11 +2835,11 @@ declare namespace gapi.client {
2477
2835
  create(
2478
2836
  request: {
2479
2837
  /** V1 error format. */
2480
- '$.xgafv'?: string;
2838
+ '$.xgafv'?: '1' | '2';
2481
2839
  /** OAuth access token. */
2482
2840
  access_token?: string;
2483
2841
  /** Data format for response. */
2484
- alt?: string;
2842
+ alt?: 'json' | 'media' | 'proto';
2485
2843
  /** JSONP */
2486
2844
  callback?: string;
2487
2845
  /** Required. It must be unique within a KeyRing and match the regular expression `[a-zA-Z0-9_-]{1,63}` */
@@ -2510,11 +2868,11 @@ declare namespace gapi.client {
2510
2868
  /** Decrypts data that was protected by Encrypt. The CryptoKey.purpose must be ENCRYPT_DECRYPT. */
2511
2869
  decrypt(request: {
2512
2870
  /** V1 error format. */
2513
- '$.xgafv'?: string;
2871
+ '$.xgafv'?: '1' | '2';
2514
2872
  /** OAuth access token. */
2515
2873
  access_token?: string;
2516
2874
  /** Data format for response. */
2517
- alt?: string;
2875
+ alt?: 'json' | 'media' | 'proto';
2518
2876
  /** JSONP */
2519
2877
  callback?: string;
2520
2878
  /** Selector specifying which fields to include in a partial response. */
@@ -2539,11 +2897,11 @@ declare namespace gapi.client {
2539
2897
  decrypt(
2540
2898
  request: {
2541
2899
  /** V1 error format. */
2542
- '$.xgafv'?: string;
2900
+ '$.xgafv'?: '1' | '2';
2543
2901
  /** OAuth access token. */
2544
2902
  access_token?: string;
2545
2903
  /** Data format for response. */
2546
- alt?: string;
2904
+ alt?: 'json' | 'media' | 'proto';
2547
2905
  /** JSONP */
2548
2906
  callback?: string;
2549
2907
  /** Selector specifying which fields to include in a partial response. */
@@ -2568,11 +2926,11 @@ declare namespace gapi.client {
2568
2926
  /** Permanently deletes the given CryptoKey. All child CryptoKeyVersions must have been previously deleted using KeyManagementService.DeleteCryptoKeyVersion. The specified crypto key will be immediately and permanently deleted upon calling this method. This action cannot be undone. */
2569
2927
  delete(request?: {
2570
2928
  /** V1 error format. */
2571
- '$.xgafv'?: string;
2929
+ '$.xgafv'?: '1' | '2';
2572
2930
  /** OAuth access token. */
2573
2931
  access_token?: string;
2574
2932
  /** Data format for response. */
2575
- alt?: string;
2933
+ alt?: 'json' | 'media' | 'proto';
2576
2934
  /** JSONP */
2577
2935
  callback?: string;
2578
2936
  /** Selector specifying which fields to include in a partial response. */
@@ -2595,11 +2953,11 @@ declare namespace gapi.client {
2595
2953
  /** Encrypts data, so that it can only be recovered by a call to Decrypt. The CryptoKey.purpose must be ENCRYPT_DECRYPT. */
2596
2954
  encrypt(request: {
2597
2955
  /** V1 error format. */
2598
- '$.xgafv'?: string;
2956
+ '$.xgafv'?: '1' | '2';
2599
2957
  /** OAuth access token. */
2600
2958
  access_token?: string;
2601
2959
  /** Data format for response. */
2602
- alt?: string;
2960
+ alt?: 'json' | 'media' | 'proto';
2603
2961
  /** JSONP */
2604
2962
  callback?: string;
2605
2963
  /** Selector specifying which fields to include in a partial response. */
@@ -2624,11 +2982,11 @@ declare namespace gapi.client {
2624
2982
  encrypt(
2625
2983
  request: {
2626
2984
  /** V1 error format. */
2627
- '$.xgafv'?: string;
2985
+ '$.xgafv'?: '1' | '2';
2628
2986
  /** OAuth access token. */
2629
2987
  access_token?: string;
2630
2988
  /** Data format for response. */
2631
- alt?: string;
2989
+ alt?: 'json' | 'media' | 'proto';
2632
2990
  /** JSONP */
2633
2991
  callback?: string;
2634
2992
  /** Selector specifying which fields to include in a partial response. */
@@ -2653,11 +3011,11 @@ declare namespace gapi.client {
2653
3011
  /** Returns metadata for a given CryptoKey, as well as its primary CryptoKeyVersion. */
2654
3012
  get(request?: {
2655
3013
  /** V1 error format. */
2656
- '$.xgafv'?: string;
3014
+ '$.xgafv'?: '1' | '2';
2657
3015
  /** OAuth access token. */
2658
3016
  access_token?: string;
2659
3017
  /** Data format for response. */
2660
- alt?: string;
3018
+ alt?: 'json' | 'media' | 'proto';
2661
3019
  /** JSONP */
2662
3020
  callback?: string;
2663
3021
  /** Selector specifying which fields to include in a partial response. */
@@ -2680,11 +3038,11 @@ declare namespace gapi.client {
2680
3038
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
2681
3039
  getIamPolicy(request?: {
2682
3040
  /** V1 error format. */
2683
- '$.xgafv'?: string;
3041
+ '$.xgafv'?: '1' | '2';
2684
3042
  /** OAuth access token. */
2685
3043
  access_token?: string;
2686
3044
  /** Data format for response. */
2687
- alt?: string;
3045
+ alt?: 'json' | 'media' | 'proto';
2688
3046
  /** JSONP */
2689
3047
  callback?: string;
2690
3048
  /** Selector specifying which fields to include in a partial response. */
@@ -2709,11 +3067,11 @@ declare namespace gapi.client {
2709
3067
  /** Lists CryptoKeys. */
2710
3068
  list(request?: {
2711
3069
  /** V1 error format. */
2712
- '$.xgafv'?: string;
3070
+ '$.xgafv'?: '1' | '2';
2713
3071
  /** OAuth access token. */
2714
3072
  access_token?: string;
2715
3073
  /** Data format for response. */
2716
- alt?: string;
3074
+ alt?: 'json' | 'media' | 'proto';
2717
3075
  /** JSONP */
2718
3076
  callback?: string;
2719
3077
  /** Selector specifying which fields to include in a partial response. */
@@ -2741,16 +3099,16 @@ declare namespace gapi.client {
2741
3099
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2742
3100
  uploadType?: string;
2743
3101
  /** The fields of the primary version to include in the response. */
2744
- versionView?: string;
3102
+ versionView?: 'CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED' | 'FULL';
2745
3103
  }): Request<ListCryptoKeysResponse>;
2746
3104
  /** Update a CryptoKey. */
2747
3105
  patch(request: {
2748
3106
  /** V1 error format. */
2749
- '$.xgafv'?: string;
3107
+ '$.xgafv'?: '1' | '2';
2750
3108
  /** OAuth access token. */
2751
3109
  access_token?: string;
2752
3110
  /** Data format for response. */
2753
- alt?: string;
3111
+ alt?: 'json' | 'media' | 'proto';
2754
3112
  /** JSONP */
2755
3113
  callback?: string;
2756
3114
  /** Selector specifying which fields to include in a partial response. */
@@ -2777,11 +3135,11 @@ declare namespace gapi.client {
2777
3135
  patch(
2778
3136
  request: {
2779
3137
  /** V1 error format. */
2780
- '$.xgafv'?: string;
3138
+ '$.xgafv'?: '1' | '2';
2781
3139
  /** OAuth access token. */
2782
3140
  access_token?: string;
2783
3141
  /** Data format for response. */
2784
- alt?: string;
3142
+ alt?: 'json' | 'media' | 'proto';
2785
3143
  /** JSONP */
2786
3144
  callback?: string;
2787
3145
  /** Selector specifying which fields to include in a partial response. */
@@ -2809,11 +3167,11 @@ declare namespace gapi.client {
2809
3167
  setIamPolicy(
2810
3168
  request: {
2811
3169
  /** V1 error format. */
2812
- '$.xgafv'?: string;
3170
+ '$.xgafv'?: '1' | '2';
2813
3171
  /** OAuth access token. */
2814
3172
  access_token?: string;
2815
3173
  /** Data format for response. */
2816
- alt?: string;
3174
+ alt?: 'json' | 'media' | 'proto';
2817
3175
  /** JSONP */
2818
3176
  callback?: string;
2819
3177
  /** Selector specifying which fields to include in a partial response. */
@@ -2839,11 +3197,11 @@ declare namespace gapi.client {
2839
3197
  testIamPermissions(
2840
3198
  request: {
2841
3199
  /** V1 error format. */
2842
- '$.xgafv'?: string;
3200
+ '$.xgafv'?: '1' | '2';
2843
3201
  /** OAuth access token. */
2844
3202
  access_token?: string;
2845
3203
  /** Data format for response. */
2846
- alt?: string;
3204
+ alt?: 'json' | 'media' | 'proto';
2847
3205
  /** JSONP */
2848
3206
  callback?: string;
2849
3207
  /** Selector specifying which fields to include in a partial response. */
@@ -2868,11 +3226,11 @@ declare namespace gapi.client {
2868
3226
  /** Update the version of a CryptoKey that will be used in Encrypt. Returns an error if called on a key whose purpose is not ENCRYPT_DECRYPT. */
2869
3227
  updatePrimaryVersion(request: {
2870
3228
  /** V1 error format. */
2871
- '$.xgafv'?: string;
3229
+ '$.xgafv'?: '1' | '2';
2872
3230
  /** OAuth access token. */
2873
3231
  access_token?: string;
2874
3232
  /** Data format for response. */
2875
- alt?: string;
3233
+ alt?: 'json' | 'media' | 'proto';
2876
3234
  /** JSONP */
2877
3235
  callback?: string;
2878
3236
  /** Selector specifying which fields to include in a partial response. */
@@ -2897,11 +3255,11 @@ declare namespace gapi.client {
2897
3255
  updatePrimaryVersion(
2898
3256
  request: {
2899
3257
  /** V1 error format. */
2900
- '$.xgafv'?: string;
3258
+ '$.xgafv'?: '1' | '2';
2901
3259
  /** OAuth access token. */
2902
3260
  access_token?: string;
2903
3261
  /** Data format for response. */
2904
- alt?: string;
3262
+ alt?: 'json' | 'media' | 'proto';
2905
3263
  /** JSONP */
2906
3264
  callback?: string;
2907
3265
  /** Selector specifying which fields to include in a partial response. */
@@ -2929,11 +3287,11 @@ declare namespace gapi.client {
2929
3287
  /** Create a new ImportJob within a KeyRing. ImportJob.import_method is required. */
2930
3288
  create(request: {
2931
3289
  /** V1 error format. */
2932
- '$.xgafv'?: string;
3290
+ '$.xgafv'?: '1' | '2';
2933
3291
  /** OAuth access token. */
2934
3292
  access_token?: string;
2935
3293
  /** Data format for response. */
2936
- alt?: string;
3294
+ alt?: 'json' | 'media' | 'proto';
2937
3295
  /** JSONP */
2938
3296
  callback?: string;
2939
3297
  /** Selector specifying which fields to include in a partial response. */
@@ -2960,11 +3318,11 @@ declare namespace gapi.client {
2960
3318
  create(
2961
3319
  request: {
2962
3320
  /** V1 error format. */
2963
- '$.xgafv'?: string;
3321
+ '$.xgafv'?: '1' | '2';
2964
3322
  /** OAuth access token. */
2965
3323
  access_token?: string;
2966
3324
  /** Data format for response. */
2967
- alt?: string;
3325
+ alt?: 'json' | 'media' | 'proto';
2968
3326
  /** JSONP */
2969
3327
  callback?: string;
2970
3328
  /** Selector specifying which fields to include in a partial response. */
@@ -2991,11 +3349,11 @@ declare namespace gapi.client {
2991
3349
  /** Returns metadata for a given ImportJob. */
2992
3350
  get(request?: {
2993
3351
  /** V1 error format. */
2994
- '$.xgafv'?: string;
3352
+ '$.xgafv'?: '1' | '2';
2995
3353
  /** OAuth access token. */
2996
3354
  access_token?: string;
2997
3355
  /** Data format for response. */
2998
- alt?: string;
3356
+ alt?: 'json' | 'media' | 'proto';
2999
3357
  /** JSONP */
3000
3358
  callback?: string;
3001
3359
  /** Selector specifying which fields to include in a partial response. */
@@ -3018,11 +3376,11 @@ declare namespace gapi.client {
3018
3376
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
3019
3377
  getIamPolicy(request?: {
3020
3378
  /** V1 error format. */
3021
- '$.xgafv'?: string;
3379
+ '$.xgafv'?: '1' | '2';
3022
3380
  /** OAuth access token. */
3023
3381
  access_token?: string;
3024
3382
  /** Data format for response. */
3025
- alt?: string;
3383
+ alt?: 'json' | 'media' | 'proto';
3026
3384
  /** JSONP */
3027
3385
  callback?: string;
3028
3386
  /** Selector specifying which fields to include in a partial response. */
@@ -3047,11 +3405,11 @@ declare namespace gapi.client {
3047
3405
  /** Lists ImportJobs. */
3048
3406
  list(request?: {
3049
3407
  /** V1 error format. */
3050
- '$.xgafv'?: string;
3408
+ '$.xgafv'?: '1' | '2';
3051
3409
  /** OAuth access token. */
3052
3410
  access_token?: string;
3053
3411
  /** Data format for response. */
3054
- alt?: string;
3412
+ alt?: 'json' | 'media' | 'proto';
3055
3413
  /** JSONP */
3056
3414
  callback?: string;
3057
3415
  /** Selector specifying which fields to include in a partial response. */
@@ -3083,11 +3441,11 @@ declare namespace gapi.client {
3083
3441
  setIamPolicy(
3084
3442
  request: {
3085
3443
  /** V1 error format. */
3086
- '$.xgafv'?: string;
3444
+ '$.xgafv'?: '1' | '2';
3087
3445
  /** OAuth access token. */
3088
3446
  access_token?: string;
3089
3447
  /** Data format for response. */
3090
- alt?: string;
3448
+ alt?: 'json' | 'media' | 'proto';
3091
3449
  /** JSONP */
3092
3450
  callback?: string;
3093
3451
  /** Selector specifying which fields to include in a partial response. */
@@ -3113,11 +3471,11 @@ declare namespace gapi.client {
3113
3471
  testIamPermissions(
3114
3472
  request: {
3115
3473
  /** V1 error format. */
3116
- '$.xgafv'?: string;
3474
+ '$.xgafv'?: '1' | '2';
3117
3475
  /** OAuth access token. */
3118
3476
  access_token?: string;
3119
3477
  /** Data format for response. */
3120
- alt?: string;
3478
+ alt?: 'json' | 'media' | 'proto';
3121
3479
  /** JSONP */
3122
3480
  callback?: string;
3123
3481
  /** Selector specifying which fields to include in a partial response. */
@@ -3144,11 +3502,11 @@ declare namespace gapi.client {
3144
3502
  /** Create a new KeyRing in a given Project and Location. */
3145
3503
  create(request: {
3146
3504
  /** V1 error format. */
3147
- '$.xgafv'?: string;
3505
+ '$.xgafv'?: '1' | '2';
3148
3506
  /** OAuth access token. */
3149
3507
  access_token?: string;
3150
3508
  /** Data format for response. */
3151
- alt?: string;
3509
+ alt?: 'json' | 'media' | 'proto';
3152
3510
  /** JSONP */
3153
3511
  callback?: string;
3154
3512
  /** Selector specifying which fields to include in a partial response. */
@@ -3175,11 +3533,11 @@ declare namespace gapi.client {
3175
3533
  create(
3176
3534
  request: {
3177
3535
  /** V1 error format. */
3178
- '$.xgafv'?: string;
3536
+ '$.xgafv'?: '1' | '2';
3179
3537
  /** OAuth access token. */
3180
3538
  access_token?: string;
3181
3539
  /** Data format for response. */
3182
- alt?: string;
3540
+ alt?: 'json' | 'media' | 'proto';
3183
3541
  /** JSONP */
3184
3542
  callback?: string;
3185
3543
  /** Selector specifying which fields to include in a partial response. */
@@ -3206,11 +3564,11 @@ declare namespace gapi.client {
3206
3564
  /** Returns metadata for a given KeyRing. */
3207
3565
  get(request?: {
3208
3566
  /** V1 error format. */
3209
- '$.xgafv'?: string;
3567
+ '$.xgafv'?: '1' | '2';
3210
3568
  /** OAuth access token. */
3211
3569
  access_token?: string;
3212
3570
  /** Data format for response. */
3213
- alt?: string;
3571
+ alt?: 'json' | 'media' | 'proto';
3214
3572
  /** JSONP */
3215
3573
  callback?: string;
3216
3574
  /** Selector specifying which fields to include in a partial response. */
@@ -3233,11 +3591,11 @@ declare namespace gapi.client {
3233
3591
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
3234
3592
  getIamPolicy(request?: {
3235
3593
  /** V1 error format. */
3236
- '$.xgafv'?: string;
3594
+ '$.xgafv'?: '1' | '2';
3237
3595
  /** OAuth access token. */
3238
3596
  access_token?: string;
3239
3597
  /** Data format for response. */
3240
- alt?: string;
3598
+ alt?: 'json' | 'media' | 'proto';
3241
3599
  /** JSONP */
3242
3600
  callback?: string;
3243
3601
  /** Selector specifying which fields to include in a partial response. */
@@ -3262,11 +3620,11 @@ declare namespace gapi.client {
3262
3620
  /** Lists KeyRings. */
3263
3621
  list(request?: {
3264
3622
  /** V1 error format. */
3265
- '$.xgafv'?: string;
3623
+ '$.xgafv'?: '1' | '2';
3266
3624
  /** OAuth access token. */
3267
3625
  access_token?: string;
3268
3626
  /** Data format for response. */
3269
- alt?: string;
3627
+ alt?: 'json' | 'media' | 'proto';
3270
3628
  /** JSONP */
3271
3629
  callback?: string;
3272
3630
  /** Selector specifying which fields to include in a partial response. */
@@ -3298,11 +3656,11 @@ declare namespace gapi.client {
3298
3656
  setIamPolicy(
3299
3657
  request: {
3300
3658
  /** V1 error format. */
3301
- '$.xgafv'?: string;
3659
+ '$.xgafv'?: '1' | '2';
3302
3660
  /** OAuth access token. */
3303
3661
  access_token?: string;
3304
3662
  /** Data format for response. */
3305
- alt?: string;
3663
+ alt?: 'json' | 'media' | 'proto';
3306
3664
  /** JSONP */
3307
3665
  callback?: string;
3308
3666
  /** Selector specifying which fields to include in a partial response. */
@@ -3328,11 +3686,11 @@ declare namespace gapi.client {
3328
3686
  testIamPermissions(
3329
3687
  request: {
3330
3688
  /** V1 error format. */
3331
- '$.xgafv'?: string;
3689
+ '$.xgafv'?: '1' | '2';
3332
3690
  /** OAuth access token. */
3333
3691
  access_token?: string;
3334
3692
  /** Data format for response. */
3335
- alt?: string;
3693
+ alt?: 'json' | 'media' | 'proto';
3336
3694
  /** JSONP */
3337
3695
  callback?: string;
3338
3696
  /** Selector specifying which fields to include in a partial response. */
@@ -3361,11 +3719,11 @@ declare namespace gapi.client {
3361
3719
  /** 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. */
3362
3720
  get(request?: {
3363
3721
  /** V1 error format. */
3364
- '$.xgafv'?: string;
3722
+ '$.xgafv'?: '1' | '2';
3365
3723
  /** OAuth access token. */
3366
3724
  access_token?: string;
3367
3725
  /** Data format for response. */
3368
- alt?: string;
3726
+ alt?: 'json' | 'media' | 'proto';
3369
3727
  /** JSONP */
3370
3728
  callback?: string;
3371
3729
  /** Selector specifying which fields to include in a partial response. */
@@ -3390,11 +3748,11 @@ declare namespace gapi.client {
3390
3748
  /** Retrieves a specific RetiredResource resource, which represents the record of a deleted CryptoKey. */
3391
3749
  get(request?: {
3392
3750
  /** V1 error format. */
3393
- '$.xgafv'?: string;
3751
+ '$.xgafv'?: '1' | '2';
3394
3752
  /** OAuth access token. */
3395
3753
  access_token?: string;
3396
3754
  /** Data format for response. */
3397
- alt?: string;
3755
+ alt?: 'json' | 'media' | 'proto';
3398
3756
  /** JSONP */
3399
3757
  callback?: string;
3400
3758
  /** Selector specifying which fields to include in a partial response. */
@@ -3417,11 +3775,11 @@ declare namespace gapi.client {
3417
3775
  /** Lists the RetiredResources which are the records of deleted CryptoKeys. RetiredResources prevent the reuse of these resource names after deletion. */
3418
3776
  list(request?: {
3419
3777
  /** V1 error format. */
3420
- '$.xgafv'?: string;
3778
+ '$.xgafv'?: '1' | '2';
3421
3779
  /** OAuth access token. */
3422
3780
  access_token?: string;
3423
3781
  /** Data format for response. */
3424
- alt?: string;
3782
+ alt?: 'json' | 'media' | 'proto';
3425
3783
  /** JSONP */
3426
3784
  callback?: string;
3427
3785
  /** Selector specifying which fields to include in a partial response. */
@@ -3450,11 +3808,11 @@ declare namespace gapi.client {
3450
3808
  /** Approves a SingleTenantHsmInstanceProposal for a given SingleTenantHsmInstance. The proposal must be in the PENDING state. */
3451
3809
  approve(request: {
3452
3810
  /** V1 error format. */
3453
- '$.xgafv'?: string;
3811
+ '$.xgafv'?: '1' | '2';
3454
3812
  /** OAuth access token. */
3455
3813
  access_token?: string;
3456
3814
  /** Data format for response. */
3457
- alt?: string;
3815
+ alt?: 'json' | 'media' | 'proto';
3458
3816
  /** JSONP */
3459
3817
  callback?: string;
3460
3818
  /** Selector specifying which fields to include in a partial response. */
@@ -3479,11 +3837,11 @@ declare namespace gapi.client {
3479
3837
  approve(
3480
3838
  request: {
3481
3839
  /** V1 error format. */
3482
- '$.xgafv'?: string;
3840
+ '$.xgafv'?: '1' | '2';
3483
3841
  /** OAuth access token. */
3484
3842
  access_token?: string;
3485
3843
  /** Data format for response. */
3486
- alt?: string;
3844
+ alt?: 'json' | 'media' | 'proto';
3487
3845
  /** JSONP */
3488
3846
  callback?: string;
3489
3847
  /** Selector specifying which fields to include in a partial response. */
@@ -3508,11 +3866,11 @@ declare namespace gapi.client {
3508
3866
  /** Creates a new SingleTenantHsmInstanceProposal for a given SingleTenantHsmInstance. */
3509
3867
  create(request: {
3510
3868
  /** V1 error format. */
3511
- '$.xgafv'?: string;
3869
+ '$.xgafv'?: '1' | '2';
3512
3870
  /** OAuth access token. */
3513
3871
  access_token?: string;
3514
3872
  /** Data format for response. */
3515
- alt?: string;
3873
+ alt?: 'json' | 'media' | 'proto';
3516
3874
  /** JSONP */
3517
3875
  callback?: string;
3518
3876
  /** Selector specifying which fields to include in a partial response. */
@@ -3539,11 +3897,11 @@ declare namespace gapi.client {
3539
3897
  create(
3540
3898
  request: {
3541
3899
  /** V1 error format. */
3542
- '$.xgafv'?: string;
3900
+ '$.xgafv'?: '1' | '2';
3543
3901
  /** OAuth access token. */
3544
3902
  access_token?: string;
3545
3903
  /** Data format for response. */
3546
- alt?: string;
3904
+ alt?: 'json' | 'media' | 'proto';
3547
3905
  /** JSONP */
3548
3906
  callback?: string;
3549
3907
  /** Selector specifying which fields to include in a partial response. */
@@ -3570,11 +3928,11 @@ declare namespace gapi.client {
3570
3928
  /** Deletes a SingleTenantHsmInstanceProposal. */
3571
3929
  delete(request?: {
3572
3930
  /** V1 error format. */
3573
- '$.xgafv'?: string;
3931
+ '$.xgafv'?: '1' | '2';
3574
3932
  /** OAuth access token. */
3575
3933
  access_token?: string;
3576
3934
  /** Data format for response. */
3577
- alt?: string;
3935
+ alt?: 'json' | 'media' | 'proto';
3578
3936
  /** JSONP */
3579
3937
  callback?: string;
3580
3938
  /** Selector specifying which fields to include in a partial response. */
@@ -3597,11 +3955,11 @@ declare namespace gapi.client {
3597
3955
  /** Executes a SingleTenantHsmInstanceProposal for a given SingleTenantHsmInstance. The proposal must be in the APPROVED state. */
3598
3956
  execute(request: {
3599
3957
  /** V1 error format. */
3600
- '$.xgafv'?: string;
3958
+ '$.xgafv'?: '1' | '2';
3601
3959
  /** OAuth access token. */
3602
3960
  access_token?: string;
3603
3961
  /** Data format for response. */
3604
- alt?: string;
3962
+ alt?: 'json' | 'media' | 'proto';
3605
3963
  /** JSONP */
3606
3964
  callback?: string;
3607
3965
  /** Selector specifying which fields to include in a partial response. */
@@ -3626,11 +3984,11 @@ declare namespace gapi.client {
3626
3984
  execute(
3627
3985
  request: {
3628
3986
  /** V1 error format. */
3629
- '$.xgafv'?: string;
3987
+ '$.xgafv'?: '1' | '2';
3630
3988
  /** OAuth access token. */
3631
3989
  access_token?: string;
3632
3990
  /** Data format for response. */
3633
- alt?: string;
3991
+ alt?: 'json' | 'media' | 'proto';
3634
3992
  /** JSONP */
3635
3993
  callback?: string;
3636
3994
  /** Selector specifying which fields to include in a partial response. */
@@ -3655,11 +4013,11 @@ declare namespace gapi.client {
3655
4013
  /** Returns metadata for a given SingleTenantHsmInstanceProposal. */
3656
4014
  get(request?: {
3657
4015
  /** V1 error format. */
3658
- '$.xgafv'?: string;
4016
+ '$.xgafv'?: '1' | '2';
3659
4017
  /** OAuth access token. */
3660
4018
  access_token?: string;
3661
4019
  /** Data format for response. */
3662
- alt?: string;
4020
+ alt?: 'json' | 'media' | 'proto';
3663
4021
  /** JSONP */
3664
4022
  callback?: string;
3665
4023
  /** Selector specifying which fields to include in a partial response. */
@@ -3682,11 +4040,11 @@ declare namespace gapi.client {
3682
4040
  /** Lists SingleTenantHsmInstanceProposals. */
3683
4041
  list(request?: {
3684
4042
  /** V1 error format. */
3685
- '$.xgafv'?: string;
4043
+ '$.xgafv'?: '1' | '2';
3686
4044
  /** OAuth access token. */
3687
4045
  access_token?: string;
3688
4046
  /** Data format for response. */
3689
- alt?: string;
4047
+ alt?: 'json' | 'media' | 'proto';
3690
4048
  /** JSONP */
3691
4049
  callback?: string;
3692
4050
  /** Selector specifying which fields to include in a partial response. */
@@ -3721,11 +4079,11 @@ declare namespace gapi.client {
3721
4079
  /** Creates a new SingleTenantHsmInstance in a given Project and Location. User must create a RegisterTwoFactorAuthKeys proposal with this single-tenant HSM instance to finish setup of the instance. */
3722
4080
  create(request: {
3723
4081
  /** V1 error format. */
3724
- '$.xgafv'?: string;
4082
+ '$.xgafv'?: '1' | '2';
3725
4083
  /** OAuth access token. */
3726
4084
  access_token?: string;
3727
4085
  /** Data format for response. */
3728
- alt?: string;
4086
+ alt?: 'json' | 'media' | 'proto';
3729
4087
  /** JSONP */
3730
4088
  callback?: string;
3731
4089
  /** Selector specifying which fields to include in a partial response. */
@@ -3752,11 +4110,11 @@ declare namespace gapi.client {
3752
4110
  create(
3753
4111
  request: {
3754
4112
  /** V1 error format. */
3755
- '$.xgafv'?: string;
4113
+ '$.xgafv'?: '1' | '2';
3756
4114
  /** OAuth access token. */
3757
4115
  access_token?: string;
3758
4116
  /** Data format for response. */
3759
- alt?: string;
4117
+ alt?: 'json' | 'media' | 'proto';
3760
4118
  /** JSONP */
3761
4119
  callback?: string;
3762
4120
  /** Selector specifying which fields to include in a partial response. */
@@ -3783,11 +4141,11 @@ declare namespace gapi.client {
3783
4141
  /** Returns metadata for a given SingleTenantHsmInstance. */
3784
4142
  get(request?: {
3785
4143
  /** V1 error format. */
3786
- '$.xgafv'?: string;
4144
+ '$.xgafv'?: '1' | '2';
3787
4145
  /** OAuth access token. */
3788
4146
  access_token?: string;
3789
4147
  /** Data format for response. */
3790
- alt?: string;
4148
+ alt?: 'json' | 'media' | 'proto';
3791
4149
  /** JSONP */
3792
4150
  callback?: string;
3793
4151
  /** Selector specifying which fields to include in a partial response. */
@@ -3810,11 +4168,11 @@ declare namespace gapi.client {
3810
4168
  /** Lists SingleTenantHsmInstances. */
3811
4169
  list(request?: {
3812
4170
  /** V1 error format. */
3813
- '$.xgafv'?: string;
4171
+ '$.xgafv'?: '1' | '2';
3814
4172
  /** OAuth access token. */
3815
4173
  access_token?: string;
3816
4174
  /** Data format for response. */
3817
- alt?: string;
4175
+ alt?: 'json' | 'media' | 'proto';
3818
4176
  /** JSONP */
3819
4177
  callback?: string;
3820
4178
  /** Selector specifying which fields to include in a partial response. */
@@ -3850,11 +4208,11 @@ declare namespace gapi.client {
3850
4208
  /** Generate random bytes using the Cloud KMS randomness source in the provided location. */
3851
4209
  generateRandomBytes(request: {
3852
4210
  /** V1 error format. */
3853
- '$.xgafv'?: string;
4211
+ '$.xgafv'?: '1' | '2';
3854
4212
  /** OAuth access token. */
3855
4213
  access_token?: string;
3856
4214
  /** Data format for response. */
3857
- alt?: string;
4215
+ alt?: 'json' | 'media' | 'proto';
3858
4216
  /** JSONP */
3859
4217
  callback?: string;
3860
4218
  /** Selector specifying which fields to include in a partial response. */
@@ -3879,11 +4237,11 @@ declare namespace gapi.client {
3879
4237
  generateRandomBytes(
3880
4238
  request: {
3881
4239
  /** V1 error format. */
3882
- '$.xgafv'?: string;
4240
+ '$.xgafv'?: '1' | '2';
3883
4241
  /** OAuth access token. */
3884
4242
  access_token?: string;
3885
4243
  /** Data format for response. */
3886
- alt?: string;
4244
+ alt?: 'json' | 'media' | 'proto';
3887
4245
  /** JSONP */
3888
4246
  callback?: string;
3889
4247
  /** Selector specifying which fields to include in a partial response. */
@@ -3908,11 +4266,11 @@ declare namespace gapi.client {
3908
4266
  /** Gets information about a location. */
3909
4267
  get(request?: {
3910
4268
  /** V1 error format. */
3911
- '$.xgafv'?: string;
4269
+ '$.xgafv'?: '1' | '2';
3912
4270
  /** OAuth access token. */
3913
4271
  access_token?: string;
3914
4272
  /** Data format for response. */
3915
- alt?: string;
4273
+ alt?: 'json' | 'media' | 'proto';
3916
4274
  /** JSONP */
3917
4275
  callback?: string;
3918
4276
  /** Selector specifying which fields to include in a partial response. */
@@ -3935,11 +4293,11 @@ declare namespace gapi.client {
3935
4293
  /** Returns the EkmConfig singleton resource for a given project and location. */
3936
4294
  getEkmConfig(request?: {
3937
4295
  /** V1 error format. */
3938
- '$.xgafv'?: string;
4296
+ '$.xgafv'?: '1' | '2';
3939
4297
  /** OAuth access token. */
3940
4298
  access_token?: string;
3941
4299
  /** Data format for response. */
3942
- alt?: string;
4300
+ alt?: 'json' | 'media' | 'proto';
3943
4301
  /** JSONP */
3944
4302
  callback?: string;
3945
4303
  /** Selector specifying which fields to include in a partial response. */
@@ -3962,11 +4320,11 @@ declare namespace gapi.client {
3962
4320
  /** Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include public locations as well as private or other locations specifically visible to the project. */
3963
4321
  list(request?: {
3964
4322
  /** V1 error format. */
3965
- '$.xgafv'?: string;
4323
+ '$.xgafv'?: '1' | '2';
3966
4324
  /** OAuth access token. */
3967
4325
  access_token?: string;
3968
4326
  /** Data format for response. */
3969
- alt?: string;
4327
+ alt?: 'json' | 'media' | 'proto';
3970
4328
  /** JSONP */
3971
4329
  callback?: string;
3972
4330
  /** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. */
@@ -3997,11 +4355,11 @@ declare namespace gapi.client {
3997
4355
  /** Updates the EkmConfig singleton resource for a given project and location. */
3998
4356
  updateEkmConfig(request: {
3999
4357
  /** V1 error format. */
4000
- '$.xgafv'?: string;
4358
+ '$.xgafv'?: '1' | '2';
4001
4359
  /** OAuth access token. */
4002
4360
  access_token?: string;
4003
4361
  /** Data format for response. */
4004
- alt?: string;
4362
+ alt?: 'json' | 'media' | 'proto';
4005
4363
  /** JSONP */
4006
4364
  callback?: string;
4007
4365
  /** Selector specifying which fields to include in a partial response. */
@@ -4028,11 +4386,11 @@ declare namespace gapi.client {
4028
4386
  updateEkmConfig(
4029
4387
  request: {
4030
4388
  /** V1 error format. */
4031
- '$.xgafv'?: string;
4389
+ '$.xgafv'?: '1' | '2';
4032
4390
  /** OAuth access token. */
4033
4391
  access_token?: string;
4034
4392
  /** Data format for response. */
4035
- alt?: string;
4393
+ alt?: 'json' | 'media' | 'proto';
4036
4394
  /** JSONP */
4037
4395
  callback?: string;
4038
4396
  /** Selector specifying which fields to include in a partial response. */
@@ -4068,11 +4426,11 @@ declare namespace gapi.client {
4068
4426
  /** Returns the AutokeyConfig for a folder or project. */
4069
4427
  getAutokeyConfig(request?: {
4070
4428
  /** V1 error format. */
4071
- '$.xgafv'?: string;
4429
+ '$.xgafv'?: '1' | '2';
4072
4430
  /** OAuth access token. */
4073
4431
  access_token?: string;
4074
4432
  /** Data format for response. */
4075
- alt?: string;
4433
+ alt?: 'json' | 'media' | 'proto';
4076
4434
  /** JSONP */
4077
4435
  callback?: string;
4078
4436
  /** Selector specifying which fields to include in a partial response. */
@@ -4095,11 +4453,11 @@ declare namespace gapi.client {
4095
4453
  /** Gets the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project. */
4096
4454
  getKajPolicyConfig(request?: {
4097
4455
  /** V1 error format. */
4098
- '$.xgafv'?: string;
4456
+ '$.xgafv'?: '1' | '2';
4099
4457
  /** OAuth access token. */
4100
4458
  access_token?: string;
4101
4459
  /** Data format for response. */
4102
- alt?: string;
4460
+ alt?: 'json' | 'media' | 'proto';
4103
4461
  /** JSONP */
4104
4462
  callback?: string;
4105
4463
  /** Selector specifying which fields to include in a partial response. */
@@ -4122,11 +4480,11 @@ declare namespace gapi.client {
4122
4480
  /** Returns the effective Cloud KMS Autokey configuration for a given project. */
4123
4481
  showEffectiveAutokeyConfig(request?: {
4124
4482
  /** V1 error format. */
4125
- '$.xgafv'?: string;
4483
+ '$.xgafv'?: '1' | '2';
4126
4484
  /** OAuth access token. */
4127
4485
  access_token?: string;
4128
4486
  /** Data format for response. */
4129
- alt?: string;
4487
+ alt?: 'json' | 'media' | 'proto';
4130
4488
  /** JSONP */
4131
4489
  callback?: string;
4132
4490
  /** Selector specifying which fields to include in a partial response. */
@@ -4149,11 +4507,11 @@ declare namespace gapi.client {
4149
4507
  /** Returns the KeyAccessJustificationsEnrollmentConfig of the resource closest to the given project in hierarchy. */
4150
4508
  showEffectiveKeyAccessJustificationsEnrollmentConfig(request?: {
4151
4509
  /** V1 error format. */
4152
- '$.xgafv'?: string;
4510
+ '$.xgafv'?: '1' | '2';
4153
4511
  /** OAuth access token. */
4154
4512
  access_token?: string;
4155
4513
  /** Data format for response. */
4156
- alt?: string;
4514
+ alt?: 'json' | 'media' | 'proto';
4157
4515
  /** JSONP */
4158
4516
  callback?: string;
4159
4517
  /** Selector specifying which fields to include in a partial response. */
@@ -4176,11 +4534,11 @@ declare namespace gapi.client {
4176
4534
  /** Returns the KeyAccessJustificationsPolicyConfig of the resource closest to the given project in hierarchy. */
4177
4535
  showEffectiveKeyAccessJustificationsPolicyConfig(request?: {
4178
4536
  /** V1 error format. */
4179
- '$.xgafv'?: string;
4537
+ '$.xgafv'?: '1' | '2';
4180
4538
  /** OAuth access token. */
4181
4539
  access_token?: string;
4182
4540
  /** Data format for response. */
4183
- alt?: string;
4541
+ alt?: 'json' | 'media' | 'proto';
4184
4542
  /** JSONP */
4185
4543
  callback?: string;
4186
4544
  /** Selector specifying which fields to include in a partial response. */
@@ -4203,11 +4561,11 @@ declare namespace gapi.client {
4203
4561
  /** Updates the AutokeyConfig for a folder or a project. The caller must have both `cloudkms.autokeyConfigs.update` permission on the parent folder and `cloudkms.cryptoKeys.setIamPolicy` permission on the provided key project. A KeyHandle creation in the folder's descendant projects will use this configuration to determine where to create the resulting CryptoKey. */
4204
4562
  updateAutokeyConfig(request: {
4205
4563
  /** V1 error format. */
4206
- '$.xgafv'?: string;
4564
+ '$.xgafv'?: '1' | '2';
4207
4565
  /** OAuth access token. */
4208
4566
  access_token?: string;
4209
4567
  /** Data format for response. */
4210
- alt?: string;
4568
+ alt?: 'json' | 'media' | 'proto';
4211
4569
  /** JSONP */
4212
4570
  callback?: string;
4213
4571
  /** Selector specifying which fields to include in a partial response. */
@@ -4234,11 +4592,11 @@ declare namespace gapi.client {
4234
4592
  updateAutokeyConfig(
4235
4593
  request: {
4236
4594
  /** V1 error format. */
4237
- '$.xgafv'?: string;
4595
+ '$.xgafv'?: '1' | '2';
4238
4596
  /** OAuth access token. */
4239
4597
  access_token?: string;
4240
4598
  /** Data format for response. */
4241
- alt?: string;
4599
+ alt?: 'json' | 'media' | 'proto';
4242
4600
  /** JSONP */
4243
4601
  callback?: string;
4244
4602
  /** Selector specifying which fields to include in a partial response. */
@@ -4265,11 +4623,11 @@ declare namespace gapi.client {
4265
4623
  /** Updates the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project. */
4266
4624
  updateKajPolicyConfig(request: {
4267
4625
  /** V1 error format. */
4268
- '$.xgafv'?: string;
4626
+ '$.xgafv'?: '1' | '2';
4269
4627
  /** OAuth access token. */
4270
4628
  access_token?: string;
4271
4629
  /** Data format for response. */
4272
- alt?: string;
4630
+ alt?: 'json' | 'media' | 'proto';
4273
4631
  /** JSONP */
4274
4632
  callback?: string;
4275
4633
  /** Selector specifying which fields to include in a partial response. */
@@ -4296,11 +4654,11 @@ declare namespace gapi.client {
4296
4654
  updateKajPolicyConfig(
4297
4655
  request: {
4298
4656
  /** V1 error format. */
4299
- '$.xgafv'?: string;
4657
+ '$.xgafv'?: '1' | '2';
4300
4658
  /** OAuth access token. */
4301
4659
  access_token?: string;
4302
4660
  /** Data format for response. */
4303
- alt?: string;
4661
+ alt?: 'json' | 'media' | 'proto';
4304
4662
  /** JSONP */
4305
4663
  callback?: string;
4306
4664
  /** Selector specifying which fields to include in a partial response. */