@maxim_mazurok/gapi.client.cloudkms-v1 0.1.20251201 → 0.1.20251231

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 +545 -1
  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: 20251201
12
+ // Revision: 20251231
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -24,6 +24,17 @@ declare namespace gapi.client {
24
24
  function load(name: 'cloudkms', version: 'v1', callback: () => any): void;
25
25
 
26
26
  namespace cloudkms {
27
+ interface AddQuorumMember {
28
+ /** Required. The public key associated with the 2FA key for the new quorum member to add. Public keys must be associated with RSA 2048 keys. */
29
+ twoFactorPublicKeyPem?: string;
30
+ }
31
+ interface ApproveSingleTenantHsmInstanceProposalRequest {
32
+ /** Required. The reply to QuorumParameters for approving the proposal. */
33
+ quorumReply?: QuorumReply;
34
+ /** Required. The reply to RequiredActionQuorumParameters for approving the proposal. */
35
+ requiredActionQuorumReply?: RequiredActionQuorumReply;
36
+ }
37
+ interface ApproveSingleTenantHsmInstanceProposalResponse {}
27
38
  interface AsymmetricDecryptRequest {
28
39
  /** Required. The data encrypted with the named CryptoKeyVersion's public key using OAEP. */
29
40
  ciphertext?: string;
@@ -122,6 +133,18 @@ declare namespace gapi.client {
122
133
  /** Google partition certificate chain corresponding to the attestation. */
123
134
  googlePartitionCerts?: string[];
124
135
  }
136
+ interface Challenge {
137
+ /** Output only. The challenge to be signed by the 2FA key indicated by the public key. */
138
+ challenge?: string;
139
+ /** Output only. The public key associated with the 2FA key that should sign the challenge. */
140
+ publicKeyPem?: string;
141
+ }
142
+ interface ChallengeReply {
143
+ /** Required. The public key associated with the 2FA key. */
144
+ publicKeyPem?: string;
145
+ /** Required. The signed challenge associated with the 2FA key. The signature must be RSASSA-PKCS1 v1.5 with a SHA256 digest. */
146
+ signedChallenge?: string;
147
+ }
125
148
  interface ChecksummedData {
126
149
  /** Integrity verification field. A CRC32C checksum of the returned ChecksummedData.data. An integrity check of ChecksummedData.data can be performed by computing the CRC32C checksum of ChecksummedData.data 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. */
127
150
  crc32cChecksum?: string;
@@ -232,6 +255,7 @@ declare namespace gapi.client {
232
255
  /** Whether the Decryption was performed using the primary key version. */
233
256
  usedPrimary?: boolean;
234
257
  }
258
+ interface DeleteSingleTenantHsmInstance {}
235
259
  interface DestroyCryptoKeyVersionRequest {}
236
260
  interface Digest {
237
261
  /** A message digest produced with the SHA-256 algorithm. */
@@ -241,6 +265,7 @@ declare namespace gapi.client {
241
265
  /** A message digest produced with the SHA-512 algorithm. */
242
266
  sha512?: string;
243
267
  }
268
+ interface DisableSingleTenantHsmInstance {}
244
269
  interface EkmConfig {
245
270
  /** Optional. Resource name of the default EkmConnection. Setting this field to the empty string removes the default. */
246
271
  defaultEkmConnection?: string;
@@ -261,6 +286,8 @@ declare namespace gapi.client {
261
286
  /** 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. */
262
287
  serviceResolvers?: ServiceResolver[];
263
288
  }
289
+ interface Empty {}
290
+ interface EnableSingleTenantHsmInstance {}
264
291
  interface EncryptRequest {
265
292
  /** Optional. Optional data that, if specified, must also be provided during decryption through DecryptRequest.additional_authenticated_data. The maximum size depends on the key version's protection_level. For SOFTWARE, EXTERNAL, and EXTERNAL_VPC keys the AAD must be no larger than 64KiB. For HSM keys, the combined length of the plaintext and additional_authenticated_data fields must be no larger than 8KiB. */
266
293
  additionalAuthenticatedData?: string;
@@ -285,6 +312,7 @@ declare namespace gapi.client {
285
312
  /** 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. */
286
313
  verifiedPlaintextCrc32c?: boolean;
287
314
  }
315
+ interface ExecuteSingleTenantHsmInstanceProposalRequest {}
288
316
  interface Expr {
289
317
  /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
290
318
  description?: string;
@@ -439,6 +467,22 @@ declare namespace gapi.client {
439
467
  /** The standard List next-page token. */
440
468
  nextPageToken?: string;
441
469
  }
470
+ interface ListSingleTenantHsmInstanceProposalsResponse {
471
+ /** A token to retrieve next page of results. Pass this value in ListSingleTenantHsmInstanceProposalsRequest.page_token to retrieve the next page of results. */
472
+ nextPageToken?: string;
473
+ /** The list of SingleTenantHsmInstanceProposals. */
474
+ singleTenantHsmInstanceProposals?: SingleTenantHsmInstanceProposal[];
475
+ /** The total number of SingleTenantHsmInstanceProposals that matched the query. This field is not populated if ListSingleTenantHsmInstanceProposalsRequest.filter is applied. */
476
+ totalSize?: number;
477
+ }
478
+ interface ListSingleTenantHsmInstancesResponse {
479
+ /** A token to retrieve next page of results. Pass this value in ListSingleTenantHsmInstancesRequest.page_token to retrieve the next page of results. */
480
+ nextPageToken?: string;
481
+ /** The list of SingleTenantHsmInstances. */
482
+ singleTenantHsmInstances?: SingleTenantHsmInstance[];
483
+ /** The total number of SingleTenantHsmInstances that matched the query. This field is not populated if ListSingleTenantHsmInstancesRequest.filter is applied. */
484
+ totalSize?: number;
485
+ }
442
486
  interface Location {
443
487
  /** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
444
488
  displayName?: string;
@@ -539,6 +583,26 @@ declare namespace gapi.client {
539
583
  /** The PublicKey format specified by the customer through the public_key_format field. */
540
584
  publicKeyFormat?: string;
541
585
  }
586
+ interface QuorumAuth {
587
+ /** 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. */
588
+ requiredApproverCount?: number;
589
+ /** Required. The total number of approvers. This is the N value used for M of N quorum auth. Must be greater than or equal to 3 and less than or equal to 16. */
590
+ totalApproverCount?: number;
591
+ /** Output only. The public keys associated with the 2FA keys for M of N quorum auth. */
592
+ twoFactorPublicKeyPems?: string[];
593
+ }
594
+ interface QuorumParameters {
595
+ /** Output only. The public keys associated with the 2FA keys that have already approved the SingleTenantHsmInstanceProposal by signing the challenge. */
596
+ approvedTwoFactorPublicKeyPems?: string[];
597
+ /** Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation. */
598
+ challenges?: Challenge[];
599
+ /** Output only. The required numbers of approvers. This is the M value used for M of N quorum auth. It is less than the number of public keys. */
600
+ requiredApproverCount?: number;
601
+ }
602
+ interface QuorumReply {
603
+ /** Required. The challenge replies to approve the proposal. Challenge replies can be sent across multiple requests. The proposal will be approved when required_approver_count challenge replies are provided. */
604
+ challengeReplies?: ChallengeReply[];
605
+ }
542
606
  interface RawDecryptRequest {
543
607
  /** Optional. Optional data that must match the data originally supplied in RawEncryptRequest.additional_authenticated_data. */
544
608
  additionalAuthenticatedData?: string;
@@ -605,6 +669,33 @@ declare namespace gapi.client {
605
669
  /** Integrity verification field. A flag indicating whether RawEncryptRequest.plaintext_crc32c was received by KeyManagementService and used for the integrity verification of the plaintext. A false value of this field indicates either that RawEncryptRequest.plaintext_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set RawEncryptRequest.plaintext_crc32c but this field is still false, discard the response and perform a limited number of retries. */
606
670
  verifiedPlaintextCrc32c?: boolean;
607
671
  }
672
+ interface RefreshSingleTenantHsmInstance {}
673
+ interface RegisterTwoFactorAuthKeys {
674
+ /** Required. The required numbers of approvers to set for the SingleTenantHsmInstance. This is 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. */
675
+ requiredApproverCount?: number;
676
+ /** Required. The public keys associated with the 2FA keys for M of N quorum auth. Public keys must be associated with RSA 2048 keys. */
677
+ twoFactorPublicKeyPems?: string[];
678
+ }
679
+ interface RemoveQuorumMember {
680
+ /** Required. The public key associated with the 2FA key for the quorum member to remove. Public keys must be associated with RSA 2048 keys. */
681
+ twoFactorPublicKeyPem?: string;
682
+ }
683
+ interface RequiredActionQuorumParameters {
684
+ /** Output only. The public keys associated with the 2FA keys that have already approved the SingleTenantHsmInstanceProposal by signing the challenge. */
685
+ approvedTwoFactorPublicKeyPems?: string[];
686
+ /** Output only. The challenges to be signed by 2FA keys for quorum auth. M of N of these challenges are required to be signed to approve the operation. */
687
+ quorumChallenges?: Challenge[];
688
+ /** Output only. The required number of quorum approvers. This is the M value used for M of N quorum auth. It is less than the number of public keys. */
689
+ requiredApproverCount?: number;
690
+ /** Output only. A list of specific challenges that must be signed. For some operations, this will contain a single challenge. */
691
+ requiredChallenges?: Challenge[];
692
+ }
693
+ interface RequiredActionQuorumReply {
694
+ /** Required. Quorum members' signed challenge replies. These can be provided across multiple requests. The proposal will be approved when required_approver_count quorum_challenge_replies are provided and when all required_challenge_replies are provided. */
695
+ quorumChallengeReplies?: ChallengeReply[];
696
+ /** Required. All required challenges must be signed for the proposal to be approved. These can be sent across multiple requests. */
697
+ requiredChallengeReplies?: ChallengeReply[];
698
+ }
608
699
  interface RestoreCryptoKeyVersionRequest {}
609
700
  interface ServiceResolver {
610
701
  /** Optional. The filter applied to the endpoints of the resolved service. If no filter is specified, all endpoints will be considered. An endpoint will be chosen arbitrarily from the filtered list for each request. For endpoint filter syntax and examples, see https://cloud.google.com/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#resolveservicerequest. */
@@ -638,6 +729,58 @@ declare namespace gapi.client {
638
729
  /** The effective KeyAccessJustificationsPolicyConfig. */
639
730
  effectiveKajPolicy?: KeyAccessJustificationsPolicyConfig;
640
731
  }
732
+ interface SingleTenantHsmInstance {
733
+ /** Output only. The time at which the SingleTenantHsmInstance was created. */
734
+ createTime?: string;
735
+ /** Output only. The time at which the SingleTenantHsmInstance was deleted. */
736
+ deleteTime?: string;
737
+ /** Output only. The time at which the instance will be automatically disabled if not refreshed. This field is updated upon creation and after each successful refresh operation and enable. A RefreshSingleTenantHsmInstance operation must be made via a SingleTenantHsmInstanceProposal before this time otherwise the SingleTenantHsmInstance will become disabled. */
738
+ disableTime?: string;
739
+ /** Identifier. The resource name for this SingleTenantHsmInstance in the format `projects/*‍/locations/*‍/singleTenantHsmInstances/*`. */
740
+ name?: string;
741
+ /** Required. The quorum auth configuration for the SingleTenantHsmInstance. */
742
+ quorumAuth?: QuorumAuth;
743
+ /** Output only. The state of the SingleTenantHsmInstance. */
744
+ state?: string;
745
+ /** 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. */
746
+ unrefreshedDurationUntilDisable?: string;
747
+ }
748
+ interface SingleTenantHsmInstanceProposal {
749
+ /** Add a quorum member to the SingleTenantHsmInstance. This will increase the total_approver_count by 1. The SingleTenantHsmInstance must be in the ACTIVE state to perform this operation. */
750
+ addQuorumMember?: AddQuorumMember;
751
+ /** Output only. The time at which the SingleTenantHsmInstanceProposal was created. */
752
+ createTime?: string;
753
+ /** Delete the SingleTenantHsmInstance. Deleting a SingleTenantHsmInstance will make all CryptoKeys attached to the SingleTenantHsmInstance unusable. The SingleTenantHsmInstance must be in the DISABLED or PENDING_TWO_FACTOR_AUTH_REGISTRATION state to perform this operation. */
754
+ deleteSingleTenantHsmInstance?: any;
755
+ /** Output only. The time at which the SingleTenantHsmInstanceProposal was deleted. */
756
+ deleteTime?: string;
757
+ /** Disable the SingleTenantHsmInstance. The SingleTenantHsmInstance must be in the ACTIVE state to perform this operation. */
758
+ disableSingleTenantHsmInstance?: any;
759
+ /** Enable the SingleTenantHsmInstance. The SingleTenantHsmInstance must be in the DISABLED state to perform this operation. */
760
+ enableSingleTenantHsmInstance?: any;
761
+ /** The time at which the SingleTenantHsmInstanceProposal will expire if not approved and executed. */
762
+ expireTime?: string;
763
+ /** Output only. The root cause of the most recent failure. Only present if state is FAILED. */
764
+ failureReason?: string;
765
+ /** Identifier. The resource name for this SingleTenantHsmInstance in the format `projects/*‍/locations/*‍/singleTenantHsmInstances/*‍/proposals/*`. */
766
+ name?: string;
767
+ /** Output only. The time at which the soft-deleted SingleTenantHsmInstanceProposal will be permanently purged. This field is only populated when the state is DELETED and will be set a time after expiration of the proposal, i.e. >= expire_time or (create_time + ttl). */
768
+ purgeTime?: string;
769
+ /** Output only. The quorum approval parameters for the SingleTenantHsmInstanceProposal. */
770
+ quorumParameters?: QuorumParameters;
771
+ /** Refreshes the SingleTenantHsmInstance. This operation must be performed periodically to keep the SingleTenantHsmInstance active. This operation must be performed before unrefreshed_duration_until_disable has passed. The SingleTenantHsmInstance must be in the ACTIVE state to perform this operation. */
772
+ refreshSingleTenantHsmInstance?: any;
773
+ /** Register 2FA keys for the SingleTenantHsmInstance. This operation requires all N Challenges to be signed by 2FA keys. The SingleTenantHsmInstance must be in the PENDING_TWO_FACTOR_AUTH_REGISTRATION state to perform this operation. */
774
+ registerTwoFactorAuthKeys?: RegisterTwoFactorAuthKeys;
775
+ /** Remove a quorum member from the SingleTenantHsmInstance. This will reduce total_approver_count by 1. The SingleTenantHsmInstance must be in the ACTIVE state to perform this operation. */
776
+ removeQuorumMember?: RemoveQuorumMember;
777
+ /** Output only. Parameters for an approval of a SingleTenantHsmInstanceProposal that has both required challenges and a quorum. */
778
+ requiredActionQuorumParameters?: RequiredActionQuorumParameters;
779
+ /** Output only. The state of the SingleTenantHsmInstanceProposal. */
780
+ state?: string;
781
+ /** Input only. The TTL for the SingleTenantHsmInstanceProposal. Proposals will expire after this duration. */
782
+ ttl?: string;
783
+ }
641
784
  interface Status {
642
785
  /** The status code, which should be an enum value of google.rpc.Code. */
643
786
  code?: number;
@@ -3167,6 +3310,406 @@ declare namespace gapi.client {
3167
3310
  uploadType?: string;
3168
3311
  }): Request<Operation>;
3169
3312
  }
3313
+ interface ProposalsResource {
3314
+ /** Approves a SingleTenantHsmInstanceProposal for a given SingleTenantHsmInstance. The proposal must be in the PENDING state. */
3315
+ approve(request: {
3316
+ /** V1 error format. */
3317
+ '$.xgafv'?: string;
3318
+ /** OAuth access token. */
3319
+ access_token?: string;
3320
+ /** Data format for response. */
3321
+ alt?: string;
3322
+ /** JSONP */
3323
+ callback?: string;
3324
+ /** Selector specifying which fields to include in a partial response. */
3325
+ fields?: string;
3326
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3327
+ key?: string;
3328
+ /** Required. The name of the SingleTenantHsmInstanceProposal to approve. */
3329
+ name: string;
3330
+ /** OAuth 2.0 token for the current user. */
3331
+ oauth_token?: string;
3332
+ /** Returns response with indentations and line breaks. */
3333
+ prettyPrint?: boolean;
3334
+ /** 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. */
3335
+ quotaUser?: string;
3336
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3337
+ upload_protocol?: string;
3338
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3339
+ uploadType?: string;
3340
+ /** Request body */
3341
+ resource: ApproveSingleTenantHsmInstanceProposalRequest;
3342
+ }): Request<{}>;
3343
+ approve(
3344
+ request: {
3345
+ /** V1 error format. */
3346
+ '$.xgafv'?: string;
3347
+ /** OAuth access token. */
3348
+ access_token?: string;
3349
+ /** Data format for response. */
3350
+ alt?: string;
3351
+ /** JSONP */
3352
+ callback?: string;
3353
+ /** Selector specifying which fields to include in a partial response. */
3354
+ fields?: string;
3355
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3356
+ key?: string;
3357
+ /** Required. The name of the SingleTenantHsmInstanceProposal to approve. */
3358
+ name: string;
3359
+ /** OAuth 2.0 token for the current user. */
3360
+ oauth_token?: string;
3361
+ /** Returns response with indentations and line breaks. */
3362
+ prettyPrint?: boolean;
3363
+ /** 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. */
3364
+ quotaUser?: string;
3365
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3366
+ upload_protocol?: string;
3367
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3368
+ uploadType?: string;
3369
+ },
3370
+ body: ApproveSingleTenantHsmInstanceProposalRequest,
3371
+ ): Request<{}>;
3372
+ /** Creates a new SingleTenantHsmInstanceProposal for a given SingleTenantHsmInstance. */
3373
+ create(request: {
3374
+ /** V1 error format. */
3375
+ '$.xgafv'?: string;
3376
+ /** OAuth access token. */
3377
+ access_token?: string;
3378
+ /** Data format for response. */
3379
+ alt?: string;
3380
+ /** JSONP */
3381
+ callback?: string;
3382
+ /** Selector specifying which fields to include in a partial response. */
3383
+ fields?: string;
3384
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3385
+ key?: string;
3386
+ /** OAuth 2.0 token for the current user. */
3387
+ oauth_token?: string;
3388
+ /** Required. The name of the SingleTenantHsmInstance associated with the SingleTenantHsmInstanceProposals. */
3389
+ parent: string;
3390
+ /** Returns response with indentations and line breaks. */
3391
+ prettyPrint?: boolean;
3392
+ /** 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. */
3393
+ quotaUser?: string;
3394
+ /** Optional. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. */
3395
+ singleTenantHsmInstanceProposalId?: string;
3396
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3397
+ upload_protocol?: string;
3398
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3399
+ uploadType?: string;
3400
+ /** Request body */
3401
+ resource: SingleTenantHsmInstanceProposal;
3402
+ }): Request<Operation>;
3403
+ create(
3404
+ request: {
3405
+ /** V1 error format. */
3406
+ '$.xgafv'?: string;
3407
+ /** OAuth access token. */
3408
+ access_token?: string;
3409
+ /** Data format for response. */
3410
+ alt?: string;
3411
+ /** JSONP */
3412
+ callback?: string;
3413
+ /** Selector specifying which fields to include in a partial response. */
3414
+ fields?: string;
3415
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3416
+ key?: string;
3417
+ /** OAuth 2.0 token for the current user. */
3418
+ oauth_token?: string;
3419
+ /** Required. The name of the SingleTenantHsmInstance associated with the SingleTenantHsmInstanceProposals. */
3420
+ parent: string;
3421
+ /** Returns response with indentations and line breaks. */
3422
+ prettyPrint?: boolean;
3423
+ /** 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. */
3424
+ quotaUser?: string;
3425
+ /** Optional. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. */
3426
+ singleTenantHsmInstanceProposalId?: string;
3427
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3428
+ upload_protocol?: string;
3429
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3430
+ uploadType?: string;
3431
+ },
3432
+ body: SingleTenantHsmInstanceProposal,
3433
+ ): Request<Operation>;
3434
+ /** Deletes a SingleTenantHsmInstanceProposal. */
3435
+ delete(request?: {
3436
+ /** V1 error format. */
3437
+ '$.xgafv'?: string;
3438
+ /** OAuth access token. */
3439
+ access_token?: string;
3440
+ /** Data format for response. */
3441
+ alt?: string;
3442
+ /** JSONP */
3443
+ callback?: string;
3444
+ /** Selector specifying which fields to include in a partial response. */
3445
+ fields?: string;
3446
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3447
+ key?: string;
3448
+ /** Required. The name of the SingleTenantHsmInstanceProposal to delete. */
3449
+ name: string;
3450
+ /** OAuth 2.0 token for the current user. */
3451
+ oauth_token?: string;
3452
+ /** Returns response with indentations and line breaks. */
3453
+ prettyPrint?: boolean;
3454
+ /** 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. */
3455
+ quotaUser?: string;
3456
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3457
+ upload_protocol?: string;
3458
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3459
+ uploadType?: string;
3460
+ }): Request<{}>;
3461
+ /** Executes a SingleTenantHsmInstanceProposal for a given SingleTenantHsmInstance. The proposal must be in the APPROVED state. */
3462
+ execute(request: {
3463
+ /** V1 error format. */
3464
+ '$.xgafv'?: string;
3465
+ /** OAuth access token. */
3466
+ access_token?: string;
3467
+ /** Data format for response. */
3468
+ alt?: string;
3469
+ /** JSONP */
3470
+ callback?: string;
3471
+ /** Selector specifying which fields to include in a partial response. */
3472
+ fields?: string;
3473
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3474
+ key?: string;
3475
+ /** Required. The name of the SingleTenantHsmInstanceProposal to execute. */
3476
+ name: string;
3477
+ /** OAuth 2.0 token for the current user. */
3478
+ oauth_token?: string;
3479
+ /** Returns response with indentations and line breaks. */
3480
+ prettyPrint?: boolean;
3481
+ /** 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. */
3482
+ quotaUser?: string;
3483
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3484
+ upload_protocol?: string;
3485
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3486
+ uploadType?: string;
3487
+ /** Request body */
3488
+ resource: ExecuteSingleTenantHsmInstanceProposalRequest;
3489
+ }): Request<Operation>;
3490
+ execute(
3491
+ request: {
3492
+ /** V1 error format. */
3493
+ '$.xgafv'?: string;
3494
+ /** OAuth access token. */
3495
+ access_token?: string;
3496
+ /** Data format for response. */
3497
+ alt?: string;
3498
+ /** JSONP */
3499
+ callback?: string;
3500
+ /** Selector specifying which fields to include in a partial response. */
3501
+ fields?: string;
3502
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3503
+ key?: string;
3504
+ /** Required. The name of the SingleTenantHsmInstanceProposal to execute. */
3505
+ name: string;
3506
+ /** OAuth 2.0 token for the current user. */
3507
+ oauth_token?: string;
3508
+ /** Returns response with indentations and line breaks. */
3509
+ prettyPrint?: boolean;
3510
+ /** 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. */
3511
+ quotaUser?: string;
3512
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3513
+ upload_protocol?: string;
3514
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3515
+ uploadType?: string;
3516
+ },
3517
+ body: ExecuteSingleTenantHsmInstanceProposalRequest,
3518
+ ): Request<Operation>;
3519
+ /** Returns metadata for a given SingleTenantHsmInstanceProposal. */
3520
+ get(request?: {
3521
+ /** V1 error format. */
3522
+ '$.xgafv'?: string;
3523
+ /** OAuth access token. */
3524
+ access_token?: string;
3525
+ /** Data format for response. */
3526
+ alt?: string;
3527
+ /** JSONP */
3528
+ callback?: string;
3529
+ /** Selector specifying which fields to include in a partial response. */
3530
+ fields?: string;
3531
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3532
+ key?: string;
3533
+ /** Required. The name of the SingleTenantHsmInstanceProposal to get. */
3534
+ name: string;
3535
+ /** OAuth 2.0 token for the current user. */
3536
+ oauth_token?: string;
3537
+ /** Returns response with indentations and line breaks. */
3538
+ prettyPrint?: boolean;
3539
+ /** 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. */
3540
+ quotaUser?: string;
3541
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3542
+ upload_protocol?: string;
3543
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3544
+ uploadType?: string;
3545
+ }): Request<SingleTenantHsmInstanceProposal>;
3546
+ /** Lists SingleTenantHsmInstanceProposals. */
3547
+ list(request?: {
3548
+ /** V1 error format. */
3549
+ '$.xgafv'?: string;
3550
+ /** OAuth access token. */
3551
+ access_token?: string;
3552
+ /** Data format for response. */
3553
+ alt?: string;
3554
+ /** JSONP */
3555
+ callback?: string;
3556
+ /** Selector specifying which fields to include in a partial response. */
3557
+ fields?: string;
3558
+ /** Optional. Only include resources that match the filter in the response. For more information, see [Sorting and filtering list results](https://cloud.google.com/kms/docs/sorting-and-filtering). */
3559
+ filter?: string;
3560
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3561
+ key?: string;
3562
+ /** OAuth 2.0 token for the current user. */
3563
+ oauth_token?: string;
3564
+ /** Optional. Specify how the results should be sorted. If not specified, the results will be sorted in the default order. For more information, see [Sorting and filtering list results](https://cloud.google.com/kms/docs/sorting-and-filtering). */
3565
+ orderBy?: string;
3566
+ /** Optional. Optional limit on the number of SingleTenantHsmInstanceProposals to include in the response. Further SingleTenantHsmInstanceProposals can subsequently be obtained by including the ListSingleTenantHsmInstanceProposalsResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default. */
3567
+ pageSize?: number;
3568
+ /** Optional. Optional pagination token, returned earlier via ListSingleTenantHsmInstanceProposalsResponse.next_page_token. */
3569
+ pageToken?: string;
3570
+ /** Required. The resource name of the location associated with the SingleTenantHsmInstanceProposals to list, in the format `projects/*‍/locations/*‍/singleTenantHsmInstances/*`. */
3571
+ parent: string;
3572
+ /** Returns response with indentations and line breaks. */
3573
+ prettyPrint?: boolean;
3574
+ /** 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. */
3575
+ quotaUser?: string;
3576
+ /** Optional. If set to true, HsmManagement.ListSingleTenantHsmInstanceProposals will also return SingleTenantHsmInstanceProposals in DELETED state. */
3577
+ showDeleted?: boolean;
3578
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3579
+ upload_protocol?: string;
3580
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3581
+ uploadType?: string;
3582
+ }): Request<ListSingleTenantHsmInstanceProposalsResponse>;
3583
+ }
3584
+ interface SingleTenantHsmInstancesResource {
3585
+ /** 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. */
3586
+ create(request: {
3587
+ /** V1 error format. */
3588
+ '$.xgafv'?: string;
3589
+ /** OAuth access token. */
3590
+ access_token?: string;
3591
+ /** Data format for response. */
3592
+ alt?: string;
3593
+ /** JSONP */
3594
+ callback?: string;
3595
+ /** Selector specifying which fields to include in a partial response. */
3596
+ fields?: string;
3597
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3598
+ key?: string;
3599
+ /** OAuth 2.0 token for the current user. */
3600
+ oauth_token?: string;
3601
+ /** Required. The resource name of the location associated with the SingleTenantHsmInstance, in the format `projects/*‍/locations/*`. */
3602
+ parent: string;
3603
+ /** Returns response with indentations and line breaks. */
3604
+ prettyPrint?: boolean;
3605
+ /** 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. */
3606
+ quotaUser?: string;
3607
+ /** Optional. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. */
3608
+ singleTenantHsmInstanceId?: string;
3609
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3610
+ upload_protocol?: string;
3611
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3612
+ uploadType?: string;
3613
+ /** Request body */
3614
+ resource: SingleTenantHsmInstance;
3615
+ }): Request<Operation>;
3616
+ create(
3617
+ request: {
3618
+ /** V1 error format. */
3619
+ '$.xgafv'?: string;
3620
+ /** OAuth access token. */
3621
+ access_token?: string;
3622
+ /** Data format for response. */
3623
+ alt?: string;
3624
+ /** JSONP */
3625
+ callback?: string;
3626
+ /** Selector specifying which fields to include in a partial response. */
3627
+ fields?: string;
3628
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3629
+ key?: string;
3630
+ /** OAuth 2.0 token for the current user. */
3631
+ oauth_token?: string;
3632
+ /** Required. The resource name of the location associated with the SingleTenantHsmInstance, in the format `projects/*‍/locations/*`. */
3633
+ parent: string;
3634
+ /** Returns response with indentations and line breaks. */
3635
+ prettyPrint?: boolean;
3636
+ /** 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. */
3637
+ quotaUser?: string;
3638
+ /** Optional. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. */
3639
+ singleTenantHsmInstanceId?: string;
3640
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3641
+ upload_protocol?: string;
3642
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3643
+ uploadType?: string;
3644
+ },
3645
+ body: SingleTenantHsmInstance,
3646
+ ): Request<Operation>;
3647
+ /** Returns metadata for a given SingleTenantHsmInstance. */
3648
+ get(request?: {
3649
+ /** V1 error format. */
3650
+ '$.xgafv'?: string;
3651
+ /** OAuth access token. */
3652
+ access_token?: string;
3653
+ /** Data format for response. */
3654
+ alt?: string;
3655
+ /** JSONP */
3656
+ callback?: string;
3657
+ /** Selector specifying which fields to include in a partial response. */
3658
+ fields?: string;
3659
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3660
+ key?: string;
3661
+ /** Required. The name of the SingleTenantHsmInstance to get. */
3662
+ name: string;
3663
+ /** OAuth 2.0 token for the current user. */
3664
+ oauth_token?: string;
3665
+ /** Returns response with indentations and line breaks. */
3666
+ prettyPrint?: boolean;
3667
+ /** 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. */
3668
+ quotaUser?: string;
3669
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3670
+ upload_protocol?: string;
3671
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3672
+ uploadType?: string;
3673
+ }): Request<SingleTenantHsmInstance>;
3674
+ /** Lists SingleTenantHsmInstances. */
3675
+ list(request?: {
3676
+ /** V1 error format. */
3677
+ '$.xgafv'?: string;
3678
+ /** OAuth access token. */
3679
+ access_token?: string;
3680
+ /** Data format for response. */
3681
+ alt?: string;
3682
+ /** JSONP */
3683
+ callback?: string;
3684
+ /** Selector specifying which fields to include in a partial response. */
3685
+ fields?: string;
3686
+ /** Optional. Only include resources that match the filter in the response. For more information, see [Sorting and filtering list results](https://cloud.google.com/kms/docs/sorting-and-filtering). */
3687
+ filter?: string;
3688
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3689
+ key?: string;
3690
+ /** OAuth 2.0 token for the current user. */
3691
+ oauth_token?: string;
3692
+ /** Optional. Specify how the results should be sorted. If not specified, the results will be sorted in the default order. For more information, see [Sorting and filtering list results](https://cloud.google.com/kms/docs/sorting-and-filtering). */
3693
+ orderBy?: string;
3694
+ /** Optional. Optional limit on the number of SingleTenantHsmInstances to include in the response. Further SingleTenantHsmInstances can subsequently be obtained by including the ListSingleTenantHsmInstancesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default. */
3695
+ pageSize?: number;
3696
+ /** Optional. Optional pagination token, returned earlier via ListSingleTenantHsmInstancesResponse.next_page_token. */
3697
+ pageToken?: string;
3698
+ /** Required. The resource name of the location associated with the SingleTenantHsmInstances to list, in the format `projects/*‍/locations/*`. */
3699
+ parent: string;
3700
+ /** Returns response with indentations and line breaks. */
3701
+ prettyPrint?: boolean;
3702
+ /** 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. */
3703
+ quotaUser?: string;
3704
+ /** Optional. If set to true, HsmManagement.ListSingleTenantHsmInstances will also return SingleTenantHsmInstances in DELETED state. */
3705
+ showDeleted?: boolean;
3706
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3707
+ upload_protocol?: string;
3708
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3709
+ uploadType?: string;
3710
+ }): Request<ListSingleTenantHsmInstancesResponse>;
3711
+ proposals: ProposalsResource;
3712
+ }
3170
3713
  interface LocationsResource {
3171
3714
  /** Generate random bytes using the Cloud KMS randomness source in the provided location. */
3172
3715
  generateRandomBytes(request: {
@@ -3382,6 +3925,7 @@ declare namespace gapi.client {
3382
3925
  keyHandles: KeyHandlesResource;
3383
3926
  keyRings: KeyRingsResource;
3384
3927
  operations: OperationsResource;
3928
+ singleTenantHsmInstances: SingleTenantHsmInstancesResource;
3385
3929
  }
3386
3930
  interface ProjectsResource {
3387
3931
  /** Gets the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudkms-v1",
3
- "version": "0.1.20251201",
3
+ "version": "0.1.20251231",
4
4
  "description": "TypeScript typings for Cloud Key Management Service (KMS) API v1",
5
5
  "repository": {
6
6
  "type": "git",