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

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 +99 -10
  2. package/package.json +1 -1
  3. package/readme.md +17 -7
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: 20250926
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;
@@ -687,7 +687,7 @@ declare namespace gapi.client {
687
687
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
688
688
  uploadType?: string;
689
689
  }): Request<AutokeyConfig>;
690
- /** Gets the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects. */
690
+ /** Gets the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project. */
691
691
  getKajPolicyConfig(request?: {
692
692
  /** V1 error format. */
693
693
  '$.xgafv'?: string;
@@ -776,7 +776,7 @@ declare namespace gapi.client {
776
776
  },
777
777
  body: AutokeyConfig,
778
778
  ): Request<AutokeyConfig>;
779
- /** Updates the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects. */
779
+ /** Updates the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project. */
780
780
  updateKajPolicyConfig(request: {
781
781
  /** V1 error format. */
782
782
  '$.xgafv'?: string;
@@ -840,7 +840,7 @@ declare namespace gapi.client {
840
840
  ): Request<KeyAccessJustificationsPolicyConfig>;
841
841
  }
842
842
  interface OrganizationsResource {
843
- /** Gets the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects. */
843
+ /** Gets the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project. */
844
844
  getKajPolicyConfig(request?: {
845
845
  /** V1 error format. */
846
846
  '$.xgafv'?: string;
@@ -867,7 +867,7 @@ declare namespace gapi.client {
867
867
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
868
868
  uploadType?: string;
869
869
  }): Request<KeyAccessJustificationsPolicyConfig>;
870
- /** Updates the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects. */
870
+ /** Updates the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project. */
871
871
  updateKajPolicyConfig(request: {
872
872
  /** V1 error format. */
873
873
  '$.xgafv'?: 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,7 +3380,34 @@ declare namespace gapi.client {
3380
3380
  operations: OperationsResource;
3381
3381
  }
3382
3382
  interface ProjectsResource {
3383
- /** Gets the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects. */
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>;
3410
+ /** Gets the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project. */
3384
3411
  getKajPolicyConfig(request?: {
3385
3412
  /** V1 error format. */
3386
3413
  '$.xgafv'?: string;
@@ -3488,7 +3515,69 @@ declare namespace gapi.client {
3488
3515
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3489
3516
  uploadType?: string;
3490
3517
  }): Request<ShowEffectiveKeyAccessJustificationsPolicyConfigResponse>;
3491
- /** Updates the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects. */
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>;
3580
+ /** Updates the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project. */
3492
3581
  updateKajPolicyConfig(request: {
3493
3582
  /** V1 error format. */
3494
3583
  '$.xgafv'?: string;
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.20250926",
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,12 +73,12 @@ 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
 
80
80
  /*
81
- Gets the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects.
81
+ Gets the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project.
82
82
  */
83
83
  await gapi.client.cloudkms.folders.getKajPolicyConfig({name: 'name'});
84
84
 
@@ -88,22 +88,27 @@ Updates the AutokeyConfig for a folder. The caller must have both `cloudkms.auto
88
88
  await gapi.client.cloudkms.folders.updateAutokeyConfig({name: 'name'});
89
89
 
90
90
  /*
91
- Updates the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects.
91
+ Updates the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project.
92
92
  */
93
93
  await gapi.client.cloudkms.folders.updateKajPolicyConfig({name: 'name'});
94
94
 
95
95
  /*
96
- Gets the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects.
96
+ Gets the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project.
97
97
  */
98
98
  await gapi.client.cloudkms.organizations.getKajPolicyConfig({name: 'name'});
99
99
 
100
100
  /*
101
- Updates the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects.
101
+ Updates the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project.
102
102
  */
103
103
  await gapi.client.cloudkms.organizations.updateKajPolicyConfig({name: 'name'});
104
104
 
105
105
  /*
106
- Gets the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects.
106
+ Returns the AutokeyConfig for a folder or project.
107
+ */
108
+ await gapi.client.cloudkms.projects.getAutokeyConfig({name: 'name'});
109
+
110
+ /*
111
+ Gets the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project.
107
112
  */
108
113
  await gapi.client.cloudkms.projects.getKajPolicyConfig({name: 'name'});
109
114
 
@@ -129,7 +134,12 @@ await gapi.client.cloudkms.projects.showEffectiveKeyAccessJustificationsPolicyCo
129
134
  );
130
135
 
131
136
  /*
132
- Updates the KeyAccessJustificationsPolicyConfig for a given organization/folder/projects.
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
+
141
+ /*
142
+ Updates the KeyAccessJustificationsPolicyConfig for a given organization, folder, or project.
133
143
  */
134
144
  await gapi.client.cloudkms.projects.updateKajPolicyConfig({name: 'name'});
135
145
  ```