@maxim_mazurok/gapi.client.cloudkms-v1 0.0.20250109 → 0.0.20250124

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 +36 -36
  2. package/package.json +1 -1
  3. package/readme.md +2 -2
package/index.d.ts CHANGED
@@ -9,14 +9,14 @@
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: 20250109
12
+ // Revision: 20250124
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
17
  /** Load Cloud Key Management Service (KMS) API v1 */
18
18
  function load(
19
- urlOrObject: 'https://cloudkms.googleapis.com/$discovery/rest?version=v1'
19
+ urlOrObject: 'https://cloudkms.googleapis.com/$discovery/rest?version=v1',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'cloudkms', version: 'v1'): Promise<void>;
@@ -693,7 +693,7 @@ declare namespace gapi.client {
693
693
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
694
694
  uploadType?: string;
695
695
  },
696
- body: AutokeyConfig
696
+ body: AutokeyConfig,
697
697
  ): Request<AutokeyConfig>;
698
698
  }
699
699
  interface EkmConfigResource {
@@ -754,7 +754,7 @@ declare namespace gapi.client {
754
754
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
755
755
  uploadType?: string;
756
756
  },
757
- body: SetIamPolicyRequest
757
+ body: SetIamPolicyRequest,
758
758
  ): Request<Policy>;
759
759
  /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
760
760
  testIamPermissions(
@@ -784,7 +784,7 @@ declare namespace gapi.client {
784
784
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
785
785
  uploadType?: string;
786
786
  },
787
- body: TestIamPermissionsRequest
787
+ body: TestIamPermissionsRequest,
788
788
  ): Request<TestIamPermissionsResponse>;
789
789
  }
790
790
  interface EkmConnectionsResource {
@@ -848,7 +848,7 @@ declare namespace gapi.client {
848
848
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
849
849
  uploadType?: string;
850
850
  },
851
- body: EkmConnection
851
+ body: EkmConnection,
852
852
  ): Request<EkmConnection>;
853
853
  /** Returns metadata for a given EkmConnection. */
