@ibm-cloud/secrets-manager 2.0.8 → 2.0.9
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/CHANGELOG.md +2 -0
- package/README.md +0 -1
- package/examples/secrets-manager.v2.test.js +1211 -1211
- package/package.json +2 -2
- package/secrets-manager/v2.d.ts +383 -177
- package/secrets-manager/v2.js +94 -68
- package/secrets-manager/v2.js.map +1 -1
package/secrets-manager/v2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* (C) Copyright IBM Corp.
|
|
3
|
+
* (C) Copyright IBM Corp. 2025.
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
* you may not use this file except in compliance with the License.
|
|
@@ -77,7 +77,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
/**
|
|
80
|
-
* IBM OpenAPI SDK Code Generator Version: 3.
|
|
80
|
+
* IBM OpenAPI SDK Code Generator Version: 3.99.1-daeb6e46-20250131-173156
|
|
81
81
|
*/
|
|
82
82
|
/* eslint-disable max-classes-per-file */
|
|
83
83
|
/* eslint-disable no-await-in-loop */
|
|
@@ -201,7 +201,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
201
201
|
body: body,
|
|
202
202
|
},
|
|
203
203
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
204
|
-
headers: extend(true, sdkHeaders, {
|
|
204
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
205
205
|
'Accept': 'application/json',
|
|
206
206
|
'Content-Type': 'application/json',
|
|
207
207
|
}, _params.headers),
|
|
@@ -233,7 +233,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
233
233
|
method: 'GET',
|
|
234
234
|
},
|
|
235
235
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
236
|
-
headers: extend(true, sdkHeaders, {
|
|
236
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
237
237
|
'Accept': 'application/json',
|
|
238
238
|
}, _params.headers),
|
|
239
239
|
}),
|
|
@@ -246,7 +246,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
246
246
|
* Get the properties of an existing secret group by specifying the ID of the group.
|
|
247
247
|
*
|
|
248
248
|
* @param {Object} params - The parameters to send to the service.
|
|
249
|
-
* @param {string} params.id - The
|
|
249
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret group.
|
|
250
250
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
251
251
|
* @returns {Promise<SecretsManagerV2.Response<SecretsManagerV2.SecretGroup>>}
|
|
252
252
|
*/
|
|
@@ -269,7 +269,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
269
269
|
path: path,
|
|
270
270
|
},
|
|
271
271
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
272
|
-
headers: extend(true, sdkHeaders, {
|
|
272
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
273
273
|
'Accept': 'application/json',
|
|
274
274
|
}, _params.headers),
|
|
275
275
|
}),
|
|
@@ -282,7 +282,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
282
282
|
* Update the properties of an existing secret group, such as its name or description.
|
|
283
283
|
*
|
|
284
284
|
* @param {Object} params - The parameters to send to the service.
|
|
285
|
-
* @param {string} params.id - The
|
|
285
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret group.
|
|
286
286
|
* @param {string} [params.name] - The name of your secret group.
|
|
287
287
|
* @param {string} [params.description] - An extended description of your secret group.
|
|
288
288
|
*
|
|
@@ -315,7 +315,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
315
315
|
path: path,
|
|
316
316
|
},
|
|
317
317
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
318
|
-
headers: extend(true, sdkHeaders, {
|
|
318
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
319
319
|
'Accept': 'application/json',
|
|
320
320
|
'Content-Type': 'application/merge-patch+json',
|
|
321
321
|
}, _params.headers),
|
|
@@ -332,7 +332,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
332
332
|
* you must first delete the secrets that are associated with the group.
|
|
333
333
|
*
|
|
334
334
|
* @param {Object} params - The parameters to send to the service.
|
|
335
|
-
* @param {string} params.id - The
|
|
335
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret group.
|
|
336
336
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
337
337
|
* @returns {Promise<SecretsManagerV2.Response<SecretsManagerV2.EmptyObject>>}
|
|
338
338
|
*/
|
|
@@ -355,7 +355,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
355
355
|
path: path,
|
|
356
356
|
},
|
|
357
357
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
358
|
-
headers: extend(true, sdkHeaders, {}, _params.headers),
|
|
358
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {}, _params.headers),
|
|
359
359
|
}),
|
|
360
360
|
};
|
|
361
361
|
return this.createRequest(parameters);
|
|
@@ -398,7 +398,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
398
398
|
body: body,
|
|
399
399
|
},
|
|
400
400
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
401
|
-
headers: extend(true, sdkHeaders, {
|
|
401
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
402
402
|
'Accept': 'application/json',
|
|
403
403
|
'Content-Type': 'application/json',
|
|
404
404
|
}, _params.headers),
|
|
@@ -484,7 +484,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
484
484
|
qs: query,
|
|
485
485
|
},
|
|
486
486
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
487
|
-
headers: extend(true, sdkHeaders, {
|
|
487
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
488
488
|
'Accept': 'application/json',
|
|
489
489
|
}, _params.headers),
|
|
490
490
|
}),
|
|
@@ -500,7 +500,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
500
500
|
* view only the details of a specified secret without retrieving its value, use the Get secret metadata operation.
|
|
501
501
|
*
|
|
502
502
|
* @param {Object} params - The parameters to send to the service.
|
|
503
|
-
* @param {string} params.id - The
|
|
503
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret.
|
|
504
504
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
505
505
|
* @returns {Promise<SecretsManagerV2.Response<SecretsManagerV2.Secret>>}
|
|
506
506
|
*/
|
|
@@ -523,7 +523,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
523
523
|
path: path,
|
|
524
524
|
},
|
|
525
525
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
526
|
-
headers: extend(true, sdkHeaders, {
|
|
526
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
527
527
|
'Accept': 'application/json',
|
|
528
528
|
}, _params.headers),
|
|
529
529
|
}),
|
|
@@ -536,7 +536,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
536
536
|
* Delete a secret by specifying the ID of the secret.
|
|
537
537
|
*
|
|
538
538
|
* @param {Object} params - The parameters to send to the service.
|
|
539
|
-
* @param {string} params.id - The
|
|
539
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret.
|
|
540
540
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
541
541
|
* @returns {Promise<SecretsManagerV2.Response<SecretsManagerV2.EmptyObject>>}
|
|
542
542
|
*/
|
|
@@ -559,7 +559,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
559
559
|
path: path,
|
|
560
560
|
},
|
|
561
561
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
562
|
-
headers: extend(true, sdkHeaders, {}, _params.headers),
|
|
562
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {}, _params.headers),
|
|
563
563
|
}),
|
|
564
564
|
};
|
|
565
565
|
return this.createRequest(parameters);
|
|
@@ -570,7 +570,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
570
570
|
* Get the metadata of a secret by specifying the ID of the secret.
|
|
571
571
|
*
|
|
572
572
|
* @param {Object} params - The parameters to send to the service.
|
|
573
|
-
* @param {string} params.id - The
|
|
573
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret.
|
|
574
574
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
575
575
|
* @returns {Promise<SecretsManagerV2.Response<SecretsManagerV2.SecretMetadata>>}
|
|
576
576
|
*/
|
|
@@ -593,7 +593,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
593
593
|
path: path,
|
|
594
594
|
},
|
|
595
595
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
596
|
-
headers: extend(true, sdkHeaders, {
|
|
596
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
597
597
|
'Accept': 'application/json',
|
|
598
598
|
}, _params.headers),
|
|
599
599
|
}),
|
|
@@ -606,7 +606,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
606
606
|
* Update the metadata of a secret, such as its name or description.
|
|
607
607
|
*
|
|
608
608
|
* @param {Object} params - The parameters to send to the service.
|
|
609
|
-
* @param {string} params.id - The
|
|
609
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret.
|
|
610
610
|
* @param {SecretMetadataPatch} params.secretMetadataPatch -
|
|
611
611
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
612
612
|
* @returns {Promise<SecretsManagerV2.Response<SecretsManagerV2.SecretMetadata>>}
|
|
@@ -632,7 +632,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
632
632
|
path: path,
|
|
633
633
|
},
|
|
634
634
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
635
|
-
headers: extend(true, sdkHeaders, {
|
|
635
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
636
636
|
'Accept': 'application/json',
|
|
637
637
|
'Content-Type': 'application/merge-patch+json',
|
|
638
638
|
}, _params.headers),
|
|
@@ -646,7 +646,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
646
646
|
* Create a secret action. This operation supports the following actions:.
|
|
647
647
|
*
|
|
648
648
|
* @param {Object} params - The parameters to send to the service.
|
|
649
|
-
* @param {string} params.id - The
|
|
649
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret.
|
|
650
650
|
* @param {SecretActionPrototype} params.secretActionPrototype -
|
|
651
651
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
652
652
|
* @returns {Promise<SecretsManagerV2.Response<SecretsManagerV2.SecretAction>>}
|
|
@@ -672,7 +672,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
672
672
|
path: path,
|
|
673
673
|
},
|
|
674
674
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
675
|
-
headers: extend(true, sdkHeaders, {
|
|
675
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
676
676
|
'Accept': 'application/json',
|
|
677
677
|
'Content-Type': 'application/json',
|
|
678
678
|
}, _params.headers),
|
|
@@ -718,7 +718,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
718
718
|
path: path,
|
|
719
719
|
},
|
|
720
720
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
721
|
-
headers: extend(true, sdkHeaders, {
|
|
721
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
722
722
|
'Accept': 'application/json',
|
|
723
723
|
}, _params.headers),
|
|
724
724
|
}),
|
|
@@ -734,7 +734,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
734
734
|
* Create a new secret version.
|
|
735
735
|
*
|
|
736
736
|
* @param {Object} params - The parameters to send to the service.
|
|
737
|
-
* @param {string} params.secretId - The
|
|
737
|
+
* @param {string} params.secretId - The UUID that uniquely identifies your secret.
|
|
738
738
|
* @param {SecretVersionPrototype} params.secretVersionPrototype -
|
|
739
739
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
740
740
|
* @returns {Promise<SecretsManagerV2.Response<SecretsManagerV2.SecretVersion>>}
|
|
@@ -760,7 +760,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
760
760
|
path: path,
|
|
761
761
|
},
|
|
762
762
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
763
|
-
headers: extend(true, sdkHeaders, {
|
|
763
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
764
764
|
'Accept': 'application/json',
|
|
765
765
|
'Content-Type': 'application/json',
|
|
766
766
|
}, _params.headers),
|
|
@@ -776,7 +776,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
776
776
|
* A successful request returns the list of versions of a secret, along with the metadata of each version.
|
|
777
777
|
*
|
|
778
778
|
* @param {Object} params - The parameters to send to the service.
|
|
779
|
-
* @param {string} params.secretId - The
|
|
779
|
+
* @param {string} params.secretId - The UUID that uniquely identifies your secret.
|
|
780
780
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
781
781
|
* @returns {Promise<SecretsManagerV2.Response<SecretsManagerV2.SecretVersionMetadataCollection>>}
|
|
782
782
|
*/
|
|
@@ -799,7 +799,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
799
799
|
path: path,
|
|
800
800
|
},
|
|
801
801
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
802
|
-
headers: extend(true, sdkHeaders, {
|
|
802
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
803
803
|
'Accept': 'application/json',
|
|
804
804
|
}, _params.headers),
|
|
805
805
|
}),
|
|
@@ -816,8 +816,8 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
816
816
|
* with other metadata.
|
|
817
817
|
*
|
|
818
818
|
* @param {Object} params - The parameters to send to the service.
|
|
819
|
-
* @param {string} params.secretId - The
|
|
820
|
-
* @param {string} params.id - The
|
|
819
|
+
* @param {string} params.secretId - The UUID that uniquely identifies your secret.
|
|
820
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret version. You can use the `current` or
|
|
821
821
|
* `previous` aliases to refer to the current or previous secret version.
|
|
822
822
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
823
823
|
* @returns {Promise<SecretsManagerV2.Response<SecretsManagerV2.SecretVersion>>}
|
|
@@ -842,7 +842,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
842
842
|
path: path,
|
|
843
843
|
},
|
|
844
844
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
845
|
-
headers: extend(true, sdkHeaders, {
|
|
845
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
846
846
|
'Accept': 'application/json',
|
|
847
847
|
}, _params.headers),
|
|
848
848
|
}),
|
|
@@ -857,8 +857,8 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
857
857
|
* This operation is available for secret type: iam_credentials current version.
|
|
858
858
|
*
|
|
859
859
|
* @param {Object} params - The parameters to send to the service.
|
|
860
|
-
* @param {string} params.secretId - The
|
|
861
|
-
* @param {string} params.id - The
|
|
860
|
+
* @param {string} params.secretId - The UUID that uniquely identifies your secret.
|
|
861
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret version. You can use the `current` or
|
|
862
862
|
* `previous` aliases to refer to the current or previous secret version.
|
|
863
863
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
864
864
|
* @returns {Promise<SecretsManagerV2.Response<SecretsManagerV2.EmptyObject>>}
|
|
@@ -883,7 +883,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
883
883
|
path: path,
|
|
884
884
|
},
|
|
885
885
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
886
|
-
headers: extend(true, sdkHeaders, {}, _params.headers),
|
|
886
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {}, _params.headers),
|
|
887
887
|
}),
|
|
888
888
|
};
|
|
889
889
|
return this.createRequest(parameters);
|
|
@@ -897,8 +897,8 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
897
897
|
* A successful request returns the metadata that is associated with the specified version of your secret.
|
|
898
898
|
*
|
|
899
899
|
* @param {Object} params - The parameters to send to the service.
|
|
900
|
-
* @param {string} params.secretId - The
|
|
901
|
-
* @param {string} params.id - The
|
|
900
|
+
* @param {string} params.secretId - The UUID that uniquely identifies your secret.
|
|
901
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret version. You can use the `current` or
|
|
902
902
|
* `previous` aliases to refer to the current or previous secret version.
|
|
903
903
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
904
904
|
* @returns {Promise<SecretsManagerV2.Response<SecretsManagerV2.SecretVersionMetadata>>}
|
|
@@ -923,7 +923,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
923
923
|
path: path,
|
|
924
924
|
},
|
|
925
925
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
926
|
-
headers: extend(true, sdkHeaders, {
|
|
926
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
927
927
|
'Accept': 'application/json',
|
|
928
928
|
}, _params.headers),
|
|
929
929
|
}),
|
|
@@ -936,8 +936,8 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
936
936
|
* Update the custom metadata of a secret version.
|
|
937
937
|
*
|
|
938
938
|
* @param {Object} params - The parameters to send to the service.
|
|
939
|
-
* @param {string} params.secretId - The
|
|
940
|
-
* @param {string} params.id - The
|
|
939
|
+
* @param {string} params.secretId - The UUID that uniquely identifies your secret.
|
|
940
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret version. You can use the `current` or
|
|
941
941
|
* `previous` aliases to refer to the current or previous secret version.
|
|
942
942
|
* @param {JsonObject} [params.versionCustomMetadata] - The secret version metadata that a user can customize.
|
|
943
943
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
@@ -967,7 +967,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
967
967
|
path: path,
|
|
968
968
|
},
|
|
969
969
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
970
|
-
headers: extend(true, sdkHeaders, {
|
|
970
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
971
971
|
'Accept': 'application/json',
|
|
972
972
|
'Content-Type': 'application/merge-patch+json',
|
|
973
973
|
}, _params.headers),
|
|
@@ -983,8 +983,8 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
983
983
|
* - `private_cert_action_revoke_certificate`: Revoke a version of a private certificate.
|
|
984
984
|
*
|
|
985
985
|
* @param {Object} params - The parameters to send to the service.
|
|
986
|
-
* @param {string} params.secretId - The
|
|
987
|
-
* @param {string} params.id - The
|
|
986
|
+
* @param {string} params.secretId - The UUID that uniquely identifies your secret.
|
|
987
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret version. You can use the `current` or
|
|
988
988
|
* `previous` aliases to refer to the current or previous secret version.
|
|
989
989
|
* @param {SecretVersionActionPrototype} params.secretVersionActionPrototype -
|
|
990
990
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
@@ -1012,7 +1012,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1012
1012
|
path: path,
|
|
1013
1013
|
},
|
|
1014
1014
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1015
|
-
headers: extend(true, sdkHeaders, {
|
|
1015
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
1016
1016
|
'Accept': 'application/json',
|
|
1017
1017
|
'Content-Type': 'application/json',
|
|
1018
1018
|
}, _params.headers),
|
|
@@ -1076,7 +1076,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1076
1076
|
qs: query,
|
|
1077
1077
|
},
|
|
1078
1078
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1079
|
-
headers: extend(true, sdkHeaders, {
|
|
1079
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
1080
1080
|
'Accept': 'application/json',
|
|
1081
1081
|
}, _params.headers),
|
|
1082
1082
|
}),
|
|
@@ -1089,7 +1089,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1089
1089
|
* List the locks that are associated with a specified secret.
|
|
1090
1090
|
*
|
|
1091
1091
|
* @param {Object} params - The parameters to send to the service.
|
|
1092
|
-
* @param {string} params.id - The
|
|
1092
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret.
|
|
1093
1093
|
* @param {number} [params.offset] - The number of locks to skip. By specifying `offset`, you retrieve a subset of
|
|
1094
1094
|
* items that starts with the `offset` value. Use `offset` with `limit` to page through your available resources.
|
|
1095
1095
|
*
|
|
@@ -1141,7 +1141,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1141
1141
|
path: path,
|
|
1142
1142
|
},
|
|
1143
1143
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1144
|
-
headers: extend(true, sdkHeaders, {
|
|
1144
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
1145
1145
|
'Accept': 'application/json',
|
|
1146
1146
|
}, _params.headers),
|
|
1147
1147
|
}),
|
|
@@ -1164,7 +1164,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1164
1164
|
* the data of the previous secret version if it doesn't have any locks.
|
|
1165
1165
|
*
|
|
1166
1166
|
* @param {Object} params - The parameters to send to the service.
|
|
1167
|
-
* @param {string} params.id - The
|
|
1167
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret.
|
|
1168
1168
|
* @param {SecretLockPrototype[]} params.locks - The locks data to be attached to a secret version.
|
|
1169
1169
|
* @param {string} [params.mode] - An optional lock mode. When you create a lock, you can set one of the following
|
|
1170
1170
|
* modes to clear any matching locks on a secret version.
|
|
@@ -1201,7 +1201,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1201
1201
|
path: path,
|
|
1202
1202
|
},
|
|
1203
1203
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1204
|
-
headers: extend(true, sdkHeaders, {
|
|
1204
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
1205
1205
|
'Accept': 'application/json',
|
|
1206
1206
|
'Content-Type': 'application/json',
|
|
1207
1207
|
}, _params.headers),
|
|
@@ -1223,7 +1223,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1223
1223
|
* of your secret.
|
|
1224
1224
|
*
|
|
1225
1225
|
* @param {Object} params - The parameters to send to the service.
|
|
1226
|
-
* @param {string} params.id - The
|
|
1226
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret.
|
|
1227
1227
|
* @param {string[]} [params.name] - Specify the names of the secret locks to be deleted.
|
|
1228
1228
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1229
1229
|
* @returns {Promise<SecretsManagerV2.Response<SecretsManagerV2.SecretLocks>>}
|
|
@@ -1251,7 +1251,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1251
1251
|
path: path,
|
|
1252
1252
|
},
|
|
1253
1253
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1254
|
-
headers: extend(true, sdkHeaders, {
|
|
1254
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
1255
1255
|
'Accept': 'application/json',
|
|
1256
1256
|
}, _params.headers),
|
|
1257
1257
|
}),
|
|
@@ -1264,8 +1264,8 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1264
1264
|
* List the locks that are associated with a specified secret version.
|
|
1265
1265
|
*
|
|
1266
1266
|
* @param {Object} params - The parameters to send to the service.
|
|
1267
|
-
* @param {string} params.secretId - The
|
|
1268
|
-
* @param {string} params.id - The
|
|
1267
|
+
* @param {string} params.secretId - The UUID that uniquely identifies your secret.
|
|
1268
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret version. You can use the `current` or
|
|
1269
1269
|
* `previous` aliases to refer to the current or previous secret version.
|
|
1270
1270
|
* @param {number} [params.offset] - The number of locks to skip. By specifying `offset`, you retrieve a subset of
|
|
1271
1271
|
* items that starts with the `offset` value. Use `offset` with `limit` to page through your available resources.
|
|
@@ -1319,7 +1319,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1319
1319
|
path: path,
|
|
1320
1320
|
},
|
|
1321
1321
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1322
|
-
headers: extend(true, sdkHeaders, {
|
|
1322
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
1323
1323
|
'Accept': 'application/json',
|
|
1324
1324
|
}, _params.headers),
|
|
1325
1325
|
}),
|
|
@@ -1342,8 +1342,8 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1342
1342
|
* the data of the previous secret version if it doesn't have any locks.
|
|
1343
1343
|
*
|
|
1344
1344
|
* @param {Object} params - The parameters to send to the service.
|
|
1345
|
-
* @param {string} params.secretId - The
|
|
1346
|
-
* @param {string} params.id - The
|
|
1345
|
+
* @param {string} params.secretId - The UUID that uniquely identifies your secret.
|
|
1346
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret version. You can use the `current` or
|
|
1347
1347
|
* `previous` aliases to refer to the current or previous secret version.
|
|
1348
1348
|
* @param {SecretLockPrototype[]} params.locks - The locks data to be attached to a secret version.
|
|
1349
1349
|
* @param {string} [params.mode] - An optional lock mode. When you create a lock, you can set one of the following
|
|
@@ -1382,7 +1382,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1382
1382
|
path: path,
|
|
1383
1383
|
},
|
|
1384
1384
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1385
|
-
headers: extend(true, sdkHeaders, {
|
|
1385
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
1386
1386
|
'Accept': 'application/json',
|
|
1387
1387
|
'Content-Type': 'application/json',
|
|
1388
1388
|
}, _params.headers),
|
|
@@ -1404,8 +1404,8 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1404
1404
|
* of your secret.
|
|
1405
1405
|
*
|
|
1406
1406
|
* @param {Object} params - The parameters to send to the service.
|
|
1407
|
-
* @param {string} params.secretId - The
|
|
1408
|
-
* @param {string} params.id - The
|
|
1407
|
+
* @param {string} params.secretId - The UUID that uniquely identifies your secret.
|
|
1408
|
+
* @param {string} params.id - The UUID that uniquely identifies your secret version. You can use the `current` or
|
|
1409
1409
|
* `previous` aliases to refer to the current or previous secret version.
|
|
1410
1410
|
* @param {string[]} [params.name] - Specify the names of the secret locks to be deleted.
|
|
1411
1411
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
@@ -1435,7 +1435,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1435
1435
|
path: path,
|
|
1436
1436
|
},
|
|
1437
1437
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1438
|
-
headers: extend(true, sdkHeaders, {
|
|
1438
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
1439
1439
|
'Accept': 'application/json',
|
|
1440
1440
|
}, _params.headers),
|
|
1441
1441
|
}),
|
|
@@ -1484,7 +1484,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1484
1484
|
body: body,
|
|
1485
1485
|
},
|
|
1486
1486
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1487
|
-
headers: extend(true, sdkHeaders, {
|
|
1487
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
1488
1488
|
'Accept': 'application/json',
|
|
1489
1489
|
'Content-Type': 'application/json',
|
|
1490
1490
|
}, _params.headers),
|
|
@@ -1557,7 +1557,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1557
1557
|
qs: query,
|
|
1558
1558
|
},
|
|
1559
1559
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1560
|
-
headers: extend(true, sdkHeaders, {
|
|
1560
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
1561
1561
|
'Accept': 'application/json',
|
|
1562
1562
|
}, _params.headers),
|
|
1563
1563
|
}),
|
|
@@ -1597,7 +1597,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1597
1597
|
path: path,
|
|
1598
1598
|
},
|
|
1599
1599
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1600
|
-
headers: extend(true, sdkHeaders, {
|
|
1600
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
1601
1601
|
'Accept': 'application/json',
|
|
1602
1602
|
'X-Sm-Accept-Configuration-Type': _params.xSmAcceptConfigurationType,
|
|
1603
1603
|
}, _params.headers),
|
|
@@ -1639,7 +1639,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1639
1639
|
path: path,
|
|
1640
1640
|
},
|
|
1641
1641
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1642
|
-
headers: extend(true, sdkHeaders, {
|
|
1642
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
1643
1643
|
'Accept': 'application/json',
|
|
1644
1644
|
'Content-Type': 'application/merge-patch+json',
|
|
1645
1645
|
'X-Sm-Accept-Configuration-Type': _params.xSmAcceptConfigurationType,
|
|
@@ -1679,7 +1679,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1679
1679
|
path: path,
|
|
1680
1680
|
},
|
|
1681
1681
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1682
|
-
headers: extend(true, sdkHeaders, {
|
|
1682
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
1683
1683
|
'X-Sm-Accept-Configuration-Type': _params.xSmAcceptConfigurationType,
|
|
1684
1684
|
}, _params.headers),
|
|
1685
1685
|
}),
|
|
@@ -1730,7 +1730,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1730
1730
|
path: path,
|
|
1731
1731
|
},
|
|
1732
1732
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1733
|
-
headers: extend(true, sdkHeaders, {
|
|
1733
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
1734
1734
|
'Accept': 'application/json',
|
|
1735
1735
|
'Content-Type': 'application/json',
|
|
1736
1736
|
'X-Sm-Accept-Configuration-Type': _params.xSmAcceptConfigurationType,
|
|
@@ -1782,7 +1782,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1782
1782
|
body: body,
|
|
1783
1783
|
},
|
|
1784
1784
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1785
|
-
headers: extend(true, sdkHeaders, {
|
|
1785
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
1786
1786
|
'Accept': 'application/json',
|
|
1787
1787
|
'Content-Type': 'application/json',
|
|
1788
1788
|
}, _params.headers),
|
|
@@ -1814,7 +1814,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1814
1814
|
method: 'GET',
|
|
1815
1815
|
},
|
|
1816
1816
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1817
|
-
headers: extend(true, sdkHeaders, {
|
|
1817
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {
|
|
1818
1818
|
'Accept': 'application/json',
|
|
1819
1819
|
}, _params.headers),
|
|
1820
1820
|
}),
|
|
@@ -1847,7 +1847,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1847
1847
|
method: 'DELETE',
|
|
1848
1848
|
},
|
|
1849
1849
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1850
|
-
headers: extend(true, sdkHeaders, {}, _params.headers),
|
|
1850
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {}, _params.headers),
|
|
1851
1851
|
}),
|
|
1852
1852
|
};
|
|
1853
1853
|
return this.createRequest(parameters);
|
|
@@ -1881,7 +1881,7 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
1881
1881
|
method: 'GET',
|
|
1882
1882
|
},
|
|
1883
1883
|
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
1884
|
-
headers: extend(true, sdkHeaders, {}, _params.headers),
|
|
1884
|
+
headers: extend(true, sdkHeaders, this.baseOptions.headers, {}, _params.headers),
|
|
1885
1885
|
}),
|
|
1886
1886
|
};
|
|
1887
1887
|
return this.createRequest(parameters);
|
|
@@ -2037,6 +2037,32 @@ var SecretsManagerV2 = /** @class */ (function (_super) {
|
|
|
2037
2037
|
})(StateDescription = Constants.StateDescription || (Constants.StateDescription = {}));
|
|
2038
2038
|
})(Constants = CertificateIssuanceInfo.Constants || (CertificateIssuanceInfo.Constants = {}));
|
|
2039
2039
|
})(CertificateIssuanceInfo = SecretsManagerV2.CertificateIssuanceInfo || (SecretsManagerV2.CertificateIssuanceInfo = {}));
|
|
2040
|
+
var ImportedCertificateManagedCsr;
|
|
2041
|
+
(function (ImportedCertificateManagedCsr) {
|
|
2042
|
+
var Constants;
|
|
2043
|
+
(function (Constants) {
|
|
2044
|
+
/** The type of private key to generate. */
|
|
2045
|
+
var KeyType;
|
|
2046
|
+
(function (KeyType) {
|
|
2047
|
+
KeyType["RSA"] = "rsa";
|
|
2048
|
+
KeyType["EC"] = "ec";
|
|
2049
|
+
KeyType["ED25519"] = "ed25519";
|
|
2050
|
+
})(KeyType = Constants.KeyType || (Constants.KeyType = {}));
|
|
2051
|
+
})(Constants = ImportedCertificateManagedCsr.Constants || (ImportedCertificateManagedCsr.Constants = {}));
|
|
2052
|
+
})(ImportedCertificateManagedCsr = SecretsManagerV2.ImportedCertificateManagedCsr || (SecretsManagerV2.ImportedCertificateManagedCsr = {}));
|
|
2053
|
+
var ImportedCertificateManagedCsrResponse;
|
|
2054
|
+
(function (ImportedCertificateManagedCsrResponse) {
|
|
2055
|
+
var Constants;
|
|
2056
|
+
(function (Constants) {
|
|
2057
|
+
/** The type of private key to generate. */
|
|
2058
|
+
var KeyType;
|
|
2059
|
+
(function (KeyType) {
|
|
2060
|
+
KeyType["RSA"] = "rsa";
|
|
2061
|
+
KeyType["EC"] = "ec";
|
|
2062
|
+
KeyType["ED25519"] = "ed25519";
|
|
2063
|
+
})(KeyType = Constants.KeyType || (Constants.KeyType = {}));
|
|
2064
|
+
})(Constants = ImportedCertificateManagedCsrResponse.Constants || (ImportedCertificateManagedCsrResponse.Constants = {}));
|
|
2065
|
+
})(ImportedCertificateManagedCsrResponse = SecretsManagerV2.ImportedCertificateManagedCsrResponse || (SecretsManagerV2.ImportedCertificateManagedCsrResponse = {}));
|
|
2040
2066
|
var PrivateCertificateConfigurationRotateAction;
|
|
2041
2067
|
(function (PrivateCertificateConfigurationRotateAction) {
|
|
2042
2068
|
var Constants;
|