@maxim_mazurok/gapi.client.cloudkms-v1 0.1.20250828 → 0.1.20250911

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 (3) hide show
  1. package/index.d.ts +93 -4
  2. package/package.json +1 -1
  3. package/readme.md +11 -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: 20250828
12
+ // Revision: 20250911
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -660,7 +660,7 @@ declare namespace gapi.client {
660
660
  pem?: string;
661
661
  }
662
662
  interface FoldersResource {
663
- /** Returns the AutokeyConfig for a folder. */
663
+ /** Returns the AutokeyConfig for a folder or project. */
664
664
  getAutokeyConfig(request?: {
665
665
  /** V1 error format. */
666
666
  '$.xgafv'?: string;
@@ -674,7 +674,7 @@ declare namespace gapi.client {
674
674
  fields?: string;
675
675
  /** 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. */
676
676
  key?: string;
677
- /** Required. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`. */
677
+ /** Required. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or `projects/{PROJECT_NUMBER}/autokeyConfig`. */
678
678
  name: string;
679
679
  /** OAuth 2.0 token for the current user. */
680
680
  oauth_token?: string;
@@ -3286,7 +3286,7 @@ declare namespace gapi.client {
3286
3286
  alt?: string;
3287
3287
  /** JSONP */
3288
3288
  callback?: string;
3289
- /** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. */
3289
+ /** Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage. */
3290
3290
  extraLocationTypes?: string | string[];
3291
3291
  /** Selector specifying which fields to include in a partial response. */
3292
3292
  fields?: string;
@@ -3380,6 +3380,33 @@ declare namespace gapi.client {
3380
3380
  operations: OperationsResource;
3381
3381
  }
3382
3382
  interface ProjectsResource {
3383
+ /** Returns the AutokeyConfig for a folder or project. */
3384
+ getAutokeyConfig(request?: {
3385
+ /** V1 error format. */
3386
+ '$.xgafv'?: string;
3387
+ /** OAuth access token. */
3388
+ access_token?: string;
3389
+ /** Data format for response. */
3390
+ alt?: string;
3391
+ /** JSONP */
3392
+ callback?: string;
3393
+ /** Selector specifying which fields to include in a partial response. */
3394
+ fields?: string;
3395
+ /** 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. */
3396
+ key?: string;
3397
+ /** Required. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or `projects/{PROJECT_NUMBER}/autokeyConfig`. */
3398
+ name: string;
3399
+ /** OAuth 2.0 token for the current user. */
3400
+ oauth_token?: string;
3401
+ /** Returns response with indentations and line breaks. */
3402
+ prettyPrint?: boolean;
3403
+ /** 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. */
3404
+ quotaUser?: string;
3405
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3406
+ upload_protocol?: string;
3407
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3408
+ uploadType?: string;
3409
+ }): Request<AutokeyConfig>;
3383
3410
  /** Gets the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects. */
3384
3411
  getKajPolicyConfig(request?: {
3385
3412
  /** V1 error format. */
@@ -3488,6 +3515,68 @@ declare namespace gapi.client {
3488
3515
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3489
3516
  uploadType?: string;
3490
3517
  }): Request<ShowEffectiveKeyAccessJustificationsPolicyConfigResponse>;
3518
+ /** Updates the AutokeyConfig for a folder. 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. */
3519
+ updateAutokeyConfig(request: {
3520
+ /** V1 error format. */
3521
+ '$.xgafv'?: string;
3522
+ /** OAuth access token. */
3523
+ access_token?: string;
3524
+ /** Data format for response. */
3525
+ alt?: string;
3526
+ /** JSONP */
3527
+ callback?: string;
3528
+ /** Selector specifying which fields to include in a partial response. */
3529
+ fields?: string;
3530
+ /** 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. */
3531
+ key?: string;
3532
+ /** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` `projects/{PROJECT_NUMBER}/autokeyConfig`. */
3533
+ name: string;
3534
+ /** OAuth 2.0 token for the current user. */
3535
+ oauth_token?: string;
3536
+ /** Returns response with indentations and line breaks. */
3537
+ prettyPrint?: boolean;
3538
+ /** 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. */
3539
+ quotaUser?: string;
3540
+ /** Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`. */
3541
+ updateMask?: string;
3542
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3543
+ upload_protocol?: string;
3544
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3545
+ uploadType?: string;
3546
+ /** Request body */
3547
+ resource: AutokeyConfig;
3548
+ }): Request<AutokeyConfig>;
3549
+ updateAutokeyConfig(
3550
+ request: {
3551
+ /** V1 error format. */
3552
+ '$.xgafv'?: string;
3553
+ /** OAuth access token. */
3554
+ access_token?: string;
3555
+ /** Data format for response. */
3556
+ alt?: string;
3557
+ /** JSONP */
3558
+ callback?: string;
3559
+ /** Selector specifying which fields to include in a partial response. */
3560
+ fields?: string;
3561
+ /** 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. */
3562
+ key?: string;
3563
+ /** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` `projects/{PROJECT_NUMBER}/autokeyConfig`. */
3564
+ name: string;
3565
+ /** OAuth 2.0 token for the current user. */
3566
+ oauth_token?: string;
3567
+ /** Returns response with indentations and line breaks. */
3568
+ prettyPrint?: boolean;
3569
+ /** 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. */
3570
+ quotaUser?: string;
3571
+ /** Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`. */
3572
+ updateMask?: string;
3573
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3574
+ upload_protocol?: string;
3575
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3576
+ uploadType?: string;
3577
+ },
3578
+ body: AutokeyConfig,
3579
+ ): Request<AutokeyConfig>;
3491
3580
  /** Updates the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects. */
3492
3581
  updateKajPolicyConfig(request: {
3493
3582
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudkms-v1",
3
- "version": "0.1.20250828",
3
+ "version": "0.1.20250911",
4
4
  "description": "TypeScript typings for Cloud Key Management Service (KMS) API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -73,7 +73,7 @@ After that you can use Cloud Key Management Service (KMS) API resources: <!-- TO
73
73
 
74
74
  ```typescript
75
75
  /*
76
- Returns the AutokeyConfig for a folder.
76
+ Returns the AutokeyConfig for a folder or project.
77
77
  */
78
78
  await gapi.client.cloudkms.folders.getAutokeyConfig({name: 'name'});
79
79
 
@@ -102,6 +102,11 @@ Updates the KeyAccessJustificationsPolicyConfig for a given organization/folder/
102
102
  */
103
103
  await gapi.client.cloudkms.organizations.updateKajPolicyConfig({name: 'name'});
104
104
 
105
+ /*
106
+ Returns the AutokeyConfig for a folder or project.
107
+ */
108
+ await gapi.client.cloudkms.projects.getAutokeyConfig({name: 'name'});
109
+
105
110
  /*
106
111
  Gets the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects.
107
112
  */
@@ -128,6 +133,11 @@ await gapi.client.cloudkms.projects.showEffectiveKeyAccessJustificationsPolicyCo
128
133
  {project: 'project'},
129
134
  );
130
135
 
136
+ /*
137
+ Updates the AutokeyConfig for a folder. 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.
138
+ */
139
+ await gapi.client.cloudkms.projects.updateAutokeyConfig({name: 'name'});
140
+
131
141
  /*
132
142
  Updates the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects.
133
143
  */