854
854
  get(request?: {
@@ -1001,7 +1001,7 @@ declare namespace gapi.client {
1001
1001
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1002
1002
  uploadType?: string;
1003
1003
  },
1004
- body: EkmConnection
1004
+ body: EkmConnection,
1005
1005
  ): Request<EkmConnection>;
1006
1006
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
1007
1007
  setIamPolicy(
@@ -1031,7 +1031,7 @@ declare namespace gapi.client {
1031
1031
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1032
1032
  uploadType?: string;
1033
1033
  },
1034
- body: SetIamPolicyRequest
1034
+ body: SetIamPolicyRequest,
1035
1035
  ): Request<Policy>;
1036
1036
  /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
1037
1037
  testIamPermissions(
@@ -1061,7 +1061,7 @@ declare namespace gapi.client {
1061
1061
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1062
1062
  uploadType?: string;
1063
1063
  },
1064
- body: TestIamPermissionsRequest
1064
+ body: TestIamPermissionsRequest,
1065
1065
  ): Request<TestIamPermissionsResponse>;
1066
1066
  /** 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. */
1067
1067
  verifyConnectivity(request?: {
@@ -1152,7 +1152,7 @@ declare namespace gapi.client {
1152
1152
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1153
1153
  uploadType?: string;
1154
1154
  },
1155
- body: KeyHandle
1155
+ body: KeyHandle,
1156
1156
  ): Request<Operation>;
1157
1157
  /** Returns the KeyHandle. */
1158
1158
  get(request?: {
@@ -1272,7 +1272,7 @@ declare namespace gapi.client {
1272
1272
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1273
1273
  uploadType?: string;
1274
1274
  },
1275
- body: AsymmetricDecryptRequest
1275
+ body: AsymmetricDecryptRequest,
1276
1276
  ): Request<AsymmetricDecryptResponse>;
1277
1277
  /** Signs data using a CryptoKeyVersion with CryptoKey.purpose ASYMMETRIC_SIGN, producing a signature that can be verified with the public key retrieved from GetPublicKey. */
1278
1278
  asymmetricSign(request: {
@@ -1330,7 +1330,7 @@ declare namespace gapi.client {
1330
1330
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1331
1331
  uploadType?: string;
1332
1332
  },
1333
- body: AsymmetricSignRequest
1333
+ body: AsymmetricSignRequest,
1334
1334
  ): Request<AsymmetricSignResponse>;
1335
1335
  /** Create a new CryptoKeyVersion in a CryptoKey. The server will assign the next sequential id. If unset, state will be set to ENABLED. */
1336
1336
  create(request: {
@@ -1388,7 +1388,7 @@ declare namespace gapi.client {
1388
1388
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1389
1389
  uploadType?: string;
1390
1390
  },
1391
- body: CryptoKeyVersion
1391
+ body: CryptoKeyVersion,
1392
1392
  ): Request<CryptoKeyVersion>;
1393
1393
  /** 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. */
1394
1394
  destroy(request: {
@@ -1446,7 +1446,7 @@ declare namespace gapi.client {
1446
1446
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1447
1447
  uploadType?: string;
1448
1448
  },
1449
- body: DestroyCryptoKeyVersionRequest
1449
+ body: DestroyCryptoKeyVersionRequest,
1450
1450
  ): Request<CryptoKeyVersion>;
1451
1451
  /** Returns metadata for a given CryptoKeyVersion. */
1452
1452
  get(request?: {
@@ -1558,7 +1558,7 @@ declare namespace gapi.client {
1558
1558
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1559
1559
  uploadType?: string;
1560
1560
  },
1561
- body: ImportCryptoKeyVersionRequest
1561
+ body: ImportCryptoKeyVersionRequest,
1562
1562
  ): Request<CryptoKeyVersion>;
1563
1563
  /** Lists CryptoKeyVersions. */
1564
1564
  list(request?: {
@@ -1653,7 +1653,7 @@ declare namespace gapi.client {
1653
1653
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1654
1654
  uploadType?: string;
1655
1655
  },
1656
- body: MacSignRequest
1656
+ body: MacSignRequest,
1657
1657
  ): Request<MacSignResponse>;
1658
1658
  /** Verifies MAC tag using a CryptoKeyVersion with CryptoKey.purpose MAC, and returns a response that indicates whether or not the verification was successful. */
1659
1659
  macVerify(request: {
@@ -1711,7 +1711,7 @@ declare namespace gapi.client {
1711
1711
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1712
1712
  uploadType?: string;
1713
1713
  },
1714
- body: MacVerifyRequest
1714
+ body: MacVerifyRequest,
1715
1715
  ): Request<MacVerifyResponse>;
1716
1716
  /** 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. */
1717
1717
  patch(request: {
@@ -1773,7 +1773,7 @@ declare namespace gapi.client {
1773
1773
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1774
1774
  uploadType?: string;
1775
1775
  },
1776
- body: CryptoKeyVersion
1776
+ body: CryptoKeyVersion,
1777
1777
  ): Request<CryptoKeyVersion>;
1778
1778
  /** Decrypts data that was originally encrypted using a raw cryptographic mechanism. The CryptoKey.purpose must be RAW_ENCRYPT_DECRYPT. */
1779
1779
  rawDecrypt(request: {
@@ -1831,7 +1831,7 @@ declare namespace gapi.client {
1831
1831
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1832
1832
  uploadType?: string;
1833
1833
  },
1834
- body: RawDecryptRequest
1834
+ body: RawDecryptRequest,
1835
1835
  ): Request<RawDecryptResponse>;
1836
1836
  /** 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. */
1837
1837
  rawEncrypt(request: {
@@ -1889,7 +1889,7 @@ declare namespace gapi.client {
1889
1889
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1890
1890
  uploadType?: string;
1891
1891
  },
1892
- body: RawEncryptRequest
1892
+ body: RawEncryptRequest,
1893
1893
  ): Request<RawEncryptResponse>;
1894
1894
  /** 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. */
1895
1895
  restore(request: {
@@ -1947,7 +1947,7 @@ declare namespace gapi.client {
1947
1947
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1948
1948
  uploadType?: string;
1949
1949
  },
1950
- body: RestoreCryptoKeyVersionRequest
1950
+ body: RestoreCryptoKeyVersionRequest,
1951
1951
  ): Request<CryptoKeyVersion>;
1952
1952
  }
1953
1953
  interface CryptoKeysResource {
@@ -2015,7 +2015,7 @@ declare namespace gapi.client {
2015
2015
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2016
2016
  uploadType?: string;
2017
2017
  },
2018
- body: CryptoKey
2018
+ body: CryptoKey,
2019
2019
  ): Request<CryptoKey>;
2020
2020
  /** Decrypts data that was protected by Encrypt. The CryptoKey.purpose must be ENCRYPT_DECRYPT. */
2021
2021
  decrypt(request: {
@@ -2073,7 +2073,7 @@ declare namespace gapi.client {
2073
2073
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2074
2074
  uploadType?: string;
2075
2075
  },
2076
- body: DecryptRequest
2076
+ body: DecryptRequest,
2077
2077
  ): Request<DecryptResponse>;
2078
2078
  /** Encrypts data, so that it can only be recovered by a call to Decrypt. The CryptoKey.purpose must be ENCRYPT_DECRYPT. */
2079
2079
  encrypt(request: {
@@ -2131,7 +2131,7 @@ declare namespace gapi.client {
2131
2131
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2132
2132
  uploadType?: string;
2133
2133
  },
2134
- body: EncryptRequest
2134
+ body: EncryptRequest,
2135
2135
  ): Request<EncryptResponse>;
2136
2136
  /** Returns metadata for a given CryptoKey, as well as its primary CryptoKeyVersion. */
2137
2137
  get(request?: {
@@ -2286,7 +2286,7 @@ declare namespace gapi.client {
2286
2286
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2287
2287
  uploadType?: string;
2288
2288
  },
2289
- body: CryptoKey
2289
+ body: CryptoKey,
2290
2290
  ): Request<CryptoKey>;
2291
2291
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
2292
2292
  setIamPolicy(
@@ -2316,7 +2316,7 @@ declare namespace gapi.client {
2316
2316
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2317
2317
  uploadType?: string;
2318
2318
  },
2319
- body: SetIamPolicyRequest
2319
+ body: SetIamPolicyRequest,
2320
2320
  ): Request<Policy>;
2321
2321
  /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
2322
2322
  testIamPermissions(
@@ -2346,7 +2346,7 @@ declare namespace gapi.client {
2346
2346
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2347
2347
  uploadType?: string;
2348
2348
  },
2349
- body: TestIamPermissionsRequest
2349
+ body: TestIamPermissionsRequest,
2350
2350
  ): Request<TestIamPermissionsResponse>;
2351
2351
  /** 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. */
2352
2352
  updatePrimaryVersion(request: {
@@ -2404,7 +2404,7 @@ declare namespace gapi.client {
2404
2404
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2405
2405
  uploadType?: string;
2406
2406
  },
2407
- body: UpdateCryptoKeyPrimaryVersionRequest
2407
+ body: UpdateCryptoKeyPrimaryVersionRequest,
2408
2408
  ): Request<CryptoKey>;
2409
2409
  cryptoKeyVersions: CryptoKeyVersionsResource;
2410
2410
  }
@@ -2469,7 +2469,7 @@ declare namespace gapi.client {
2469
2469
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2470
2470
  uploadType?: string;
2471
2471
  },
2472
- body: ImportJob
2472
+ body: ImportJob,
2473
2473
  ): Request<ImportJob>;
2474
2474
  /** Returns metadata for a given ImportJob. */
2475
2475
  get(request?: {
@@ -2590,7 +2590,7 @@ declare namespace gapi.client {
2590
2590
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2591
2591
  uploadType?: string;
2592
2592
  },
2593
- body: SetIamPolicyRequest
2593
+ body: SetIamPolicyRequest,
2594
2594
  ): Request<Policy>;
2595
2595
  /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
2596
2596
  testIamPermissions(
@@ -2620,7 +2620,7 @@ declare namespace gapi.client {
2620
2620
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2621
2621
  uploadType?: string;
2622
2622
  },
2623
- body: TestIamPermissionsRequest
2623
+ body: TestIamPermissionsRequest,
2624
2624
  ): Request<TestIamPermissionsResponse>;
2625
2625
  }
2626
2626
  interface KeyRingsResource {
@@ -2684,7 +2684,7 @@ declare namespace gapi.client {
2684
2684
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2685
2685
  uploadType?: string;
2686
2686
  },
2687
- body: KeyRing
2687
+ body: KeyRing,
2688
2688
  ): Request<KeyRing>;
2689
2689
  /** Returns metadata for a given KeyRing. */
2690
2690
  get(request?: {
@@ -2805,7 +2805,7 @@ declare namespace gapi.client {
2805
2805
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2806
2806
  uploadType?: string;
2807
2807
  },
2808
- body: SetIamPolicyRequest
2808
+ body: SetIamPolicyRequest,
2809
2809
  ): Request<Policy>;
2810
2810
  /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
2811
2811
  testIamPermissions(
@@ -2835,7 +2835,7 @@ declare namespace gapi.client {
2835
2835
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2836
2836
  uploadType?: string;
2837
2837
  },
2838
- body: TestIamPermissionsRequest
2838
+ body: TestIamPermissionsRequest,
2839
2839
  ): Request<TestIamPermissionsResponse>;
2840
2840
  cryptoKeys: CryptoKeysResource;
2841
2841
  importJobs: ImportJobsResource;
@@ -2926,7 +2926,7 @@ declare namespace gapi.client {
2926
2926
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2927
2927
  uploadType?: string;
2928
2928
  },
2929
- body: GenerateRandomBytesRequest
2929
+ body: GenerateRandomBytesRequest,
2930
2930
  ): Request<GenerateRandomBytesResponse>;
2931
2931
  /** Gets information about a location. */
2932
2932
  get(request?: {
@@ -3075,7 +3075,7 @@ declare namespace gapi.client {
3075
3075
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3076
3076
  uploadType?: string;
3077
3077
  },
3078
- body: EkmConfig
3078
+ body: EkmConfig,
3079
3079
  ): Request<EkmConfig>;
3080
3080
  ekmConfig: EkmConfigResource;
3081
3081
  ekmConnections: EkmConnectionsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudkms-v1",
3
- "version": "0.0.20250109",
3
+ "version": "0.0.20250124",
4
4
  "description": "TypeScript typings for Cloud Key Management Service (KMS) API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -30,7 +30,7 @@ gapi.client.load(
30
30
  () => {
31
31
  // now we can use:
32
32
  // gapi.client.cloudkms
33
- }
33
+ },
34
34
  );
35
35
  ```
36
36
 
@@ -65,7 +65,7 @@ gapi.auth.authorize(
65
65
  } else {
66
66
  /* handle authorization error */
67
67
  }
68
- }
68
+ },
69
69
  );
70
70
  ```
71
71