@maxim_mazurok/gapi.client.cloudkms-v1 0.0.20230330 → 0.0.20230407
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.
- package/index.d.ts +34 -1
- package/package.json +1 -1
- package/tests.ts +8 -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:
|
|
12
|
+
// Revision: 20230407
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -729,6 +729,9 @@ declare namespace gapi.client {
|
|
|
729
729
|
/** Required. The id of the child CryptoKeyVersion to use as primary. */
|
|
730
730
|
cryptoKeyVersionId?: string;
|
|
731
731
|
}
|
|
732
|
+
// tslint:disable-next-line:no-empty-interface
|
|
733
|
+
interface VerifyConnectivityResponse {
|
|
734
|
+
}
|
|
732
735
|
interface WrappingPublicKey {
|
|
733
736
|
/**
|
|
734
737
|
* The public key, encoded in PEM format. For more information, see the [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for [General
|
|
@@ -1136,6 +1139,36 @@ declare namespace gapi.client {
|
|
|
1136
1139
|
uploadType?: string;
|
|
1137
1140
|
},
|
|
1138
1141
|
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
1142
|
+
/**
|
|
1143
|
+
* 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
|
|
1144
|
+
* FAILED_PRECONDITION status containing structured information as described at https://cloud.google.com/kms/docs/reference/ekm_errors.
|
|
1145
|
+
*/
|
|
1146
|
+
verifyConnectivity(request?: {
|
|
1147
|
+
/** V1 error format. */
|
|
1148
|
+
"$.xgafv"?: string;
|
|
1149
|
+
/** OAuth access token. */
|
|
1150
|
+
access_token?: string;
|
|
1151
|
+
/** Data format for response. */
|
|
1152
|
+
alt?: string;
|
|
1153
|
+
/** JSONP */
|
|
1154
|
+
callback?: string;
|
|
1155
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1156
|
+
fields?: string;
|
|
1157
|
+
/** 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. */
|
|
1158
|
+
key?: string;
|
|
1159
|
+
/** Required. The name of the EkmConnection to verify. */
|
|
1160
|
+
name: string;
|
|
1161
|
+
/** OAuth 2.0 token for the current user. */
|
|
1162
|
+
oauth_token?: string;
|
|
1163
|
+
/** Returns response with indentations and line breaks. */
|
|
1164
|
+
prettyPrint?: boolean;
|
|
1165
|
+
/** 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. */
|
|
1166
|
+
quotaUser?: string;
|
|
1167
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1168
|
+
upload_protocol?: string;
|
|
1169
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1170
|
+
uploadType?: string;
|
|
1171
|
+
}): Request<{}>;
|
|
1139
1172
|
}
|
|
1140
1173
|
interface CryptoKeyVersionsResource {
|
|
1141
1174
|
/** Decrypts data that was encrypted with a public key retrieved from GetPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose ASYMMETRIC_DECRYPT. */
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230407
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -245,6 +245,13 @@ gapi.load('client', async () => {
|
|
|
245
245
|
"Test string"
|
|
246
246
|
],
|
|
247
247
|
});
|
|
248
|
+
/**
|
|
249
|
+
* 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
|
|
250
|
+
* FAILED_PRECONDITION status containing structured information as described at https://cloud.google.com/kms/docs/reference/ekm_errors.
|
|
251
|
+
*/
|
|
252
|
+
await gapi.client.cloudkms.projects.locations.ekmConnections.verifyConnectivity({
|
|
253
|
+
name: "Test string",
|
|
254
|
+
});
|
|
248
255
|
/** Create a new KeyRing in a given Project and Location. */
|
|
249
256
|
await gapi.client.cloudkms.projects.locations.keyRings.create({
|
|
250
257
|
keyRingId: "Test string",
|