@maxim_mazurok/gapi.client.cloudkms-v1 0.1.20260123 → 0.1.20260213

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 +142 -7
  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: 20260123
12
+ // Revision: 20260213
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -94,7 +94,7 @@ declare namespace gapi.client {
94
94
  keyProject?: string;
95
95
  /** Optional. KeyProjectResolutionMode for the AutokeyConfig. Valid values are `DEDICATED_KEY_PROJECT`, `RESOURCE_PROJECT`, or `DISABLED`. */
96
96
  keyProjectResolutionMode?: string;
97
- /** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` */
97
+ /** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or `projects/{PROJECT_NUMBER}/autokeyConfig`. */
98
98
  name?: string;
99
99
  /** Output only. The state for the AutokeyConfig. */
100
100
  state?: string;
@@ -260,6 +260,8 @@ declare namespace gapi.client {
260
260
  interface DeleteSingleTenantHsmInstance {}
261
261
  interface DestroyCryptoKeyVersionRequest {}
262
262
  interface Digest {
263
+ /** A message digest produced with SHAKE-256, to be used with ML-DSA external-μ algorithms only. See "message representative" note in section 6.2, algorithm 7 of the FIPS-204 standard: https://doi.org/10.6028/nist.fips.204 */
264
+ externalMu?: string;
263
265
  /** A message digest produced with the SHA-256 algorithm. */
264
266
  sha256?: string;
265
267
  /** A message digest produced with the SHA-384 algorithm. */
@@ -469,6 +471,14 @@ declare namespace gapi.client {
469
471
  /** The standard List next-page token. */
470
472
  nextPageToken?: string;
471
473
  }
474
+ interface ListRetiredResourcesResponse {
475
+ /** A token to retrieve the next page of results. Pass this value in ListRetiredResourcesRequest.page_token to retrieve the next page of results. */
476
+ nextPageToken?: string;
477
+ /** The list of RetiredResources. */
478
+ retiredResources?: RetiredResource[];
479
+ /** The total number of RetiredResources that matched the query. */
480
+ totalSize?: string;
481
+ }
472
482
  interface ListSingleTenantHsmInstanceProposalsResponse {
473
483
  /** A token to retrieve next page of results. Pass this value in ListSingleTenantHsmInstanceProposalsRequest.page_token to retrieve the next page of results. */
474
484
  nextPageToken?: string;
@@ -699,6 +709,16 @@ declare namespace gapi.client {
699
709
  requiredChallengeReplies?: ChallengeReply[];
700
710
  }
701
711
  interface RestoreCryptoKeyVersionRequest {}
712
+ interface RetiredResource {
713
+ /** Output only. The time at which the original resource was deleted and this RetiredResource record was created. */
714
+ deleteTime?: string;
715
+ /** Output only. Identifier. The resource name for this RetiredResource in the format `projects/*‍/locations/*‍/retiredResources/*`. */
716
+ name?: string;
717
+ /** Output only. The full resource name of the original CryptoKey that was deleted in the format `projects/*‍/locations/*‍/keyRings/*‍/cryptoKeys/*`. */
718
+ originalResource?: string;
719
+ /** Output only. The resource type of the original deleted resource. */
720
+ resourceType?: string;
721
+ }
702
722
  interface ServiceResolver {
703
723
  /** 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. */
704
724
  endpointFilter?: string;
@@ -877,7 +897,7 @@ declare namespace gapi.client {
877
897
  fields?: string;
878
898
  /** 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. */
879
899
  key?: string;
880
- /** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` */
900
+ /** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or `projects/{PROJECT_NUMBER}/autokeyConfig`. */
881
901
  name: string;
882
902
  /** OAuth 2.0 token for the current user. */
883
903
  oauth_token?: string;
@@ -908,7 +928,7 @@ declare namespace gapi.client {
908
928
  fields?: string;
909
929
  /** 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. */
910
930
  key?: string;
911
- /** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` */
931
+ /** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or `projects/{PROJECT_NUMBER}/autokeyConfig`. */
912
932
  name: string;
913
933
  /** OAuth 2.0 token for the current user. */
914
934
  oauth_token?: string;
@@ -1831,6 +1851,33 @@ declare namespace gapi.client {
1831
1851
  },
1832
1852
  body: DecapsulateRequest,
1833
1853
  ): Request<DecapsulateResponse>;
1854
+ /** 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
+ delete(request?: {
1856
+ /** V1 error format. */
1857
+ '$.xgafv'?: string;
1858
+ /** OAuth access token. */
1859
+ access_token?: string;
1860
+ /** Data format for response. */
1861
+ alt?: string;
1862
+ /** JSONP */
1863
+ callback?: string;
1864
+ /** Selector specifying which fields to include in a partial response. */
1865
+ fields?: string;
1866
+ /** 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. */
1867
+ key?: string;
1868
+ /** Required. The name of the CryptoKeyVersion to delete. */
1869
+ name: string;
1870
+ /** OAuth 2.0 token for the current user. */
1871
+ oauth_token?: string;
1872
+ /** Returns response with indentations and line breaks. */
1873
+ prettyPrint?: boolean;
1874
+ /** 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. */
1875
+ quotaUser?: string;
1876
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1877
+ upload_protocol?: string;
1878
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1879
+ uploadType?: string;
1880
+ }): Request<Operation>;
1834
1881
  /** 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. */
1835
1882
  destroy(request: {
1836
1883
  /** V1 error format. */
@@ -2518,6 +2565,33 @@ declare namespace gapi.client {
2518
2565
  },
2519
2566
  body: DecryptRequest,
2520
2567
  ): Request<DecryptResponse>;
2568
+ /** 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
+ delete(request?: {
2570
+ /** V1 error format. */
2571
+ '$.xgafv'?: string;
2572
+ /** OAuth access token. */
2573
+ access_token?: string;
2574
+ /** Data format for response. */
2575
+ alt?: string;
2576
+ /** JSONP */
2577
+ callback?: string;
2578
+ /** Selector specifying which fields to include in a partial response. */
2579
+ fields?: string;
2580
+ /** 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. */
2581
+ key?: string;
2582
+ /** Required. The name of the CryptoKey to delete. */
2583
+ name: string;
2584
+ /** OAuth 2.0 token for the current user. */
2585
+ oauth_token?: string;
2586
+ /** Returns response with indentations and line breaks. */
2587
+ prettyPrint?: boolean;
2588
+ /** 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. */
2589
+ quotaUser?: string;
2590
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2591
+ upload_protocol?: string;
2592
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2593
+ uploadType?: string;
2594
+ }): Request<Operation>;
2521
2595
  /** Encrypts data, so that it can only be recovered by a call to Decrypt. The CryptoKey.purpose must be ENCRYPT_DECRYPT. */
2522
2596
  encrypt(request: {
2523
2597
  /** V1 error format. */
@@ -3312,6 +3386,66 @@ declare namespace gapi.client {
3312
3386
  uploadType?: string;
3313
3387
  }): Request<Operation>;
3314
3388
  }
3389
+ interface RetiredResourcesResource {
3390
+ /** Retrieves a specific RetiredResource resource, which represents the record of a deleted CryptoKey. */
3391
+ get(request?: {
3392
+ /** V1 error format. */
3393
+ '$.xgafv'?: string;
3394
+ /** OAuth access token. */
3395
+ access_token?: string;
3396
+ /** Data format for response. */
3397
+ alt?: string;
3398
+ /** JSONP */
3399
+ callback?: string;
3400
+ /** Selector specifying which fields to include in a partial response. */
3401
+ fields?: string;
3402
+ /** 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. */
3403
+ key?: string;
3404
+ /** Required. The name of the RetiredResource to get. */
3405
+ name: string;
3406
+ /** OAuth 2.0 token for the current user. */
3407
+ oauth_token?: string;
3408
+ /** Returns response with indentations and line breaks. */
3409
+ prettyPrint?: boolean;
3410
+ /** 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. */
3411
+ quotaUser?: string;
3412
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3413
+ upload_protocol?: string;
3414
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3415
+ uploadType?: string;
3416
+ }): Request<RetiredResource>;
3417
+ /** Lists the RetiredResources which are the records of deleted CryptoKeys. RetiredResources prevent the reuse of these resource names after deletion. */
3418
+ list(request?: {
3419
+ /** V1 error format. */
3420
+ '$.xgafv'?: string;
3421
+ /** OAuth access token. */
3422
+ access_token?: string;
3423
+ /** Data format for response. */
3424
+ alt?: string;
3425
+ /** JSONP */
3426
+ callback?: string;
3427
+ /** Selector specifying which fields to include in a partial response. */
3428
+ fields?: string;
3429
+ /** 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. */
3430
+ key?: string;
3431
+ /** OAuth 2.0 token for the current user. */
3432
+ oauth_token?: string;
3433
+ /** Optional. Optional limit on the number of RetiredResources to be included in the response. Further RetiredResources can subsequently be obtained by including the ListRetiredResourcesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default. */
3434
+ pageSize?: number;
3435
+ /** Optional. Optional pagination token, returned earlier via ListRetiredResourcesResponse.next_page_token. */
3436
+ pageToken?: string;
3437
+ /** Required. The project-specific location holding the RetiredResources, in the format `projects/*‍/locations/*`. */
3438
+ parent: string;
3439
+ /** Returns response with indentations and line breaks. */
3440
+ prettyPrint?: boolean;
3441
+ /** 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. */
3442
+ quotaUser?: string;
3443
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3444
+ upload_protocol?: string;
3445
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3446
+ uploadType?: string;
3447
+ }): Request<ListRetiredResourcesResponse>;
3448
+ }
3315
3449
  interface ProposalsResource {
3316
3450
  /** Approves a SingleTenantHsmInstanceProposal for a given SingleTenantHsmInstance. The proposal must be in the PENDING state. */
3317
3451
  approve(request: {
@@ -3825,7 +3959,7 @@ declare namespace gapi.client {
3825
3959
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3826
3960
  uploadType?: string;
3827
3961
  }): Request<EkmConfig>;
3828
- /** Lists information about the supported locations for this service. */
3962
+ /** 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. */
3829
3963
  list(request?: {
3830
3964
  /** V1 error format. */
3831
3965
  '$.xgafv'?: string;
@@ -3927,6 +4061,7 @@ declare namespace gapi.client {
3927
4061
  keyHandles: KeyHandlesResource;
3928
4062
  keyRings: KeyRingsResource;
3929
4063
  operations: OperationsResource;
4064
+ retiredResources: RetiredResourcesResource;
3930
4065
  singleTenantHsmInstances: SingleTenantHsmInstancesResource;
3931
4066
  }
3932
4067
  interface ProjectsResource {
@@ -4079,7 +4214,7 @@ declare namespace gapi.client {
4079
4214
  fields?: string;
4080
4215
  /** 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. */
4081
4216
  key?: string;
4082
- /** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` */
4217
+ /** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or `projects/{PROJECT_NUMBER}/autokeyConfig`. */
4083
4218
  name: string;
4084
4219
  /** OAuth 2.0 token for the current user. */
4085
4220
  oauth_token?: string;
@@ -4110,7 +4245,7 @@ declare namespace gapi.client {
4110
4245
  fields?: string;
4111
4246
  /** 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. */
4112
4247
  key?: string;
4113
- /** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` */
4248
+ /** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or `projects/{PROJECT_NUMBER}/autokeyConfig`. */
4114
4249
  name: string;
4115
4250
  /** OAuth 2.0 token for the current user. */
4116
4251
  oauth_token?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudkms-v1",
3
- "version": "0.1.20260123",
3
+ "version": "0.1.20260213",
4
4
  "description": "TypeScript typings for Cloud Key Management Service (KMS) API v1",
5
5
  "repository": {
6
6
  "type": "git",