@azure/keyvault-certificates 4.4.0-beta.2 → 4.4.0

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/README.md +14 -11
  3. package/dist/index.js +286 -153
  4. package/dist/index.js.map +1 -1
  5. package/dist-esm/keyvault-certificates/src/certificatesModels.js +42 -2
  6. package/dist-esm/keyvault-certificates/src/certificatesModels.js.map +1 -1
  7. package/dist-esm/keyvault-certificates/src/constants.js +1 -1
  8. package/dist-esm/keyvault-certificates/src/constants.js.map +1 -1
  9. package/dist-esm/keyvault-certificates/src/generated/keyVaultClient.js +1 -1
  10. package/dist-esm/keyvault-certificates/src/generated/keyVaultClient.js.map +1 -1
  11. package/dist-esm/keyvault-certificates/src/generated/keyVaultClientContext.js +6 -7
  12. package/dist-esm/keyvault-certificates/src/generated/keyVaultClientContext.js.map +1 -1
  13. package/dist-esm/keyvault-certificates/src/generated/models/index.js +55 -1
  14. package/dist-esm/keyvault-certificates/src/generated/models/index.js.map +1 -1
  15. package/dist-esm/keyvault-certificates/src/identifier.js.map +1 -1
  16. package/dist-esm/keyvault-certificates/src/index.js +27 -23
  17. package/dist-esm/keyvault-certificates/src/index.js.map +1 -1
  18. package/dist-esm/keyvault-certificates/src/lro/create/operation.js +2 -2
  19. package/dist-esm/keyvault-certificates/src/lro/create/operation.js.map +1 -1
  20. package/dist-esm/keyvault-certificates/src/lro/create/poller.js +2 -2
  21. package/dist-esm/keyvault-certificates/src/lro/create/poller.js.map +1 -1
  22. package/dist-esm/keyvault-certificates/src/lro/delete/operation.js +1 -1
  23. package/dist-esm/keyvault-certificates/src/lro/delete/operation.js.map +1 -1
  24. package/dist-esm/keyvault-certificates/src/lro/delete/poller.js +2 -2
  25. package/dist-esm/keyvault-certificates/src/lro/delete/poller.js.map +1 -1
  26. package/dist-esm/keyvault-certificates/src/lro/keyVaultCertificatePoller.js +2 -2
  27. package/dist-esm/keyvault-certificates/src/lro/keyVaultCertificatePoller.js.map +1 -1
  28. package/dist-esm/keyvault-certificates/src/lro/operation/operation.js +3 -3
  29. package/dist-esm/keyvault-certificates/src/lro/operation/operation.js.map +1 -1
  30. package/dist-esm/keyvault-certificates/src/lro/operation/poller.js +2 -2
  31. package/dist-esm/keyvault-certificates/src/lro/operation/poller.js.map +1 -1
  32. package/dist-esm/keyvault-certificates/src/lro/recover/operation.js +2 -2
  33. package/dist-esm/keyvault-certificates/src/lro/recover/operation.js.map +1 -1
  34. package/dist-esm/keyvault-certificates/src/lro/recover/poller.js +3 -3
  35. package/dist-esm/keyvault-certificates/src/lro/recover/poller.js.map +1 -1
  36. package/dist-esm/keyvault-certificates/src/transformations.js +23 -23
  37. package/dist-esm/keyvault-certificates/src/transformations.js.map +1 -1
  38. package/dist-esm/keyvault-certificates/src/utils.js.map +1 -1
  39. package/dist-esm/keyvault-common/src/challengeBasedAuthenticationPolicy.js +4 -4
  40. package/dist-esm/keyvault-common/src/challengeBasedAuthenticationPolicy.js.map +1 -1
  41. package/dist-esm/keyvault-common/src/parseKeyvaultIdentifier.js +1 -1
  42. package/dist-esm/keyvault-common/src/parseKeyvaultIdentifier.js.map +1 -1
  43. package/dist-esm/keyvault-common/src/parseWWWAuthenticate.js +1 -1
  44. package/dist-esm/keyvault-common/src/parseWWWAuthenticate.js.map +1 -1
  45. package/dist-esm/keyvault-common/src/tracingHelpers.js +4 -4
  46. package/dist-esm/keyvault-common/src/tracingHelpers.js.map +1 -1
  47. package/package.json +13 -28
  48. package/types/keyvault-certificates.d.ts +12 -8
