@azure/keyvault-certificates 4.9.1-alpha.20250221.1 → 4.10.0-alpha.20250226.2
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/dist/browser/certificatesModels.d.ts +10 -2
- package/dist/browser/certificatesModels.d.ts.map +1 -1
- package/dist/browser/certificatesModels.js +1 -1
- package/dist/browser/certificatesModels.js.map +1 -1
- package/dist/browser/constants.d.ts.map +1 -1
- package/dist/browser/constants.js +1 -1
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/generated/api/index.d.ts +2 -2
- package/dist/browser/generated/api/index.d.ts.map +1 -1
- package/dist/browser/generated/api/index.js +1 -1
- package/dist/browser/generated/api/index.js.map +1 -1
- package/dist/browser/generated/api/keyVaultContext.d.ts +4 -1
- package/dist/browser/generated/api/keyVaultContext.d.ts.map +1 -1
- package/dist/browser/generated/api/keyVaultContext.js +4 -4
- package/dist/browser/generated/api/keyVaultContext.js.map +1 -1
- package/dist/browser/generated/api/operations.d.ts +104 -104
- package/dist/browser/generated/api/operations.d.ts.map +1 -1
- package/dist/browser/generated/api/operations.js +358 -269
- package/dist/browser/generated/api/operations.js.map +1 -1
- package/dist/browser/generated/api/options.d.ts +36 -36
- package/dist/browser/generated/api/options.d.ts.map +1 -1
- package/dist/browser/generated/api/options.js.map +1 -1
- package/dist/browser/generated/index.d.ts +2 -2
- package/dist/browser/generated/index.d.ts.map +1 -1
- package/dist/browser/generated/index.js.map +1 -1
- package/dist/browser/generated/keyVaultClient.d.ts +54 -54
- package/dist/browser/generated/keyVaultClient.d.ts.map +1 -1
- package/dist/browser/generated/keyVaultClient.js +81 -81
- package/dist/browser/generated/keyVaultClient.js.map +1 -1
- package/dist/browser/generated/models/index.d.ts +1 -1
- package/dist/browser/generated/models/index.d.ts.map +1 -1
- package/dist/browser/generated/models/index.js.map +1 -1
- package/dist/browser/generated/models/models.d.ts +35 -7
- package/dist/browser/generated/models/models.d.ts.map +1 -1
- package/dist/browser/generated/models/models.js +19 -5
- package/dist/browser/generated/models/models.js.map +1 -1
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/lro/create/operation.d.ts.map +1 -1
- package/dist/browser/lro/create/operation.js +1 -0
- package/dist/browser/lro/create/operation.js.map +1 -1
- package/dist/browser/transformations.d.ts +1 -1
- package/dist/browser/transformations.d.ts.map +1 -1
- package/dist/browser/transformations.js +3 -0
- package/dist/browser/transformations.js.map +1 -1
- package/dist/commonjs/certificatesModels.d.ts +10 -2
- package/dist/commonjs/certificatesModels.d.ts.map +1 -1
- package/dist/commonjs/certificatesModels.js +1 -1
- package/dist/commonjs/certificatesModels.js.map +1 -1
- package/dist/commonjs/constants.d.ts.map +1 -1
- package/dist/commonjs/constants.js +1 -1
- package/dist/commonjs/constants.js.map +1 -1
- package/dist/commonjs/generated/api/index.d.ts +2 -2
- package/dist/commonjs/generated/api/index.d.ts.map +1 -1
- package/dist/commonjs/generated/api/index.js +27 -27
- package/dist/commonjs/generated/api/index.js.map +1 -1
- package/dist/commonjs/generated/api/keyVaultContext.d.ts +4 -1
- package/dist/commonjs/generated/api/keyVaultContext.d.ts.map +1 -1
- package/dist/commonjs/generated/api/keyVaultContext.js +4 -4
- package/dist/commonjs/generated/api/keyVaultContext.js.map +1 -1
- package/dist/commonjs/generated/api/operations.d.ts +104 -104
- package/dist/commonjs/generated/api/operations.d.ts.map +1 -1
- package/dist/commonjs/generated/api/operations.js +435 -346
- package/dist/commonjs/generated/api/operations.js.map +1 -1
- package/dist/commonjs/generated/api/options.d.ts +36 -36
- package/dist/commonjs/generated/api/options.d.ts.map +1 -1
- package/dist/commonjs/generated/api/options.js.map +1 -1
- package/dist/commonjs/generated/index.d.ts +2 -2
- package/dist/commonjs/generated/index.d.ts.map +1 -1
- package/dist/commonjs/generated/index.js.map +1 -1
- package/dist/commonjs/generated/keyVaultClient.d.ts +54 -54
- package/dist/commonjs/generated/keyVaultClient.d.ts.map +1 -1
- package/dist/commonjs/generated/keyVaultClient.js +80 -80
- package/dist/commonjs/generated/keyVaultClient.js.map +1 -1
- package/dist/commonjs/generated/models/index.d.ts +1 -1
- package/dist/commonjs/generated/models/index.d.ts.map +1 -1
- package/dist/commonjs/generated/models/index.js.map +1 -1
- package/dist/commonjs/generated/models/models.d.ts +35 -7
- package/dist/commonjs/generated/models/models.d.ts.map +1 -1
- package/dist/commonjs/generated/models/models.js +21 -6
- package/dist/commonjs/generated/models/models.js.map +1 -1
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +1 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lro/create/operation.d.ts.map +1 -1
- package/dist/commonjs/lro/create/operation.js +1 -0
- package/dist/commonjs/lro/create/operation.js.map +1 -1
- package/dist/commonjs/transformations.d.ts +1 -1
- package/dist/commonjs/transformations.d.ts.map +1 -1
- package/dist/commonjs/transformations.js +3 -0
- package/dist/commonjs/transformations.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/certificatesModels.d.ts +10 -2
- package/dist/esm/certificatesModels.d.ts.map +1 -1
- package/dist/esm/certificatesModels.js +1 -1
- package/dist/esm/certificatesModels.js.map +1 -1
- package/dist/esm/constants.d.ts.map +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/generated/api/index.d.ts +2 -2
- package/dist/esm/generated/api/index.d.ts.map +1 -1
- package/dist/esm/generated/api/index.js +1 -1
- package/dist/esm/generated/api/index.js.map +1 -1
- package/dist/esm/generated/api/keyVaultContext.d.ts +4 -1
- package/dist/esm/generated/api/keyVaultContext.d.ts.map +1 -1
- package/dist/esm/generated/api/keyVaultContext.js +4 -4
- package/dist/esm/generated/api/keyVaultContext.js.map +1 -1
- package/dist/esm/generated/api/operations.d.ts +104 -104
- package/dist/esm/generated/api/operations.d.ts.map +1 -1
- package/dist/esm/generated/api/operations.js +358 -269
- package/dist/esm/generated/api/operations.js.map +1 -1
- package/dist/esm/generated/api/options.d.ts +36 -36
- package/dist/esm/generated/api/options.d.ts.map +1 -1
- package/dist/esm/generated/api/options.js.map +1 -1
- package/dist/esm/generated/index.d.ts +2 -2
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/index.js.map +1 -1
- package/dist/esm/generated/keyVaultClient.d.ts +54 -54
- package/dist/esm/generated/keyVaultClient.d.ts.map +1 -1
- package/dist/esm/generated/keyVaultClient.js +81 -81
- package/dist/esm/generated/keyVaultClient.js.map +1 -1
- package/dist/esm/generated/models/index.d.ts +1 -1
- package/dist/esm/generated/models/index.d.ts.map +1 -1
- package/dist/esm/generated/models/index.js.map +1 -1
- package/dist/esm/generated/models/models.d.ts +35 -7
- package/dist/esm/generated/models/models.d.ts.map +1 -1
- package/dist/esm/generated/models/models.js +19 -5
- package/dist/esm/generated/models/models.js.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lro/create/operation.d.ts.map +1 -1
- package/dist/esm/lro/create/operation.js +1 -0
- package/dist/esm/lro/create/operation.js.map +1 -1
- package/dist/esm/transformations.d.ts +1 -1
- package/dist/esm/transformations.d.ts.map +1 -1
- package/dist/esm/transformations.js +3 -0
- package/dist/esm/transformations.js.map +1 -1
- package/dist/react-native/certificatesModels.d.ts +10 -2
- package/dist/react-native/certificatesModels.d.ts.map +1 -1
- package/dist/react-native/certificatesModels.js +1 -1
- package/dist/react-native/certificatesModels.js.map +1 -1
- package/dist/react-native/constants.d.ts.map +1 -1
- package/dist/react-native/constants.js +1 -1
- package/dist/react-native/constants.js.map +1 -1
- package/dist/react-native/generated/api/index.d.ts +2 -2
- package/dist/react-native/generated/api/index.d.ts.map +1 -1
- package/dist/react-native/generated/api/index.js +1 -1
- package/dist/react-native/generated/api/index.js.map +1 -1
- package/dist/react-native/generated/api/keyVaultContext.d.ts +4 -1
- package/dist/react-native/generated/api/keyVaultContext.d.ts.map +1 -1
- package/dist/react-native/generated/api/keyVaultContext.js +4 -4
- package/dist/react-native/generated/api/keyVaultContext.js.map +1 -1
- package/dist/react-native/generated/api/operations.d.ts +104 -104
- package/dist/react-native/generated/api/operations.d.ts.map +1 -1
- package/dist/react-native/generated/api/operations.js +358 -269
- package/dist/react-native/generated/api/operations.js.map +1 -1
- package/dist/react-native/generated/api/options.d.ts +36 -36
- package/dist/react-native/generated/api/options.d.ts.map +1 -1
- package/dist/react-native/generated/api/options.js.map +1 -1
- package/dist/react-native/generated/index.d.ts +2 -2
- package/dist/react-native/generated/index.d.ts.map +1 -1
- package/dist/react-native/generated/index.js.map +1 -1
- package/dist/react-native/generated/keyVaultClient.d.ts +54 -54
- package/dist/react-native/generated/keyVaultClient.d.ts.map +1 -1
- package/dist/react-native/generated/keyVaultClient.js +81 -81
- package/dist/react-native/generated/keyVaultClient.js.map +1 -1
- package/dist/react-native/generated/models/index.d.ts +1 -1
- package/dist/react-native/generated/models/index.d.ts.map +1 -1
- package/dist/react-native/generated/models/index.js.map +1 -1
- package/dist/react-native/generated/models/models.d.ts +35 -7
- package/dist/react-native/generated/models/models.d.ts.map +1 -1
- package/dist/react-native/generated/models/models.js +19 -5
- package/dist/react-native/generated/models/models.js.map +1 -1
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/lro/create/operation.d.ts.map +1 -1
- package/dist/react-native/lro/create/operation.js +1 -0
- package/dist/react-native/lro/create/operation.js.map +1 -1
- package/dist/react-native/transformations.d.ts +1 -1
- package/dist/react-native/transformations.d.ts.map +1 -1
- package/dist/react-native/transformations.js +3 -0
- package/dist/react-native/transformations.js.map +1 -1
- package/package.json +1 -1
- package/dist/browser/generated/helpers/serializerHelpers.d.ts +0 -3
- package/dist/browser/generated/helpers/serializerHelpers.d.ts.map +0 -1
- package/dist/browser/generated/helpers/serializerHelpers.js +0 -25
- package/dist/browser/generated/helpers/serializerHelpers.js.map +0 -1
- package/dist/commonjs/generated/helpers/serializerHelpers.d.ts +0 -3
- package/dist/commonjs/generated/helpers/serializerHelpers.d.ts.map +0 -1
- package/dist/commonjs/generated/helpers/serializerHelpers.js +0 -28
- package/dist/commonjs/generated/helpers/serializerHelpers.js.map +0 -1
- package/dist/esm/generated/helpers/serializerHelpers.d.ts +0 -3
- package/dist/esm/generated/helpers/serializerHelpers.d.ts.map +0 -1
- package/dist/esm/generated/helpers/serializerHelpers.js +0 -25
- package/dist/esm/generated/helpers/serializerHelpers.js.map +0 -1
- package/dist/react-native/generated/helpers/serializerHelpers.d.ts +0 -3
- package/dist/react-native/generated/helpers/serializerHelpers.d.ts.map +0 -1
- package/dist/react-native/generated/helpers/serializerHelpers.js +0 -25
- package/dist/react-native/generated/helpers/serializerHelpers.js.map +0 -1
|
@@ -2,320 +2,365 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT License.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports._getCertificatesSend = _getCertificatesSend;
|
|
6
|
-
exports._getCertificatesDeserialize = _getCertificatesDeserialize;
|
|
7
|
-
exports.getCertificates = getCertificates;
|
|
8
|
-
exports._deleteCertificateSend = _deleteCertificateSend;
|
|
9
|
-
exports._deleteCertificateDeserialize = _deleteCertificateDeserialize;
|
|
10
|
-
exports.deleteCertificate = deleteCertificate;
|
|
11
|
-
exports._setCertificateContactsSend = _setCertificateContactsSend;
|
|
12
|
-
exports._setCertificateContactsDeserialize = _setCertificateContactsDeserialize;
|
|
13
|
-
exports.setCertificateContacts = setCertificateContacts;
|
|
14
|
-
exports._getCertificateContactsSend = _getCertificateContactsSend;
|
|
15
|
-
exports._getCertificateContactsDeserialize = _getCertificateContactsDeserialize;
|
|
16
|
-
exports.getCertificateContacts = getCertificateContacts;
|
|
17
|
-
exports._deleteCertificateContactsSend = _deleteCertificateContactsSend;
|
|
18
|
-
exports._deleteCertificateContactsDeserialize = _deleteCertificateContactsDeserialize;
|
|
19
|
-
exports.deleteCertificateContacts = deleteCertificateContacts;
|
|
20
|
-
exports._getCertificateIssuersSend = _getCertificateIssuersSend;
|
|
21
|
-
exports._getCertificateIssuersDeserialize = _getCertificateIssuersDeserialize;
|
|
22
|
-
exports.getCertificateIssuers = getCertificateIssuers;
|
|
23
|
-
exports._setCertificateIssuerSend = _setCertificateIssuerSend;
|
|
24
|
-
exports._setCertificateIssuerDeserialize = _setCertificateIssuerDeserialize;
|
|
25
|
-
exports.setCertificateIssuer = setCertificateIssuer;
|
|
26
|
-
exports._updateCertificateIssuerSend = _updateCertificateIssuerSend;
|
|
27
|
-
exports._updateCertificateIssuerDeserialize = _updateCertificateIssuerDeserialize;
|
|
28
|
-
exports.updateCertificateIssuer = updateCertificateIssuer;
|
|
29
|
-
exports._getCertificateIssuerSend = _getCertificateIssuerSend;
|
|
30
|
-
exports._getCertificateIssuerDeserialize = _getCertificateIssuerDeserialize;
|
|
31
|
-
exports.getCertificateIssuer = getCertificateIssuer;
|
|
32
|
-
exports._deleteCertificateIssuerSend = _deleteCertificateIssuerSend;
|
|
33
|
-
exports._deleteCertificateIssuerDeserialize = _deleteCertificateIssuerDeserialize;
|
|
34
|
-
exports.deleteCertificateIssuer = deleteCertificateIssuer;
|
|
35
|
-
exports._createCertificateSend = _createCertificateSend;
|
|
36
|
-
exports._createCertificateDeserialize = _createCertificateDeserialize;
|
|
37
|
-
exports.createCertificate = createCertificate;
|
|
38
|
-
exports._importCertificateSend = _importCertificateSend;
|
|
39
|
-
exports._importCertificateDeserialize = _importCertificateDeserialize;
|
|
40
|
-
exports.importCertificate = importCertificate;
|
|
41
|
-
exports._getCertificateVersionsSend = _getCertificateVersionsSend;
|
|
42
|
-
exports._getCertificateVersionsDeserialize = _getCertificateVersionsDeserialize;
|
|
43
|
-
exports.getCertificateVersions = getCertificateVersions;
|
|
44
|
-
exports._getCertificatePolicySend = _getCertificatePolicySend;
|
|
45
|
-
exports._getCertificatePolicyDeserialize = _getCertificatePolicyDeserialize;
|
|
46
|
-
exports.getCertificatePolicy = getCertificatePolicy;
|
|
47
|
-
exports._updateCertificatePolicySend = _updateCertificatePolicySend;
|
|
48
|
-
exports._updateCertificatePolicyDeserialize = _updateCertificatePolicyDeserialize;
|
|
49
|
-
exports.updateCertificatePolicy = updateCertificatePolicy;
|
|
50
|
-
exports._updateCertificateSend = _updateCertificateSend;
|
|
51
|
-
exports._updateCertificateDeserialize = _updateCertificateDeserialize;
|
|
52
|
-
exports.updateCertificate = updateCertificate;
|
|
53
|
-
exports._getCertificateSend = _getCertificateSend;
|
|
54
|
-
exports._getCertificateDeserialize = _getCertificateDeserialize;
|
|
55
|
-
exports.getCertificate = getCertificate;
|
|
56
|
-
exports._updateCertificateOperationSend = _updateCertificateOperationSend;
|
|
57
|
-
exports._updateCertificateOperationDeserialize = _updateCertificateOperationDeserialize;
|
|
58
|
-
exports.updateCertificateOperation = updateCertificateOperation;
|
|
59
|
-
exports._getCertificateOperationSend = _getCertificateOperationSend;
|
|
60
|
-
exports._getCertificateOperationDeserialize = _getCertificateOperationDeserialize;
|
|
61
|
-
exports.getCertificateOperation = getCertificateOperation;
|
|
62
|
-
exports._deleteCertificateOperationSend = _deleteCertificateOperationSend;
|
|
63
|
-
exports._deleteCertificateOperationDeserialize = _deleteCertificateOperationDeserialize;
|
|
64
|
-
exports.deleteCertificateOperation = deleteCertificateOperation;
|
|
65
|
-
exports._mergeCertificateSend = _mergeCertificateSend;
|
|
66
|
-
exports._mergeCertificateDeserialize = _mergeCertificateDeserialize;
|
|
67
|
-
exports.mergeCertificate = mergeCertificate;
|
|
68
|
-
exports._backupCertificateSend = _backupCertificateSend;
|
|
69
|
-
exports._backupCertificateDeserialize = _backupCertificateDeserialize;
|
|
70
|
-
exports.backupCertificate = backupCertificate;
|
|
71
|
-
exports._restoreCertificateSend = _restoreCertificateSend;
|
|
72
|
-
exports._restoreCertificateDeserialize = _restoreCertificateDeserialize;
|
|
73
|
-
exports.restoreCertificate = restoreCertificate;
|
|
74
|
-
exports._getDeletedCertificatesSend = _getDeletedCertificatesSend;
|
|
75
|
-
exports._getDeletedCertificatesDeserialize = _getDeletedCertificatesDeserialize;
|
|
76
|
-
exports.getDeletedCertificates = getDeletedCertificates;
|
|
77
|
-
exports._getDeletedCertificateSend = _getDeletedCertificateSend;
|
|
78
|
-
exports._getDeletedCertificateDeserialize = _getDeletedCertificateDeserialize;
|
|
79
|
-
exports.getDeletedCertificate = getDeletedCertificate;
|
|
80
|
-
exports._purgeDeletedCertificateSend = _purgeDeletedCertificateSend;
|
|
81
|
-
exports._purgeDeletedCertificateDeserialize = _purgeDeletedCertificateDeserialize;
|
|
82
|
-
exports.purgeDeletedCertificate = purgeDeletedCertificate;
|
|
83
5
|
exports._recoverDeletedCertificateSend = _recoverDeletedCertificateSend;
|
|
84
6
|
exports._recoverDeletedCertificateDeserialize = _recoverDeletedCertificateDeserialize;
|
|
85
7
|
exports.recoverDeletedCertificate = recoverDeletedCertificate;
|
|
8
|
+
exports._purgeDeletedCertificateSend = _purgeDeletedCertificateSend;
|
|
9
|
+
exports._purgeDeletedCertificateDeserialize = _purgeDeletedCertificateDeserialize;
|
|
10
|
+
exports.purgeDeletedCertificate = purgeDeletedCertificate;
|
|
11
|
+
exports._getDeletedCertificateSend = _getDeletedCertificateSend;
|
|
12
|
+
exports._getDeletedCertificateDeserialize = _getDeletedCertificateDeserialize;
|
|
13
|
+
exports.getDeletedCertificate = getDeletedCertificate;
|
|
14
|
+
exports._getDeletedCertificatesSend = _getDeletedCertificatesSend;
|
|
15
|
+
exports._getDeletedCertificatesDeserialize = _getDeletedCertificatesDeserialize;
|
|
16
|
+
exports.getDeletedCertificates = getDeletedCertificates;
|
|
17
|
+
exports._restoreCertificateSend = _restoreCertificateSend;
|
|
18
|
+
exports._restoreCertificateDeserialize = _restoreCertificateDeserialize;
|
|
19
|
+
exports.restoreCertificate = restoreCertificate;
|
|
20
|
+
exports._backupCertificateSend = _backupCertificateSend;
|
|
21
|
+
exports._backupCertificateDeserialize = _backupCertificateDeserialize;
|
|
22
|
+
exports.backupCertificate = backupCertificate;
|
|
23
|
+
exports._mergeCertificateSend = _mergeCertificateSend;
|
|
24
|
+
exports._mergeCertificateDeserialize = _mergeCertificateDeserialize;
|
|
25
|
+
exports.mergeCertificate = mergeCertificate;
|
|
26
|
+
exports._deleteCertificateOperationSend = _deleteCertificateOperationSend;
|
|
27
|
+
exports._deleteCertificateOperationDeserialize = _deleteCertificateOperationDeserialize;
|
|
28
|
+
exports.deleteCertificateOperation = deleteCertificateOperation;
|
|
29
|
+
exports._getCertificateOperationSend = _getCertificateOperationSend;
|
|
30
|
+
exports._getCertificateOperationDeserialize = _getCertificateOperationDeserialize;
|
|
31
|
+
exports.getCertificateOperation = getCertificateOperation;
|
|
32
|
+
exports._updateCertificateOperationSend = _updateCertificateOperationSend;
|
|
33
|
+
exports._updateCertificateOperationDeserialize = _updateCertificateOperationDeserialize;
|
|
34
|
+
exports.updateCertificateOperation = updateCertificateOperation;
|
|
35
|
+
exports._getCertificateSend = _getCertificateSend;
|
|
36
|
+
exports._getCertificateDeserialize = _getCertificateDeserialize;
|
|
37
|
+
exports.getCertificate = getCertificate;
|
|
38
|
+
exports._updateCertificateSend = _updateCertificateSend;
|
|
39
|
+
exports._updateCertificateDeserialize = _updateCertificateDeserialize;
|
|
40
|
+
exports.updateCertificate = updateCertificate;
|
|
41
|
+
exports._updateCertificatePolicySend = _updateCertificatePolicySend;
|
|
42
|
+
exports._updateCertificatePolicyDeserialize = _updateCertificatePolicyDeserialize;
|
|
43
|
+
exports.updateCertificatePolicy = updateCertificatePolicy;
|
|
44
|
+
exports._getCertificatePolicySend = _getCertificatePolicySend;
|
|
45
|
+
exports._getCertificatePolicyDeserialize = _getCertificatePolicyDeserialize;
|
|
46
|
+
exports.getCertificatePolicy = getCertificatePolicy;
|
|
47
|
+
exports._getCertificateVersionsSend = _getCertificateVersionsSend;
|
|
48
|
+
exports._getCertificateVersionsDeserialize = _getCertificateVersionsDeserialize;
|
|
49
|
+
exports.getCertificateVersions = getCertificateVersions;
|
|
50
|
+
exports._importCertificateSend = _importCertificateSend;
|
|
51
|
+
exports._importCertificateDeserialize = _importCertificateDeserialize;
|
|
52
|
+
exports.importCertificate = importCertificate;
|
|
53
|
+
exports._createCertificateSend = _createCertificateSend;
|
|
54
|
+
exports._createCertificateDeserialize = _createCertificateDeserialize;
|
|
55
|
+
exports.createCertificate = createCertificate;
|
|
56
|
+
exports._deleteCertificateIssuerSend = _deleteCertificateIssuerSend;
|
|
57
|
+
exports._deleteCertificateIssuerDeserialize = _deleteCertificateIssuerDeserialize;
|
|
58
|
+
exports.deleteCertificateIssuer = deleteCertificateIssuer;
|
|
59
|
+
exports._getCertificateIssuerSend = _getCertificateIssuerSend;
|
|
60
|
+
exports._getCertificateIssuerDeserialize = _getCertificateIssuerDeserialize;
|
|
61
|
+
exports.getCertificateIssuer = getCertificateIssuer;
|
|
62
|
+
exports._updateCertificateIssuerSend = _updateCertificateIssuerSend;
|
|
63
|
+
exports._updateCertificateIssuerDeserialize = _updateCertificateIssuerDeserialize;
|
|
64
|
+
exports.updateCertificateIssuer = updateCertificateIssuer;
|
|
65
|
+
exports._setCertificateIssuerSend = _setCertificateIssuerSend;
|
|
66
|
+
exports._setCertificateIssuerDeserialize = _setCertificateIssuerDeserialize;
|
|
67
|
+
exports.setCertificateIssuer = setCertificateIssuer;
|
|
68
|
+
exports._getCertificateIssuersSend = _getCertificateIssuersSend;
|
|
69
|
+
exports._getCertificateIssuersDeserialize = _getCertificateIssuersDeserialize;
|
|
70
|
+
exports.getCertificateIssuers = getCertificateIssuers;
|
|
71
|
+
exports._deleteCertificateContactsSend = _deleteCertificateContactsSend;
|
|
72
|
+
exports._deleteCertificateContactsDeserialize = _deleteCertificateContactsDeserialize;
|
|
73
|
+
exports.deleteCertificateContacts = deleteCertificateContacts;
|
|
74
|
+
exports._getCertificateContactsSend = _getCertificateContactsSend;
|
|
75
|
+
exports._getCertificateContactsDeserialize = _getCertificateContactsDeserialize;
|
|
76
|
+
exports.getCertificateContacts = getCertificateContacts;
|
|
77
|
+
exports._setCertificateContactsSend = _setCertificateContactsSend;
|
|
78
|
+
exports._setCertificateContactsDeserialize = _setCertificateContactsDeserialize;
|
|
79
|
+
exports.setCertificateContacts = setCertificateContacts;
|
|
80
|
+
exports._deleteCertificateSend = _deleteCertificateSend;
|
|
81
|
+
exports._deleteCertificateDeserialize = _deleteCertificateDeserialize;
|
|
82
|
+
exports.deleteCertificate = deleteCertificate;
|
|
83
|
+
exports._getCertificatesSend = _getCertificatesSend;
|
|
84
|
+
exports._getCertificatesDeserialize = _getCertificatesDeserialize;
|
|
85
|
+
exports.getCertificates = getCertificates;
|
|
86
86
|
const models_js_1 = require("../models/models.js");
|
|
87
87
|
const pagingHelpers_js_1 = require("../static-helpers/pagingHelpers.js");
|
|
88
88
|
const core_client_1 = require("@azure-rest/core-client");
|
|
89
|
-
function
|
|
89
|
+
function _recoverDeletedCertificateSend(context, certificateName, options = { requestOptions: {} }) {
|
|
90
|
+
var _a;
|
|
90
91
|
return context
|
|
91
|
-
.path("/
|
|
92
|
-
.
|
|
93
|
-
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
94
|
-
includePending: options === null || options === void 0 ? void 0 : options.includePending,
|
|
95
|
-
} }));
|
|
92
|
+
.path("/deletedcertificates/{certificate-name}/recover", certificateName)
|
|
93
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
96
94
|
}
|
|
97
|
-
async function
|
|
95
|
+
async function _recoverDeletedCertificateDeserialize(result) {
|
|
98
96
|
const expectedStatuses = ["200"];
|
|
99
97
|
if (!expectedStatuses.includes(result.status)) {
|
|
100
|
-
|
|
98
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
99
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
100
|
+
throw error;
|
|
101
101
|
}
|
|
102
|
-
return (0, models_js_1.
|
|
102
|
+
return (0, models_js_1.certificateBundleDeserializer)(result.body);
|
|
103
103
|
}
|
|
104
|
-
/** The
|
|
105
|
-
function
|
|
106
|
-
|
|
104
|
+
/** The RecoverDeletedCertificate operation performs the reversal of the Delete operation. The operation is applicable in vaults enabled for soft-delete, and must be issued during the retention interval (available in the deleted certificate's attributes). This operation requires the certificates/recover permission. */
|
|
105
|
+
async function recoverDeletedCertificate(context, certificateName, options = { requestOptions: {} }) {
|
|
106
|
+
const result = await _recoverDeletedCertificateSend(context, certificateName, options);
|
|
107
|
+
return _recoverDeletedCertificateDeserialize(result);
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
+
function _purgeDeletedCertificateSend(context, certificateName, options = { requestOptions: {} }) {
|
|
110
|
+
var _a;
|
|
109
111
|
return context
|
|
110
|
-
.path("/
|
|
111
|
-
.delete(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
112
|
+
.path("/deletedcertificates/{certificate-name}", certificateName)
|
|
113
|
+
.delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
112
114
|
}
|
|
113
|
-
async function
|
|
114
|
-
const expectedStatuses = ["
|
|
115
|
+
async function _purgeDeletedCertificateDeserialize(result) {
|
|
116
|
+
const expectedStatuses = ["204"];
|
|
115
117
|
if (!expectedStatuses.includes(result.status)) {
|
|
116
|
-
|
|
118
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
119
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
120
|
+
throw error;
|
|
117
121
|
}
|
|
118
|
-
return
|
|
122
|
+
return;
|
|
119
123
|
}
|
|
120
|
-
/**
|
|
121
|
-
async function
|
|
122
|
-
const result = await
|
|
123
|
-
return
|
|
124
|
+
/** The PurgeDeletedCertificate operation performs an irreversible deletion of the specified certificate, without possibility for recovery. The operation is not available if the recovery level does not specify 'Purgeable'. This operation requires the certificate/purge permission. */
|
|
125
|
+
async function purgeDeletedCertificate(context, certificateName, options = { requestOptions: {} }) {
|
|
126
|
+
const result = await _purgeDeletedCertificateSend(context, certificateName, options);
|
|
127
|
+
return _purgeDeletedCertificateDeserialize(result);
|
|
124
128
|
}
|
|
125
|
-
function
|
|
129
|
+
function _getDeletedCertificateSend(context, certificateName, options = { requestOptions: {} }) {
|
|
130
|
+
var _a;
|
|
126
131
|
return context
|
|
127
|
-
.path("/
|
|
128
|
-
.
|
|
132
|
+
.path("/deletedcertificates/{certificate-name}", certificateName)
|
|
133
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
129
134
|
}
|
|
130
|
-
async function
|
|
135
|
+
async function _getDeletedCertificateDeserialize(result) {
|
|
131
136
|
const expectedStatuses = ["200"];
|
|
132
137
|
if (!expectedStatuses.includes(result.status)) {
|
|
133
|
-
|
|
138
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
139
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
140
|
+
throw error;
|
|
134
141
|
}
|
|
135
|
-
return (0, models_js_1.
|
|
142
|
+
return (0, models_js_1.deletedCertificateBundleDeserializer)(result.body);
|
|
136
143
|
}
|
|
137
|
-
/**
|
|
138
|
-
async function
|
|
139
|
-
const result = await
|
|
140
|
-
return
|
|
144
|
+
/** The GetDeletedCertificate operation retrieves the deleted certificate information plus its attributes, such as retention interval, scheduled permanent deletion and the current deletion recovery level. This operation requires the certificates/get permission. */
|
|
145
|
+
async function getDeletedCertificate(context, certificateName, options = { requestOptions: {} }) {
|
|
146
|
+
const result = await _getDeletedCertificateSend(context, certificateName, options);
|
|
147
|
+
return _getDeletedCertificateDeserialize(result);
|
|
141
148
|
}
|
|
142
|
-
function
|
|
149
|
+
function _getDeletedCertificatesSend(context, options = { requestOptions: {} }) {
|
|
150
|
+
var _a;
|
|
143
151
|
return context
|
|
144
|
-
.path("/
|
|
145
|
-
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)))
|
|
152
|
+
.path("/deletedcertificates")
|
|
153
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: {
|
|
154
|
+
"api-version": context.apiVersion,
|
|
155
|
+
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
156
|
+
includePending: options === null || options === void 0 ? void 0 : options.includePending,
|
|
157
|
+
} }));
|
|
146
158
|
}
|
|
147
|
-
async function
|
|
159
|
+
async function _getDeletedCertificatesDeserialize(result) {
|
|
148
160
|
const expectedStatuses = ["200"];
|
|
149
161
|
if (!expectedStatuses.includes(result.status)) {
|
|
150
|
-
|
|
162
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
163
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
164
|
+
throw error;
|
|
151
165
|
}
|
|
152
|
-
return (0, models_js_1.
|
|
166
|
+
return (0, models_js_1._deletedCertificateListResultDeserializer)(result.body);
|
|
153
167
|
}
|
|
154
|
-
/** The
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
return _getCertificateContactsDeserialize(result);
|
|
168
|
+
/** The GetDeletedCertificates operation retrieves the certificates in the current vault which are in a deleted state and ready for recovery or purging. This operation includes deletion-specific information. This operation requires the certificates/get/list permission. This operation can only be enabled on soft-delete enabled vaults. */
|
|
169
|
+
function getDeletedCertificates(context, options = { requestOptions: {} }) {
|
|
170
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _getDeletedCertificatesSend(context, options), _getDeletedCertificatesDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
158
171
|
}
|
|
159
|
-
function
|
|
172
|
+
function _restoreCertificateSend(context, parameters, options = { requestOptions: {} }) {
|
|
173
|
+
var _a;
|
|
160
174
|
return context
|
|
161
|
-
.path("/certificates/
|
|
162
|
-
.
|
|
175
|
+
.path("/certificates/restore")
|
|
176
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion }, body: (0, models_js_1.certificateRestoreParametersSerializer)(parameters) }));
|
|
163
177
|
}
|
|
164
|
-
async function
|
|
178
|
+
async function _restoreCertificateDeserialize(result) {
|
|
165
179
|
const expectedStatuses = ["200"];
|
|
166
180
|
if (!expectedStatuses.includes(result.status)) {
|
|
167
|
-
|
|
181
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
182
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
183
|
+
throw error;
|
|
168
184
|
}
|
|
169
|
-
return (0, models_js_1.
|
|
185
|
+
return (0, models_js_1.certificateBundleDeserializer)(result.body);
|
|
170
186
|
}
|
|
171
|
-
/**
|
|
172
|
-
async function
|
|
173
|
-
const result = await
|
|
174
|
-
return
|
|
187
|
+
/** Restores a backed up certificate, and all its versions, to a vault. This operation requires the certificates/restore permission. */
|
|
188
|
+
async function restoreCertificate(context, parameters, options = { requestOptions: {} }) {
|
|
189
|
+
const result = await _restoreCertificateSend(context, parameters, options);
|
|
190
|
+
return _restoreCertificateDeserialize(result);
|
|
175
191
|
}
|
|
176
|
-
function
|
|
192
|
+
function _backupCertificateSend(context, certificateName, options = { requestOptions: {} }) {
|
|
193
|
+
var _a;
|
|
177
194
|
return context
|
|
178
|
-
.path("/certificates/
|
|
179
|
-
.
|
|
195
|
+
.path("/certificates/{certificate-name}/backup", certificateName)
|
|
196
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
180
197
|
}
|
|
181
|
-
async function
|
|
198
|
+
async function _backupCertificateDeserialize(result) {
|
|
182
199
|
const expectedStatuses = ["200"];
|
|
183
200
|
if (!expectedStatuses.includes(result.status)) {
|
|
184
|
-
|
|
201
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
202
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
203
|
+
throw error;
|
|
185
204
|
}
|
|
186
|
-
return (0, models_js_1.
|
|
205
|
+
return (0, models_js_1.backupCertificateResultDeserializer)(result.body);
|
|
187
206
|
}
|
|
188
|
-
/**
|
|
189
|
-
function
|
|
190
|
-
|
|
207
|
+
/** Requests that a backup of the specified certificate be downloaded to the client. All versions of the certificate will be downloaded. This operation requires the certificates/backup permission. */
|
|
208
|
+
async function backupCertificate(context, certificateName, options = { requestOptions: {} }) {
|
|
209
|
+
const result = await _backupCertificateSend(context, certificateName, options);
|
|
210
|
+
return _backupCertificateDeserialize(result);
|
|
191
211
|
}
|
|
192
|
-
function
|
|
212
|
+
function _mergeCertificateSend(context, certificateName, parameters, options = { requestOptions: {} }) {
|
|
213
|
+
var _a;
|
|
193
214
|
return context
|
|
194
|
-
.path("/certificates/
|
|
195
|
-
.
|
|
215
|
+
.path("/certificates/{certificate-name}/pending/merge", certificateName)
|
|
216
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion }, body: (0, models_js_1.certificateMergeParametersSerializer)(parameters) }));
|
|
196
217
|
}
|
|
197
|
-
async function
|
|
198
|
-
const expectedStatuses = ["
|
|
218
|
+
async function _mergeCertificateDeserialize(result) {
|
|
219
|
+
const expectedStatuses = ["201"];
|
|
199
220
|
if (!expectedStatuses.includes(result.status)) {
|
|
200
|
-
|
|
221
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
222
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
223
|
+
throw error;
|
|
201
224
|
}
|
|
202
|
-
return (0, models_js_1.
|
|
225
|
+
return (0, models_js_1.certificateBundleDeserializer)(result.body);
|
|
203
226
|
}
|
|
204
|
-
/** The
|
|
205
|
-
async function
|
|
206
|
-
const result = await
|
|
207
|
-
return
|
|
227
|
+
/** The MergeCertificate operation performs the merging of a certificate or certificate chain with a key pair currently available in the service. This operation requires the certificates/create permission. */
|
|
228
|
+
async function mergeCertificate(context, certificateName, parameters, options = { requestOptions: {} }) {
|
|
229
|
+
const result = await _mergeCertificateSend(context, certificateName, parameters, options);
|
|
230
|
+
return _mergeCertificateDeserialize(result);
|
|
208
231
|
}
|
|
209
|
-
function
|
|
232
|
+
function _deleteCertificateOperationSend(context, certificateName, options = { requestOptions: {} }) {
|
|
233
|
+
var _a;
|
|
210
234
|
return context
|
|
211
|
-
.path("/certificates/
|
|
212
|
-
.
|
|
235
|
+
.path("/certificates/{certificate-name}/pending", certificateName)
|
|
236
|
+
.delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
213
237
|
}
|
|
214
|
-
async function
|
|
238
|
+
async function _deleteCertificateOperationDeserialize(result) {
|
|
215
239
|
const expectedStatuses = ["200"];
|
|
216
240
|
if (!expectedStatuses.includes(result.status)) {
|
|
217
|
-
|
|
241
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
242
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
243
|
+
throw error;
|
|
218
244
|
}
|
|
219
|
-
return (0, models_js_1.
|
|
245
|
+
return (0, models_js_1.certificateOperationDeserializer)(result.body);
|
|
220
246
|
}
|
|
221
|
-
/**
|
|
222
|
-
async function
|
|
223
|
-
const result = await
|
|
224
|
-
return
|
|
247
|
+
/** Deletes the creation operation for a specified certificate that is in the process of being created. The certificate is no longer created. This operation requires the certificates/update permission. */
|
|
248
|
+
async function deleteCertificateOperation(context, certificateName, options = { requestOptions: {} }) {
|
|
249
|
+
const result = await _deleteCertificateOperationSend(context, certificateName, options);
|
|
250
|
+
return _deleteCertificateOperationDeserialize(result);
|
|
225
251
|
}
|
|
226
|
-
function
|
|
252
|
+
function _getCertificateOperationSend(context, certificateName, options = { requestOptions: {} }) {
|
|
253
|
+
var _a;
|
|
227
254
|
return context
|
|
228
|
-
.path("/certificates/
|
|
229
|
-
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
255
|
+
.path("/certificates/{certificate-name}/pending", certificateName)
|
|
256
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
230
257
|
}
|
|
231
|
-
async function
|
|
258
|
+
async function _getCertificateOperationDeserialize(result) {
|
|
232
259
|
const expectedStatuses = ["200"];
|
|
233
260
|
if (!expectedStatuses.includes(result.status)) {
|
|
234
|
-
|
|
261
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
262
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
263
|
+
throw error;
|
|
235
264
|
}
|
|
236
|
-
return (0, models_js_1.
|
|
265
|
+
return (0, models_js_1.certificateOperationDeserializer)(result.body);
|
|
237
266
|
}
|
|
238
|
-
/**
|
|
239
|
-
async function
|
|
240
|
-
const result = await
|
|
241
|
-
return
|
|
267
|
+
/** Gets the creation operation associated with a specified certificate. This operation requires the certificates/get permission. */
|
|
268
|
+
async function getCertificateOperation(context, certificateName, options = { requestOptions: {} }) {
|
|
269
|
+
const result = await _getCertificateOperationSend(context, certificateName, options);
|
|
270
|
+
return _getCertificateOperationDeserialize(result);
|
|
242
271
|
}
|
|
243
|
-
function
|
|
272
|
+
function _updateCertificateOperationSend(context, certificateName, certificateOperation, options = { requestOptions: {} }) {
|
|
273
|
+
var _a;
|
|
244
274
|
return context
|
|
245
|
-
.path("/certificates/
|
|
246
|
-
.
|
|
275
|
+
.path("/certificates/{certificate-name}/pending", certificateName)
|
|
276
|
+
.patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion }, body: (0, models_js_1.certificateOperationUpdateParameterSerializer)(certificateOperation) }));
|
|
247
277
|
}
|
|
248
|
-
async function
|
|
278
|
+
async function _updateCertificateOperationDeserialize(result) {
|
|
249
279
|
const expectedStatuses = ["200"];
|
|
250
280
|
if (!expectedStatuses.includes(result.status)) {
|
|
251
|
-
|
|
281
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
282
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
283
|
+
throw error;
|
|
252
284
|
}
|
|
253
|
-
return (0, models_js_1.
|
|
285
|
+
return (0, models_js_1.certificateOperationDeserializer)(result.body);
|
|
254
286
|
}
|
|
255
|
-
/**
|
|
256
|
-
async function
|
|
257
|
-
const result = await
|
|
258
|
-
return
|
|
287
|
+
/** Updates a certificate creation operation that is already in progress. This operation requires the certificates/update permission. */
|
|
288
|
+
async function updateCertificateOperation(context, certificateName, certificateOperation, options = { requestOptions: {} }) {
|
|
289
|
+
const result = await _updateCertificateOperationSend(context, certificateName, certificateOperation, options);
|
|
290
|
+
return _updateCertificateOperationDeserialize(result);
|
|
259
291
|
}
|
|
260
|
-
function
|
|
292
|
+
function _getCertificateSend(context, certificateName, certificateVersion, options = { requestOptions: {} }) {
|
|
293
|
+
var _a;
|
|
261
294
|
return context
|
|
262
|
-
.path("/certificates/{certificate-name}/
|
|
263
|
-
.
|
|
295
|
+
.path("/certificates/{certificate-name}/{certificate-version}", certificateName, certificateVersion)
|
|
296
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
264
297
|
}
|
|
265
|
-
async function
|
|
266
|
-
const expectedStatuses = ["
|
|
298
|
+
async function _getCertificateDeserialize(result) {
|
|
299
|
+
const expectedStatuses = ["200"];
|
|
267
300
|
if (!expectedStatuses.includes(result.status)) {
|
|
268
|
-
|
|
301
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
302
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
303
|
+
throw error;
|
|
269
304
|
}
|
|
270
|
-
return (0, models_js_1.
|
|
305
|
+
return (0, models_js_1.certificateBundleDeserializer)(result.body);
|
|
271
306
|
}
|
|
272
|
-
/**
|
|
273
|
-
async function
|
|
274
|
-
const result = await
|
|
275
|
-
return
|
|
307
|
+
/** Gets information about a specific certificate. This operation requires the certificates/get permission. */
|
|
308
|
+
async function getCertificate(context, certificateName, certificateVersion, options = { requestOptions: {} }) {
|
|
309
|
+
const result = await _getCertificateSend(context, certificateName, certificateVersion, options);
|
|
310
|
+
return _getCertificateDeserialize(result);
|
|
276
311
|
}
|
|
277
|
-
function
|
|
312
|
+
function _updateCertificateSend(context, certificateName, certificateVersion, parameters, options = { requestOptions: {} }) {
|
|
313
|
+
var _a;
|
|
278
314
|
return context
|
|
279
|
-
.path("/certificates/{certificate-name}/
|
|
280
|
-
.
|
|
315
|
+
.path("/certificates/{certificate-name}/{certificate-version}", certificateName, certificateVersion)
|
|
316
|
+
.patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion }, body: (0, models_js_1.certificateUpdateParametersSerializer)(parameters) }));
|
|
281
317
|
}
|
|
282
|
-
async function
|
|
318
|
+
async function _updateCertificateDeserialize(result) {
|
|
283
319
|
const expectedStatuses = ["200"];
|
|
284
320
|
if (!expectedStatuses.includes(result.status)) {
|
|
285
|
-
|
|
321
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
322
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
323
|
+
throw error;
|
|
286
324
|
}
|
|
287
325
|
return (0, models_js_1.certificateBundleDeserializer)(result.body);
|
|
288
326
|
}
|
|
289
|
-
/**
|
|
290
|
-
async function
|
|
291
|
-
const result = await
|
|
292
|
-
return
|
|
327
|
+
/** The UpdateCertificate operation applies the specified update on the given certificate; the only elements updated are the certificate's attributes. This operation requires the certificates/update permission. */
|
|
328
|
+
async function updateCertificate(context, certificateName, certificateVersion, parameters, options = { requestOptions: {} }) {
|
|
329
|
+
const result = await _updateCertificateSend(context, certificateName, certificateVersion, parameters, options);
|
|
330
|
+
return _updateCertificateDeserialize(result);
|
|
293
331
|
}
|
|
294
|
-
function
|
|
332
|
+
function _updateCertificatePolicySend(context, certificateName, certificatePolicy, options = { requestOptions: {} }) {
|
|
333
|
+
var _a;
|
|
295
334
|
return context
|
|
296
|
-
.path("/certificates/{certificate-name}/
|
|
297
|
-
.
|
|
335
|
+
.path("/certificates/{certificate-name}/policy", certificateName)
|
|
336
|
+
.patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion }, body: (0, models_js_1.certificatePolicySerializer)(certificatePolicy) }));
|
|
298
337
|
}
|
|
299
|
-
async function
|
|
338
|
+
async function _updateCertificatePolicyDeserialize(result) {
|
|
300
339
|
const expectedStatuses = ["200"];
|
|
301
340
|
if (!expectedStatuses.includes(result.status)) {
|
|
302
|
-
|
|
341
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
342
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
343
|
+
throw error;
|
|
303
344
|
}
|
|
304
|
-
return (0, models_js_1.
|
|
345
|
+
return (0, models_js_1.certificatePolicyDeserializer)(result.body);
|
|
305
346
|
}
|
|
306
|
-
/**
|
|
307
|
-
function
|
|
308
|
-
|
|
347
|
+
/** Set specified members in the certificate policy. Leave others as null. This operation requires the certificates/update permission. */
|
|
348
|
+
async function updateCertificatePolicy(context, certificateName, certificatePolicy, options = { requestOptions: {} }) {
|
|
349
|
+
const result = await _updateCertificatePolicySend(context, certificateName, certificatePolicy, options);
|
|
350
|
+
return _updateCertificatePolicyDeserialize(result);
|
|
309
351
|
}
|
|
310
352
|
function _getCertificatePolicySend(context, certificateName, options = { requestOptions: {} }) {
|
|
353
|
+
var _a;
|
|
311
354
|
return context
|
|
312
355
|
.path("/certificates/{certificate-name}/policy", certificateName)
|
|
313
|
-
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
356
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
314
357
|
}
|
|
315
358
|
async function _getCertificatePolicyDeserialize(result) {
|
|
316
359
|
const expectedStatuses = ["200"];
|
|
317
360
|
if (!expectedStatuses.includes(result.status)) {
|
|
318
|
-
|
|
361
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
362
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
363
|
+
throw error;
|
|
319
364
|
}
|
|
320
365
|
return (0, models_js_1.certificatePolicyDeserializer)(result.body);
|
|
321
366
|
}
|
|
@@ -324,227 +369,271 @@ async function getCertificatePolicy(context, certificateName, options = { reques
|
|
|
324
369
|
const result = await _getCertificatePolicySend(context, certificateName, options);
|
|
325
370
|
return _getCertificatePolicyDeserialize(result);
|
|
326
371
|
}
|
|
327
|
-
function
|
|
372
|
+
function _getCertificateVersionsSend(context, certificateName, options = { requestOptions: {} }) {
|
|
373
|
+
var _a;
|
|
328
374
|
return context
|
|
329
|
-
.path("/certificates/{certificate-name}/
|
|
330
|
-
.
|
|
375
|
+
.path("/certificates/{certificate-name}/versions", certificateName)
|
|
376
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: {
|
|
377
|
+
"api-version": context.apiVersion,
|
|
378
|
+
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
379
|
+
} }));
|
|
331
380
|
}
|
|
332
|
-
async function
|
|
381
|
+
async function _getCertificateVersionsDeserialize(result) {
|
|
333
382
|
const expectedStatuses = ["200"];
|
|
334
383
|
if (!expectedStatuses.includes(result.status)) {
|
|
335
|
-
|
|
384
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
385
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
386
|
+
throw error;
|
|
336
387
|
}
|
|
337
|
-
return (0, models_js_1.
|
|
388
|
+
return (0, models_js_1._certificateListResultDeserializer)(result.body);
|
|
338
389
|
}
|
|
339
|
-
/**
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
return _updateCertificatePolicyDeserialize(result);
|
|
390
|
+
/** The GetCertificateVersions operation returns the versions of a certificate in the specified key vault. This operation requires the certificates/list permission. */
|
|
391
|
+
function getCertificateVersions(context, certificateName, options = { requestOptions: {} }) {
|
|
392
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _getCertificateVersionsSend(context, certificateName, options), _getCertificateVersionsDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
343
393
|
}
|
|
344
|
-
function
|
|
394
|
+
function _importCertificateSend(context, certificateName, parameters, options = { requestOptions: {} }) {
|
|
395
|
+
var _a;
|
|
345
396
|
return context
|
|
346
|
-
.path("/certificates/{certificate-name}/
|
|
347
|
-
.
|
|
397
|
+
.path("/certificates/{certificate-name}/import", certificateName)
|
|
398
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion }, body: (0, models_js_1.certificateImportParametersSerializer)(parameters) }));
|
|
348
399
|
}
|
|
349
|
-
async function
|
|
400
|
+
async function _importCertificateDeserialize(result) {
|
|
350
401
|
const expectedStatuses = ["200"];
|
|
351
402
|
if (!expectedStatuses.includes(result.status)) {
|
|
352
|
-
|
|
403
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
404
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
405
|
+
throw error;
|
|
353
406
|
}
|
|
354
407
|
return (0, models_js_1.certificateBundleDeserializer)(result.body);
|
|
355
408
|
}
|
|
356
|
-
/**
|
|
357
|
-
async function
|
|
358
|
-
const result = await
|
|
359
|
-
return
|
|
409
|
+
/** Imports an existing valid certificate, containing a private key, into Azure Key Vault. This operation requires the certificates/import permission. The certificate to be imported can be in either PFX or PEM format. If the certificate is in PEM format the PEM file must contain the key as well as x509 certificates. Key Vault will only accept a key in PKCS#8 format. */
|
|
410
|
+
async function importCertificate(context, certificateName, parameters, options = { requestOptions: {} }) {
|
|
411
|
+
const result = await _importCertificateSend(context, certificateName, parameters, options);
|
|
412
|
+
return _importCertificateDeserialize(result);
|
|
360
413
|
}
|
|
361
|
-
function
|
|
414
|
+
function _createCertificateSend(context, certificateName, parameters, options = { requestOptions: {} }) {
|
|
415
|
+
var _a;
|
|
362
416
|
return context
|
|
363
|
-
.path("/certificates/{certificate-name}/
|
|
364
|
-
.
|
|
417
|
+
.path("/certificates/{certificate-name}/create", certificateName)
|
|
418
|
+
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion }, body: (0, models_js_1.certificateCreateParametersSerializer)(parameters) }));
|
|
365
419
|
}
|
|
366
|
-
async function
|
|
367
|
-
const expectedStatuses = ["
|
|
420
|
+
async function _createCertificateDeserialize(result) {
|
|
421
|
+
const expectedStatuses = ["202"];
|
|
368
422
|
if (!expectedStatuses.includes(result.status)) {
|
|
369
|
-
|
|
423
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
424
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
425
|
+
throw error;
|
|
370
426
|
}
|
|
371
|
-
return (0, models_js_1.
|
|
427
|
+
return (0, models_js_1.certificateOperationDeserializer)(result.body);
|
|
372
428
|
}
|
|
373
|
-
/**
|
|
374
|
-
async function
|
|
375
|
-
const result = await
|
|
376
|
-
return
|
|
429
|
+
/** If this is the first version, the certificate resource is created. This operation requires the certificates/create permission. */
|
|
430
|
+
async function createCertificate(context, certificateName, parameters, options = { requestOptions: {} }) {
|
|
431
|
+
const result = await _createCertificateSend(context, certificateName, parameters, options);
|
|
432
|
+
return _createCertificateDeserialize(result);
|
|
377
433
|
}
|
|
378
|
-
function
|
|
434
|
+
function _deleteCertificateIssuerSend(context, issuerName, options = { requestOptions: {} }) {
|
|
435
|
+
var _a;
|
|
379
436
|
return context
|
|
380
|
-
.path("/certificates/{
|
|
381
|
-
.
|
|
437
|
+
.path("/certificates/issuers/{issuer-name}", issuerName)
|
|
438
|
+
.delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
382
439
|
}
|
|
383
|
-
async function
|
|
440
|
+
async function _deleteCertificateIssuerDeserialize(result) {
|
|
384
441
|
const expectedStatuses = ["200"];
|
|
385
442
|
if (!expectedStatuses.includes(result.status)) {
|
|
386
|
-
|
|
443
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
444
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
445
|
+
throw error;
|
|
387
446
|
}
|
|
388
|
-
return (0, models_js_1.
|
|
447
|
+
return (0, models_js_1.issuerBundleDeserializer)(result.body);
|
|
389
448
|
}
|
|
390
|
-
/**
|
|
391
|
-
async function
|
|
392
|
-
const result = await
|
|
393
|
-
return
|
|
449
|
+
/** The DeleteCertificateIssuer operation permanently removes the specified certificate issuer from the vault. This operation requires the certificates/manageissuers/deleteissuers permission. */
|
|
450
|
+
async function deleteCertificateIssuer(context, issuerName, options = { requestOptions: {} }) {
|
|
451
|
+
const result = await _deleteCertificateIssuerSend(context, issuerName, options);
|
|
452
|
+
return _deleteCertificateIssuerDeserialize(result);
|
|
394
453
|
}
|
|
395
|
-
function
|
|
454
|
+
function _getCertificateIssuerSend(context, issuerName, options = { requestOptions: {} }) {
|
|
455
|
+
var _a;
|
|
396
456
|
return context
|
|
397
|
-
.path("/certificates/{
|
|
398
|
-
.get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
457
|
+
.path("/certificates/issuers/{issuer-name}", issuerName)
|
|
458
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
399
459
|
}
|
|
400
|
-
async function
|
|
460
|
+
async function _getCertificateIssuerDeserialize(result) {
|
|
401
461
|
const expectedStatuses = ["200"];
|
|
402
462
|
if (!expectedStatuses.includes(result.status)) {
|
|
403
|
-
|
|
463
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
464
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
465
|
+
throw error;
|
|
404
466
|
}
|
|
405
|
-
return (0, models_js_1.
|
|
467
|
+
return (0, models_js_1.issuerBundleDeserializer)(result.body);
|
|
406
468
|
}
|
|
407
|
-
/**
|
|
408
|
-
async function
|
|
409
|
-
const result = await
|
|
410
|
-
return
|
|
469
|
+
/** The GetCertificateIssuer operation returns the specified certificate issuer resources in the specified key vault. This operation requires the certificates/manageissuers/getissuers permission. */
|
|
470
|
+
async function getCertificateIssuer(context, issuerName, options = { requestOptions: {} }) {
|
|
471
|
+
const result = await _getCertificateIssuerSend(context, issuerName, options);
|
|
472
|
+
return _getCertificateIssuerDeserialize(result);
|
|
411
473
|
}
|
|
412
|
-
function
|
|
474
|
+
function _updateCertificateIssuerSend(context, issuerName, parameter, options = { requestOptions: {} }) {
|
|
475
|
+
var _a;
|
|
413
476
|
return context
|
|
414
|
-
.path("/certificates/{
|
|
415
|
-
.
|
|
477
|
+
.path("/certificates/issuers/{issuer-name}", issuerName)
|
|
478
|
+
.patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion }, body: (0, models_js_1.certificateIssuerUpdateParametersSerializer)(parameter) }));
|
|
416
479
|
}
|
|
417
|
-
async function
|
|
480
|
+
async function _updateCertificateIssuerDeserialize(result) {
|
|
418
481
|
const expectedStatuses = ["200"];
|
|
419
482
|
if (!expectedStatuses.includes(result.status)) {
|
|
420
|
-
|
|
483
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
484
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
485
|
+
throw error;
|
|
421
486
|
}
|
|
422
|
-
return (0, models_js_1.
|
|
487
|
+
return (0, models_js_1.issuerBundleDeserializer)(result.body);
|
|
423
488
|
}
|
|
424
|
-
/**
|
|
425
|
-
async function
|
|
426
|
-
const result = await
|
|
427
|
-
return
|
|
489
|
+
/** The UpdateCertificateIssuer operation performs an update on the specified certificate issuer entity. This operation requires the certificates/setissuers permission. */
|
|
490
|
+
async function updateCertificateIssuer(context, issuerName, parameter, options = { requestOptions: {} }) {
|
|
491
|
+
const result = await _updateCertificateIssuerSend(context, issuerName, parameter, options);
|
|
492
|
+
return _updateCertificateIssuerDeserialize(result);
|
|
428
493
|
}
|
|
429
|
-
function
|
|
494
|
+
function _setCertificateIssuerSend(context, issuerName, parameter, options = { requestOptions: {} }) {
|
|
495
|
+
var _a;
|
|
430
496
|
return context
|
|
431
|
-
.path("/certificates/{
|
|
432
|
-
.
|
|
497
|
+
.path("/certificates/issuers/{issuer-name}", issuerName)
|
|
498
|
+
.put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion }, body: (0, models_js_1.certificateIssuerSetParametersSerializer)(parameter) }));
|
|
433
499
|
}
|
|
434
|
-
async function
|
|
435
|
-
const expectedStatuses = ["
|
|
500
|
+
async function _setCertificateIssuerDeserialize(result) {
|
|
501
|
+
const expectedStatuses = ["200"];
|
|
436
502
|
if (!expectedStatuses.includes(result.status)) {
|
|
437
|
-
|
|
503
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
504
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
505
|
+
throw error;
|
|
438
506
|
}
|
|
439
|
-
return (0, models_js_1.
|
|
507
|
+
return (0, models_js_1.issuerBundleDeserializer)(result.body);
|
|
440
508
|
}
|
|
441
|
-
/** The
|
|
442
|
-
async function
|
|
443
|
-
const result = await
|
|
444
|
-
return
|
|
509
|
+
/** The SetCertificateIssuer operation adds or updates the specified certificate issuer. This operation requires the certificates/setissuers permission. */
|
|
510
|
+
async function setCertificateIssuer(context, issuerName, parameter, options = { requestOptions: {} }) {
|
|
511
|
+
const result = await _setCertificateIssuerSend(context, issuerName, parameter, options);
|
|
512
|
+
return _setCertificateIssuerDeserialize(result);
|
|
445
513
|
}
|
|
446
|
-
function
|
|
514
|
+
function _getCertificateIssuersSend(context, options = { requestOptions: {} }) {
|
|
515
|
+
var _a;
|
|
447
516
|
return context
|
|
448
|
-
.path("/certificates/
|
|
449
|
-
.
|
|
517
|
+
.path("/certificates/issuers")
|
|
518
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: {
|
|
519
|
+
"api-version": context.apiVersion,
|
|
520
|
+
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
521
|
+
} }));
|
|
450
522
|
}
|
|
451
|
-
async function
|
|
523
|
+
async function _getCertificateIssuersDeserialize(result) {
|
|
452
524
|
const expectedStatuses = ["200"];
|
|
453
525
|
if (!expectedStatuses.includes(result.status)) {
|
|
454
|
-
|
|
526
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
527
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
528
|
+
throw error;
|
|
455
529
|
}
|
|
456
|
-
return (0, models_js_1.
|
|
530
|
+
return (0, models_js_1._certificateIssuerListResultDeserializer)(result.body);
|
|
457
531
|
}
|
|
458
|
-
/**
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
return _backupCertificateDeserialize(result);
|
|
532
|
+
/** The GetCertificateIssuers operation returns the set of certificate issuer resources in the specified key vault. This operation requires the certificates/manageissuers/getissuers permission. */
|
|
533
|
+
function getCertificateIssuers(context, options = { requestOptions: {} }) {
|
|
534
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _getCertificateIssuersSend(context, options), _getCertificateIssuersDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
462
535
|
}
|
|
463
|
-
function
|
|
536
|
+
function _deleteCertificateContactsSend(context, options = { requestOptions: {} }) {
|
|
537
|
+
var _a;
|
|
464
538
|
return context
|
|
465
|
-
.path("/certificates/
|
|
466
|
-
.
|
|
539
|
+
.path("/certificates/contacts")
|
|
540
|
+
.delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
467
541
|
}
|
|
468
|
-
async function
|
|
542
|
+
async function _deleteCertificateContactsDeserialize(result) {
|
|
469
543
|
const expectedStatuses = ["200"];
|
|
470
544
|
if (!expectedStatuses.includes(result.status)) {
|
|
471
|
-
|
|
545
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
546
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
547
|
+
throw error;
|
|
472
548
|
}
|
|
473
|
-
return (0, models_js_1.
|
|
549
|
+
return (0, models_js_1.contactsDeserializer)(result.body);
|
|
474
550
|
}
|
|
475
|
-
/**
|
|
476
|
-
async function
|
|
477
|
-
const result = await
|
|
478
|
-
return
|
|
551
|
+
/** Deletes the certificate contacts for a specified key vault certificate. This operation requires the certificates/managecontacts permission. */
|
|
552
|
+
async function deleteCertificateContacts(context, options = { requestOptions: {} }) {
|
|
553
|
+
const result = await _deleteCertificateContactsSend(context, options);
|
|
554
|
+
return _deleteCertificateContactsDeserialize(result);
|
|
479
555
|
}
|
|
480
|
-
function
|
|
556
|
+
function _getCertificateContactsSend(context, options = { requestOptions: {} }) {
|
|
557
|
+
var _a;
|
|
481
558
|
return context
|
|
482
|
-
.path("/
|
|
483
|
-
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { queryParameters: {
|
|
484
|
-
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
485
|
-
includePending: options === null || options === void 0 ? void 0 : options.includePending,
|
|
486
|
-
} }));
|
|
559
|
+
.path("/certificates/contacts")
|
|
560
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
487
561
|
}
|
|
488
|
-
async function
|
|
562
|
+
async function _getCertificateContactsDeserialize(result) {
|
|
489
563
|
const expectedStatuses = ["200"];
|
|
490
564
|
if (!expectedStatuses.includes(result.status)) {
|
|
491
|
-
|
|
565
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
566
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
567
|
+
throw error;
|
|
492
568
|
}
|
|
493
|
-
return (0, models_js_1.
|
|
569
|
+
return (0, models_js_1.contactsDeserializer)(result.body);
|
|
494
570
|
}
|
|
495
|
-
/** The
|
|
496
|
-
function
|
|
497
|
-
|
|
571
|
+
/** The GetCertificateContacts operation returns the set of certificate contact resources in the specified key vault. This operation requires the certificates/managecontacts permission. */
|
|
572
|
+
async function getCertificateContacts(context, options = { requestOptions: {} }) {
|
|
573
|
+
const result = await _getCertificateContactsSend(context, options);
|
|
574
|
+
return _getCertificateContactsDeserialize(result);
|
|
498
575
|
}
|
|
499
|
-
function
|
|
576
|
+
function _setCertificateContactsSend(context, contacts, options = { requestOptions: {} }) {
|
|
577
|
+
var _a;
|
|
500
578
|
return context
|
|
501
|
-
.path("/
|
|
502
|
-
.
|
|
579
|
+
.path("/certificates/contacts")
|
|
580
|
+
.put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion }, body: (0, models_js_1.contactsSerializer)(contacts) }));
|
|
503
581
|
}
|
|
504
|
-
async function
|
|
582
|
+
async function _setCertificateContactsDeserialize(result) {
|
|
505
583
|
const expectedStatuses = ["200"];
|
|
506
584
|
if (!expectedStatuses.includes(result.status)) {
|
|
507
|
-
|
|
585
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
586
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
587
|
+
throw error;
|
|
508
588
|
}
|
|
509
|
-
return (0, models_js_1.
|
|
589
|
+
return (0, models_js_1.contactsDeserializer)(result.body);
|
|
510
590
|
}
|
|
511
|
-
/**
|
|
512
|
-
async function
|
|
513
|
-
const result = await
|
|
514
|
-
return
|
|
591
|
+
/** Sets the certificate contacts for the specified key vault. This operation requires the certificates/managecontacts permission. */
|
|
592
|
+
async function setCertificateContacts(context, contacts, options = { requestOptions: {} }) {
|
|
593
|
+
const result = await _setCertificateContactsSend(context, contacts, options);
|
|
594
|
+
return _setCertificateContactsDeserialize(result);
|
|
515
595
|
}
|
|
516
|
-
function
|
|
596
|
+
function _deleteCertificateSend(context, certificateName, options = { requestOptions: {} }) {
|
|
597
|
+
var _a;
|
|
517
598
|
return context
|
|
518
|
-
.path("/
|
|
519
|
-
.delete(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
|
|
599
|
+
.path("/certificates/{certificate-name}", certificateName)
|
|
600
|
+
.delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: { "api-version": context.apiVersion } }));
|
|
520
601
|
}
|
|
521
|
-
async function
|
|
522
|
-
const expectedStatuses = ["
|
|
602
|
+
async function _deleteCertificateDeserialize(result) {
|
|
603
|
+
const expectedStatuses = ["200"];
|
|
523
604
|
if (!expectedStatuses.includes(result.status)) {
|
|
524
|
-
|
|
605
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
606
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
607
|
+
throw error;
|
|
525
608
|
}
|
|
526
|
-
return;
|
|
609
|
+
return (0, models_js_1.deletedCertificateBundleDeserializer)(result.body);
|
|
527
610
|
}
|
|
528
|
-
/**
|
|
529
|
-
async function
|
|
530
|
-
const result = await
|
|
531
|
-
return
|
|
611
|
+
/** Deletes all versions of a certificate object along with its associated policy. Delete certificate cannot be used to remove individual versions of a certificate object. This operation requires the certificates/delete permission. */
|
|
612
|
+
async function deleteCertificate(context, certificateName, options = { requestOptions: {} }) {
|
|
613
|
+
const result = await _deleteCertificateSend(context, certificateName, options);
|
|
614
|
+
return _deleteCertificateDeserialize(result);
|
|
532
615
|
}
|
|
533
|
-
function
|
|
616
|
+
function _getCertificatesSend(context, options = { requestOptions: {} }) {
|
|
617
|
+
var _a;
|
|
534
618
|
return context
|
|
535
|
-
.path("/
|
|
536
|
-
.
|
|
619
|
+
.path("/certificates")
|
|
620
|
+
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_a = options.requestOptions) === null || _a === void 0 ? void 0 : _a.headers), queryParameters: {
|
|
621
|
+
"api-version": context.apiVersion,
|
|
622
|
+
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
|
623
|
+
includePending: options === null || options === void 0 ? void 0 : options.includePending,
|
|
624
|
+
} }));
|
|
537
625
|
}
|
|
538
|
-
async function
|
|
626
|
+
async function _getCertificatesDeserialize(result) {
|
|
539
627
|
const expectedStatuses = ["200"];
|
|
540
628
|
if (!expectedStatuses.includes(result.status)) {
|
|
541
|
-
|
|
629
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
630
|
+
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
|
631
|
+
throw error;
|
|
542
632
|
}
|
|
543
|
-
return (0, models_js_1.
|
|
633
|
+
return (0, models_js_1._certificateListResultDeserializer)(result.body);
|
|
544
634
|
}
|
|
545
|
-
/** The
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
return _recoverDeletedCertificateDeserialize(result);
|
|
635
|
+
/** The GetCertificates operation returns the set of certificates resources in the specified key vault. This operation requires the certificates/list permission. */
|
|
636
|
+
function getCertificates(context, options = { requestOptions: {} }) {
|
|
637
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _getCertificatesSend(context, options), _getCertificatesDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
549
638
|
}
|
|
550
639
|
//# sourceMappingURL=operations.js.map
|