@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KeyVaultClientOptionalParams,
|
|
1
|
+
import { KeyVaultClientOptionalParams, RecoverDeletedCertificateOptionalParams, PurgeDeletedCertificateOptionalParams, GetDeletedCertificateOptionalParams, GetDeletedCertificatesOptionalParams, RestoreCertificateOptionalParams, BackupCertificateOptionalParams, MergeCertificateOptionalParams, DeleteCertificateOperationOptionalParams, GetCertificateOperationOptionalParams, UpdateCertificateOperationOptionalParams, GetCertificateOptionalParams, UpdateCertificateOptionalParams, UpdateCertificatePolicyOptionalParams, GetCertificatePolicyOptionalParams, GetCertificateVersionsOptionalParams, ImportCertificateOptionalParams, CreateCertificateOptionalParams, DeleteCertificateIssuerOptionalParams, GetCertificateIssuerOptionalParams, UpdateCertificateIssuerOptionalParams, SetCertificateIssuerOptionalParams, GetCertificateIssuersOptionalParams, DeleteCertificateContactsOptionalParams, GetCertificateContactsOptionalParams, SetCertificateContactsOptionalParams, DeleteCertificateOptionalParams, GetCertificatesOptionalParams } from "./api/index.js";
|
|
2
2
|
import { CertificateItem, DeletedCertificateBundle, CertificatePolicy, Contacts, CertificateIssuerItem, CertificateIssuerSetParameters, IssuerBundle, CertificateIssuerUpdateParameters, CertificateCreateParameters, CertificateOperation, CertificateImportParameters, CertificateBundle, CertificateUpdateParameters, CertificateOperationUpdateParameter, CertificateMergeParameters, BackupCertificateResult, CertificateRestoreParameters, DeletedCertificateItem } from "./models/models.js";
|
|
3
3
|
import { PagedAsyncIterableIterator } from "./static-helpers/pagingHelpers.js";
|
|
4
4
|
import { Pipeline } from "@azure/core-rest-pipeline";
|
|
@@ -9,60 +9,60 @@ export declare class KeyVaultClient {
|
|
|
9
9
|
/** The pipeline used by this client to make requests */
|
|
10
10
|
readonly pipeline: Pipeline;
|
|
11
11
|
/** The key vault client performs cryptographic key operations and vault operations against the Key Vault service. */
|
|
12
|
-
constructor(
|
|
13
|
-
/** The GetCertificates operation returns the set of certificates resources in the specified key vault. This operation requires the certificates/list permission. */
|
|
14
|
-
getCertificates(options?: GetCertificatesOptionalParams): PagedAsyncIterableIterator<CertificateItem>;
|
|
15
|
-
/** 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. */
|
|
16
|
-
deleteCertificate(certificateName: string, options?: DeleteCertificateOptionalParams): Promise<DeletedCertificateBundle>;
|
|
17
|
-
/** Sets the certificate contacts for the specified key vault. This operation requires the certificates/managecontacts permission. */
|
|
18
|
-
setCertificateContacts(contacts: Contacts, options?: SetCertificateContactsOptionalParams): Promise<Contacts>;
|
|
19
|
-
/** The GetCertificateContacts operation returns the set of certificate contact resources in the specified key vault. This operation requires the certificates/managecontacts permission. */
|
|
20
|
-
getCertificateContacts(options?: GetCertificateContactsOptionalParams): Promise<Contacts>;
|
|
21
|
-
/** Deletes the certificate contacts for a specified key vault certificate. This operation requires the certificates/managecontacts permission. */
|
|
22
|
-
deleteCertificateContacts(options?: DeleteCertificateContactsOptionalParams): Promise<Contacts>;
|
|
23
|
-
/** The GetCertificateIssuers operation returns the set of certificate issuer resources in the specified key vault. This operation requires the certificates/manageissuers/getissuers permission. */
|
|
24
|
-
getCertificateIssuers(options?: GetCertificateIssuersOptionalParams): PagedAsyncIterableIterator<CertificateIssuerItem>;
|
|
25
|
-
/** The SetCertificateIssuer operation adds or updates the specified certificate issuer. This operation requires the certificates/setissuers permission. */
|
|
26
|
-
setCertificateIssuer(issuerName: string, parameter: CertificateIssuerSetParameters, options?: SetCertificateIssuerOptionalParams): Promise<IssuerBundle>;
|
|
27
|
-
/** The UpdateCertificateIssuer operation performs an update on the specified certificate issuer entity. This operation requires the certificates/setissuers permission. */
|
|
28
|
-
updateCertificateIssuer(issuerName: string, parameter: CertificateIssuerUpdateParameters, options?: UpdateCertificateIssuerOptionalParams): Promise<IssuerBundle>;
|
|
29
|
-
/** The GetCertificateIssuer operation returns the specified certificate issuer resources in the specified key vault. This operation requires the certificates/manageissuers/getissuers permission. */
|
|
30
|
-
getCertificateIssuer(issuerName: string, options?: GetCertificateIssuerOptionalParams): Promise<IssuerBundle>;
|
|
31
|
-
/** The DeleteCertificateIssuer operation permanently removes the specified certificate issuer from the vault. This operation requires the certificates/manageissuers/deleteissuers permission. */
|
|
32
|
-
deleteCertificateIssuer(issuerName: string, options?: DeleteCertificateIssuerOptionalParams): Promise<IssuerBundle>;
|
|
33
|
-
/** If this is the first version, the certificate resource is created. This operation requires the certificates/create permission. */
|
|
34
|
-
createCertificate(certificateName: string, parameters: CertificateCreateParameters, options?: CreateCertificateOptionalParams): Promise<CertificateOperation>;
|
|
35
|
-
/** 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. */
|
|
36
|
-
importCertificate(certificateName: string, parameters: CertificateImportParameters, options?: ImportCertificateOptionalParams): Promise<CertificateBundle>;
|
|
37
|
-
/** The GetCertificateVersions operation returns the versions of a certificate in the specified key vault. This operation requires the certificates/list permission. */
|
|
38
|
-
getCertificateVersions(certificateName: string, options?: GetCertificateVersionsOptionalParams): PagedAsyncIterableIterator<CertificateItem>;
|
|
39
|
-
/** The GetCertificatePolicy operation returns the specified certificate policy resources in the specified key vault. This operation requires the certificates/get permission. */
|
|
40
|
-
getCertificatePolicy(certificateName: string, options?: GetCertificatePolicyOptionalParams): Promise<CertificatePolicy>;
|
|
41
|
-
/** Set specified members in the certificate policy. Leave others as null. This operation requires the certificates/update permission. */
|
|
42
|
-
updateCertificatePolicy(certificateName: string, certificatePolicy: CertificatePolicy, options?: UpdateCertificatePolicyOptionalParams): Promise<CertificatePolicy>;
|
|
43
|
-
/** 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. */
|
|
44
|
-
updateCertificate(certificateName: string, certificateVersion: string, parameters: CertificateUpdateParameters, options?: UpdateCertificateOptionalParams): Promise<CertificateBundle>;
|
|
45
|
-
/** Gets information about a specific certificate. This operation requires the certificates/get permission. */
|
|
46
|
-
getCertificate(certificateName: string, certificateVersion: string, options?: GetCertificateOptionalParams): Promise<CertificateBundle>;
|
|
47
|
-
/** Updates a certificate creation operation that is already in progress. This operation requires the certificates/update permission. */
|
|
48
|
-
updateCertificateOperation(certificateName: string, certificateOperation: CertificateOperationUpdateParameter, options?: UpdateCertificateOperationOptionalParams): Promise<CertificateOperation>;
|
|
49
|
-
/** Gets the creation operation associated with a specified certificate. This operation requires the certificates/get permission. */
|
|
50
|
-
getCertificateOperation(certificateName: string, options?: GetCertificateOperationOptionalParams): Promise<CertificateOperation>;
|
|
51
|
-
/** 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. */
|
|
52
|
-
deleteCertificateOperation(certificateName: string, options?: DeleteCertificateOperationOptionalParams): Promise<CertificateOperation>;
|
|
53
|
-
/** 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. */
|
|
54
|
-
mergeCertificate(certificateName: string, parameters: CertificateMergeParameters, options?: MergeCertificateOptionalParams): Promise<CertificateBundle>;
|
|
55
|
-
/** 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. */
|
|
56
|
-
backupCertificate(certificateName: string, options?: BackupCertificateOptionalParams): Promise<BackupCertificateResult>;
|
|
57
|
-
/** Restores a backed up certificate, and all its versions, to a vault. This operation requires the certificates/restore permission. */
|
|
58
|
-
restoreCertificate(parameters: CertificateRestoreParameters, options?: RestoreCertificateOptionalParams): Promise<CertificateBundle>;
|
|
59
|
-
/** 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. */
|
|
60
|
-
getDeletedCertificates(options?: GetDeletedCertificatesOptionalParams): PagedAsyncIterableIterator<DeletedCertificateItem>;
|
|
61
|
-
/** 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. */
|
|
62
|
-
getDeletedCertificate(certificateName: string, options?: GetDeletedCertificateOptionalParams): Promise<DeletedCertificateBundle>;
|
|
63
|
-
/** 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. */
|
|
64
|
-
purgeDeletedCertificate(certificateName: string, options?: PurgeDeletedCertificateOptionalParams): Promise<void>;
|
|
12
|
+
constructor(endpointParam: string, credential: TokenCredential, options?: KeyVaultClientOptionalParams);
|
|
65
13
|
/** 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. */
|
|
66
14
|
recoverDeletedCertificate(certificateName: string, options?: RecoverDeletedCertificateOptionalParams): Promise<CertificateBundle>;
|
|
15
|
+
/** 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. */
|
|
16
|
+
purgeDeletedCertificate(certificateName: string, options?: PurgeDeletedCertificateOptionalParams): Promise<void>;
|
|
17
|
+
/** 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. */
|
|
18
|
+
getDeletedCertificate(certificateName: string, options?: GetDeletedCertificateOptionalParams): Promise<DeletedCertificateBundle>;
|
|
19
|
+
/** 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. */
|
|
20
|
+
getDeletedCertificates(options?: GetDeletedCertificatesOptionalParams): PagedAsyncIterableIterator<DeletedCertificateItem>;
|
|
21
|
+
/** Restores a backed up certificate, and all its versions, to a vault. This operation requires the certificates/restore permission. */
|
|
22
|
+
restoreCertificate(parameters: CertificateRestoreParameters, options?: RestoreCertificateOptionalParams): Promise<CertificateBundle>;
|
|
23
|
+
/** 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. */
|
|
24
|
+
backupCertificate(certificateName: string, options?: BackupCertificateOptionalParams): Promise<BackupCertificateResult>;
|
|
25
|
+
/** 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. */
|
|
26
|
+
mergeCertificate(certificateName: string, parameters: CertificateMergeParameters, options?: MergeCertificateOptionalParams): Promise<CertificateBundle>;
|
|
27
|
+
/** 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. */
|
|
28
|
+
deleteCertificateOperation(certificateName: string, options?: DeleteCertificateOperationOptionalParams): Promise<CertificateOperation>;
|
|
29
|
+
/** Gets the creation operation associated with a specified certificate. This operation requires the certificates/get permission. */
|
|
30
|
+
getCertificateOperation(certificateName: string, options?: GetCertificateOperationOptionalParams): Promise<CertificateOperation>;
|
|
31
|
+
/** Updates a certificate creation operation that is already in progress. This operation requires the certificates/update permission. */
|
|
32
|
+
updateCertificateOperation(certificateName: string, certificateOperation: CertificateOperationUpdateParameter, options?: UpdateCertificateOperationOptionalParams): Promise<CertificateOperation>;
|
|
33
|
+
/** Gets information about a specific certificate. This operation requires the certificates/get permission. */
|
|
34
|
+
getCertificate(certificateName: string, certificateVersion: string, options?: GetCertificateOptionalParams): Promise<CertificateBundle>;
|
|
35
|
+
/** 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. */
|
|
36
|
+
updateCertificate(certificateName: string, certificateVersion: string, parameters: CertificateUpdateParameters, options?: UpdateCertificateOptionalParams): Promise<CertificateBundle>;
|
|
37
|
+
/** Set specified members in the certificate policy. Leave others as null. This operation requires the certificates/update permission. */
|
|
38
|
+
updateCertificatePolicy(certificateName: string, certificatePolicy: CertificatePolicy, options?: UpdateCertificatePolicyOptionalParams): Promise<CertificatePolicy>;
|
|
39
|
+
/** The GetCertificatePolicy operation returns the specified certificate policy resources in the specified key vault. This operation requires the certificates/get permission. */
|
|
40
|
+
getCertificatePolicy(certificateName: string, options?: GetCertificatePolicyOptionalParams): Promise<CertificatePolicy>;
|
|
41
|
+
/** The GetCertificateVersions operation returns the versions of a certificate in the specified key vault. This operation requires the certificates/list permission. */
|
|
42
|
+
getCertificateVersions(certificateName: string, options?: GetCertificateVersionsOptionalParams): PagedAsyncIterableIterator<CertificateItem>;
|
|
43
|
+
/** 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. */
|
|
44
|
+
importCertificate(certificateName: string, parameters: CertificateImportParameters, options?: ImportCertificateOptionalParams): Promise<CertificateBundle>;
|
|
45
|
+
/** If this is the first version, the certificate resource is created. This operation requires the certificates/create permission. */
|
|
46
|
+
createCertificate(certificateName: string, parameters: CertificateCreateParameters, options?: CreateCertificateOptionalParams): Promise<CertificateOperation>;
|
|
47
|
+
/** The DeleteCertificateIssuer operation permanently removes the specified certificate issuer from the vault. This operation requires the certificates/manageissuers/deleteissuers permission. */
|
|
48
|
+
deleteCertificateIssuer(issuerName: string, options?: DeleteCertificateIssuerOptionalParams): Promise<IssuerBundle>;
|
|
49
|
+
/** The GetCertificateIssuer operation returns the specified certificate issuer resources in the specified key vault. This operation requires the certificates/manageissuers/getissuers permission. */
|
|
50
|
+
getCertificateIssuer(issuerName: string, options?: GetCertificateIssuerOptionalParams): Promise<IssuerBundle>;
|
|
51
|
+
/** The UpdateCertificateIssuer operation performs an update on the specified certificate issuer entity. This operation requires the certificates/setissuers permission. */
|
|
52
|
+
updateCertificateIssuer(issuerName: string, parameter: CertificateIssuerUpdateParameters, options?: UpdateCertificateIssuerOptionalParams): Promise<IssuerBundle>;
|
|
53
|
+
/** The SetCertificateIssuer operation adds or updates the specified certificate issuer. This operation requires the certificates/setissuers permission. */
|
|
54
|
+
setCertificateIssuer(issuerName: string, parameter: CertificateIssuerSetParameters, options?: SetCertificateIssuerOptionalParams): Promise<IssuerBundle>;
|
|
55
|
+
/** The GetCertificateIssuers operation returns the set of certificate issuer resources in the specified key vault. This operation requires the certificates/manageissuers/getissuers permission. */
|
|
56
|
+
getCertificateIssuers(options?: GetCertificateIssuersOptionalParams): PagedAsyncIterableIterator<CertificateIssuerItem>;
|
|
57
|
+
/** Deletes the certificate contacts for a specified key vault certificate. This operation requires the certificates/managecontacts permission. */
|
|
58
|
+
deleteCertificateContacts(options?: DeleteCertificateContactsOptionalParams): Promise<Contacts>;
|
|
59
|
+
/** The GetCertificateContacts operation returns the set of certificate contact resources in the specified key vault. This operation requires the certificates/managecontacts permission. */
|
|
60
|
+
getCertificateContacts(options?: GetCertificateContactsOptionalParams): Promise<Contacts>;
|
|
61
|
+
/** Sets the certificate contacts for the specified key vault. This operation requires the certificates/managecontacts permission. */
|
|
62
|
+
setCertificateContacts(contacts: Contacts, options?: SetCertificateContactsOptionalParams): Promise<Contacts>;
|
|
63
|
+
/** 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. */
|
|
64
|
+
deleteCertificate(certificateName: string, options?: DeleteCertificateOptionalParams): Promise<DeletedCertificateBundle>;
|
|
65
|
+
/** The GetCertificates operation returns the set of certificates resources in the specified key vault. This operation requires the certificates/list permission. */
|
|
66
|
+
getCertificates(options?: GetCertificatesOptionalParams): PagedAsyncIterableIterator<CertificateItem>;
|
|
67
67
|
}
|
|
68
68
|
//# sourceMappingURL=keyVaultClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyVaultClient.d.ts","sourceRoot":"","sources":["../../../src/generated/keyVaultClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,4BAA4B,EA4B5B,
|
|
1
|
+
{"version":3,"file":"keyVaultClient.d.ts","sourceRoot":"","sources":["../../../src/generated/keyVaultClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,4BAA4B,EA4B5B,uCAAuC,EACvC,qCAAqC,EACrC,mCAAmC,EACnC,oCAAoC,EACpC,gCAAgC,EAChC,+BAA+B,EAC/B,8BAA8B,EAC9B,wCAAwC,EACxC,qCAAqC,EACrC,wCAAwC,EACxC,4BAA4B,EAC5B,+BAA+B,EAC/B,qCAAqC,EACrC,kCAAkC,EAClC,oCAAoC,EACpC,+BAA+B,EAC/B,+BAA+B,EAC/B,qCAAqC,EACrC,kCAAkC,EAClC,qCAAqC,EACrC,kCAAkC,EAClC,mCAAmC,EACnC,uCAAuC,EACvC,oCAAoC,EACpC,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC9B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,iBAAiB,EACjB,QAAQ,EACR,qBAAqB,EACrB,8BAA8B,EAC9B,YA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O,CAAC,wBAAwB,CAAC;IAIpC,oKAAoK;IACpK,eAAe,CACb,OAAO,GAAE,6BAAsD,GAC9D,0BAA0B,CAAC,eAAe,CAAC;CAG/C"}
|
|
@@ -1,124 +1,124 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { createKeyVault,
|
|
3
|
+
import { createKeyVault, recoverDeletedCertificate, purgeDeletedCertificate, getDeletedCertificate, getDeletedCertificates, restoreCertificate, backupCertificate, mergeCertificate, deleteCertificateOperation, getCertificateOperation, updateCertificateOperation, getCertificate, updateCertificate, updateCertificatePolicy, getCertificatePolicy, getCertificateVersions, importCertificate, createCertificate, deleteCertificateIssuer, getCertificateIssuer, updateCertificateIssuer, setCertificateIssuer, getCertificateIssuers, deleteCertificateContacts, getCertificateContacts, setCertificateContacts, deleteCertificate, getCertificates, } from "./api/index.js";
|
|
4
4
|
export class KeyVaultClient {
|
|
5
5
|
/** The key vault client performs cryptographic key operations and vault operations against the Key Vault service. */
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(endpointParam, credential, options = {}) {
|
|
7
7
|
var _a;
|
|
8
8
|
const prefixFromOptions = (_a = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _a === void 0 ? void 0 : _a.userAgentPrefix;
|
|
9
9
|
const userAgentPrefix = prefixFromOptions
|
|
10
10
|
? `${prefixFromOptions} azsdk-js-client`
|
|
11
11
|
: `azsdk-js-client`;
|
|
12
|
-
this._client = createKeyVault(
|
|
12
|
+
this._client = createKeyVault(endpointParam, credential, Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix } }));
|
|
13
13
|
this.pipeline = this._client.pipeline;
|
|
14
14
|
}
|
|
15
|
-
/** The
|
|
16
|
-
|
|
17
|
-
return
|
|
15
|
+
/** 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. */
|
|
16
|
+
recoverDeletedCertificate(certificateName, options = { requestOptions: {} }) {
|
|
17
|
+
return recoverDeletedCertificate(this._client, certificateName, options);
|
|
18
18
|
}
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
return
|
|
19
|
+
/** 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. */
|
|
20
|
+
purgeDeletedCertificate(certificateName, options = { requestOptions: {} }) {
|
|
21
|
+
return purgeDeletedCertificate(this._client, certificateName, options);
|
|
22
22
|
}
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
return
|
|
23
|
+
/** 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. */
|
|
24
|
+
getDeletedCertificate(certificateName, options = { requestOptions: {} }) {
|
|
25
|
+
return getDeletedCertificate(this._client, certificateName, options);
|
|
26
26
|
}
|
|
27
|
-
/** The
|
|
28
|
-
|
|
29
|
-
return
|
|
27
|
+
/** 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. */
|
|
28
|
+
getDeletedCertificates(options = { requestOptions: {} }) {
|
|
29
|
+
return getDeletedCertificates(this._client, options);
|
|
30
30
|
}
|
|
31
|
-
/**
|
|
32
|
-
|
|
33
|
-
return
|
|
31
|
+
/** Restores a backed up certificate, and all its versions, to a vault. This operation requires the certificates/restore permission. */
|
|
32
|
+
restoreCertificate(parameters, options = { requestOptions: {} }) {
|
|
33
|
+
return restoreCertificate(this._client, parameters, options);
|
|
34
34
|
}
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
return
|
|
35
|
+
/** 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. */
|
|
36
|
+
backupCertificate(certificateName, options = { requestOptions: {} }) {
|
|
37
|
+
return backupCertificate(this._client, certificateName, options);
|
|
38
38
|
}
|
|
39
|
-
/** The
|
|
40
|
-
|
|
41
|
-
return
|
|
39
|
+
/** 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. */
|
|
40
|
+
mergeCertificate(certificateName, parameters, options = { requestOptions: {} }) {
|
|
41
|
+
return mergeCertificate(this._client, certificateName, parameters, options);
|
|
42
42
|
}
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
-
return
|
|
43
|
+
/** 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. */
|
|
44
|
+
deleteCertificateOperation(certificateName, options = { requestOptions: {} }) {
|
|
45
|
+
return deleteCertificateOperation(this._client, certificateName, options);
|
|
46
46
|
}
|
|
47
|
-
/**
|
|
48
|
-
|
|
49
|
-
return
|
|
47
|
+
/** Gets the creation operation associated with a specified certificate. This operation requires the certificates/get permission. */
|
|
48
|
+
getCertificateOperation(certificateName, options = { requestOptions: {} }) {
|
|
49
|
+
return getCertificateOperation(this._client, certificateName, options);
|
|
50
50
|
}
|
|
51
|
-
/**
|
|
52
|
-
|
|
53
|
-
return
|
|
51
|
+
/** Updates a certificate creation operation that is already in progress. This operation requires the certificates/update permission. */
|
|
52
|
+
updateCertificateOperation(certificateName, certificateOperation, options = { requestOptions: {} }) {
|
|
53
|
+
return updateCertificateOperation(this._client, certificateName, certificateOperation, options);
|
|
54
54
|
}
|
|
55
|
-
/**
|
|
56
|
-
|
|
57
|
-
return
|
|
55
|
+
/** Gets information about a specific certificate. This operation requires the certificates/get permission. */
|
|
56
|
+
getCertificate(certificateName, certificateVersion, options = { requestOptions: {} }) {
|
|
57
|
+
return getCertificate(this._client, certificateName, certificateVersion, options);
|
|
58
58
|
}
|
|
59
|
-
/**
|
|
60
|
-
|
|
61
|
-
return
|
|
59
|
+
/** 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. */
|
|
60
|
+
updateCertificate(certificateName, certificateVersion, parameters, options = { requestOptions: {} }) {
|
|
61
|
+
return updateCertificate(this._client, certificateName, certificateVersion, parameters, options);
|
|
62
62
|
}
|
|
63
|
-
/**
|
|
64
|
-
|
|
65
|
-
return
|
|
63
|
+
/** Set specified members in the certificate policy. Leave others as null. This operation requires the certificates/update permission. */
|
|
64
|
+
updateCertificatePolicy(certificateName, certificatePolicy, options = { requestOptions: {} }) {
|
|
65
|
+
return updateCertificatePolicy(this._client, certificateName, certificatePolicy, options);
|
|
66
66
|
}
|
|
67
67
|
/** The GetCertificatePolicy operation returns the specified certificate policy resources in the specified key vault. This operation requires the certificates/get permission. */
|
|
68
68
|
getCertificatePolicy(certificateName, options = { requestOptions: {} }) {
|
|
69
69
|
return getCertificatePolicy(this._client, certificateName, options);
|
|
70
70
|
}
|
|
71
|
-
/**
|
|
72
|
-
|
|
73
|
-
return
|
|
71
|
+
/** The GetCertificateVersions operation returns the versions of a certificate in the specified key vault. This operation requires the certificates/list permission. */
|
|
72
|
+
getCertificateVersions(certificateName, options = { requestOptions: {} }) {
|
|
73
|
+
return getCertificateVersions(this._client, certificateName, options);
|
|
74
74
|
}
|
|
75
|
-
/**
|
|
76
|
-
|
|
77
|
-
return
|
|
75
|
+
/** 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. */
|
|
76
|
+
importCertificate(certificateName, parameters, options = { requestOptions: {} }) {
|
|
77
|
+
return importCertificate(this._client, certificateName, parameters, options);
|
|
78
78
|
}
|
|
79
|
-
/**
|
|
80
|
-
|
|
81
|
-
return
|
|
79
|
+
/** If this is the first version, the certificate resource is created. This operation requires the certificates/create permission. */
|
|
80
|
+
createCertificate(certificateName, parameters, options = { requestOptions: {} }) {
|
|
81
|
+
return createCertificate(this._client, certificateName, parameters, options);
|
|
82
82
|
}
|
|
83
|
-
/**
|
|
84
|
-
|
|
85
|
-
return
|
|
83
|
+
/** The DeleteCertificateIssuer operation permanently removes the specified certificate issuer from the vault. This operation requires the certificates/manageissuers/deleteissuers permission. */
|
|
84
|
+
deleteCertificateIssuer(issuerName, options = { requestOptions: {} }) {
|
|
85
|
+
return deleteCertificateIssuer(this._client, issuerName, options);
|
|
86
86
|
}
|
|
87
|
-
/**
|
|
88
|
-
|
|
89
|
-
return
|
|
87
|
+
/** The GetCertificateIssuer operation returns the specified certificate issuer resources in the specified key vault. This operation requires the certificates/manageissuers/getissuers permission. */
|
|
88
|
+
getCertificateIssuer(issuerName, options = { requestOptions: {} }) {
|
|
89
|
+
return getCertificateIssuer(this._client, issuerName, options);
|
|
90
90
|
}
|
|
91
|
-
/**
|
|
92
|
-
|
|
93
|
-
return
|
|
91
|
+
/** The UpdateCertificateIssuer operation performs an update on the specified certificate issuer entity. This operation requires the certificates/setissuers permission. */
|
|
92
|
+
updateCertificateIssuer(issuerName, parameter, options = { requestOptions: {} }) {
|
|
93
|
+
return updateCertificateIssuer(this._client, issuerName, parameter, options);
|
|
94
94
|
}
|
|
95
|
-
/** The
|
|
96
|
-
|
|
97
|
-
return
|
|
95
|
+
/** The SetCertificateIssuer operation adds or updates the specified certificate issuer. This operation requires the certificates/setissuers permission. */
|
|
96
|
+
setCertificateIssuer(issuerName, parameter, options = { requestOptions: {} }) {
|
|
97
|
+
return setCertificateIssuer(this._client, issuerName, parameter, options);
|
|
98
98
|
}
|
|
99
|
-
/**
|
|
100
|
-
|
|
101
|
-
return
|
|
99
|
+
/** The GetCertificateIssuers operation returns the set of certificate issuer resources in the specified key vault. This operation requires the certificates/manageissuers/getissuers permission. */
|
|
100
|
+
getCertificateIssuers(options = { requestOptions: {} }) {
|
|
101
|
+
return getCertificateIssuers(this._client, options);
|
|
102
102
|
}
|
|
103
|
-
/**
|
|
104
|
-
|
|
105
|
-
return
|
|
103
|
+
/** Deletes the certificate contacts for a specified key vault certificate. This operation requires the certificates/managecontacts permission. */
|
|
104
|
+
deleteCertificateContacts(options = { requestOptions: {} }) {
|
|
105
|
+
return deleteCertificateContacts(this._client, options);
|
|
106
106
|
}
|
|
107
|
-
/** The
|
|
108
|
-
|
|
109
|
-
return
|
|
107
|
+
/** The GetCertificateContacts operation returns the set of certificate contact resources in the specified key vault. This operation requires the certificates/managecontacts permission. */
|
|
108
|
+
getCertificateContacts(options = { requestOptions: {} }) {
|
|
109
|
+
return getCertificateContacts(this._client, options);
|
|
110
110
|
}
|
|
111
|
-
/**
|
|
112
|
-
|
|
113
|
-
return
|
|
111
|
+
/** Sets the certificate contacts for the specified key vault. This operation requires the certificates/managecontacts permission. */
|
|
112
|
+
setCertificateContacts(contacts, options = { requestOptions: {} }) {
|
|
113
|
+
return setCertificateContacts(this._client, contacts, options);
|
|
114
114
|
}
|
|
115
|
-
/**
|
|
116
|
-
|
|
117
|
-
return
|
|
115
|
+
/** 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. */
|
|
116
|
+
deleteCertificate(certificateName, options = { requestOptions: {} }) {
|
|
117
|
+
return deleteCertificate(this._client, certificateName, options);
|
|
118
118
|
}
|
|
119
|
-
/** The
|
|
120
|
-
|
|
121
|
-
return
|
|
119
|
+
/** The GetCertificates operation returns the set of certificates resources in the specified key vault. This operation requires the certificates/list permission. */
|
|
120
|
+
getCertificates(options = { requestOptions: {} }) {
|
|
121
|
+
return getCertificates(this._client, options);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
//# sourceMappingURL=keyVaultClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyVaultClient.js","sourceRoot":"","sources":["../../../src/generated/keyVaultClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,cAAc,EAGd,eAAe,EACf,iBAAiB,EACjB,sBAAsB,E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IACnE,CAAC;IAED,uIAAuI;IACvI,kBAAkB,CAChB,UAAwC,EACxC,UAA4C,EAAE,cAAc,EAAE,EAAE,EAAE;QAElE,OAAO,kBAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED,kVAAkV;IAClV,sBAAsB,CACpB,UAAgD,EAAE,cAAc,EAAE,EAAE,EAAE;QAEtE,OAAO,sBAAsB,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED,wQAAwQ;IACxQ,qBAAqB,CACnB,eAAuB,EACvB,UAA+C,EAAE,cAAc,EAAE,EAAE,EAAE;QAErE,OAAO,qBAAqB,CAAC,IAAI,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED,2RAA2R;IAC3R,uBAAuB,CACrB,eAAuB,EACvB,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;QAEvE,OAAO,uBAAuB,CAAC,IAAI,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED,+TAA+T;IAC/T,yBAAyB,CACvB,eAAuB,EACvB,UAAmD,EAAE,cAAc,EAAE,EAAE,EAAE;QAEzE,OAAO,yBAAyB,CAAC,IAAI,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n createKeyVault,\n KeyVaultContext,\n KeyVaultClientOptionalParams,\n getCertificates,\n deleteCertificate,\n setCertificateContacts,\n getCertificateContacts,\n deleteCertificateContacts,\n getCertificateIssuers,\n setCertificateIssuer,\n updateCertificateIssuer,\n getCertificateIssuer,\n deleteCertificateIssuer,\n createCertificate,\n importCertificate,\n getCertificateVersions,\n getCertificatePolicy,\n updateCertificatePolicy,\n updateCertificate,\n getCertificate,\n updateCertificateOperation,\n getCertificateOperation,\n deleteCertificateOperation,\n mergeCertificate,\n backupCertificate,\n restoreCertificate,\n getDeletedCertificates,\n getDeletedCertificate,\n purgeDeletedCertificate,\n recoverDeletedCertificate,\n GetCertificatesOptionalParams,\n DeleteCertificateOptionalParams,\n SetCertificateContactsOptionalParams,\n GetCertificateContactsOptionalParams,\n DeleteCertificateContactsOptionalParams,\n GetCertificateIssuersOptionalParams,\n SetCertificateIssuerOptionalParams,\n UpdateCertificateIssuerOptionalParams,\n GetCertificateIssuerOptionalParams,\n DeleteCertificateIssuerOptionalParams,\n CreateCertificateOptionalParams,\n ImportCertificateOptionalParams,\n GetCertificateVersionsOptionalParams,\n GetCertificatePolicyOptionalParams,\n UpdateCertificatePolicyOptionalParams,\n UpdateCertificateOptionalParams,\n GetCertificateOptionalParams,\n UpdateCertificateOperationOptionalParams,\n GetCertificateOperationOptionalParams,\n DeleteCertificateOperationOptionalParams,\n MergeCertificateOptionalParams,\n BackupCertificateOptionalParams,\n RestoreCertificateOptionalParams,\n GetDeletedCertificatesOptionalParams,\n GetDeletedCertificateOptionalParams,\n PurgeDeletedCertificateOptionalParams,\n RecoverDeletedCertificateOptionalParams,\n} from \"./api/index.js\";\nimport {\n CertificateItem,\n DeletedCertificateBundle,\n CertificatePolicy,\n Contacts,\n CertificateIssuerItem,\n CertificateIssuerSetParameters,\n IssuerBundle,\n CertificateIssuerUpdateParameters,\n CertificateCreateParameters,\n CertificateOperation,\n CertificateImportParameters,\n CertificateBundle,\n CertificateUpdateParameters,\n CertificateOperationUpdateParameter,\n CertificateMergeParameters,\n BackupCertificateResult,\n CertificateRestoreParameters,\n DeletedCertificateItem,\n} from \"./models/models.js\";\nimport { PagedAsyncIterableIterator } from \"./static-helpers/pagingHelpers.js\";\nimport { Pipeline } from \"@azure/core-rest-pipeline\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport { KeyVaultClientOptionalParams } from \"./api/keyVaultContext.js\";\n\nexport class KeyVaultClient {\n private _client: KeyVaultContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n /** The key vault client performs cryptographic key operations and vault operations against the Key Vault service. */\n constructor(\n vaultBaseUrl: string,\n credential: TokenCredential,\n options: KeyVaultClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createKeyVault(vaultBaseUrl, credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n }\n\n /** The GetCertificates operation returns the set of certificates resources in the specified key vault. This operation requires the certificates/list permission. */\n getCertificates(\n options: GetCertificatesOptionalParams = { requestOptions: {} },\n ): PagedAsyncIterableIterator<CertificateItem> {\n return getCertificates(this._client, options);\n }\n\n /** 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. */\n deleteCertificate(\n certificateName: string,\n options: DeleteCertificateOptionalParams = { requestOptions: {} },\n ): Promise<DeletedCertificateBundle> {\n return deleteCertificate(this._client, certificateName, options);\n }\n\n /** Sets the certificate contacts for the specified key vault. This operation requires the certificates/managecontacts permission. */\n setCertificateContacts(\n contacts: Contacts,\n options: SetCertificateContactsOptionalParams = { requestOptions: {} },\n ): Promise<Contacts> {\n return setCertificateContacts(this._client, contacts, options);\n }\n\n /** The GetCertificateContacts operation returns the set of certificate contact resources in the specified key vault. This operation requires the certificates/managecontacts permission. */\n getCertificateContacts(\n options: GetCertificateContactsOptionalParams = { requestOptions: {} },\n ): Promise<Contacts> {\n return getCertificateContacts(this._client, options);\n }\n\n /** Deletes the certificate contacts for a specified key vault certificate. This operation requires the certificates/managecontacts permission. */\n deleteCertificateContacts(\n options: DeleteCertificateContactsOptionalParams = { requestOptions: {} },\n ): Promise<Contacts> {\n return deleteCertificateContacts(this._client, options);\n }\n\n /** The GetCertificateIssuers operation returns the set of certificate issuer resources in the specified key vault. This operation requires the certificates/manageissuers/getissuers permission. */\n getCertificateIssuers(\n options: GetCertificateIssuersOptionalParams = { requestOptions: {} },\n ): PagedAsyncIterableIterator<CertificateIssuerItem> {\n return getCertificateIssuers(this._client, options);\n }\n\n /** The SetCertificateIssuer operation adds or updates the specified certificate issuer. This operation requires the certificates/setissuers permission. */\n setCertificateIssuer(\n issuerName: string,\n parameter: CertificateIssuerSetParameters,\n options: SetCertificateIssuerOptionalParams = { requestOptions: {} },\n ): Promise<IssuerBundle> {\n return setCertificateIssuer(this._client, issuerName, parameter, options);\n }\n\n /** The UpdateCertificateIssuer operation performs an update on the specified certificate issuer entity. This operation requires the certificates/setissuers permission. */\n updateCertificateIssuer(\n issuerName: string,\n parameter: CertificateIssuerUpdateParameters,\n options: UpdateCertificateIssuerOptionalParams = { requestOptions: {} },\n ): Promise<IssuerBundle> {\n return updateCertificateIssuer(\n this._client,\n issuerName,\n parameter,\n options,\n );\n }\n\n /** The GetCertificateIssuer operation returns the specified certificate issuer resources in the specified key vault. This operation requires the certificates/manageissuers/getissuers permission. */\n getCertificateIssuer(\n issuerName: string,\n options: GetCertificateIssuerOptionalParams = { requestOptions: {} },\n ): Promise<IssuerBundle> {\n return getCertificateIssuer(this._client, issuerName, options);\n }\n\n /** The DeleteCertificateIssuer operation permanently removes the specified certificate issuer from the vault. This operation requires the certificates/manageissuers/deleteissuers permission. */\n deleteCertificateIssuer(\n issuerName: string,\n options: DeleteCertificateIssuerOptionalParams = { requestOptions: {} },\n ): Promise<IssuerBundle> {\n return deleteCertificateIssuer(this._client, issuerName, options);\n }\n\n /** If this is the first version, the certificate resource is created. This operation requires the certificates/create permission. */\n createCertificate(\n certificateName: string,\n parameters: CertificateCreateParameters,\n options: CreateCertificateOptionalParams = { requestOptions: {} },\n ): Promise<CertificateOperation> {\n return createCertificate(\n this._client,\n certificateName,\n parameters,\n options,\n );\n }\n\n /** 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. */\n importCertificate(\n certificateName: string,\n parameters: CertificateImportParameters,\n options: ImportCertificateOptionalParams = { requestOptions: {} },\n ): Promise<CertificateBundle> {\n return importCertificate(\n this._client,\n certificateName,\n parameters,\n options,\n );\n }\n\n /** The GetCertificateVersions operation returns the versions of a certificate in the specified key vault. This operation requires the certificates/list permission. */\n getCertificateVersions(\n certificateName: string,\n options: GetCertificateVersionsOptionalParams = { requestOptions: {} },\n ): PagedAsyncIterableIterator<CertificateItem> {\n return getCertificateVersions(this._client, certificateName, options);\n }\n\n /** The GetCertificatePolicy operation returns the specified certificate policy resources in the specified key vault. This operation requires the certificates/get permission. */\n getCertificatePolicy(\n certificateName: string,\n options: GetCertificatePolicyOptionalParams = { requestOptions: {} },\n ): Promise<CertificatePolicy> {\n return getCertificatePolicy(this._client, certificateName, options);\n }\n\n /** Set specified members in the certificate policy. Leave others as null. This operation requires the certificates/update permission. */\n updateCertificatePolicy(\n certificateName: string,\n certificatePolicy: CertificatePolicy,\n options: UpdateCertificatePolicyOptionalParams = { requestOptions: {} },\n ): Promise<CertificatePolicy> {\n return updateCertificatePolicy(\n this._client,\n certificateName,\n certificatePolicy,\n options,\n );\n }\n\n /** 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. */\n updateCertificate(\n certificateName: string,\n certificateVersion: string,\n parameters: CertificateUpdateParameters,\n options: UpdateCertificateOptionalParams = { requestOptions: {} },\n ): Promise<CertificateBundle> {\n return updateCertificate(\n this._client,\n certificateName,\n certificateVersion,\n parameters,\n options,\n );\n }\n\n /** Gets information about a specific certificate. This operation requires the certificates/get permission. */\n getCertificate(\n certificateName: string,\n certificateVersion: string,\n options: GetCertificateOptionalParams = { requestOptions: {} },\n ): Promise<CertificateBundle> {\n return getCertificate(\n this._client,\n certificateName,\n certificateVersion,\n options,\n );\n }\n\n /** Updates a certificate creation operation that is already in progress. This operation requires the certificates/update permission. */\n updateCertificateOperation(\n certificateName: string,\n certificateOperation: CertificateOperationUpdateParameter,\n options: UpdateCertificateOperationOptionalParams = { requestOptions: {} },\n ): Promise<CertificateOperation> {\n return updateCertificateOperation(\n this._client,\n certificateName,\n certificateOperation,\n options,\n );\n }\n\n /** Gets the creation operation associated with a specified certificate. This operation requires the certificates/get permission. */\n getCertificateOperation(\n certificateName: string,\n options: GetCertificateOperationOptionalParams = { requestOptions: {} },\n ): Promise<CertificateOperation> {\n return getCertificateOperation(this._client, certificateName, options);\n }\n\n /** 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. */\n deleteCertificateOperation(\n certificateName: string,\n options: DeleteCertificateOperationOptionalParams = { requestOptions: {} },\n ): Promise<CertificateOperation> {\n return deleteCertificateOperation(this._client, certificateName, options);\n }\n\n /** 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. */\n mergeCertificate(\n certificateName: string,\n parameters: CertificateMergeParameters,\n options: MergeCertificateOptionalParams = { requestOptions: {} },\n ): Promise<CertificateBundle> {\n return mergeCertificate(this._client, certificateName, parameters, options);\n }\n\n /** 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. */\n backupCertificate(\n certificateName: string,\n options: BackupCertificateOptionalParams = { requestOptions: {} },\n ): Promise<BackupCertificateResult> {\n return backupCertificate(this._client, certificateName, options);\n }\n\n /** Restores a backed up certificate, and all its versions, to a vault. This operation requires the certificates/restore permission. */\n restoreCertificate(\n parameters: CertificateRestoreParameters,\n options: RestoreCertificateOptionalParams = { requestOptions: {} },\n ): Promise<CertificateBundle> {\n return restoreCertificate(this._client, parameters, options);\n }\n\n /** 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. */\n getDeletedCertificates(\n options: GetDeletedCertificatesOptionalParams = { requestOptions: {} },\n ): PagedAsyncIterableIterator<DeletedCertificateItem> {\n return getDeletedCertificates(this._client, options);\n }\n\n /** 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. */\n getDeletedCertificate(\n certificateName: string,\n options: GetDeletedCertificateOptionalParams = { requestOptions: {} },\n ): Promise<DeletedCertificateBundle> {\n return getDeletedCertificate(this._client, certificateName, options);\n }\n\n /** 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. */\n purgeDeletedCertificate(\n certificateName: string,\n options: PurgeDeletedCertificateOptionalParams = { requestOptions: {} },\n ): Promise<void> {\n return purgeDeletedCertificate(this._client, certificateName, options);\n }\n\n /** 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. */\n recoverDeletedCertificate(\n certificateName: string,\n options: RecoverDeletedCertificateOptionalParams = { requestOptions: {} },\n ): Promise<CertificateBundle> {\n return recoverDeletedCertificate(this._client, certificateName, options);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"keyVaultClient.js","sourceRoot":"","sources":["../../../src/generated/keyVaultClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,cAAc,EAGd,yBAAyB,EACzB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,0BAA0B,EAC1B,uBAAuB,EACvB,0BAA0B,EAC1B,cAAc,EACd,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,oBA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pB,UAAgD,EAAE,cAAc,EAAE,EAAE,EAAE;QAEtE,OAAO,sBAAsB,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED,qIAAqI;IACrI,sBAAsB,CACpB,QAAkB,EAClB,UAAgD,EAAE,cAAc,EAAE,EAAE,EAAE;QAEtE,OAAO,sBAAsB,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED,0OAA0O;IAC1O,iBAAiB,CACf,eAAuB,EACvB,UAA2C,EAAE,cAAc,EAAE,EAAE,EAAE;QAEjE,OAAO,iBAAiB,CAAC,IAAI,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED,oKAAoK;IACpK,eAAe,CACb,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;QAE/D,OAAO,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n createKeyVault,\n KeyVaultContext,\n KeyVaultClientOptionalParams,\n recoverDeletedCertificate,\n purgeDeletedCertificate,\n getDeletedCertificate,\n getDeletedCertificates,\n restoreCertificate,\n backupCertificate,\n mergeCertificate,\n deleteCertificateOperation,\n getCertificateOperation,\n updateCertificateOperation,\n getCertificate,\n updateCertificate,\n updateCertificatePolicy,\n getCertificatePolicy,\n getCertificateVersions,\n importCertificate,\n createCertificate,\n deleteCertificateIssuer,\n getCertificateIssuer,\n updateCertificateIssuer,\n setCertificateIssuer,\n getCertificateIssuers,\n deleteCertificateContacts,\n getCertificateContacts,\n setCertificateContacts,\n deleteCertificate,\n getCertificates,\n RecoverDeletedCertificateOptionalParams,\n PurgeDeletedCertificateOptionalParams,\n GetDeletedCertificateOptionalParams,\n GetDeletedCertificatesOptionalParams,\n RestoreCertificateOptionalParams,\n BackupCertificateOptionalParams,\n MergeCertificateOptionalParams,\n DeleteCertificateOperationOptionalParams,\n GetCertificateOperationOptionalParams,\n UpdateCertificateOperationOptionalParams,\n GetCertificateOptionalParams,\n UpdateCertificateOptionalParams,\n UpdateCertificatePolicyOptionalParams,\n GetCertificatePolicyOptionalParams,\n GetCertificateVersionsOptionalParams,\n ImportCertificateOptionalParams,\n CreateCertificateOptionalParams,\n DeleteCertificateIssuerOptionalParams,\n GetCertificateIssuerOptionalParams,\n UpdateCertificateIssuerOptionalParams,\n SetCertificateIssuerOptionalParams,\n GetCertificateIssuersOptionalParams,\n DeleteCertificateContactsOptionalParams,\n GetCertificateContactsOptionalParams,\n SetCertificateContactsOptionalParams,\n DeleteCertificateOptionalParams,\n GetCertificatesOptionalParams,\n} from \"./api/index.js\";\nimport {\n CertificateItem,\n DeletedCertificateBundle,\n CertificatePolicy,\n Contacts,\n CertificateIssuerItem,\n CertificateIssuerSetParameters,\n IssuerBundle,\n CertificateIssuerUpdateParameters,\n CertificateCreateParameters,\n CertificateOperation,\n CertificateImportParameters,\n CertificateBundle,\n CertificateUpdateParameters,\n CertificateOperationUpdateParameter,\n CertificateMergeParameters,\n BackupCertificateResult,\n CertificateRestoreParameters,\n DeletedCertificateItem,\n} from \"./models/models.js\";\nimport { PagedAsyncIterableIterator } from \"./static-helpers/pagingHelpers.js\";\nimport { Pipeline } from \"@azure/core-rest-pipeline\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport { KeyVaultClientOptionalParams } from \"./api/keyVaultContext.js\";\n\nexport class KeyVaultClient {\n private _client: KeyVaultContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n /** The key vault client performs cryptographic key operations and vault operations against the Key Vault service. */\n constructor(\n endpointParam: string,\n credential: TokenCredential,\n options: KeyVaultClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createKeyVault(endpointParam, credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n }\n\n /** 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. */\n recoverDeletedCertificate(\n certificateName: string,\n options: RecoverDeletedCertificateOptionalParams = { requestOptions: {} },\n ): Promise<CertificateBundle> {\n return recoverDeletedCertificate(this._client, certificateName, options);\n }\n\n /** 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. */\n purgeDeletedCertificate(\n certificateName: string,\n options: PurgeDeletedCertificateOptionalParams = { requestOptions: {} },\n ): Promise<void> {\n return purgeDeletedCertificate(this._client, certificateName, options);\n }\n\n /** 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. */\n getDeletedCertificate(\n certificateName: string,\n options: GetDeletedCertificateOptionalParams = { requestOptions: {} },\n ): Promise<DeletedCertificateBundle> {\n return getDeletedCertificate(this._client, certificateName, options);\n }\n\n /** 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. */\n getDeletedCertificates(\n options: GetDeletedCertificatesOptionalParams = { requestOptions: {} },\n ): PagedAsyncIterableIterator<DeletedCertificateItem> {\n return getDeletedCertificates(this._client, options);\n }\n\n /** Restores a backed up certificate, and all its versions, to a vault. This operation requires the certificates/restore permission. */\n restoreCertificate(\n parameters: CertificateRestoreParameters,\n options: RestoreCertificateOptionalParams = { requestOptions: {} },\n ): Promise<CertificateBundle> {\n return restoreCertificate(this._client, parameters, options);\n }\n\n /** 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. */\n backupCertificate(\n certificateName: string,\n options: BackupCertificateOptionalParams = { requestOptions: {} },\n ): Promise<BackupCertificateResult> {\n return backupCertificate(this._client, certificateName, options);\n }\n\n /** 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. */\n mergeCertificate(\n certificateName: string,\n parameters: CertificateMergeParameters,\n options: MergeCertificateOptionalParams = { requestOptions: {} },\n ): Promise<CertificateBundle> {\n return mergeCertificate(this._client, certificateName, parameters, options);\n }\n\n /** 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. */\n deleteCertificateOperation(\n certificateName: string,\n options: DeleteCertificateOperationOptionalParams = { requestOptions: {} },\n ): Promise<CertificateOperation> {\n return deleteCertificateOperation(this._client, certificateName, options);\n }\n\n /** Gets the creation operation associated with a specified certificate. This operation requires the certificates/get permission. */\n getCertificateOperation(\n certificateName: string,\n options: GetCertificateOperationOptionalParams = { requestOptions: {} },\n ): Promise<CertificateOperation> {\n return getCertificateOperation(this._client, certificateName, options);\n }\n\n /** Updates a certificate creation operation that is already in progress. This operation requires the certificates/update permission. */\n updateCertificateOperation(\n certificateName: string,\n certificateOperation: CertificateOperationUpdateParameter,\n options: UpdateCertificateOperationOptionalParams = { requestOptions: {} },\n ): Promise<CertificateOperation> {\n return updateCertificateOperation(\n this._client,\n certificateName,\n certificateOperation,\n options,\n );\n }\n\n /** Gets information about a specific certificate. This operation requires the certificates/get permission. */\n getCertificate(\n certificateName: string,\n certificateVersion: string,\n options: GetCertificateOptionalParams = { requestOptions: {} },\n ): Promise<CertificateBundle> {\n return getCertificate(\n this._client,\n certificateName,\n certificateVersion,\n options,\n );\n }\n\n /** 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. */\n updateCertificate(\n certificateName: string,\n certificateVersion: string,\n parameters: CertificateUpdateParameters,\n options: UpdateCertificateOptionalParams = { requestOptions: {} },\n ): Promise<CertificateBundle> {\n return updateCertificate(\n this._client,\n certificateName,\n certificateVersion,\n parameters,\n options,\n );\n }\n\n /** Set specified members in the certificate policy. Leave others as null. This operation requires the certificates/update permission. */\n updateCertificatePolicy(\n certificateName: string,\n certificatePolicy: CertificatePolicy,\n options: UpdateCertificatePolicyOptionalParams = { requestOptions: {} },\n ): Promise<CertificatePolicy> {\n return updateCertificatePolicy(\n this._client,\n certificateName,\n certificatePolicy,\n options,\n );\n }\n\n /** The GetCertificatePolicy operation returns the specified certificate policy resources in the specified key vault. This operation requires the certificates/get permission. */\n getCertificatePolicy(\n certificateName: string,\n options: GetCertificatePolicyOptionalParams = { requestOptions: {} },\n ): Promise<CertificatePolicy> {\n return getCertificatePolicy(this._client, certificateName, options);\n }\n\n /** The GetCertificateVersions operation returns the versions of a certificate in the specified key vault. This operation requires the certificates/list permission. */\n getCertificateVersions(\n certificateName: string,\n options: GetCertificateVersionsOptionalParams = { requestOptions: {} },\n ): PagedAsyncIterableIterator<CertificateItem> {\n return getCertificateVersions(this._client, certificateName, options);\n }\n\n /** 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. */\n importCertificate(\n certificateName: string,\n parameters: CertificateImportParameters,\n options: ImportCertificateOptionalParams = { requestOptions: {} },\n ): Promise<CertificateBundle> {\n return importCertificate(\n this._client,\n certificateName,\n parameters,\n options,\n );\n }\n\n /** If this is the first version, the certificate resource is created. This operation requires the certificates/create permission. */\n createCertificate(\n certificateName: string,\n parameters: CertificateCreateParameters,\n options: CreateCertificateOptionalParams = { requestOptions: {} },\n ): Promise<CertificateOperation> {\n return createCertificate(\n this._client,\n certificateName,\n parameters,\n options,\n );\n }\n\n /** The DeleteCertificateIssuer operation permanently removes the specified certificate issuer from the vault. This operation requires the certificates/manageissuers/deleteissuers permission. */\n deleteCertificateIssuer(\n issuerName: string,\n options: DeleteCertificateIssuerOptionalParams = { requestOptions: {} },\n ): Promise<IssuerBundle> {\n return deleteCertificateIssuer(this._client, issuerName, options);\n }\n\n /** The GetCertificateIssuer operation returns the specified certificate issuer resources in the specified key vault. This operation requires the certificates/manageissuers/getissuers permission. */\n getCertificateIssuer(\n issuerName: string,\n options: GetCertificateIssuerOptionalParams = { requestOptions: {} },\n ): Promise<IssuerBundle> {\n return getCertificateIssuer(this._client, issuerName, options);\n }\n\n /** The UpdateCertificateIssuer operation performs an update on the specified certificate issuer entity. This operation requires the certificates/setissuers permission. */\n updateCertificateIssuer(\n issuerName: string,\n parameter: CertificateIssuerUpdateParameters,\n options: UpdateCertificateIssuerOptionalParams = { requestOptions: {} },\n ): Promise<IssuerBundle> {\n return updateCertificateIssuer(\n this._client,\n issuerName,\n parameter,\n options,\n );\n }\n\n /** The SetCertificateIssuer operation adds or updates the specified certificate issuer. This operation requires the certificates/setissuers permission. */\n setCertificateIssuer(\n issuerName: string,\n parameter: CertificateIssuerSetParameters,\n options: SetCertificateIssuerOptionalParams = { requestOptions: {} },\n ): Promise<IssuerBundle> {\n return setCertificateIssuer(this._client, issuerName, parameter, options);\n }\n\n /** The GetCertificateIssuers operation returns the set of certificate issuer resources in the specified key vault. This operation requires the certificates/manageissuers/getissuers permission. */\n getCertificateIssuers(\n options: GetCertificateIssuersOptionalParams = { requestOptions: {} },\n ): PagedAsyncIterableIterator<CertificateIssuerItem> {\n return getCertificateIssuers(this._client, options);\n }\n\n /** Deletes the certificate contacts for a specified key vault certificate. This operation requires the certificates/managecontacts permission. */\n deleteCertificateContacts(\n options: DeleteCertificateContactsOptionalParams = { requestOptions: {} },\n ): Promise<Contacts> {\n return deleteCertificateContacts(this._client, options);\n }\n\n /** The GetCertificateContacts operation returns the set of certificate contact resources in the specified key vault. This operation requires the certificates/managecontacts permission. */\n getCertificateContacts(\n options: GetCertificateContactsOptionalParams = { requestOptions: {} },\n ): Promise<Contacts> {\n return getCertificateContacts(this._client, options);\n }\n\n /** Sets the certificate contacts for the specified key vault. This operation requires the certificates/managecontacts permission. */\n setCertificateContacts(\n contacts: Contacts,\n options: SetCertificateContactsOptionalParams = { requestOptions: {} },\n ): Promise<Contacts> {\n return setCertificateContacts(this._client, contacts, options);\n }\n\n /** 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. */\n deleteCertificate(\n certificateName: string,\n options: DeleteCertificateOptionalParams = { requestOptions: {} },\n ): Promise<DeletedCertificateBundle> {\n return deleteCertificate(this._client, certificateName, options);\n }\n\n /** The GetCertificates operation returns the set of certificates resources in the specified key vault. This operation requires the certificates/list permission. */\n getCertificates(\n options: GetCertificatesOptionalParams = { requestOptions: {} },\n ): PagedAsyncIterableIterator<CertificateItem> {\n return getCertificates(this._client, options);\n }\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CertificateItem, CertificateAttributes, KnownDeletionRecoveryLevel, DeletionRecoveryLevel, ErrorModel, DeletedCertificateBundle, CertificatePolicy, KeyProperties, KnownJsonWebKeyType, JsonWebKeyType, KnownJsonWebKeyCurveName, JsonWebKeyCurveName, SecretProperties, X509CertificateProperties, SubjectAlternativeNames, KnownKeyUsageType, KeyUsageType, LifetimeAction, Trigger, Action, CertificatePolicyAction, IssuerParameters, Contacts, Contact, CertificateIssuerItem, CertificateIssuerSetParameters, IssuerCredentials, OrganizationDetails, AdministratorDetails, IssuerAttributes, IssuerBundle, CertificateIssuerUpdateParameters, CertificateCreateParameters, CertificateOperation, CertificateImportParameters, CertificateBundle, CertificateUpdateParameters, CertificateOperationUpdateParameter, CertificateMergeParameters, BackupCertificateResult, CertificateRestoreParameters, DeletedCertificateItem, KnownVersions, } from "./models.js";
|
|
1
|
+
export { CertificateItem, CertificateAttributes, KnownDeletionRecoveryLevel, DeletionRecoveryLevel, KeyVaultError, ErrorModel, ErrorModel_1, DeletedCertificateBundle, CertificatePolicy, KeyProperties, KnownJsonWebKeyType, JsonWebKeyType, KnownJsonWebKeyCurveName, JsonWebKeyCurveName, SecretProperties, X509CertificateProperties, SubjectAlternativeNames, KnownKeyUsageType, KeyUsageType, LifetimeAction, Trigger, Action, CertificatePolicyAction, IssuerParameters, Contacts, Contact, CertificateIssuerItem, CertificateIssuerSetParameters, IssuerCredentials, OrganizationDetails, AdministratorDetails, IssuerAttributes, IssuerBundle, CertificateIssuerUpdateParameters, CertificateCreateParameters, CertificateOperation, CertificateImportParameters, CertificateBundle, CertificateUpdateParameters, CertificateOperationUpdateParameter, CertificateMergeParameters, BackupCertificateResult, CertificateRestoreParameters, DeletedCertificateItem, KnownVersions, } from "./models.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,UAAU,EACV,wBAAwB,EACxB,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,OAAO,EACP,MAAM,EACN,uBAAuB,EACvB,gBAAgB,EAChB,QAAQ,EACR,OAAO,EACP,qBAAqB,EACrB,8BAA8B,EAC9B,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,EACZ,iCAAiC,EACjC,2BAA2B,EAC3B,oBAAoB,EACpB,2BAA2B,EAC3B,iBAAiB,EACjB,2BAA2B,EAC3B,mCAAmC,EACnC,0BAA0B,EAC1B,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACtB,aAAa,GACd,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,aAAa,EACb,UAAU,EACV,YAAY,EACZ,wBAAwB,EACxB,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,OAAO,EACP,MAAM,EACN,uBAAuB,EACvB,gBAAgB,EAChB,QAAQ,EACR,OAAO,EACP,qBAAqB,EACrB,8BAA8B,EAC9B,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,EACZ,iCAAiC,EACjC,2BAA2B,EAC3B,oBAAoB,EACpB,2BAA2B,EAC3B,iBAAiB,EACjB,2BAA2B,EAC3B,mCAAmC,EACnC,0BAA0B,EAC1B,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACtB,aAAa,GACd,MAAM,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAGL,0BAA0B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAGL,0BAA0B,EAQ1B,mBAAmB,EAEnB,wBAAwB,EAKxB,iBAAiB,EA2BjB,aAAa,GACd,MAAM,aAAa,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n CertificateItem,\n CertificateAttributes,\n KnownDeletionRecoveryLevel,\n DeletionRecoveryLevel,\n KeyVaultError,\n ErrorModel,\n ErrorModel_1,\n DeletedCertificateBundle,\n CertificatePolicy,\n KeyProperties,\n KnownJsonWebKeyType,\n JsonWebKeyType,\n KnownJsonWebKeyCurveName,\n JsonWebKeyCurveName,\n SecretProperties,\n X509CertificateProperties,\n SubjectAlternativeNames,\n KnownKeyUsageType,\n KeyUsageType,\n LifetimeAction,\n Trigger,\n Action,\n CertificatePolicyAction,\n IssuerParameters,\n Contacts,\n Contact,\n CertificateIssuerItem,\n CertificateIssuerSetParameters,\n IssuerCredentials,\n OrganizationDetails,\n AdministratorDetails,\n IssuerAttributes,\n IssuerBundle,\n CertificateIssuerUpdateParameters,\n CertificateCreateParameters,\n CertificateOperation,\n CertificateImportParameters,\n CertificateBundle,\n CertificateUpdateParameters,\n CertificateOperationUpdateParameter,\n CertificateMergeParameters,\n BackupCertificateResult,\n CertificateRestoreParameters,\n DeletedCertificateItem,\n KnownVersions,\n} from \"./models.js\";\n"]}
|