@@ -1 +1 @@
1
- {"version":3,"file":"keyVaultClientContext.js","sourceRoot":"","sources":["../../../../src/generated/keyVaultClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,MAAM,WAAW,GAAG,8BAA8B,CAAC;AACnD,MAAM,CAAC,MAAM,cAAc,GAAG,cAAc,CAAC;AAE7C,cAAc;AACd,MAAM,OAAO,qBAAsB,SAAQ,QAAQ,CAAC,aAAa;IAG/D;;;;OAIG;IACH,YACE,UAA+B,EAC/B,OAAsC;QAEtC,IAAI,UAAU,KAAK,SAAS,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;SAChD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QAED,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;YACtB,MAAM,gBAAgB,GAAG,QAAQ,CAAC,wBAAwB,EAAE,CAAC;YAC7D,OAAO,CAAC,SAAS,GAAG,GAAG,WAAW,IAAI,cAAc,IAAI,gBAAgB,EAAE,CAAC;SAC5E;QAED,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAE1B,IAAI,CAAC,kBAAkB,GAAG,iCAAiC,CAAC;QAE5D,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,QAAQ,IAAI,gBAAgB,CAAC;QAEpD,wBAAwB;QACxB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\nimport { ApiVersion73Preview, KeyVaultClientOptionalParams } from \"./models\";\n\nconst packageName = \"@azure/keyvault-certificates\";\nexport const packageVersion = \"4.4.0-beta.2\";\n\n/** @hidden */\nexport class KeyVaultClientContext extends coreHttp.ServiceClient {\n apiVersion: ApiVersion73Preview;\n\n /**\n * Initializes a new instance of the KeyVaultClientContext class.\n * @param apiVersion Api Version\n * @param options The parameter options\n */\n constructor(\n apiVersion: ApiVersion73Preview,\n options?: KeyVaultClientOptionalParams\n ) {\n if (apiVersion === undefined) {\n throw new Error(\"'apiVersion' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n\n if (!options.userAgent) {\n const defaultUserAgent = coreHttp.getDefaultUserAgentValue();\n options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;\n }\n\n super(undefined, options);\n\n this.requestContentType = \"application/json; charset=utf-8\";\n\n this.baseUri = options.endpoint || \"{vaultBaseUrl}\";\n\n // Parameter assignments\n this.apiVersion = apiVersion;\n }\n}\n"]}
1
+ {"version":3,"file":"keyVaultClientContext.js","sourceRoot":"","sources":["../../../../src/generated/keyVaultClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,MAAM,WAAW,GAAG,8BAA8B,CAAC;AACnD,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAEtC,gBAAgB;AAChB,MAAM,OAAO,qBAAsB,SAAQ,QAAQ,CAAC,aAAa;IAG/D;;;;OAIG;IACH,YACE,UAAwB,EACxB,OAAsC;QAEtC,IAAI,UAAU,KAAK,SAAS,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;SAChD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QAED,MAAM,gBAAgB,GAAG,YAAY,WAAW,CAAC,OAAO,CACtD,OAAO,EACP,EAAE,CACH,IAAI,cAAc,IAAI,QAAQ,CAAC,wBAAwB,EAAE,EAAE,CAAC;QAE7D,KAAK,CAAC,SAAS,kCACV,OAAO,KACV,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC1B,CAAC,CAAC,GAAG,OAAO,CAAC,SAAS,IAAI,gBAAgB,EAAE;gBAC5C,CAAC,CAAC,GAAG,gBAAgB,EAAE,IACzB,CAAC;QAEH,IAAI,CAAC,kBAAkB,GAAG,iCAAiC,CAAC;QAC5D,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,QAAQ,IAAI,gBAAgB,CAAC;QACpD,wBAAwB;QACxB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\nimport { ApiVersion73, KeyVaultClientOptionalParams } from \"./models\";\n\nconst packageName = \"@azure/keyvault-certificates\";\nexport const packageVersion = \"4.4.0\";\n\n/** @internal */\nexport class KeyVaultClientContext extends coreHttp.ServiceClient {\n apiVersion: ApiVersion73;\n\n /**\n * Initializes a new instance of the KeyVaultClientContext class.\n * @param apiVersion Api Version\n * @param options The parameter options\n */\n constructor(\n apiVersion: ApiVersion73,\n options?: KeyVaultClientOptionalParams\n ) {\n if (apiVersion === undefined) {\n throw new Error(\"'apiVersion' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n\n const defaultUserAgent = `azsdk-js-${packageName.replace(\n /@.*\\//,\n \"\"\n )}/${packageVersion} ${coreHttp.getDefaultUserAgentValue()}`;\n\n super(undefined, {\n ...options,\n userAgent: options.userAgent\n ? `${options.userAgent} ${defaultUserAgent}`\n : `${defaultUserAgent}`\n });\n\n this.requestContentType = \"application/json; charset=utf-8\";\n this.baseUri = options.endpoint || \"{vaultBaseUrl}\";\n // Parameter assignments\n this.apiVersion = apiVersion;\n }\n}\n"]}
@@ -5,5 +5,59 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- export {};
8
+ /** Known values of {@link ApiVersion73} that the service accepts. */
9
+ export var KnownApiVersion73;
10
+ (function (KnownApiVersion73) {
11
+ /** Api Version '7.3' */
12
+ KnownApiVersion73["Seven3"] = "7.3";
13
+ })(KnownApiVersion73 || (KnownApiVersion73 = {}));
14
+ /** Known values of {@link DeletionRecoveryLevel} that the service accepts. */
15
+ export var KnownDeletionRecoveryLevel;
16
+ (function (KnownDeletionRecoveryLevel) {
17
+ /** Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.) */
18
+ KnownDeletionRecoveryLevel["Purgeable"] = "Purgeable";
19
+ /** Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval (90 days), unless a Purge operation is requested, or the subscription is cancelled. System wil permanently delete it after 90 days, if not recovered */
20
+ KnownDeletionRecoveryLevel["RecoverablePurgeable"] = "Recoverable+Purgeable";
21
+ /** Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval(90 days) and while the subscription is still available. System wil permanently delete it after 90 days, if not recovered */
22
+ KnownDeletionRecoveryLevel["Recoverable"] = "Recoverable";
23
+ /** Denotes a vault and subscription state in which deletion is recoverable within retention interval (90 days), immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled. System wil permanently delete it after 90 days, if not recovered */
24
+ KnownDeletionRecoveryLevel["RecoverableProtectedSubscription"] = "Recoverable+ProtectedSubscription";
25
+ /** Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90). This level guarantees the recoverability of the deleted entity during the retention interval, unless a Purge operation is requested, or the subscription is cancelled. */
26
+ KnownDeletionRecoveryLevel["CustomizedRecoverablePurgeable"] = "CustomizedRecoverable+Purgeable";
27
+ /** Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90).This level guarantees the recoverability of the deleted entity during the retention interval and while the subscription is still available. */
28
+ KnownDeletionRecoveryLevel["CustomizedRecoverable"] = "CustomizedRecoverable";
29
+ /** Denotes a vault and subscription state in which deletion is recoverable, immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled when 7<= SoftDeleteRetentionInDays < 90. This level guarantees the recoverability of the deleted entity during the retention interval, and also reflects the fact that the subscription itself cannot be cancelled. */
30
+ KnownDeletionRecoveryLevel["CustomizedRecoverableProtectedSubscription"] = "CustomizedRecoverable+ProtectedSubscription";
31
+ })(KnownDeletionRecoveryLevel || (KnownDeletionRecoveryLevel = {}));
32
+ /** Known values of {@link JsonWebKeyType} that the service accepts. */
33
+ export var KnownJsonWebKeyType;
34
+ (function (KnownJsonWebKeyType) {
35
+ KnownJsonWebKeyType["EC"] = "EC";
36
+ KnownJsonWebKeyType["ECHSM"] = "EC-HSM";
37
+ KnownJsonWebKeyType["RSA"] = "RSA";
38
+ KnownJsonWebKeyType["RSAHSM"] = "RSA-HSM";
39
+ KnownJsonWebKeyType["Oct"] = "oct";
40
+ KnownJsonWebKeyType["OctHSM"] = "oct-HSM";
41
+ })(KnownJsonWebKeyType || (KnownJsonWebKeyType = {}));
42
+ /** Known values of {@link JsonWebKeyCurveName} that the service accepts. */
43
+ export var KnownJsonWebKeyCurveName;
44
+ (function (KnownJsonWebKeyCurveName) {
45
+ KnownJsonWebKeyCurveName["P256"] = "P-256";
46
+ KnownJsonWebKeyCurveName["P384"] = "P-384";
47
+ KnownJsonWebKeyCurveName["P521"] = "P-521";
48
+ KnownJsonWebKeyCurveName["P256K"] = "P-256K";
49
+ })(KnownJsonWebKeyCurveName || (KnownJsonWebKeyCurveName = {}));
50
+ /** Known values of {@link KeyUsageType} that the service accepts. */
51
+ export var KnownKeyUsageType;
52
+ (function (KnownKeyUsageType) {
53
+ KnownKeyUsageType["DigitalSignature"] = "digitalSignature";
54
+ KnownKeyUsageType["NonRepudiation"] = "nonRepudiation";
55
+ KnownKeyUsageType["KeyEncipherment"] = "keyEncipherment";
56
+ KnownKeyUsageType["DataEncipherment"] = "dataEncipherment";
57
+ KnownKeyUsageType["KeyAgreement"] = "keyAgreement";
58
+ KnownKeyUsageType["KeyCertSign"] = "keyCertSign";
59
+ KnownKeyUsageType["CRLSign"] = "cRLSign";
60
+ KnownKeyUsageType["EncipherOnly"] = "encipherOnly";
61
+ KnownKeyUsageType["DecipherOnly"] = "decipherOnly";
62
+ })(KnownKeyUsageType || (KnownKeyUsageType = {}));
9
63
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\n\n/** The certificate list result. */\nexport interface CertificateListResult {\n /**\n * A response message containing a list of certificates in the key vault along with a link to the next page of certificates.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: CertificateItem[];\n /**\n * The URL to get the next set of certificates.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** The certificate item containing certificate metadata. */\nexport interface CertificateItem {\n /** Certificate identifier. */\n id?: string;\n /** The certificate management attributes. */\n attributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n /** Thumbprint of the certificate. */\n x509Thumbprint?: Uint8Array;\n}\n\n/** The object attributes managed by the KeyVault service. */\nexport interface Attributes {\n /** Determines whether the object is enabled. */\n enabled?: boolean;\n /** Not before date in UTC. */\n notBefore?: Date;\n /** Expiry date in UTC. */\n expires?: Date;\n /**\n * Creation time in UTC.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly created?: Date;\n /**\n * Last updated time in UTC.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly updated?: Date;\n}\n\n/** The key vault error exception. */\nexport interface KeyVaultError {\n /**\n * The key vault server error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly error?: ErrorModel | null;\n}\n\n/** The key vault server error. */\nexport interface ErrorModel {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The key vault server error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly innerError?: ErrorModel | null;\n}\n\n/** A certificate bundle consists of a certificate (X509) plus its attributes. */\nexport interface CertificateBundle {\n /**\n * The certificate id.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The key id.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly kid?: string;\n /**\n * The secret id.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly sid?: string;\n /**\n * Thumbprint of the certificate.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly x509Thumbprint?: Uint8Array;\n /**\n * The management policy.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly policy?: CertificatePolicy;\n /** CER contents of x509 certificate. */\n cer?: Uint8Array;\n /** The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12', */\n contentType?: string;\n /** The certificate attributes. */\n attributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs */\n tags?: { [propertyName: string]: string };\n}\n\n/** Management policy for a certificate. */\nexport interface CertificatePolicy {\n /**\n * The certificate id.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /** Properties of the key backing a certificate. */\n keyProperties?: KeyProperties;\n /** Properties of the secret backing a certificate. */\n secretProperties?: SecretProperties;\n /** Properties of the X509 component of a certificate. */\n x509CertificateProperties?: X509CertificateProperties;\n /** Actions that will be performed by Key Vault over the lifetime of a certificate. */\n lifetimeActions?: LifetimeAction[];\n /** Parameters for the issuer of the X509 component of a certificate. */\n issuerParameters?: IssuerParameters;\n /** The certificate attributes. */\n attributes?: CertificateAttributes;\n}\n\n/** Properties of the key pair backing a certificate. */\nexport interface KeyProperties {\n /** Indicates if the private key can be exported. */\n exportable?: boolean;\n /** The type of key pair to be used for the certificate. */\n keyType?: JsonWebKeyType;\n /** The key size in bits. For example: 2048, 3072, or 4096 for RSA. */\n keySize?: number;\n /** Indicates if the same key pair will be used on certificate renewal. */\n reuseKey?: boolean;\n /** Elliptic curve name. For valid values, see JsonWebKeyCurveName. */\n curve?: JsonWebKeyCurveName;\n}\n\n/** Properties of the key backing a certificate. */\nexport interface SecretProperties {\n /** The media type (MIME type). */\n contentType?: string;\n}\n\n/** Properties of the X509 component of a certificate. */\nexport interface X509CertificateProperties {\n /** The subject name. Should be a valid X509 distinguished Name. */\n subject?: string;\n /** The enhanced key usage. */\n ekus?: string[];\n /** The subject alternative names. */\n subjectAlternativeNames?: SubjectAlternativeNames;\n /** List of key usages. */\n keyUsage?: KeyUsageType[];\n /** The duration that the certificate is valid in months. */\n validityInMonths?: number;\n}\n\n/** The subject alternate names of a X509 object. */\nexport interface SubjectAlternativeNames {\n /** Email addresses. */\n emails?: string[];\n /** Domain names. */\n dnsNames?: string[];\n /** User principal names. */\n upns?: string[];\n}\n\n/** Action and its trigger that will be performed by Key Vault over the lifetime of a certificate. */\nexport interface LifetimeAction {\n /** The condition that will execute the action. */\n trigger?: Trigger;\n /** The action that will be executed. */\n action?: Action;\n}\n\n/** A condition to be satisfied for an action to be executed. */\nexport interface Trigger {\n /** Percentage of lifetime at which to trigger. Value should be between 1 and 99. */\n lifetimePercentage?: number;\n /** Days before expiry to attempt renewal. Value should be between 1 and validity_in_months multiplied by 27. If validity_in_months is 36, then value should be between 1 and 972 (36 * 27). */\n daysBeforeExpiry?: number;\n}\n\n/** The action that will be executed. */\nexport interface Action {\n /** The type of the action. */\n actionType?: ActionType;\n}\n\n/** Parameters for the issuer of the X509 component of a certificate. */\nexport interface IssuerParameters {\n /** Name of the referenced issuer object or reserved names; for example, 'Self' or 'Unknown'. */\n name?: string;\n /** Certificate type as supported by the provider (optional); for example 'OV-SSL', 'EV-SSL' */\n certificateType?: string;\n /** Indicates if the certificates generated under this policy should be published to certificate transparency logs. */\n certificateTransparency?: boolean;\n}\n\n/** The contacts for the vault certificates. */\nexport interface Contacts {\n /**\n * Identifier for the contacts collection.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /** The contact list for the vault certificates. */\n contactList?: Contact[];\n}\n\n/** The contact information for the vault certificates. */\nexport interface Contact {\n /** Email address. */\n emailAddress?: string;\n /** Name. */\n name?: string;\n /** Phone number. */\n phone?: string;\n}\n\n/** The certificate issuer list result. */\nexport interface CertificateIssuerListResult {\n /**\n * A response message containing a list of certificate issuers in the key vault along with a link to the next page of certificate issuers.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: CertificateIssuerItem[];\n /**\n * The URL to get the next set of certificate issuers.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** The certificate issuer item containing certificate issuer metadata. */\nexport interface CertificateIssuerItem {\n /** Certificate Identifier. */\n id?: string;\n /** The issuer provider. */\n provider?: string;\n}\n\n/** The certificate issuer set parameters. */\nexport interface CertificateIssuerSetParameters {\n /** The issuer provider. */\n provider: string;\n /** The credentials to be used for the issuer. */\n credentials?: IssuerCredentials;\n /** Details of the organization as provided to the issuer. */\n organizationDetails?: OrganizationDetails;\n /** Attributes of the issuer object. */\n attributes?: IssuerAttributes;\n}\n\n/** The credentials to be used for the certificate issuer. */\nexport interface IssuerCredentials {\n /** The user name/account name/account id. */\n accountId?: string;\n /** The password/secret/account key. */\n password?: string;\n}\n\n/** Details of the organization of the certificate issuer. */\nexport interface OrganizationDetails {\n /** Id of the organization. */\n id?: string;\n /** Details of the organization administrator. */\n adminDetails?: AdministratorDetails[];\n}\n\n/** Details of the organization administrator of the certificate issuer. */\nexport interface AdministratorDetails {\n /** First name. */\n firstName?: string;\n /** Last name. */\n lastName?: string;\n /** Email address. */\n emailAddress?: string;\n /** Phone number. */\n phone?: string;\n}\n\n/** The attributes of an issuer managed by the Key Vault service. */\nexport interface IssuerAttributes {\n /** Determines whether the issuer is enabled. */\n enabled?: boolean;\n /**\n * Creation time in UTC.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly created?: Date;\n /**\n * Last updated time in UTC.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly updated?: Date;\n}\n\n/** The issuer for Key Vault certificate. */\nexport interface IssuerBundle {\n /**\n * Identifier for the issuer object.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /** The issuer provider. */\n provider?: string;\n /** The credentials to be used for the issuer. */\n credentials?: IssuerCredentials;\n /** Details of the organization as provided to the issuer. */\n organizationDetails?: OrganizationDetails;\n /** Attributes of the issuer object. */\n attributes?: IssuerAttributes;\n}\n\n/** The certificate issuer update parameters. */\nexport interface CertificateIssuerUpdateParameters {\n /** The issuer provider. */\n provider?: string;\n /** The credentials to be used for the issuer. */\n credentials?: IssuerCredentials;\n /** Details of the organization as provided to the issuer. */\n organizationDetails?: OrganizationDetails;\n /** Attributes of the issuer object. */\n attributes?: IssuerAttributes;\n}\n\n/** The certificate create parameters. */\nexport interface CertificateCreateParameters {\n /** The management policy for the certificate. */\n certificatePolicy?: CertificatePolicy;\n /** The attributes of the certificate (optional). */\n certificateAttributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n}\n\n/** A certificate operation is returned in case of asynchronous requests. */\nexport interface CertificateOperation {\n /**\n * The certificate id.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /** Parameters for the issuer of the X509 component of a certificate. */\n issuerParameters?: IssuerParameters;\n /** The certificate signing request (CSR) that is being used in the certificate operation. */\n csr?: Uint8Array;\n /** Indicates if cancellation was requested on the certificate operation. */\n cancellationRequested?: boolean;\n /** Status of the certificate operation. */\n status?: string;\n /** The status details of the certificate operation. */\n statusDetails?: string;\n /** Error encountered, if any, during the certificate operation. */\n error?: ErrorModel | null;\n /** Location which contains the result of the certificate operation. */\n target?: string;\n /** Identifier for the certificate operation. */\n requestId?: string;\n}\n\n/** The certificate import parameters. */\nexport interface CertificateImportParameters {\n /** Base64 encoded representation of the certificate object to import. This certificate needs to contain the private key. */\n base64EncodedCertificate: string;\n /** If the private key in base64EncodedCertificate is encrypted, the password used for encryption. */\n password?: string;\n /** The management policy for the certificate. */\n certificatePolicy?: CertificatePolicy;\n /** The attributes of the certificate (optional). */\n certificateAttributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n}\n\n/** The certificate update parameters. */\nexport interface CertificateUpdateParameters {\n /** The management policy for the certificate. */\n certificatePolicy?: CertificatePolicy;\n /** The attributes of the certificate (optional). */\n certificateAttributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n}\n\n/** The certificate operation update parameters. */\nexport interface CertificateOperationUpdateParameter {\n /** Indicates if cancellation was requested on the certificate operation. */\n cancellationRequested: boolean;\n}\n\n/** The certificate merge parameters */\nexport interface CertificateMergeParameters {\n /** The certificate or the certificate chain to merge. */\n x509Certificates: Uint8Array[];\n /** The attributes of the certificate (optional). */\n certificateAttributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n}\n\n/** The backup certificate result, containing the backup blob. */\nexport interface BackupCertificateResult {\n /**\n * The backup blob containing the backed up certificate.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: Uint8Array;\n}\n\n/** The certificate restore parameters. */\nexport interface CertificateRestoreParameters {\n /** The backup blob associated with a certificate bundle. */\n certificateBundleBackup: Uint8Array;\n}\n\n/** A list of certificates that have been deleted in this vault. */\nexport interface DeletedCertificateListResult {\n /**\n * A response message containing a list of deleted certificates in the vault along with a link to the next page of deleted certificates\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: DeletedCertificateItem[];\n /**\n * The URL to get the next set of deleted certificates.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** The pending certificate signing request result. */\nexport interface PendingCertificateSigningRequestResult {\n /**\n * The pending certificate signing request as Base64 encoded string.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: string;\n}\n\n/** The deleted certificate item containing metadata about the deleted certificate. */\nexport type DeletedCertificateItem = CertificateItem & {\n /** The url of the recovery object, used to identify and recover the deleted certificate. */\n recoveryId?: string;\n /**\n * The time when the certificate is scheduled to be purged, in UTC\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly scheduledPurgeDate?: Date;\n /**\n * The time when the certificate was deleted, in UTC\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly deletedDate?: Date;\n};\n\n/** The certificate management attributes. */\nexport type CertificateAttributes = Attributes & {\n /**\n * softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly recoverableDays?: number;\n /**\n * Reflects the deletion recovery level currently in effect for certificates in the current vault. If it contains 'Purgeable', the certificate can be permanently deleted by a privileged user; otherwise, only the system can purge the certificate, at the end of the retention interval.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly recoveryLevel?: DeletionRecoveryLevel;\n};\n\n/** A Deleted Certificate consisting of its previous id, attributes and its tags, as well as information on when it will be purged. */\nexport type DeletedCertificateBundle = CertificateBundle & {\n /** The url of the recovery object, used to identify and recover the deleted certificate. */\n recoveryId?: string;\n /**\n * The time when the certificate is scheduled to be purged, in UTC\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly scheduledPurgeDate?: Date;\n /**\n * The time when the certificate was deleted, in UTC\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly deletedDate?: Date;\n};\n\n/** Known values of {@link ApiVersion73Preview} that the service accepts. */\nexport const enum KnownApiVersion73Preview {\n /** Api Version '7.3-preview' */\n Seven3Preview = \"7.3-preview\"\n}\n\n/**\n * Defines values for ApiVersion73Preview. \\\n * {@link KnownApiVersion73Preview} can be used interchangeably with ApiVersion73Preview,\n * this enum contains the known values that the service supports.\n * ### Know values supported by the service\n * **7.3-preview**: Api Version '7.3-preview'\n */\nexport type ApiVersion73Preview = string;\n\n/** Known values of {@link DeletionRecoveryLevel} that the service accepts. */\nexport const enum KnownDeletionRecoveryLevel {\n /** Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.) */\n Purgeable = \"Purgeable\",\n /** Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval (90 days), unless a Purge operation is requested, or the subscription is cancelled. System wil permanently delete it after 90 days, if not recovered */\n RecoverablePurgeable = \"Recoverable+Purgeable\",\n /** Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval(90 days) and while the subscription is still available. System wil permanently delete it after 90 days, if not recovered */\n Recoverable = \"Recoverable\",\n /** Denotes a vault and subscription state in which deletion is recoverable within retention interval (90 days), immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled. System wil permanently delete it after 90 days, if not recovered */\n RecoverableProtectedSubscription = \"Recoverable+ProtectedSubscription\",\n /** Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90). This level guarantees the recoverability of the deleted entity during the retention interval, unless a Purge operation is requested, or the subscription is cancelled. */\n CustomizedRecoverablePurgeable = \"CustomizedRecoverable+Purgeable\",\n /** Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90).This level guarantees the recoverability of the deleted entity during the retention interval and while the subscription is still available. */\n CustomizedRecoverable = \"CustomizedRecoverable\",\n /** Denotes a vault and subscription state in which deletion is recoverable, immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled when 7<= SoftDeleteRetentionInDays < 90. This level guarantees the recoverability of the deleted entity during the retention interval, and also reflects the fact that the subscription itself cannot be cancelled. */\n CustomizedRecoverableProtectedSubscription = \"CustomizedRecoverable+ProtectedSubscription\"\n}\n\n/**\n * Defines values for DeletionRecoveryLevel. \\\n * {@link KnownDeletionRecoveryLevel} can be used interchangeably with DeletionRecoveryLevel,\n * this enum contains the known values that the service supports.\n * ### Know values supported by the service\n * **Purgeable**: Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.) \\\n * **Recoverable+Purgeable**: Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval (90 days), unless a Purge operation is requested, or the subscription is cancelled. System wil permanently delete it after 90 days, if not recovered \\\n * **Recoverable**: Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval(90 days) and while the subscription is still available. System wil permanently delete it after 90 days, if not recovered \\\n * **Recoverable+ProtectedSubscription**: Denotes a vault and subscription state in which deletion is recoverable within retention interval (90 days), immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled. System wil permanently delete it after 90 days, if not recovered \\\n * **CustomizedRecoverable+Purgeable**: Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90). This level guarantees the recoverability of the deleted entity during the retention interval, unless a Purge operation is requested, or the subscription is cancelled. \\\n * **CustomizedRecoverable**: Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90).This level guarantees the recoverability of the deleted entity during the retention interval and while the subscription is still available. \\\n * **CustomizedRecoverable+ProtectedSubscription**: Denotes a vault and subscription state in which deletion is recoverable, immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled when 7<= SoftDeleteRetentionInDays < 90. This level guarantees the recoverability of the deleted entity during the retention interval, and also reflects the fact that the subscription itself cannot be cancelled.\n */\nexport type DeletionRecoveryLevel = string;\n\n/** Known values of {@link JsonWebKeyType} that the service accepts. */\nexport const enum KnownJsonWebKeyType {\n EC = \"EC\",\n ECHSM = \"EC-HSM\",\n RSA = \"RSA\",\n RSAHSM = \"RSA-HSM\",\n Oct = \"oct\",\n OctHSM = \"oct-HSM\"\n}\n\n/**\n * Defines values for JsonWebKeyType. \\\n * {@link KnownJsonWebKeyType} can be used interchangeably with JsonWebKeyType,\n * this enum contains the known values that the service supports.\n * ### Know values supported by the service\n * **EC** \\\n * **EC-HSM** \\\n * **RSA** \\\n * **RSA-HSM** \\\n * **oct** \\\n * **oct-HSM**\n */\nexport type JsonWebKeyType = string;\n\n/** Known values of {@link JsonWebKeyCurveName} that the service accepts. */\nexport const enum KnownJsonWebKeyCurveName {\n P256 = \"P-256\",\n P384 = \"P-384\",\n P521 = \"P-521\",\n P256K = \"P-256K\"\n}\n\n/**\n * Defines values for JsonWebKeyCurveName. \\\n * {@link KnownJsonWebKeyCurveName} can be used interchangeably with JsonWebKeyCurveName,\n * this enum contains the known values that the service supports.\n * ### Know values supported by the service\n * **P-256** \\\n * **P-384** \\\n * **P-521** \\\n * **P-256K**\n */\nexport type JsonWebKeyCurveName = string;\n\n/** Known values of {@link KeyUsageType} that the service accepts. */\nexport const enum KnownKeyUsageType {\n DigitalSignature = \"digitalSignature\",\n NonRepudiation = \"nonRepudiation\",\n KeyEncipherment = \"keyEncipherment\",\n DataEncipherment = \"dataEncipherment\",\n KeyAgreement = \"keyAgreement\",\n KeyCertSign = \"keyCertSign\",\n CRLSign = \"cRLSign\",\n EncipherOnly = \"encipherOnly\",\n DecipherOnly = \"decipherOnly\"\n}\n\n/**\n * Defines values for KeyUsageType. \\\n * {@link KnownKeyUsageType} can be used interchangeably with KeyUsageType,\n * this enum contains the known values that the service supports.\n * ### Know values supported by the service\n * **digitalSignature** \\\n * **nonRepudiation** \\\n * **keyEncipherment** \\\n * **dataEncipherment** \\\n * **keyAgreement** \\\n * **keyCertSign** \\\n * **cRLSign** \\\n * **encipherOnly** \\\n * **decipherOnly**\n */\nexport type KeyUsageType = string;\n/** Defines values for ActionType. */\nexport type ActionType = \"EmailContacts\" | \"AutoRenew\";\n\n/** Optional parameters. */\nexport interface KeyVaultClientGetCertificatesOptionalParams\n extends coreHttp.OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n /** Specifies whether to include certificates which are not completely provisioned. */\n includePending?: boolean;\n}\n\n/** Contains response data for the getCertificates operation. */\nexport type KeyVaultClientGetCertificatesResponse = CertificateListResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateListResult;\n };\n};\n\n/** Contains response data for the deleteCertificate operation. */\nexport type KeyVaultClientDeleteCertificateResponse = DeletedCertificateBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: DeletedCertificateBundle;\n };\n};\n\n/** Contains response data for the setCertificateContacts operation. */\nexport type KeyVaultClientSetCertificateContactsResponse = Contacts & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: Contacts;\n };\n};\n\n/** Contains response data for the getCertificateContacts operation. */\nexport type KeyVaultClientGetCertificateContactsResponse = Contacts & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: Contacts;\n };\n};\n\n/** Contains response data for the deleteCertificateContacts operation. */\nexport type KeyVaultClientDeleteCertificateContactsResponse = Contacts & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: Contacts;\n };\n};\n\n/** Optional parameters. */\nexport interface KeyVaultClientGetCertificateIssuersOptionalParams\n extends coreHttp.OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n}\n\n/** Contains response data for the getCertificateIssuers operation. */\nexport type KeyVaultClientGetCertificateIssuersResponse = CertificateIssuerListResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateIssuerListResult;\n };\n};\n\n/** Optional parameters. */\nexport interface KeyVaultClientSetCertificateIssuerOptionalParams\n extends coreHttp.OperationOptions {\n /** The credentials to be used for the issuer. */\n credentials?: IssuerCredentials;\n /** Details of the organization as provided to the issuer. */\n organizationDetails?: OrganizationDetails;\n /** Attributes of the issuer object. */\n attributes?: IssuerAttributes;\n}\n\n/** Contains response data for the setCertificateIssuer operation. */\nexport type KeyVaultClientSetCertificateIssuerResponse = IssuerBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: IssuerBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface KeyVaultClientUpdateCertificateIssuerOptionalParams\n extends coreHttp.OperationOptions {\n /** The issuer provider. */\n provider?: string;\n /** The credentials to be used for the issuer. */\n credentials?: IssuerCredentials;\n /** Details of the organization as provided to the issuer. */\n organizationDetails?: OrganizationDetails;\n /** Attributes of the issuer object. */\n attributes?: IssuerAttributes;\n}\n\n/** Contains response data for the updateCertificateIssuer operation. */\nexport type KeyVaultClientUpdateCertificateIssuerResponse = IssuerBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: IssuerBundle;\n };\n};\n\n/** Contains response data for the getCertificateIssuer operation. */\nexport type KeyVaultClientGetCertificateIssuerResponse = IssuerBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: IssuerBundle;\n };\n};\n\n/** Contains response data for the deleteCertificateIssuer operation. */\nexport type KeyVaultClientDeleteCertificateIssuerResponse = IssuerBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: IssuerBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface KeyVaultClientCreateCertificateOptionalParams\n extends coreHttp.OperationOptions {\n /** The management policy for the certificate. */\n certificatePolicy?: CertificatePolicy;\n /** The attributes of the certificate (optional). */\n certificateAttributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n}\n\n/** Contains response data for the createCertificate operation. */\nexport type KeyVaultClientCreateCertificateResponse = CertificateOperation & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateOperation;\n };\n};\n\n/** Optional parameters. */\nexport interface KeyVaultClientImportCertificateOptionalParams\n extends coreHttp.OperationOptions {\n /** If the private key in base64EncodedCertificate is encrypted, the password used for encryption. */\n password?: string;\n /** The management policy for the certificate. */\n certificatePolicy?: CertificatePolicy;\n /** The attributes of the certificate (optional). */\n certificateAttributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n}\n\n/** Contains response data for the importCertificate operation. */\nexport type KeyVaultClientImportCertificateResponse = CertificateBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface KeyVaultClientGetCertificateVersionsOptionalParams\n extends coreHttp.OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n}\n\n/** Contains response data for the getCertificateVersions operation. */\nexport type KeyVaultClientGetCertificateVersionsResponse = CertificateListResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateListResult;\n };\n};\n\n/** Contains response data for the getCertificatePolicy operation. */\nexport type KeyVaultClientGetCertificatePolicyResponse = CertificatePolicy & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificatePolicy;\n };\n};\n\n/** Contains response data for the updateCertificatePolicy operation. */\nexport type KeyVaultClientUpdateCertificatePolicyResponse = CertificatePolicy & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificatePolicy;\n };\n};\n\n/** Optional parameters. */\nexport interface KeyVaultClientUpdateCertificateOptionalParams\n extends coreHttp.OperationOptions {\n /** The management policy for the certificate. */\n certificatePolicy?: CertificatePolicy;\n /** The attributes of the certificate (optional). */\n certificateAttributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n}\n\n/** Contains response data for the updateCertificate operation. */\nexport type KeyVaultClientUpdateCertificateResponse = CertificateBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateBundle;\n };\n};\n\n/** Contains response data for the getCertificate operation. */\nexport type KeyVaultClientGetCertificateResponse = CertificateBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateBundle;\n };\n};\n\n/** Contains response data for the updateCertificateOperation operation. */\nexport type KeyVaultClientUpdateCertificateOperationResponse = CertificateOperation & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateOperation;\n };\n};\n\n/** Contains response data for the getCertificateOperation operation. */\nexport type KeyVaultClientGetCertificateOperationResponse = CertificateOperation & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateOperation;\n };\n};\n\n/** Contains response data for the deleteCertificateOperation operation. */\nexport type KeyVaultClientDeleteCertificateOperationResponse = CertificateOperation & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateOperation;\n };\n};\n\n/** Optional parameters. */\nexport interface KeyVaultClientMergeCertificateOptionalParams\n extends coreHttp.OperationOptions {\n /** The attributes of the certificate (optional). */\n certificateAttributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n}\n\n/** Contains response data for the mergeCertificate operation. */\nexport type KeyVaultClientMergeCertificateResponse = CertificateBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateBundle;\n };\n};\n\n/** Contains response data for the backupCertificate operation. */\nexport type KeyVaultClientBackupCertificateResponse = BackupCertificateResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: BackupCertificateResult;\n };\n};\n\n/** Contains response data for the restoreCertificate operation. */\nexport type KeyVaultClientRestoreCertificateResponse = CertificateBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface KeyVaultClientGetDeletedCertificatesOptionalParams\n extends coreHttp.OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n /** Specifies whether to include certificates which are not completely provisioned. */\n includePending?: boolean;\n}\n\n/** Contains response data for the getDeletedCertificates operation. */\nexport type KeyVaultClientGetDeletedCertificatesResponse = DeletedCertificateListResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: DeletedCertificateListResult;\n };\n};\n\n/** Contains response data for the getDeletedCertificate operation. */\nexport type KeyVaultClientGetDeletedCertificateResponse = DeletedCertificateBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: DeletedCertificateBundle;\n };\n};\n\n/** Contains response data for the recoverDeletedCertificate operation. */\nexport type KeyVaultClientRecoverDeletedCertificateResponse = CertificateBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface KeyVaultClientGetCertificatesNextOptionalParams\n extends coreHttp.OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n /** Specifies whether to include certificates which are not completely provisioned. */\n includePending?: boolean;\n}\n\n/** Contains response data for the getCertificatesNext operation. */\nexport type KeyVaultClientGetCertificatesNextResponse = CertificateListResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateListResult;\n };\n};\n\n/** Optional parameters. */\nexport interface KeyVaultClientGetCertificateIssuersNextOptionalParams\n extends coreHttp.OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n}\n\n/** Contains response data for the getCertificateIssuersNext operation. */\nexport type KeyVaultClientGetCertificateIssuersNextResponse = CertificateIssuerListResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateIssuerListResult;\n };\n};\n\n/** Optional parameters. */\nexport interface KeyVaultClientGetCertificateVersionsNextOptionalParams\n extends coreHttp.OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n}\n\n/** Contains response data for the getCertificateVersionsNext operation. */\nexport type KeyVaultClientGetCertificateVersionsNextResponse = CertificateListResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateListResult;\n };\n};\n\n/** Optional parameters. */\nexport interface KeyVaultClientGetDeletedCertificatesNextOptionalParams\n extends coreHttp.OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n /** Specifies whether to include certificates which are not completely provisioned. */\n includePending?: boolean;\n}\n\n/** Contains response data for the getDeletedCertificatesNext operation. */\nexport type KeyVaultClientGetDeletedCertificatesNextResponse = DeletedCertificateListResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: DeletedCertificateListResult;\n };\n};\n\n/** Optional parameters. */\nexport interface KeyVaultClientOptionalParams\n extends coreHttp.ServiceClientOptions {\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAmfH,qEAAqE;AACrE,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,wBAAwB;IACxB,mCAAc,CAAA;AAChB,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B;AAWD,8EAA8E;AAC9E,MAAM,CAAN,IAAY,0BAeX;AAfD,WAAY,0BAA0B;IACpC,gVAAgV;IAChV,qDAAuB,CAAA;IACvB,sXAAsX;IACtX,4EAA8C,CAAA;IAC9C,8VAA8V;IAC9V,yDAA2B,CAAA;IAC3B,0TAA0T;IAC1T,oGAAsE,CAAA;IACtE,mVAAmV;IACnV,gGAAkE,CAAA;IAClE,2TAA2T;IAC3T,6EAA+C,CAAA;IAC/C,uaAAua;IACva,wHAA0F,CAAA;AAC5F,CAAC,EAfW,0BAA0B,KAA1B,0BAA0B,QAerC;AAiBD,uEAAuE;AACvE,MAAM,CAAN,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,gCAAS,CAAA;IACT,uCAAgB,CAAA;IAChB,kCAAW,CAAA;IACX,yCAAkB,CAAA;IAClB,kCAAW,CAAA;IACX,yCAAkB,CAAA;AACpB,CAAC,EAPW,mBAAmB,KAAnB,mBAAmB,QAO9B;AAgBD,4EAA4E;AAC5E,MAAM,CAAN,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,0CAAc,CAAA;IACd,0CAAc,CAAA;IACd,0CAAc,CAAA;IACd,4CAAgB,CAAA;AAClB,CAAC,EALW,wBAAwB,KAAxB,wBAAwB,QAKnC;AAcD,qEAAqE;AACrE,MAAM,CAAN,IAAY,iBAUX;AAVD,WAAY,iBAAiB;IAC3B,0DAAqC,CAAA;IACrC,sDAAiC,CAAA;IACjC,wDAAmC,CAAA;IACnC,0DAAqC,CAAA;IACrC,kDAA6B,CAAA;IAC7B,gDAA2B,CAAA;IAC3B,wCAAmB,CAAA;IACnB,kDAA6B,CAAA;IAC7B,kDAA6B,CAAA;AAC/B,CAAC,EAVW,iBAAiB,KAAjB,iBAAiB,QAU5B","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\n\n/** The certificate list result. */\nexport interface CertificateListResult {\n /**\n * A response message containing a list of certificates in the key vault along with a link to the next page of certificates.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: CertificateItem[];\n /**\n * The URL to get the next set of certificates.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** The certificate item containing certificate metadata. */\nexport interface CertificateItem {\n /** Certificate identifier. */\n id?: string;\n /** The certificate management attributes. */\n attributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n /** Thumbprint of the certificate. */\n x509Thumbprint?: Uint8Array;\n}\n\n/** The object attributes managed by the KeyVault service. */\nexport interface Attributes {\n /** Determines whether the object is enabled. */\n enabled?: boolean;\n /** Not before date in UTC. */\n notBefore?: Date;\n /** Expiry date in UTC. */\n expires?: Date;\n /**\n * Creation time in UTC.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly created?: Date;\n /**\n * Last updated time in UTC.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly updated?: Date;\n}\n\n/** The key vault error exception. */\nexport interface KeyVaultError {\n /**\n * The key vault server error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly error?: ErrorModel | null;\n}\n\n/** The key vault server error. */\nexport interface ErrorModel {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The key vault server error.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly innerError?: ErrorModel | null;\n}\n\n/** A certificate bundle consists of a certificate (X509) plus its attributes. */\nexport interface CertificateBundle {\n /**\n * The certificate id.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The key id.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly kid?: string;\n /**\n * The secret id.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly sid?: string;\n /**\n * Thumbprint of the certificate.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly x509Thumbprint?: Uint8Array;\n /**\n * The management policy.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly policy?: CertificatePolicy;\n /** CER contents of x509 certificate. */\n cer?: Uint8Array;\n /** The content type of the secret. eg. 'application/x-pem-file' or 'application/x-pkcs12', */\n contentType?: string;\n /** The certificate attributes. */\n attributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs */\n tags?: { [propertyName: string]: string };\n}\n\n/** Management policy for a certificate. */\nexport interface CertificatePolicy {\n /**\n * The certificate id.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /** Properties of the key backing a certificate. */\n keyProperties?: KeyProperties;\n /** Properties of the secret backing a certificate. */\n secretProperties?: SecretProperties;\n /** Properties of the X509 component of a certificate. */\n x509CertificateProperties?: X509CertificateProperties;\n /** Actions that will be performed by Key Vault over the lifetime of a certificate. */\n lifetimeActions?: LifetimeAction[];\n /** Parameters for the issuer of the X509 component of a certificate. */\n issuerParameters?: IssuerParameters;\n /** The certificate attributes. */\n attributes?: CertificateAttributes;\n}\n\n/** Properties of the key pair backing a certificate. */\nexport interface KeyProperties {\n /** Indicates if the private key can be exported. */\n exportable?: boolean;\n /** The type of key pair to be used for the certificate. */\n keyType?: JsonWebKeyType;\n /** The key size in bits. For example: 2048, 3072, or 4096 for RSA. */\n keySize?: number;\n /** Indicates if the same key pair will be used on certificate renewal. */\n reuseKey?: boolean;\n /** Elliptic curve name. For valid values, see JsonWebKeyCurveName. */\n curve?: JsonWebKeyCurveName;\n}\n\n/** Properties of the key backing a certificate. */\nexport interface SecretProperties {\n /** The media type (MIME type). */\n contentType?: string;\n}\n\n/** Properties of the X509 component of a certificate. */\nexport interface X509CertificateProperties {\n /** The subject name. Should be a valid X509 distinguished Name. */\n subject?: string;\n /** The enhanced key usage. */\n ekus?: string[];\n /** The subject alternative names. */\n subjectAlternativeNames?: SubjectAlternativeNames;\n /** List of key usages. */\n keyUsage?: KeyUsageType[];\n /** The duration that the certificate is valid in months. */\n validityInMonths?: number;\n}\n\n/** The subject alternate names of a X509 object. */\nexport interface SubjectAlternativeNames {\n /** Email addresses. */\n emails?: string[];\n /** Domain names. */\n dnsNames?: string[];\n /** User principal names. */\n upns?: string[];\n}\n\n/** Action and its trigger that will be performed by Key Vault over the lifetime of a certificate. */\nexport interface LifetimeAction {\n /** The condition that will execute the action. */\n trigger?: Trigger;\n /** The action that will be executed. */\n action?: Action;\n}\n\n/** A condition to be satisfied for an action to be executed. */\nexport interface Trigger {\n /** Percentage of lifetime at which to trigger. Value should be between 1 and 99. */\n lifetimePercentage?: number;\n /** Days before expiry to attempt renewal. Value should be between 1 and validity_in_months multiplied by 27. If validity_in_months is 36, then value should be between 1 and 972 (36 * 27). */\n daysBeforeExpiry?: number;\n}\n\n/** The action that will be executed. */\nexport interface Action {\n /** The type of the action. */\n actionType?: ActionType;\n}\n\n/** Parameters for the issuer of the X509 component of a certificate. */\nexport interface IssuerParameters {\n /** Name of the referenced issuer object or reserved names; for example, 'Self' or 'Unknown'. */\n name?: string;\n /** Certificate type as supported by the provider (optional); for example 'OV-SSL', 'EV-SSL' */\n certificateType?: string;\n /** Indicates if the certificates generated under this policy should be published to certificate transparency logs. */\n certificateTransparency?: boolean;\n}\n\n/** The contacts for the vault certificates. */\nexport interface Contacts {\n /**\n * Identifier for the contacts collection.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /** The contact list for the vault certificates. */\n contactList?: Contact[];\n}\n\n/** The contact information for the vault certificates. */\nexport interface Contact {\n /** Email address. */\n emailAddress?: string;\n /** Name. */\n name?: string;\n /** Phone number. */\n phone?: string;\n}\n\n/** The certificate issuer list result. */\nexport interface CertificateIssuerListResult {\n /**\n * A response message containing a list of certificate issuers in the key vault along with a link to the next page of certificate issuers.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: CertificateIssuerItem[];\n /**\n * The URL to get the next set of certificate issuers.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** The certificate issuer item containing certificate issuer metadata. */\nexport interface CertificateIssuerItem {\n /** Certificate Identifier. */\n id?: string;\n /** The issuer provider. */\n provider?: string;\n}\n\n/** The certificate issuer set parameters. */\nexport interface CertificateIssuerSetParameters {\n /** The issuer provider. */\n provider: string;\n /** The credentials to be used for the issuer. */\n credentials?: IssuerCredentials;\n /** Details of the organization as provided to the issuer. */\n organizationDetails?: OrganizationDetails;\n /** Attributes of the issuer object. */\n attributes?: IssuerAttributes;\n}\n\n/** The credentials to be used for the certificate issuer. */\nexport interface IssuerCredentials {\n /** The user name/account name/account id. */\n accountId?: string;\n /** The password/secret/account key. */\n password?: string;\n}\n\n/** Details of the organization of the certificate issuer. */\nexport interface OrganizationDetails {\n /** Id of the organization. */\n id?: string;\n /** Details of the organization administrator. */\n adminDetails?: AdministratorDetails[];\n}\n\n/** Details of the organization administrator of the certificate issuer. */\nexport interface AdministratorDetails {\n /** First name. */\n firstName?: string;\n /** Last name. */\n lastName?: string;\n /** Email address. */\n emailAddress?: string;\n /** Phone number. */\n phone?: string;\n}\n\n/** The attributes of an issuer managed by the Key Vault service. */\nexport interface IssuerAttributes {\n /** Determines whether the issuer is enabled. */\n enabled?: boolean;\n /**\n * Creation time in UTC.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly created?: Date;\n /**\n * Last updated time in UTC.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly updated?: Date;\n}\n\n/** The issuer for Key Vault certificate. */\nexport interface IssuerBundle {\n /**\n * Identifier for the issuer object.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /** The issuer provider. */\n provider?: string;\n /** The credentials to be used for the issuer. */\n credentials?: IssuerCredentials;\n /** Details of the organization as provided to the issuer. */\n organizationDetails?: OrganizationDetails;\n /** Attributes of the issuer object. */\n attributes?: IssuerAttributes;\n}\n\n/** The certificate issuer update parameters. */\nexport interface CertificateIssuerUpdateParameters {\n /** The issuer provider. */\n provider?: string;\n /** The credentials to be used for the issuer. */\n credentials?: IssuerCredentials;\n /** Details of the organization as provided to the issuer. */\n organizationDetails?: OrganizationDetails;\n /** Attributes of the issuer object. */\n attributes?: IssuerAttributes;\n}\n\n/** The certificate create parameters. */\nexport interface CertificateCreateParameters {\n /** The management policy for the certificate. */\n certificatePolicy?: CertificatePolicy;\n /** The attributes of the certificate (optional). */\n certificateAttributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n}\n\n/** A certificate operation is returned in case of asynchronous requests. */\nexport interface CertificateOperation {\n /**\n * The certificate id.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /** Parameters for the issuer of the X509 component of a certificate. */\n issuerParameters?: IssuerParameters;\n /** The certificate signing request (CSR) that is being used in the certificate operation. */\n csr?: Uint8Array;\n /** Indicates if cancellation was requested on the certificate operation. */\n cancellationRequested?: boolean;\n /** Status of the certificate operation. */\n status?: string;\n /** The status details of the certificate operation. */\n statusDetails?: string;\n /** Error encountered, if any, during the certificate operation. */\n error?: ErrorModel | null;\n /** Location which contains the result of the certificate operation. */\n target?: string;\n /** Identifier for the certificate operation. */\n requestId?: string;\n}\n\n/** The certificate import parameters. */\nexport interface CertificateImportParameters {\n /** Base64 encoded representation of the certificate object to import. This certificate needs to contain the private key. */\n base64EncodedCertificate: string;\n /** If the private key in base64EncodedCertificate is encrypted, the password used for encryption. */\n password?: string;\n /** The management policy for the certificate. */\n certificatePolicy?: CertificatePolicy;\n /** The attributes of the certificate (optional). */\n certificateAttributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n}\n\n/** The certificate update parameters. */\nexport interface CertificateUpdateParameters {\n /** The management policy for the certificate. */\n certificatePolicy?: CertificatePolicy;\n /** The attributes of the certificate (optional). */\n certificateAttributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n}\n\n/** The certificate operation update parameters. */\nexport interface CertificateOperationUpdateParameter {\n /** Indicates if cancellation was requested on the certificate operation. */\n cancellationRequested: boolean;\n}\n\n/** The certificate merge parameters */\nexport interface CertificateMergeParameters {\n /** The certificate or the certificate chain to merge. */\n x509Certificates: Uint8Array[];\n /** The attributes of the certificate (optional). */\n certificateAttributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n}\n\n/** The backup certificate result, containing the backup blob. */\nexport interface BackupCertificateResult {\n /**\n * The backup blob containing the backed up certificate.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: Uint8Array;\n}\n\n/** The certificate restore parameters. */\nexport interface CertificateRestoreParameters {\n /** The backup blob associated with a certificate bundle. */\n certificateBundleBackup: Uint8Array;\n}\n\n/** A list of certificates that have been deleted in this vault. */\nexport interface DeletedCertificateListResult {\n /**\n * A response message containing a list of deleted certificates in the vault along with a link to the next page of deleted certificates\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: DeletedCertificateItem[];\n /**\n * The URL to get the next set of deleted certificates.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** The pending certificate signing request result. */\nexport interface PendingCertificateSigningRequestResult {\n /**\n * The pending certificate signing request as Base64 encoded string.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: string;\n}\n\n/** The deleted certificate item containing metadata about the deleted certificate. */\nexport type DeletedCertificateItem = CertificateItem & {\n /** The url of the recovery object, used to identify and recover the deleted certificate. */\n recoveryId?: string;\n /**\n * The time when the certificate is scheduled to be purged, in UTC\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly scheduledPurgeDate?: Date;\n /**\n * The time when the certificate was deleted, in UTC\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly deletedDate?: Date;\n};\n\n/** The certificate management attributes. */\nexport type CertificateAttributes = Attributes & {\n /**\n * softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly recoverableDays?: number;\n /**\n * Reflects the deletion recovery level currently in effect for certificates in the current vault. If it contains 'Purgeable', the certificate can be permanently deleted by a privileged user; otherwise, only the system can purge the certificate, at the end of the retention interval.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly recoveryLevel?: DeletionRecoveryLevel;\n};\n\n/** A Deleted Certificate consisting of its previous id, attributes and its tags, as well as information on when it will be purged. */\nexport type DeletedCertificateBundle = CertificateBundle & {\n /** The url of the recovery object, used to identify and recover the deleted certificate. */\n recoveryId?: string;\n /**\n * The time when the certificate is scheduled to be purged, in UTC\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly scheduledPurgeDate?: Date;\n /**\n * The time when the certificate was deleted, in UTC\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly deletedDate?: Date;\n};\n\n/** Known values of {@link ApiVersion73} that the service accepts. */\nexport enum KnownApiVersion73 {\n /** Api Version '7.3' */\n Seven3 = \"7.3\"\n}\n\n/**\n * Defines values for ApiVersion73. \\\n * {@link KnownApiVersion73} can be used interchangeably with ApiVersion73,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **7.3**: Api Version '7.3'\n */\nexport type ApiVersion73 = string;\n\n/** Known values of {@link DeletionRecoveryLevel} that the service accepts. */\nexport enum KnownDeletionRecoveryLevel {\n /** Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.) */\n Purgeable = \"Purgeable\",\n /** Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval (90 days), unless a Purge operation is requested, or the subscription is cancelled. System wil permanently delete it after 90 days, if not recovered */\n RecoverablePurgeable = \"Recoverable+Purgeable\",\n /** Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval(90 days) and while the subscription is still available. System wil permanently delete it after 90 days, if not recovered */\n Recoverable = \"Recoverable\",\n /** Denotes a vault and subscription state in which deletion is recoverable within retention interval (90 days), immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled. System wil permanently delete it after 90 days, if not recovered */\n RecoverableProtectedSubscription = \"Recoverable+ProtectedSubscription\",\n /** Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90). This level guarantees the recoverability of the deleted entity during the retention interval, unless a Purge operation is requested, or the subscription is cancelled. */\n CustomizedRecoverablePurgeable = \"CustomizedRecoverable+Purgeable\",\n /** Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90).This level guarantees the recoverability of the deleted entity during the retention interval and while the subscription is still available. */\n CustomizedRecoverable = \"CustomizedRecoverable\",\n /** Denotes a vault and subscription state in which deletion is recoverable, immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled when 7<= SoftDeleteRetentionInDays < 90. This level guarantees the recoverability of the deleted entity during the retention interval, and also reflects the fact that the subscription itself cannot be cancelled. */\n CustomizedRecoverableProtectedSubscription = \"CustomizedRecoverable+ProtectedSubscription\"\n}\n\n/**\n * Defines values for DeletionRecoveryLevel. \\\n * {@link KnownDeletionRecoveryLevel} can be used interchangeably with DeletionRecoveryLevel,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Purgeable**: Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.) \\\n * **Recoverable+Purgeable**: Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval (90 days), unless a Purge operation is requested, or the subscription is cancelled. System wil permanently delete it after 90 days, if not recovered \\\n * **Recoverable**: Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval(90 days) and while the subscription is still available. System wil permanently delete it after 90 days, if not recovered \\\n * **Recoverable+ProtectedSubscription**: Denotes a vault and subscription state in which deletion is recoverable within retention interval (90 days), immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled. System wil permanently delete it after 90 days, if not recovered \\\n * **CustomizedRecoverable+Purgeable**: Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90). This level guarantees the recoverability of the deleted entity during the retention interval, unless a Purge operation is requested, or the subscription is cancelled. \\\n * **CustomizedRecoverable**: Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90).This level guarantees the recoverability of the deleted entity during the retention interval and while the subscription is still available. \\\n * **CustomizedRecoverable+ProtectedSubscription**: Denotes a vault and subscription state in which deletion is recoverable, immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled when 7<= SoftDeleteRetentionInDays < 90. This level guarantees the recoverability of the deleted entity during the retention interval, and also reflects the fact that the subscription itself cannot be cancelled.\n */\nexport type DeletionRecoveryLevel = string;\n\n/** Known values of {@link JsonWebKeyType} that the service accepts. */\nexport enum KnownJsonWebKeyType {\n EC = \"EC\",\n ECHSM = \"EC-HSM\",\n RSA = \"RSA\",\n RSAHSM = \"RSA-HSM\",\n Oct = \"oct\",\n OctHSM = \"oct-HSM\"\n}\n\n/**\n * Defines values for JsonWebKeyType. \\\n * {@link KnownJsonWebKeyType} can be used interchangeably with JsonWebKeyType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **EC** \\\n * **EC-HSM** \\\n * **RSA** \\\n * **RSA-HSM** \\\n * **oct** \\\n * **oct-HSM**\n */\nexport type JsonWebKeyType = string;\n\n/** Known values of {@link JsonWebKeyCurveName} that the service accepts. */\nexport enum KnownJsonWebKeyCurveName {\n P256 = \"P-256\",\n P384 = \"P-384\",\n P521 = \"P-521\",\n P256K = \"P-256K\"\n}\n\n/**\n * Defines values for JsonWebKeyCurveName. \\\n * {@link KnownJsonWebKeyCurveName} can be used interchangeably with JsonWebKeyCurveName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **P-256** \\\n * **P-384** \\\n * **P-521** \\\n * **P-256K**\n */\nexport type JsonWebKeyCurveName = string;\n\n/** Known values of {@link KeyUsageType} that the service accepts. */\nexport enum KnownKeyUsageType {\n DigitalSignature = \"digitalSignature\",\n NonRepudiation = \"nonRepudiation\",\n KeyEncipherment = \"keyEncipherment\",\n DataEncipherment = \"dataEncipherment\",\n KeyAgreement = \"keyAgreement\",\n KeyCertSign = \"keyCertSign\",\n CRLSign = \"cRLSign\",\n EncipherOnly = \"encipherOnly\",\n DecipherOnly = \"decipherOnly\"\n}\n\n/**\n * Defines values for KeyUsageType. \\\n * {@link KnownKeyUsageType} can be used interchangeably with KeyUsageType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **digitalSignature** \\\n * **nonRepudiation** \\\n * **keyEncipherment** \\\n * **dataEncipherment** \\\n * **keyAgreement** \\\n * **keyCertSign** \\\n * **cRLSign** \\\n * **encipherOnly** \\\n * **decipherOnly**\n */\nexport type KeyUsageType = string;\n/** Defines values for ActionType. */\nexport type ActionType = \"EmailContacts\" | \"AutoRenew\";\n\n/** Optional parameters. */\nexport interface GetCertificatesOptionalParams\n extends coreHttp.OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n /** Specifies whether to include certificates which are not completely provisioned. */\n includePending?: boolean;\n}\n\n/** Contains response data for the getCertificates operation. */\nexport type GetCertificatesResponse = CertificateListResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateListResult;\n };\n};\n\n/** Optional parameters. */\nexport interface DeleteCertificateOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Contains response data for the deleteCertificate operation. */\nexport type DeleteCertificateResponse = DeletedCertificateBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: DeletedCertificateBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface SetCertificateContactsOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Contains response data for the setCertificateContacts operation. */\nexport type SetCertificateContactsResponse = Contacts & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: Contacts;\n };\n};\n\n/** Optional parameters. */\nexport interface GetCertificateContactsOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Contains response data for the getCertificateContacts operation. */\nexport type GetCertificateContactsResponse = Contacts & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: Contacts;\n };\n};\n\n/** Optional parameters. */\nexport interface DeleteCertificateContactsOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Contains response data for the deleteCertificateContacts operation. */\nexport type DeleteCertificateContactsResponse = Contacts & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: Contacts;\n };\n};\n\n/** Optional parameters. */\nexport interface GetCertificateIssuersOptionalParams\n extends coreHttp.OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n}\n\n/** Contains response data for the getCertificateIssuers operation. */\nexport type GetCertificateIssuersResponse = CertificateIssuerListResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateIssuerListResult;\n };\n};\n\n/** Optional parameters. */\nexport interface SetCertificateIssuerOptionalParams\n extends coreHttp.OperationOptions {\n /** The credentials to be used for the issuer. */\n credentials?: IssuerCredentials;\n /** Details of the organization as provided to the issuer. */\n organizationDetails?: OrganizationDetails;\n /** Attributes of the issuer object. */\n attributes?: IssuerAttributes;\n}\n\n/** Contains response data for the setCertificateIssuer operation. */\nexport type SetCertificateIssuerResponse = IssuerBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: IssuerBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface UpdateCertificateIssuerOptionalParams\n extends coreHttp.OperationOptions {\n /** The issuer provider. */\n provider?: string;\n /** The credentials to be used for the issuer. */\n credentials?: IssuerCredentials;\n /** Details of the organization as provided to the issuer. */\n organizationDetails?: OrganizationDetails;\n /** Attributes of the issuer object. */\n attributes?: IssuerAttributes;\n}\n\n/** Contains response data for the updateCertificateIssuer operation. */\nexport type UpdateCertificateIssuerResponse = IssuerBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: IssuerBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface GetCertificateIssuerOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Contains response data for the getCertificateIssuer operation. */\nexport type GetCertificateIssuerResponse = IssuerBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: IssuerBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface DeleteCertificateIssuerOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Contains response data for the deleteCertificateIssuer operation. */\nexport type DeleteCertificateIssuerResponse = IssuerBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: IssuerBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface CreateCertificateOptionalParams\n extends coreHttp.OperationOptions {\n /** The management policy for the certificate. */\n certificatePolicy?: CertificatePolicy;\n /** The attributes of the certificate (optional). */\n certificateAttributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n}\n\n/** Contains response data for the createCertificate operation. */\nexport type CreateCertificateResponse = CertificateOperation & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateOperation;\n };\n};\n\n/** Optional parameters. */\nexport interface ImportCertificateOptionalParams\n extends coreHttp.OperationOptions {\n /** If the private key in base64EncodedCertificate is encrypted, the password used for encryption. */\n password?: string;\n /** The management policy for the certificate. */\n certificatePolicy?: CertificatePolicy;\n /** The attributes of the certificate (optional). */\n certificateAttributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n}\n\n/** Contains response data for the importCertificate operation. */\nexport type ImportCertificateResponse = CertificateBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface GetCertificateVersionsOptionalParams\n extends coreHttp.OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n}\n\n/** Contains response data for the getCertificateVersions operation. */\nexport type GetCertificateVersionsResponse = CertificateListResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateListResult;\n };\n};\n\n/** Optional parameters. */\nexport interface GetCertificatePolicyOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Contains response data for the getCertificatePolicy operation. */\nexport type GetCertificatePolicyResponse = CertificatePolicy & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificatePolicy;\n };\n};\n\n/** Optional parameters. */\nexport interface UpdateCertificatePolicyOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Contains response data for the updateCertificatePolicy operation. */\nexport type UpdateCertificatePolicyResponse = CertificatePolicy & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificatePolicy;\n };\n};\n\n/** Optional parameters. */\nexport interface UpdateCertificateOptionalParams\n extends coreHttp.OperationOptions {\n /** The management policy for the certificate. */\n certificatePolicy?: CertificatePolicy;\n /** The attributes of the certificate (optional). */\n certificateAttributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n}\n\n/** Contains response data for the updateCertificate operation. */\nexport type UpdateCertificateResponse = CertificateBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface GetCertificateOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Contains response data for the getCertificate operation. */\nexport type GetCertificateResponse = CertificateBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface UpdateCertificateOperationOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Contains response data for the updateCertificateOperation operation. */\nexport type UpdateCertificateOperationResponse = CertificateOperation & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateOperation;\n };\n};\n\n/** Optional parameters. */\nexport interface GetCertificateOperationOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Contains response data for the getCertificateOperation operation. */\nexport type GetCertificateOperationResponse = CertificateOperation & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateOperation;\n };\n};\n\n/** Optional parameters. */\nexport interface DeleteCertificateOperationOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Contains response data for the deleteCertificateOperation operation. */\nexport type DeleteCertificateOperationResponse = CertificateOperation & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateOperation;\n };\n};\n\n/** Optional parameters. */\nexport interface MergeCertificateOptionalParams\n extends coreHttp.OperationOptions {\n /** The attributes of the certificate (optional). */\n certificateAttributes?: CertificateAttributes;\n /** Application specific metadata in the form of key-value pairs. */\n tags?: { [propertyName: string]: string };\n}\n\n/** Contains response data for the mergeCertificate operation. */\nexport type MergeCertificateResponse = CertificateBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface BackupCertificateOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Contains response data for the backupCertificate operation. */\nexport type BackupCertificateResponse = BackupCertificateResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: BackupCertificateResult;\n };\n};\n\n/** Optional parameters. */\nexport interface RestoreCertificateOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Contains response data for the restoreCertificate operation. */\nexport type RestoreCertificateResponse = CertificateBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface GetDeletedCertificatesOptionalParams\n extends coreHttp.OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n /** Specifies whether to include certificates which are not completely provisioned. */\n includePending?: boolean;\n}\n\n/** Contains response data for the getDeletedCertificates operation. */\nexport type GetDeletedCertificatesResponse = DeletedCertificateListResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: DeletedCertificateListResult;\n };\n};\n\n/** Optional parameters. */\nexport interface GetDeletedCertificateOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Contains response data for the getDeletedCertificate operation. */\nexport type GetDeletedCertificateResponse = DeletedCertificateBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: DeletedCertificateBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface PurgeDeletedCertificateOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Optional parameters. */\nexport interface RecoverDeletedCertificateOptionalParams\n extends coreHttp.OperationOptions {}\n\n/** Contains response data for the recoverDeletedCertificate operation. */\nexport type RecoverDeletedCertificateResponse = CertificateBundle & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateBundle;\n };\n};\n\n/** Optional parameters. */\nexport interface GetCertificatesNextOptionalParams\n extends coreHttp.OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n /** Specifies whether to include certificates which are not completely provisioned. */\n includePending?: boolean;\n}\n\n/** Contains response data for the getCertificatesNext operation. */\nexport type GetCertificatesNextResponse = CertificateListResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateListResult;\n };\n};\n\n/** Optional parameters. */\nexport interface GetCertificateIssuersNextOptionalParams\n extends coreHttp.OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n}\n\n/** Contains response data for the getCertificateIssuersNext operation. */\nexport type GetCertificateIssuersNextResponse = CertificateIssuerListResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateIssuerListResult;\n };\n};\n\n/** Optional parameters. */\nexport interface GetCertificateVersionsNextOptionalParams\n extends coreHttp.OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n}\n\n/** Contains response data for the getCertificateVersionsNext operation. */\nexport type GetCertificateVersionsNextResponse = CertificateListResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: CertificateListResult;\n };\n};\n\n/** Optional parameters. */\nexport interface GetDeletedCertificatesNextOptionalParams\n extends coreHttp.OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n /** Specifies whether to include certificates which are not completely provisioned. */\n includePending?: boolean;\n}\n\n/** Contains response data for the getDeletedCertificatesNext operation. */\nexport type GetDeletedCertificatesNextResponse = DeletedCertificateListResult & {\n /** The underlying HTTP response. */\n _response: coreHttp.HttpResponse & {\n /** The response body as text (string format) */\n bodyAsText: string;\n\n /** The response body as parsed JSON or XML */\n parsedBody: DeletedCertificateListResult;\n };\n};\n\n/** Optional parameters. */\nexport interface KeyVaultClientOptionalParams\n extends coreHttp.ServiceClientOptions {\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"identifier.js","sourceRoot":"","sources":["../../../src/identifier.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AA8BpE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,kCAAkC,CAAC,EAAU;IAC3D,MAAM,QAAQ,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/B,MAAM,UAAU,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE/B,uBACE,QAAQ,EAAE,EAAE,IACT,uBAAuB,CAAC,UAAU,EAAE,EAAE,CAAC,EAC1C;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { parseKeyvaultIdentifier } from \"../../keyvault-common/src\";\n\n/**\n * Represents the segments that compose a Key Vault Certificate Id.\n */\nexport interface KeyVaultCertificateIdentifier {\n /**\n * The complete representation of the Key Vault Certificate Id. For example:\n *\n * https://<keyvault-name>.vault.azure.net/certificates/<certificate-name>/<unique-version-id>\n *\n */\n sourceId: string;\n\n /**\n * The URL of the Azure Key Vault instance to which the Certificate belongs.\n */\n vaultUrl: string;\n\n /**\n * The version of Key Vault Certificate. Might be undefined.\n */\n version?: string;\n\n /**\n * The name of the Key Vault Certificate.\n */\n name: string;\n}\n\n/**\n * Parses the given Key Vault Certificate Id. An example is:\n *\n * https://<keyvault-name>.vault.azure.net/certificates/<certificate-name>/<unique-version-id>\n *\n * On parsing the above Id, this function returns:\n *```ts\n * {\n * sourceId: \"https://<keyvault-name>.vault.azure.net/certificates/<certificate-name>/<unique-version-id>\",\n * vaultUrl: \"https://<keyvault-name>.vault.azure.net\",\n * version: \"<unique-version-id>\",\n * name: \"<certificate-name>\"\n * }\n *```\n * @param id - The Id of the Key Vault Certificate.\n */\nexport function parseKeyVaultCertificateIdentifier(id: string): KeyVaultCertificateIdentifier {\n const urlParts = id.split(\"/\");\n const collection = urlParts[3];\n\n return {\n sourceId: id,\n ...parseKeyvaultIdentifier(collection, id)\n };\n}\n"]}
1
+ {"version":3,"file":"identifier.js","sourceRoot":"","sources":["../../../src/identifier.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AA8BpE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,kCAAkC,CAAC,EAAU;IAC3D,MAAM,QAAQ,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/B,MAAM,UAAU,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE/B,uBACE,QAAQ,EAAE,EAAE,IACT,uBAAuB,CAAC,UAAU,EAAE,EAAE,CAAC,EAC1C;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { parseKeyvaultIdentifier } from \"../../keyvault-common/src\";\n\n/**\n * Represents the segments that compose a Key Vault Certificate Id.\n */\nexport interface KeyVaultCertificateIdentifier {\n /**\n * The complete representation of the Key Vault Certificate Id. For example:\n *\n * https://<keyvault-name>.vault.azure.net/certificates/<certificate-name>/<unique-version-id>\n *\n */\n sourceId: string;\n\n /**\n * The URL of the Azure Key Vault instance to which the Certificate belongs.\n */\n vaultUrl: string;\n\n /**\n * The version of Key Vault Certificate. Might be undefined.\n */\n version?: string;\n\n /**\n * The name of the Key Vault Certificate.\n */\n name: string;\n}\n\n/**\n * Parses the given Key Vault Certificate Id. An example is:\n *\n * https://<keyvault-name>.vault.azure.net/certificates/<certificate-name>/<unique-version-id>\n *\n * On parsing the above Id, this function returns:\n *```ts\n * {\n * sourceId: \"https://<keyvault-name>.vault.azure.net/certificates/<certificate-name>/<unique-version-id>\",\n * vaultUrl: \"https://<keyvault-name>.vault.azure.net\",\n * version: \"<unique-version-id>\",\n * name: \"<certificate-name>\"\n * }\n *```\n * @param id - The Id of the Key Vault Certificate.\n */\nexport function parseKeyVaultCertificateIdentifier(id: string): KeyVaultCertificateIdentifier {\n const urlParts = id.split(\"/\");\n const collection = urlParts[3];\n\n return {\n sourceId: id,\n ...parseKeyvaultIdentifier(collection, id),\n };\n}\n"]}
@@ -6,9 +6,10 @@ import { __asyncGenerator, __asyncValues, __await } from "tslib";
6
6
  // This file makes more sense if ordered based on how meaningful are some methods in relation to others.
7
7
  /* eslint-disable @typescript-eslint/member-ordering */
8
8
  /// <reference lib="esnext.asynciterable" />
9
- import { isTokenCredential, signingPolicy, createPipelineFromOptions } from "@azure/core-http";
9
+ import { isTokenCredential, signingPolicy, createPipelineFromOptions, } from "@azure/core-http";
10
10
  import { logger } from "./log";
11
- import { WellKnownIssuerNames, DefaultCertificatePolicy, LATEST_API_VERSION, KnownCertificateKeyCurveNames, KnownCertificateKeyTypes } from "./certificatesModels";
11
+ import { WellKnownIssuerNames, DefaultCertificatePolicy, LATEST_API_VERSION, KnownCertificateKeyCurveNames, KnownCertificateKeyTypes, KnownKeyUsageTypes, } from "./certificatesModels";
12
+ import { KnownDeletionRecoveryLevel as KnownDeletionRecoveryLevels, } from "./generated/models";
12
13
  import { KeyVaultClient } from "./generated/keyVaultClient";
13
14
  import { SDK_VERSION } from "./constants";
14
15
  import "@azure/core-paging";
@@ -19,8 +20,8 @@ import { DeleteCertificatePoller } from "./lro/delete/poller";
19
20
  import { RecoverDeletedCertificatePoller } from "./lro/recover/poller";
20
21
  import { parseCertificateBytes } from "./utils";
21
22
  import { parseKeyVaultCertificateIdentifier } from "./identifier";
22
- import { coreContactsToCertificateContacts, getCertificateFromCertificateBundle, getCertificateOperationFromCoreOperation, getCertificateWithPolicyFromCertificateBundle, getDeletedCertificateFromDeletedCertificateBundle, getDeletedCertificateFromItem, getPropertiesFromCertificateBundle, toCoreAttributes, toCorePolicy, toPublicIssuer, toPublicPolicy } from "./transformations";
23
- export { parseKeyVaultCertificateIdentifier, DefaultCertificatePolicy, WellKnownIssuerNames as WellKnownIssuer, logger, KnownCertificateKeyCurveNames, KnownCertificateKeyTypes };
23
+ import { coreContactsToCertificateContacts, getCertificateFromCertificateBundle, getCertificateOperationFromCoreOperation, getCertificateWithPolicyFromCertificateBundle, getDeletedCertificateFromDeletedCertificateBundle, getDeletedCertificateFromItem, getPropertiesFromCertificateBundle, toCoreAttributes, toCorePolicy, toPublicIssuer, toPublicPolicy, } from "./transformations";
24
+ export { parseKeyVaultCertificateIdentifier, DefaultCertificatePolicy, WellKnownIssuerNames as WellKnownIssuer, logger, KnownCertificateKeyCurveNames, KnownDeletionRecoveryLevels, KnownCertificateKeyTypes, KnownKeyUsageTypes, };
24
25
  const withTrace = createTraceFunction("Azure.KeyVault.Certificates.CertificateClient");
25
26
  /**
26
27
  * The client to interact with the KeyVault certificates functionality
@@ -44,7 +45,7 @@ export class CertificateClient {
44
45
  }
45
46
  else {
46
47
  pipelineOptions.userAgentOptions = {
47
- userAgentPrefix: libInfo
48
+ userAgentPrefix: libInfo,
48
49
  };
49
50
  }
50
51
  const authPolicy = isTokenCredential(credential)
@@ -55,8 +56,8 @@ export class CertificateClient {
55
56
  allowedHeaderNames: [
56
57
  "x-ms-keyvault-region",
57
58
  "x-ms-keyvault-network-info",
58
- "x-ms-keyvault-service-version"
59
- ]
59
+ "x-ms-keyvault-service-version",
60
+ ],
60
61
  } });
61
62
  this.client = new KeyVaultClient(pipelineOptions.serviceVersion || LATEST_API_VERSION, createPipelineFromOptions(internalPipelineOptions, authPolicy));
62
63
  }
@@ -133,7 +134,7 @@ export class CertificateClient {
133
134
  [Symbol.asyncIterator]() {
134
135
  return this;
135
136
  },
136
- byPage: (settings = {}) => this.listPropertiesOfCertificatesPage(settings, options)
137
+ byPage: (settings = {}) => this.listPropertiesOfCertificatesPage(settings, options),
137
138
  };
138
139
  return result;
139
140
  }
@@ -204,7 +205,7 @@ export class CertificateClient {
204
205
  [Symbol.asyncIterator]() {
205
206
  return this;
206
207
  },
207
- byPage: (settings = {}) => this.listPropertiesOfCertificateVersionsPage(certificateName, settings, options)
208
+ byPage: (settings = {}) => this.listPropertiesOfCertificateVersionsPage(certificateName, settings, options),
208
209
  };
209
210
  return result;
210
211
  }
@@ -288,7 +289,7 @@ export class CertificateClient {
288
289
  const coreContacts = contacts.map((x) => ({
289
290
  emailAddress: x ? x.email : undefined,
290
291
  name: x ? x.name : undefined,
291
- phone: x ? x.phone : undefined
292
+ phone: x ? x.phone : undefined,
292
293
  }));
293
294
  return withTrace("setContacts", options, async (updatedOptions) => {
294
295
  const result = await this.client.setCertificateContacts(this.vaultUrl, { contactList: coreContacts }, updatedOptions);
@@ -391,7 +392,7 @@ export class CertificateClient {
391
392
  [Symbol.asyncIterator]() {
392
393
  return this;
393
394
  },
394
- byPage: (settings = {}) => this.listPropertiesOfIssuersPage(settings, options)
395
+ byPage: (settings = {}) => this.listPropertiesOfIssuersPage(settings, options),
395
396
  };
396
397
  return result;
397
398
  }
@@ -414,7 +415,7 @@ export class CertificateClient {
414
415
  const { accountId, password } = updatedOptions;
415
416
  const generatedOptions = Object.assign(Object.assign({}, updatedOptions), { credentials: {
416
417
  accountId,
417
- password
418
+ password,
418
419
  } });
419
420
  if (updatedOptions.organizationId ||
420
421
  (updatedOptions.administratorContacts && updatedOptions.administratorContacts.length)) {
@@ -425,14 +426,14 @@ export class CertificateClient {
425
426
  emailAddress: x.email,
426
427
  phone: x.phone,
427
428
  firstName: x.firstName,
428
- lastName: x.lastName
429
+ lastName: x.lastName,
429
430
  }))
430
- : undefined
431
+ : undefined,
431
432
  };
432
433
  }
433
434
  if (updatedOptions.enabled !== undefined) {
434
435
  generatedOptions.attributes = {
435
- enabled: updatedOptions.enabled
436
+ enabled: updatedOptions.enabled,
436
437
  };
437
438
  }
438
439
  const result = await this.client.setCertificateIssuer(this.vaultUrl, issuerName, provider, generatedOptions);
@@ -460,7 +461,7 @@ export class CertificateClient {
460
461
  const { accountId, password } = options;
461
462
  const generatedOptions = Object.assign(Object.assign({}, updatedOptions), { credentials: {
462
463
  accountId,
463
- password
464
+ password,
464
465
  } });
465
466
  if (updatedOptions.organizationId ||
466
467
  (updatedOptions.administratorContacts && updatedOptions.administratorContacts.length)) {
@@ -471,14 +472,14 @@ export class CertificateClient {
471
472
  emailAddress: x.email,
472
473
  phone: x.phone,
473
474
  firstName: x.firstName,
474
- lastName: x.lastName
475
+ lastName: x.lastName,
475
476
  }))
476
- : undefined
477
+ : undefined,
477
478
  };
478
479
  }
479
480
  if (updatedOptions.enabled) {
480
481
  generatedOptions.attributes = {
481
- enabled: updatedOptions.enabled
482
+ enabled: updatedOptions.enabled,
482
483
  };
483
484
  }
484
485
  const result = await this.client.updateCertificateIssuer(this.vaultUrl, issuerName, generatedOptions);
@@ -571,7 +572,7 @@ export class CertificateClient {
571
572
  createCertificateOptions: options,
572
573
  operationOptions: options,
573
574
  intervalInMs: options.intervalInMs,
574
- resumeFrom: options.resumeFrom
575
+ resumeFrom: options.resumeFrom,
575
576
  });
576
577
  // This will initialize the poller's operation (the creation of the secret).
577
578
  await poller.poll();
@@ -711,6 +712,9 @@ export class CertificateClient {
711
712
  * issuerName: "Self",
712
713
  * subject: "cn=MyCert"
713
714
  * });
715
+ *
716
+ * // You may pass an empty string for version which will update
717
+ * // the latest version of the certificate
714
718
  * await client.updateCertificateProperties("MyCertificate", "", {
715
719
  * tags: {
716
720
  * customTag: "value"
@@ -719,7 +723,7 @@ export class CertificateClient {
719
723
  * ```
720
724
  * Updates a certificate
721
725
  * @param certificateName - The name of the certificate
722
- * @param version - The version of the certificate to update
726
+ * @param version - The version of the certificate to update (an empty string will update the latest version)
723
727
  * @param options - The options, including what to update
724
728
  */
725
729
  updateCertificateProperties(certificateName, version, options = {}) {
@@ -757,7 +761,7 @@ export class CertificateClient {
757
761
  vaultUrl: this.vaultUrl,
758
762
  intervalInMs: options.intervalInMs,
759
763
  resumeFrom: options.resumeFrom,
760
- operationOptions: options
764
+ operationOptions: options,
761
765
  });
762
766
  // This will initialize the poller's operation, which pre-populates some necessary properties.
763
767
  await poller.poll();
@@ -947,7 +951,7 @@ export class CertificateClient {
947
951
  [Symbol.asyncIterator]() {
948
952
  return this;
949
953
  },
950
- byPage: (settings = {}) => this.listDeletedCertificatesPage(settings, options)
954
+ byPage: (settings = {}) => this.listDeletedCertificatesPage(settings, options),
951
955
  };
952
956
  return result;
953
957
  }