@maxim_mazurok/gapi.client.cloudkms-v1 0.0.20230224 → 0.0.20230307
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 +102 -1
- package/package.json +1 -1
- package/tests.ts +25 -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: 20230307
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -235,6 +235,8 @@ declare namespace gapi.client {
|
|
|
235
235
|
destroyEventTime?: string;
|
|
236
236
|
/** Output only. The time this CryptoKeyVersion's key material is scheduled for destruction. Only present if state is DESTROY_SCHEDULED. */
|
|
237
237
|
destroyTime?: string;
|
|
238
|
+
/** Output only. The root cause of the most recent external destruction failure. Only present if state is EXTERNAL_DESTRUCTION_FAILED. */
|
|
239
|
+
externalDestructionFailureReason?: string;
|
|
238
240
|
/**
|
|
239
241
|
* ExternalProtectionLevelOptions stores a group of additional fields for configuring a CryptoKeyVersion that are specific to the EXTERNAL protection level and EXTERNAL_VPC protection
|
|
240
242
|
* levels.
|
|
@@ -242,6 +244,8 @@ declare namespace gapi.client {
|
|
|
242
244
|
externalProtectionLevelOptions?: ExternalProtectionLevelOptions;
|
|
243
245
|
/** Output only. The time this CryptoKeyVersion's key material was generated. */
|
|
244
246
|
generateTime?: string;
|
|
247
|
+
/** Output only. The root cause of the most recent generation failure. Only present if state is GENERATION_FAILED. */
|
|
248
|
+
generationFailureReason?: string;
|
|
245
249
|
/** Output only. The root cause of the most recent import failure. Only present if state is IMPORT_FAILED. */
|
|
246
250
|
importFailureReason?: string;
|
|
247
251
|
/** Output only. The name of the ImportJob used in the most recent import of this CryptoKeyVersion. Only present if the underlying key material was imported. */
|
|
@@ -315,11 +319,21 @@ declare namespace gapi.client {
|
|
|
315
319
|
/** A message digest produced with the SHA-512 algorithm. */
|
|
316
320
|
sha512?: string;
|
|
317
321
|
}
|
|
322
|
+
interface EkmConfig {
|
|
323
|
+
/** Optional. Resource name of the default EkmConnection. Setting this field to the empty string removes the default. */
|
|
324
|
+
defaultEkmConnection?: string;
|
|
325
|
+
/** Output only. The resource name for the EkmConfig in the format `projects/*/locations/*/ekmConfig`. */
|
|
326
|
+
name?: string;
|
|
327
|
+
}
|
|
318
328
|
interface EkmConnection {
|
|
319
329
|
/** Output only. The time at which the EkmConnection was created. */
|
|
320
330
|
createTime?: string;
|
|
331
|
+
/** Optional. Identifies the EKM Crypto Space that this EkmConnection maps to. Note: This field is required if KeyManagementMode is CLOUD_KMS. */
|
|
332
|
+
cryptoSpacePath?: string;
|
|
321
333
|
/** Optional. Etag of the currently stored EkmConnection. */
|
|
322
334
|
etag?: string;
|
|
335
|
+
/** Optional. Describes who can perform control plane operations on the EKM. If unset, this defaults to MANUAL. */
|
|
336
|
+
keyManagementMode?: string;
|
|
323
337
|
/** Output only. The resource name for the EkmConnection in the format `projects/*/locations/*/ekmConnections/*`. */
|
|
324
338
|
name?: string;
|
|
325
339
|
/** A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported. */
|
|
@@ -2778,6 +2792,33 @@ declare namespace gapi.client {
|
|
|
2778
2792
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2779
2793
|
uploadType?: string;
|
|
2780
2794
|
}): Request<Location>;
|
|
2795
|
+
/** Returns the EkmConfig singleton resource for a given project and location. */
|
|
2796
|
+
getEkmConfig(request?: {
|
|
2797
|
+
/** V1 error format. */
|
|
2798
|
+
"$.xgafv"?: string;
|
|
2799
|
+
/** OAuth access token. */
|
|
2800
|
+
access_token?: string;
|
|
2801
|
+
/** Data format for response. */
|
|
2802
|
+
alt?: string;
|
|
2803
|
+
/** JSONP */
|
|
2804
|
+
callback?: string;
|
|
2805
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2806
|
+
fields?: string;
|
|
2807
|
+
/** 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. */
|
|
2808
|
+
key?: string;
|
|
2809
|
+
/** Required. The name of the EkmConfig to get. */
|
|
2810
|
+
name: string;
|
|
2811
|
+
/** OAuth 2.0 token for the current user. */
|
|
2812
|
+
oauth_token?: string;
|
|
2813
|
+
/** Returns response with indentations and line breaks. */
|
|
2814
|
+
prettyPrint?: boolean;
|
|
2815
|
+
/** 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. */
|
|
2816
|
+
quotaUser?: string;
|
|
2817
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2818
|
+
upload_protocol?: string;
|
|
2819
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2820
|
+
uploadType?: string;
|
|
2821
|
+
}): Request<EkmConfig>;
|
|
2781
2822
|
/** Lists information about the supported locations for this service. */
|
|
2782
2823
|
list(request?: {
|
|
2783
2824
|
/** V1 error format. */
|
|
@@ -2814,6 +2855,66 @@ declare namespace gapi.client {
|
|
|
2814
2855
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2815
2856
|
uploadType?: string;
|
|
2816
2857
|
}): Request<ListLocationsResponse>;
|
|
2858
|
+
/** Updates the EkmConfig singleton resource for a given project and location. */
|
|
2859
|
+
updateEkmConfig(request: {
|
|
2860
|
+
/** V1 error format. */
|
|
2861
|
+
"$.xgafv"?: string;
|
|
2862
|
+
/** OAuth access token. */
|
|
2863
|
+
access_token?: string;
|
|
2864
|
+
/** Data format for response. */
|
|
2865
|
+
alt?: string;
|
|
2866
|
+
/** JSONP */
|
|
2867
|
+
callback?: string;
|
|
2868
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2869
|
+
fields?: string;
|
|
2870
|
+
/** 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. */
|
|
2871
|
+
key?: string;
|
|
2872
|
+
/** Output only. The resource name for the EkmConfig in the format `projects/*/locations/*/ekmConfig`. */
|
|
2873
|
+
name: string;
|
|
2874
|
+
/** OAuth 2.0 token for the current user. */
|
|
2875
|
+
oauth_token?: string;
|
|
2876
|
+
/** Returns response with indentations and line breaks. */
|
|
2877
|
+
prettyPrint?: boolean;
|
|
2878
|
+
/** 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. */
|
|
2879
|
+
quotaUser?: string;
|
|
2880
|
+
/** Required. List of fields to be updated in this request. */
|
|
2881
|
+
updateMask?: string;
|
|
2882
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2883
|
+
upload_protocol?: string;
|
|
2884
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2885
|
+
uploadType?: string;
|
|
2886
|
+
/** Request body */
|
|
2887
|
+
resource: EkmConfig;
|
|
2888
|
+
}): Request<EkmConfig>;
|
|
2889
|
+
updateEkmConfig(request: {
|
|
2890
|
+
/** V1 error format. */
|
|
2891
|
+
"$.xgafv"?: string;
|
|
2892
|
+
/** OAuth access token. */
|
|
2893
|
+
access_token?: string;
|
|
2894
|
+
/** Data format for response. */
|
|
2895
|
+
alt?: string;
|
|
2896
|
+
/** JSONP */
|
|
2897
|
+
callback?: string;
|
|
2898
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2899
|
+
fields?: string;
|
|
2900
|
+
/** 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. */
|
|
2901
|
+
key?: string;
|
|
2902
|
+
/** Output only. The resource name for the EkmConfig in the format `projects/*/locations/*/ekmConfig`. */
|
|
2903
|
+
name: string;
|
|
2904
|
+
/** OAuth 2.0 token for the current user. */
|
|
2905
|
+
oauth_token?: string;
|
|
2906
|
+
/** Returns response with indentations and line breaks. */
|
|
2907
|
+
prettyPrint?: boolean;
|
|
2908
|
+
/** 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. */
|
|
2909
|
+
quotaUser?: string;
|
|
2910
|
+
/** Required. List of fields to be updated in this request. */
|
|
2911
|
+
updateMask?: string;
|
|
2912
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2913
|
+
upload_protocol?: string;
|
|
2914
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2915
|
+
uploadType?: string;
|
|
2916
|
+
},
|
|
2917
|
+
body: EkmConfig): Request<EkmConfig>;
|
|
2817
2918
|
ekmConfig: EkmConfigResource;
|
|
2818
2919
|
ekmConnections: EkmConnectionsResource;
|
|
2819
2920
|
keyRings: KeyRingsResource;
|
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: 20230307
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -42,6 +42,10 @@ gapi.load('client', async () => {
|
|
|
42
42
|
await gapi.client.cloudkms.projects.locations.get({
|
|
43
43
|
name: "Test string",
|
|
44
44
|
});
|
|
45
|
+
/** Returns the EkmConfig singleton resource for a given project and location. */
|
|
46
|
+
await gapi.client.cloudkms.projects.locations.getEkmConfig({
|
|
47
|
+
name: "Test string",
|
|
48
|
+
});
|
|
45
49
|
/** Lists information about the supported locations for this service. */
|
|
46
50
|
await gapi.client.cloudkms.projects.locations.list({
|
|
47
51
|
filter: "Test string",
|
|
@@ -49,6 +53,14 @@ gapi.load('client', async () => {
|
|
|
49
53
|
pageSize: 42,
|
|
50
54
|
pageToken: "Test string",
|
|
51
55
|
});
|
|
56
|
+
/** Updates the EkmConfig singleton resource for a given project and location. */
|
|
57
|
+
await gapi.client.cloudkms.projects.locations.updateEkmConfig({
|
|
58
|
+
name: "Test string",
|
|
59
|
+
updateMask: "Test string",
|
|
60
|
+
}, {
|
|
61
|
+
defaultEkmConnection: "Test string",
|
|
62
|
+
name: "Test string",
|
|
63
|
+
});
|
|
52
64
|
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
53
65
|
await gapi.client.cloudkms.projects.locations.ekmConfig.getIamPolicy({
|
|
54
66
|
"options.requestedPolicyVersion": 42,
|
|
@@ -108,7 +120,9 @@ gapi.load('client', async () => {
|
|
|
108
120
|
parent: "Test string",
|
|
109
121
|
}, {
|
|
110
122
|
createTime: "Test string",
|
|
123
|
+
cryptoSpacePath: "Test string",
|
|
111
124
|
etag: "Test string",
|
|
125
|
+
keyManagementMode: "Test string",
|
|
112
126
|
name: "Test string",
|
|
113
127
|
serviceResolvers: [
|
|
114
128
|
{
|
|
@@ -156,7 +170,9 @@ gapi.load('client', async () => {
|
|
|
156
170
|
updateMask: "Test string",
|
|
157
171
|
}, {
|
|
158
172
|
createTime: "Test string",
|
|
173
|
+
cryptoSpacePath: "Test string",
|
|
159
174
|
etag: "Test string",
|
|
175
|
+
keyManagementMode: "Test string",
|
|
160
176
|
name: "Test string",
|
|
161
177
|
serviceResolvers: [
|
|
162
178
|
{
|
|
@@ -337,11 +353,13 @@ gapi.load('client', async () => {
|
|
|
337
353
|
createTime: "Test string",
|
|
338
354
|
destroyEventTime: "Test string",
|
|
339
355
|
destroyTime: "Test string",
|
|
356
|
+
externalDestructionFailureReason: "Test string",
|
|
340
357
|
externalProtectionLevelOptions: {
|
|
341
358
|
ekmConnectionKeyPath: "Test string",
|
|
342
359
|
externalKeyUri: "Test string",
|
|
343
360
|
},
|
|
344
361
|
generateTime: "Test string",
|
|
362
|
+
generationFailureReason: "Test string",
|
|
345
363
|
importFailureReason: "Test string",
|
|
346
364
|
importJob: "Test string",
|
|
347
365
|
importTime: "Test string",
|
|
@@ -427,11 +445,13 @@ gapi.load('client', async () => {
|
|
|
427
445
|
createTime: "Test string",
|
|
428
446
|
destroyEventTime: "Test string",
|
|
429
447
|
destroyTime: "Test string",
|
|
448
|
+
externalDestructionFailureReason: "Test string",
|
|
430
449
|
externalProtectionLevelOptions: {
|
|
431
450
|
ekmConnectionKeyPath: "Test string",
|
|
432
451
|
externalKeyUri: "Test string",
|
|
433
452
|
},
|
|
434
453
|
generateTime: "Test string",
|
|
454
|
+
generationFailureReason: "Test string",
|
|
435
455
|
importFailureReason: "Test string",
|
|
436
456
|
importJob: "Test string",
|
|
437
457
|
importTime: "Test string",
|
|
@@ -544,11 +564,13 @@ gapi.load('client', async () => {
|
|
|
544
564
|
createTime: "Test string",
|
|
545
565
|
destroyEventTime: "Test string",
|
|
546
566
|
destroyTime: "Test string",
|
|
567
|
+
externalDestructionFailureReason: "Test string",
|
|
547
568
|
externalProtectionLevelOptions: {
|
|
548
569
|
ekmConnectionKeyPath: "Test string",
|
|
549
570
|
externalKeyUri: "Test string",
|
|
550
571
|
},
|
|
551
572
|
generateTime: "Test string",
|
|
573
|
+
generationFailureReason: "Test string",
|
|
552
574
|
importFailureReason: "Test string",
|
|
553
575
|
importJob: "Test string",
|
|
554
576
|
importTime: "Test string",
|
|
@@ -639,11 +661,13 @@ gapi.load('client', async () => {
|
|
|
639
661
|
createTime: "Test string",
|
|
640
662
|
destroyEventTime: "Test string",
|
|
641
663
|
destroyTime: "Test string",
|
|
664
|
+
externalDestructionFailureReason: "Test string",
|
|
642
665
|
externalProtectionLevelOptions: {
|
|
643
666
|
ekmConnectionKeyPath: "Test string",
|
|
644
667
|
externalKeyUri: "Test string",
|
|
645
668
|
},
|
|
646
669
|
generateTime: "Test string",
|
|
670
|
+
generationFailureReason: "Test string",
|
|
647
671
|
importFailureReason: "Test string",
|
|
648
672
|
importJob: "Test string",
|
|
649
673
|
importTime: "Test string",
|