@azure/keyvault-certificates 4.9.0 → 4.9.1-alpha.20241112.1

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 (199) hide show
  1. package/dist/browser/certificatesModels.d.ts +5 -5
  2. package/dist/browser/certificatesModels.d.ts.map +1 -1
  3. package/dist/browser/certificatesModels.js.map +1 -1
  4. package/dist/browser/constants.js +1 -1
  5. package/dist/browser/constants.js.map +1 -1
  6. package/dist/browser/generated/keyVaultClient.js +1 -1
  7. package/dist/browser/generated/keyVaultClient.js.map +1 -1
  8. package/dist/browser/index.d.ts +4 -3
  9. package/dist/browser/index.d.ts.map +1 -1
  10. package/dist/browser/index.js.map +1 -1
  11. package/dist/browser/lro/create/operation.d.ts +7 -6
  12. package/dist/browser/lro/create/operation.d.ts.map +1 -1
  13. package/dist/browser/lro/create/operation.js +1 -1
  14. package/dist/browser/lro/create/operation.js.map +1 -1
  15. package/dist/browser/lro/create/poller.d.ts +4 -3
  16. package/dist/browser/lro/create/poller.d.ts.map +1 -1
  17. package/dist/browser/lro/create/poller.js +1 -1
  18. package/dist/browser/lro/create/poller.js.map +1 -1
  19. package/dist/browser/lro/delete/operation.d.ts +6 -5
  20. package/dist/browser/lro/delete/operation.d.ts.map +1 -1
  21. package/dist/browser/lro/delete/operation.js +1 -1
  22. package/dist/browser/lro/delete/operation.js.map +1 -1
  23. package/dist/browser/lro/delete/poller.d.ts +4 -3
  24. package/dist/browser/lro/delete/poller.d.ts.map +1 -1
  25. package/dist/browser/lro/delete/poller.js +2 -2
  26. package/dist/browser/lro/delete/poller.js.map +1 -1
  27. package/dist/browser/lro/keyVaultCertificatePoller.d.ts +4 -3
  28. package/dist/browser/lro/keyVaultCertificatePoller.d.ts.map +1 -1
  29. package/dist/browser/lro/keyVaultCertificatePoller.js.map +1 -1
  30. package/dist/browser/lro/operation/operation.d.ts +6 -5
  31. package/dist/browser/lro/operation/operation.d.ts.map +1 -1
  32. package/dist/browser/lro/operation/operation.js +1 -1
  33. package/dist/browser/lro/operation/operation.js.map +1 -1
  34. package/dist/browser/lro/operation/poller.d.ts +4 -3
  35. package/dist/browser/lro/operation/poller.d.ts.map +1 -1
  36. package/dist/browser/lro/operation/poller.js +1 -1
  37. package/dist/browser/lro/operation/poller.js.map +1 -1
  38. package/dist/browser/lro/recover/operation.d.ts +6 -5
  39. package/dist/browser/lro/recover/operation.d.ts.map +1 -1
  40. package/dist/browser/lro/recover/operation.js +1 -1
  41. package/dist/browser/lro/recover/operation.js.map +1 -1
  42. package/dist/browser/lro/recover/poller.d.ts +4 -3
  43. package/dist/browser/lro/recover/poller.d.ts.map +1 -1
  44. package/dist/browser/lro/recover/poller.js +2 -2
  45. package/dist/browser/lro/recover/poller.js.map +1 -1
  46. package/dist/browser/transformations.d.ts +2 -2
  47. package/dist/browser/transformations.d.ts.map +1 -1
  48. package/dist/browser/transformations.js.map +1 -1
  49. package/dist/browser/utils.d.ts +1 -1
  50. package/dist/browser/utils.d.ts.map +1 -1
  51. package/dist/browser/utils.js.map +1 -1
  52. package/dist/commonjs/certificatesModels.d.ts +5 -5
  53. package/dist/commonjs/certificatesModels.d.ts.map +1 -1
  54. package/dist/commonjs/certificatesModels.js.map +1 -1
  55. package/dist/commonjs/constants.js +1 -1
  56. package/dist/commonjs/constants.js.map +1 -1
  57. package/dist/commonjs/generated/keyVaultClient.js +1 -1
  58. package/dist/commonjs/generated/keyVaultClient.js.map +1 -1
  59. package/dist/commonjs/index.d.ts +4 -3
  60. package/dist/commonjs/index.d.ts.map +1 -1
  61. package/dist/commonjs/index.js.map +1 -1
  62. package/dist/commonjs/lro/create/operation.d.ts +7 -6
  63. package/dist/commonjs/lro/create/operation.d.ts.map +1 -1
  64. package/dist/commonjs/lro/create/operation.js.map +1 -1
  65. package/dist/commonjs/lro/create/poller.d.ts +4 -3
  66. package/dist/commonjs/lro/create/poller.d.ts.map +1 -1
  67. package/dist/commonjs/lro/create/poller.js.map +1 -1
  68. package/dist/commonjs/lro/delete/operation.d.ts +6 -5
  69. package/dist/commonjs/lro/delete/operation.d.ts.map +1 -1
  70. package/dist/commonjs/lro/delete/operation.js.map +1 -1
  71. package/dist/commonjs/lro/delete/poller.d.ts +4 -3
  72. package/dist/commonjs/lro/delete/poller.d.ts.map +1 -1
  73. package/dist/commonjs/lro/delete/poller.js.map +1 -1
  74. package/dist/commonjs/lro/keyVaultCertificatePoller.d.ts +4 -3
  75. package/dist/commonjs/lro/keyVaultCertificatePoller.d.ts.map +1 -1
  76. package/dist/commonjs/lro/keyVaultCertificatePoller.js.map +1 -1
  77. package/dist/commonjs/lro/operation/operation.d.ts +6 -5
  78. package/dist/commonjs/lro/operation/operation.d.ts.map +1 -1
  79. package/dist/commonjs/lro/operation/operation.js.map +1 -1
  80. package/dist/commonjs/lro/operation/poller.d.ts +4 -3
  81. package/dist/commonjs/lro/operation/poller.d.ts.map +1 -1
  82. package/dist/commonjs/lro/operation/poller.js.map +1 -1
  83. package/dist/commonjs/lro/recover/operation.d.ts +6 -5
  84. package/dist/commonjs/lro/recover/operation.d.ts.map +1 -1
  85. package/dist/commonjs/lro/recover/operation.js.map +1 -1
  86. package/dist/commonjs/lro/recover/poller.d.ts +4 -3
  87. package/dist/commonjs/lro/recover/poller.d.ts.map +1 -1
  88. package/dist/commonjs/lro/recover/poller.js.map +1 -1
  89. package/dist/commonjs/transformations.d.ts +2 -2
  90. package/dist/commonjs/transformations.d.ts.map +1 -1
  91. package/dist/commonjs/transformations.js.map +1 -1
  92. package/dist/commonjs/tsdoc-metadata.json +1 -1
  93. package/dist/commonjs/utils.d.ts +1 -1
  94. package/dist/commonjs/utils.d.ts.map +1 -1
  95. package/dist/commonjs/utils.js.map +1 -1
  96. package/dist/esm/certificatesModels.d.ts +5 -5
  97. package/dist/esm/certificatesModels.d.ts.map +1 -1
  98. package/dist/esm/certificatesModels.js.map +1 -1
  99. package/dist/esm/constants.js +1 -1
  100. package/dist/esm/constants.js.map +1 -1
  101. package/dist/esm/generated/keyVaultClient.js +1 -1
  102. package/dist/esm/generated/keyVaultClient.js.map +1 -1
  103. package/dist/esm/index.d.ts +4 -3
  104. package/dist/esm/index.d.ts.map +1 -1
  105. package/dist/esm/index.js.map +1 -1
  106. package/dist/esm/lro/create/operation.d.ts +7 -6
  107. package/dist/esm/lro/create/operation.d.ts.map +1 -1
  108. package/dist/esm/lro/create/operation.js +1 -1
  109. package/dist/esm/lro/create/operation.js.map +1 -1
  110. package/dist/esm/lro/create/poller.d.ts +4 -3
  111. package/dist/esm/lro/create/poller.d.ts.map +1 -1
  112. package/dist/esm/lro/create/poller.js +1 -1
  113. package/dist/esm/lro/create/poller.js.map +1 -1
  114. package/dist/esm/lro/delete/operation.d.ts +6 -5
  115. package/dist/esm/lro/delete/operation.d.ts.map +1 -1
  116. package/dist/esm/lro/delete/operation.js +1 -1
  117. package/dist/esm/lro/delete/operation.js.map +1 -1
  118. package/dist/esm/lro/delete/poller.d.ts +4 -3
  119. package/dist/esm/lro/delete/poller.d.ts.map +1 -1
  120. package/dist/esm/lro/delete/poller.js +2 -2
  121. package/dist/esm/lro/delete/poller.js.map +1 -1
  122. package/dist/esm/lro/keyVaultCertificatePoller.d.ts +4 -3
  123. package/dist/esm/lro/keyVaultCertificatePoller.d.ts.map +1 -1
  124. package/dist/esm/lro/keyVaultCertificatePoller.js.map +1 -1
  125. package/dist/esm/lro/operation/operation.d.ts +6 -5
  126. package/dist/esm/lro/operation/operation.d.ts.map +1 -1
  127. package/dist/esm/lro/operation/operation.js +1 -1
  128. package/dist/esm/lro/operation/operation.js.map +1 -1
  129. package/dist/esm/lro/operation/poller.d.ts +4 -3
  130. package/dist/esm/lro/operation/poller.d.ts.map +1 -1
  131. package/dist/esm/lro/operation/poller.js +1 -1
  132. package/dist/esm/lro/operation/poller.js.map +1 -1
  133. package/dist/esm/lro/recover/operation.d.ts +6 -5
  134. package/dist/esm/lro/recover/operation.d.ts.map +1 -1
  135. package/dist/esm/lro/recover/operation.js +1 -1
  136. package/dist/esm/lro/recover/operation.js.map +1 -1
  137. package/dist/esm/lro/recover/poller.d.ts +4 -3
  138. package/dist/esm/lro/recover/poller.d.ts.map +1 -1
  139. package/dist/esm/lro/recover/poller.js +2 -2
  140. package/dist/esm/lro/recover/poller.js.map +1 -1
  141. package/dist/esm/transformations.d.ts +2 -2
  142. package/dist/esm/transformations.d.ts.map +1 -1
  143. package/dist/esm/transformations.js.map +1 -1
  144. package/dist/esm/utils.d.ts +1 -1
  145. package/dist/esm/utils.d.ts.map +1 -1
  146. package/dist/esm/utils.js.map +1 -1
  147. package/dist/keyvault-certificates.d.ts +7 -7
  148. package/dist/react-native/certificatesModels.d.ts +5 -5
  149. package/dist/react-native/certificatesModels.d.ts.map +1 -1
  150. package/dist/react-native/certificatesModels.js.map +1 -1
  151. package/dist/react-native/constants.js +1 -1
  152. package/dist/react-native/constants.js.map +1 -1
  153. package/dist/react-native/generated/keyVaultClient.js +1 -1
  154. package/dist/react-native/generated/keyVaultClient.js.map +1 -1
  155. package/dist/react-native/index.d.ts +4 -3
  156. package/dist/react-native/index.d.ts.map +1 -1
  157. package/dist/react-native/index.js.map +1 -1
  158. package/dist/react-native/lro/create/operation.d.ts +7 -6
  159. package/dist/react-native/lro/create/operation.d.ts.map +1 -1
  160. package/dist/react-native/lro/create/operation.js +1 -1
  161. package/dist/react-native/lro/create/operation.js.map +1 -1
  162. package/dist/react-native/lro/create/poller.d.ts +4 -3
  163. package/dist/react-native/lro/create/poller.d.ts.map +1 -1
  164. package/dist/react-native/lro/create/poller.js +1 -1
  165. package/dist/react-native/lro/create/poller.js.map +1 -1
  166. package/dist/react-native/lro/delete/operation.d.ts +6 -5
  167. package/dist/react-native/lro/delete/operation.d.ts.map +1 -1
  168. package/dist/react-native/lro/delete/operation.js +1 -1
  169. package/dist/react-native/lro/delete/operation.js.map +1 -1
  170. package/dist/react-native/lro/delete/poller.d.ts +4 -3
  171. package/dist/react-native/lro/delete/poller.d.ts.map +1 -1
  172. package/dist/react-native/lro/delete/poller.js +2 -2
  173. package/dist/react-native/lro/delete/poller.js.map +1 -1
  174. package/dist/react-native/lro/keyVaultCertificatePoller.d.ts +4 -3
  175. package/dist/react-native/lro/keyVaultCertificatePoller.d.ts.map +1 -1
  176. package/dist/react-native/lro/keyVaultCertificatePoller.js.map +1 -1
  177. package/dist/react-native/lro/operation/operation.d.ts +6 -5
  178. package/dist/react-native/lro/operation/operation.d.ts.map +1 -1
  179. package/dist/react-native/lro/operation/operation.js +1 -1
  180. package/dist/react-native/lro/operation/operation.js.map +1 -1
  181. package/dist/react-native/lro/operation/poller.d.ts +4 -3
  182. package/dist/react-native/lro/operation/poller.d.ts.map +1 -1
  183. package/dist/react-native/lro/operation/poller.js +1 -1
  184. package/dist/react-native/lro/operation/poller.js.map +1 -1
  185. package/dist/react-native/lro/recover/operation.d.ts +6 -5
  186. package/dist/react-native/lro/recover/operation.d.ts.map +1 -1
  187. package/dist/react-native/lro/recover/operation.js +1 -1
  188. package/dist/react-native/lro/recover/operation.js.map +1 -1
  189. package/dist/react-native/lro/recover/poller.d.ts +4 -3
  190. package/dist/react-native/lro/recover/poller.d.ts.map +1 -1
  191. package/dist/react-native/lro/recover/poller.js +2 -2
  192. package/dist/react-native/lro/recover/poller.js.map +1 -1
  193. package/dist/react-native/transformations.d.ts +2 -2
  194. package/dist/react-native/transformations.d.ts.map +1 -1
  195. package/dist/react-native/transformations.js.map +1 -1
  196. package/dist/react-native/utils.d.ts +1 -1
  197. package/dist/react-native/utils.d.ts.map +1 -1
  198. package/dist/react-native/utils.js.map +1 -1
  199. package/package.json +6 -10
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEjE,O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AC,IAAI,CAAC,QAAQ,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC;YAC1F,OAAO,IAAI,CAAC;QACd,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACI,KAAK,CAAC,8BAA8B,CACzC,eAAuB,EACvB,UAAiD,EAAE;QAEnD,MAAM,MAAM,GAAG,IAAI,+BAA+B,+BAChD,eAAe,EACf,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IACpB,OAAO,KACV,gBAAgB,EAAE,OAAO,IACzB,CAAC;QACH,oFAAoF;QACpF,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,OAAO,MAAM,CAAC;IAChB,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// This file makes more sense if ordered based on how meaningful are some methods in relation to others.\n\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport { InternalClientPipelineOptions } from \"@azure/core-client\";\n\nimport { TokenCredential } from \"@azure/core-auth\";\n\nimport { logger } from \"./log.js\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\n\nimport {\n KeyVaultCertificate,\n KeyVaultCertificateWithPolicy,\n AdministratorContact,\n BackupCertificateOptions,\n BeginCreateCertificateOptions,\n BeginDeleteCertificateOptions,\n BeginRecoverDeletedCertificateOptions,\n CertificateIssuer,\n CertificateContact,\n CertificateContentType,\n CertificatePolicy,\n CertificateProperties,\n CreateCertificateOptions,\n DeleteCertificateOperationOptions,\n DeleteContactsOptions,\n DeleteIssuerOptions,\n DeletedCertificate,\n GetContactsOptions,\n GetIssuerOptions,\n GetCertificateOperationOptions,\n GetPlainCertificateOperationOptions,\n GetCertificateOptions,\n GetCertificatePolicyOptions,\n GetCertificateVersionOptions,\n GetDeletedCertificateOptions,\n CertificateTags,\n ImportCertificateOptions,\n ListPropertiesOfCertificatesOptions,\n ErrorModel,\n ListPropertiesOfCertificateVersionsOptions,\n ListPropertiesOfIssuersOptions,\n ListDeletedCertificatesOptions,\n MergeCertificateOptions,\n PurgeDeletedCertificateOptions,\n RestoreCertificateBackupOptions,\n SetContactsOptions,\n CreateIssuerOptions,\n CertificateOperation,\n CertificateOperationError,\n SubjectAlternativeNames,\n UpdateIssuerOptions,\n UpdateCertificatePropertiesOptions,\n UpdateCertificatePolicyOptions,\n WellKnownIssuerNames,\n CertificatePollerOptions,\n IssuerProperties,\n CertificateContactAll,\n CertificatePolicyAction,\n LifetimeAction,\n RequireAtLeastOne,\n ArrayOneOrMore,\n SubjectAlternativeNamesAll,\n CertificatePolicyProperties,\n PolicySubjectProperties,\n DefaultCertificatePolicy,\n CertificateClientOptions,\n LATEST_API_VERSION,\n CancelCertificateOperationOptions,\n ImportCertificatePolicy,\n KnownCertificateKeyCurveNames,\n KnownCertificateKeyTypes,\n KnownKeyUsageTypes,\n PollerLikeWithCancellation,\n} from \"./certificatesModels.js\";\n\nimport {\n GetCertificatesOptionalParams,\n GetCertificateIssuersOptionalParams,\n GetCertificateVersionsOptionalParams,\n SetCertificateIssuerOptionalParams,\n BackupCertificateResult,\n GetDeletedCertificatesOptionalParams,\n IssuerParameters,\n IssuerCredentials,\n IssuerAttributes,\n X509CertificateProperties,\n SubjectAlternativeNames as CoreSubjectAlternativeNames,\n ActionType,\n DeletionRecoveryLevel,\n JsonWebKeyType as CertificateKeyType,\n JsonWebKeyCurveName as CertificateKeyCurveName,\n KnownDeletionRecoveryLevel as KnownDeletionRecoveryLevels,\n KeyUsageType,\n} from \"./generated/models/index.js\";\nimport { KeyVaultClient } from \"./generated/keyVaultClient.js\";\nimport { PageSettings, PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { keyVaultAuthenticationPolicy } from \"@azure/keyvault-common\";\nimport { CreateCertificatePoller } from \"./lro/create/poller.js\";\nimport { CertificateOperationPoller } from \"./lro/operation/poller.js\";\nimport { DeleteCertificatePoller } from \"./lro/delete/poller.js\";\nimport { RecoverDeletedCertificatePoller } from \"./lro/recover/poller.js\";\nimport { CertificateOperationState } from \"./lro/operation/operation.js\";\nimport { DeleteCertificateState } from \"./lro/delete/operation.js\";\nimport { CreateCertificateState } from \"./lro/create/operation.js\";\nimport { RecoverDeletedCertificateState } from \"./lro/recover/operation.js\";\nimport { parseCertificateBytes } from \"./utils.js\";\nimport { KeyVaultCertificateIdentifier, parseKeyVaultCertificateIdentifier } from \"./identifier.js\";\nimport {\n coreContactsToCertificateContacts,\n getCertificateFromCertificateBundle,\n getCertificateOperationFromCoreOperation,\n getCertificateWithPolicyFromCertificateBundle,\n getDeletedCertificateFromDeletedCertificateBundle,\n getDeletedCertificateFromItem,\n getPropertiesFromCertificateBundle,\n toCoreAttributes,\n toCorePolicy,\n toPublicIssuer,\n toPublicPolicy,\n} from \"./transformations.js\";\nimport { KeyVaultCertificatePollOperationState } from \"./lro/keyVaultCertificatePoller.js\";\nimport { tracingClient } from \"./tracing.js\";\n\nexport {\n CertificateClientOptions,\n ActionType,\n AdministratorContact,\n ArrayOneOrMore,\n BackupCertificateResult,\n BeginCreateCertificateOptions,\n BeginDeleteCertificateOptions,\n BeginRecoverDeletedCertificateOptions,\n KeyVaultCertificate,\n KeyVaultCertificateWithPolicy,\n BackupCertificateOptions,\n CertificateContentType,\n CertificateProperties,\n CertificateIssuer,\n CertificateOperation,\n CertificateOperationError,\n CertificatePolicy,\n ImportCertificatePolicy,\n CertificatePolicyAction,\n CertificatePolicyProperties,\n PolicySubjectProperties,\n CertificateTags,\n CreateCertificateOptions,\n CertificatePollerOptions,\n KeyVaultCertificateIdentifier,\n parseKeyVaultCertificateIdentifier,\n PollerLike,\n PollerLikeWithCancellation,\n CreateCertificateState,\n DeleteCertificateState,\n RecoverDeletedCertificateState,\n CertificateOperationState,\n CoreSubjectAlternativeNames,\n RequireAtLeastOne,\n CertificateContactAll,\n CertificateContact,\n DeleteCertificateOperationOptions,\n DeleteContactsOptions,\n DeleteIssuerOptions,\n DeletedCertificate,\n DeletionRecoveryLevel,\n DefaultCertificatePolicy,\n ErrorModel,\n GetContactsOptions,\n GetIssuerOptions,\n GetCertificateOperationOptions,\n GetPlainCertificateOperationOptions,\n GetCertificateOptions,\n GetCertificatePolicyOptions,\n GetCertificateVersionOptions,\n GetDeletedCertificateOptions,\n ImportCertificateOptions,\n IssuerAttributes,\n IssuerCredentials,\n IssuerParameters,\n IssuerProperties,\n CertificateKeyType,\n CertificateKeyCurveName,\n KeyUsageType,\n LifetimeAction,\n ListPropertiesOfCertificatesOptions,\n ListPropertiesOfCertificateVersionsOptions,\n ListPropertiesOfIssuersOptions,\n ListDeletedCertificatesOptions,\n MergeCertificateOptions,\n PurgeDeletedCertificateOptions,\n RestoreCertificateBackupOptions,\n SetContactsOptions,\n SubjectAlternativeNamesAll,\n CreateIssuerOptions,\n SubjectAlternativeNames,\n UpdateIssuerOptions,\n UpdateCertificatePropertiesOptions as UpdateCertificateOptions,\n UpdateCertificatePolicyOptions,\n WellKnownIssuerNames as WellKnownIssuer,\n X509CertificateProperties,\n logger,\n CancelCertificateOperationOptions,\n KeyVaultCertificatePollOperationState,\n KnownCertificateKeyCurveNames,\n KnownDeletionRecoveryLevels,\n KnownCertificateKeyTypes,\n KnownKeyUsageTypes,\n};\n\n/**\n * Deprecated KeyVault copy of core-lro's PollerLike.\n */\n// eslint-disable-next-line no-use-before-define\nexport type KVPollerLike<TState extends PollOperationState<TResult>, TResult> = PollerLike<\n TState,\n TResult\n>;\n\n/**\n * The client to interact with the KeyVault certificates functionality\n */\nexport class CertificateClient {\n /**\n * The base URL to the vault\n */\n public readonly vaultUrl: string;\n\n private readonly client: KeyVaultClient;\n\n /**\n * Creates an instance of CertificateClient.\n * @param vaultUrl - the base URL to the vault. You should validate that this URL references a valid Key Vault resource. See https://aka.ms/azsdk/blog/vault-uri for details.\n * @param credential - An object that implements the `TokenCredential` interface used to authenticate requests to the service. Use the \\@azure/identity package to create a credential that suits your needs.\n * @param clientOptions - Pipeline options used to configure Key Vault API requests.\n * Omit this parameter to use the default pipeline configuration.\n */\n constructor(\n vaultUrl: string,\n credential: TokenCredential,\n clientOptions: CertificateClientOptions = {},\n ) {\n this.vaultUrl = vaultUrl;\n\n const internalClientPipelineOptions: InternalClientPipelineOptions = {\n ...clientOptions,\n loggingOptions: {\n logger: logger.info,\n additionalAllowedHeaderNames: [\n \"x-ms-keyvault-region\",\n \"x-ms-keyvault-network-info\",\n \"x-ms-keyvault-service-version\",\n ],\n },\n };\n\n this.client = new KeyVaultClient(\n clientOptions.serviceVersion || LATEST_API_VERSION,\n internalClientPipelineOptions,\n );\n\n // The authentication policy must come after the deserialization policy since the deserialization policy\n // converts 401 responses to an Error, and we don't want to deal with that.\n this.client.pipeline.addPolicy(keyVaultAuthenticationPolicy(credential, clientOptions), {\n afterPolicies: [\"deserializationPolicy\"],\n });\n }\n\n private async *listPropertiesOfCertificatesPage(\n continuationState: PageSettings,\n options: ListPropertiesOfCertificatesOptions = {},\n ): AsyncIterableIterator<CertificateProperties[]> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: GetCertificatesOptionalParams = {\n maxresults: continuationState.maxPageSize,\n includePending: options.includePending,\n ...options,\n };\n const currentSetResponse = await tracingClient.withSpan(\n \"CertificateClient.listPropertiesOfCertificatesPage\",\n optionsComplete,\n (updatedOptions) => this.client.getCertificates(this.vaultUrl, updatedOptions),\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getPropertiesFromCertificateBundle, this);\n }\n }\n while (continuationState.continuationToken) {\n const currentSetResponse = await tracingClient.withSpan(\n \"CertificateClient.listPropertiesOfCertificatesPage\",\n options,\n (updatedOptions) =>\n this.client.getCertificatesNext(\n this.vaultUrl,\n continuationState.continuationToken!,\n updatedOptions,\n ),\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getPropertiesFromCertificateBundle, this);\n } else {\n break;\n }\n }\n }\n\n private async *listPropertiesOfCertificatesAll(\n options: ListPropertiesOfCertificatesOptions = {},\n ): AsyncIterableIterator<CertificateProperties> {\n const f = {};\n\n for await (const page of this.listPropertiesOfCertificatesPage(f, options)) {\n for (const certificate of page) {\n yield certificate;\n }\n }\n }\n\n /**\n * Iterates the latest version of all certificates in the vault. The full certificate identifier and attributes are provided\n * in the response. No values are returned for the certificates. This operations requires the certificates/list permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * // All in one call\n * for await (const certificateProperties of client.listPropertiesOfCertificates()) {\n * console.log(certificateProperties);\n * }\n * // By pages\n * for await (const page of client.listPropertiesOfCertificates().byPage()) {\n * for (const certificateProperties of page) {\n * console.log(certificateProperties);\n * }\n * }\n * ```\n * List all versions of the specified certificate.\n * @param options - The optional parameters\n */\n public listPropertiesOfCertificates(\n options: ListPropertiesOfCertificatesOptions = {},\n ): PagedAsyncIterableIterator<CertificateProperties> {\n const iter = this.listPropertiesOfCertificatesAll(options);\n\n const result = {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) =>\n this.listPropertiesOfCertificatesPage(settings, options),\n };\n\n return result;\n }\n\n private async *listPropertiesOfCertificateVersionsPage(\n certificateName: string,\n continuationState: PageSettings,\n options: ListPropertiesOfCertificateVersionsOptions = {},\n ): AsyncIterableIterator<CertificateProperties[]> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: GetCertificateVersionsOptionalParams = {\n maxresults: continuationState.maxPageSize,\n ...options,\n };\n const currentSetResponse = await tracingClient.withSpan(\n \"CertificateClient.listPropertiesOfCertificateVersionsPage\",\n optionsComplete,\n (updatedOptions) =>\n this.client.getCertificateVersions(this.vaultUrl, certificateName, updatedOptions),\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getPropertiesFromCertificateBundle, this);\n }\n }\n while (continuationState.continuationToken) {\n const currentSetResponse = await tracingClient.withSpan(\n \"CertificateClient.listPropertiesOfCertificateVersionsPage\",\n options,\n (updatedOptions) =>\n this.client.getCertificateVersions(\n continuationState.continuationToken!,\n certificateName,\n updatedOptions,\n ),\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getPropertiesFromCertificateBundle, this);\n } else {\n break;\n }\n }\n }\n\n private async *listPropertiesOfCertificateVersionsAll(\n certificateName: string,\n options: ListPropertiesOfCertificateVersionsOptions = {},\n ): AsyncIterableIterator<CertificateProperties> {\n const f = {};\n\n for await (const page of this.listPropertiesOfCertificateVersionsPage(\n certificateName,\n f,\n options,\n )) {\n for (const item of page) {\n yield item;\n }\n }\n }\n\n /**\n * Returns the versions of a certificate in the specified key\n * vault. This operation requires the certificates/list permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * for await (const certificateProperties of client.listPropertiesOfCertificateVersions(\"MyCertificate\")) {\n * console.log(certificateProperties.version!);\n * }\n * ```\n * List the versions of a certificate.\n * @param certificateName - The name of the certificate.\n * @param options - The optional parameters\n */\n public listPropertiesOfCertificateVersions(\n certificateName: string,\n options: ListPropertiesOfCertificateVersionsOptions = {},\n ): PagedAsyncIterableIterator<CertificateProperties> {\n const iter = this.listPropertiesOfCertificateVersionsAll(certificateName, options);\n\n const result = {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) =>\n this.listPropertiesOfCertificateVersionsPage(certificateName, settings, options),\n };\n\n return result;\n }\n\n /**\n * The DELETE operation applies to any certificate stored in Azure Key Vault. DELETE cannot be applied\n * to an individual version of a certificate.\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the certificate is fully recovered.\n *\n * This operation requires the certificates/delete permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * const createPoller = await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n * await createPoller.pollUntilDone();\n *\n * const deletePoller = await client.beginDeleteCertificate(\"MyCertificate\");\n *\n * // Serializing the poller\n * const serialized = deletePoller.toString();\n *\n * // A new poller can be created with:\n * // const newPoller = await client.beginDeleteCertificate(\"MyCertificate\", { resumeFrom: serialized });\n *\n * // Waiting until it's done\n * const deletedCertificate = await deletePoller.pollUntilDone();\n * console.log(deletedCertificate);\n * ```\n * Deletes a certificate from a specified key vault.\n * @param certificateName - The name of the certificate.\n * @param options - The optional parameters\n */\n public async beginDeleteCertificate(\n certificateName: string,\n options: BeginDeleteCertificateOptions = {},\n ): Promise<PollerLike<DeleteCertificateState, DeletedCertificate>> {\n const poller = new DeleteCertificatePoller({\n certificateName,\n client: this.client,\n vaultUrl: this.vaultUrl,\n ...options,\n operationOptions: options,\n });\n // This will initialize the poller's operation (the deletion of the secret).\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes all of the certificate contacts. This operation requires the certificates/managecontacts permission.\n *\n * Example usage:\n * ```ts\n * let client = new CertificateClient(url, credentials);\n * await client.setContacts([{\n * email: \"b@b.com\",\n * name: \"b\",\n * phone: \"222222222222\"\n * }]);\n * await client.deleteContacts();\n * ```\n * Deletes all of the certificate contacts\n * @param options - The optional parameters\n */\n public deleteContacts(\n options: DeleteContactsOptions = {},\n ): Promise<CertificateContact[] | undefined> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.deleteContacts\",\n options,\n async (updatedOptions) => {\n await this.client.deleteCertificateContacts(this.vaultUrl, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return coreContactsToCertificateContacts(parsedBody);\n },\n );\n }\n\n /**\n * Sets the certificate contacts for the key vault. This operation requires the certificates/managecontacts permission.\n *\n * Example usage:\n * ```ts\n * let client = new CertificateClient(url, credentials);\n * await client.setContacts([{\n * email: \"b@b.com\",\n * name: \"b\",\n * phone: \"222222222222\"\n * }]);\n * ```\n * Sets the certificate contacts.\n * @param contacts - The contacts to use\n * @param options - The optional parameters\n */\n public setContacts(\n contacts: CertificateContact[],\n options: SetContactsOptions = {},\n ): Promise<CertificateContact[] | undefined> {\n const coreContacts = contacts.map((x) => ({\n emailAddress: x ? x.email : undefined,\n name: x ? x.name : undefined,\n phone: x ? x.phone : undefined,\n }));\n\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.setContacts\",\n options,\n async (updatedOptions) => {\n await this.client.setCertificateContacts(\n this.vaultUrl,\n { contactList: coreContacts },\n {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n },\n );\n return coreContactsToCertificateContacts(parsedBody);\n },\n );\n }\n\n /**\n * Returns the set of certificate contact resources in the specified key vault. This operation requires the certificates/managecontacts permission.\n *\n * Example usage:\n * ```ts\n * let client = new CertificateClient(url, credentials);\n * await client.setContacts([{\n * email: \"b@b.com\",\n * name: \"b\",\n * phone: \"222222222222\"\n * }]);\n * const contacts = await client.getContacts();\n * console.log(contacts);\n * ```\n * Sets the certificate contacts.\n * @param options - The optional parameters\n */\n public getContacts(options: GetContactsOptions = {}): Promise<CertificateContact[] | undefined> {\n return tracingClient.withSpan(\n \"CertificateClient.getContacts\",\n options,\n async (updatedOptions) => {\n const result = await this.client.getCertificateContacts(this.vaultUrl, updatedOptions);\n return coreContactsToCertificateContacts(result);\n },\n );\n }\n\n private async *listPropertiesOfIssuersPage(\n continuationState: PageSettings,\n options: ListPropertiesOfIssuersOptions = {},\n ): AsyncIterableIterator<IssuerProperties[]> {\n if (continuationState.continuationToken == null) {\n const requestOptionsComplete: GetCertificateIssuersOptionalParams = {\n maxresults: continuationState.maxPageSize,\n ...options,\n };\n const currentSetResponse = await tracingClient.withSpan(\n \"CertificateClient.listPropertiesOfIssuersPage\",\n requestOptionsComplete,\n (updatedOptions) => this.client.getCertificateIssuers(this.vaultUrl, updatedOptions),\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value;\n }\n }\n while (continuationState.continuationToken) {\n const currentSetResponse = await tracingClient.withSpan(\n \"CertificateClient.listPropertiesOfIssuersPage\",\n options,\n (updatedOptions) =>\n this.client.getCertificateIssuers(continuationState.continuationToken!, updatedOptions),\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value;\n } else {\n break;\n }\n }\n }\n\n private async *listPropertiesOfIssuersAll(\n options: ListPropertiesOfIssuersOptions = {},\n ): AsyncIterableIterator<IssuerProperties> {\n const f = {};\n\n for await (const page of this.listPropertiesOfIssuersPage(f, options)) {\n for (const item of page) {\n yield item;\n }\n }\n }\n\n /**\n * Returns the set of certificate issuer resources in the specified key vault. This operation requires the certificates/manageissuers/getissuers permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.createIssuer(\"IssuerName\", \"Test\");\n * // All in one call\n * for await (const issuerProperties of client.listPropertiesOfIssuers()) {\n * console.log(issuerProperties);\n * }\n * // By pages\n * for await (const page of client.listPropertiesOfIssuers().byPage()) {\n * for (const issuerProperties of page) {\n * console.log(issuerProperties);\n * }\n * }\n * ```\n * List the certificate issuers.\n * @param options - The optional parameters\n */\n public listPropertiesOfIssuers(\n options: ListPropertiesOfIssuersOptions = {},\n ): PagedAsyncIterableIterator<IssuerProperties> {\n const iter = this.listPropertiesOfIssuersAll(options);\n\n const result = {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) => this.listPropertiesOfIssuersPage(settings, options),\n };\n\n return result;\n }\n\n /**\n * The createIssuer operation adds or updates the specified certificate issuer. This\n * operation requires the certificates/setissuers permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.createIssuer(\"IssuerName\", \"Test\");\n * ```\n * Sets the specified certificate issuer.\n * @param issuerName - The name of the issuer.\n * @param provider - The issuer provider.\n * @param options - The optional parameters\n */\n public createIssuer(\n issuerName: string,\n provider: string,\n options: CreateIssuerOptions = {},\n ): Promise<CertificateIssuer> {\n return tracingClient.withSpan(\n \"CertificateClient.createIssuer\",\n options,\n async (updatedOptions) => {\n const { accountId, password } = updatedOptions;\n\n const generatedOptions: SetCertificateIssuerOptionalParams = {\n ...updatedOptions,\n credentials: {\n accountId,\n password,\n },\n };\n\n if (\n updatedOptions.organizationId ||\n (updatedOptions.administratorContacts && updatedOptions.administratorContacts.length)\n ) {\n generatedOptions.organizationDetails = {\n id: updatedOptions.organizationId,\n adminDetails: updatedOptions.administratorContacts\n ? updatedOptions.administratorContacts.map((x) => ({\n emailAddress: x.email,\n phone: x.phone,\n firstName: x.firstName,\n lastName: x.lastName,\n }))\n : undefined,\n };\n }\n\n if (updatedOptions.enabled !== undefined) {\n generatedOptions.attributes = {\n enabled: updatedOptions.enabled,\n };\n }\n\n let parsedBody: any;\n await this.client.setCertificateIssuer(this.vaultUrl, issuerName, provider, {\n ...generatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return toPublicIssuer(parsedBody);\n },\n );\n }\n\n /**\n * The updateIssuer operation performs an update on the specified certificate issuer\n * entity. This operation requires the certificates/setissuers permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.createIssuer(\"IssuerName\", \"Test\");\n * await client.updateIssuer(\"IssuerName\", {\n * provider: \"Provider2\"\n * });\n * ```\n * Updates the specified certificate issuer.\n * @param issuerName - The name of the issuer.\n * @param options - The optional parameters\n */\n public async updateIssuer(\n issuerName: string,\n options: UpdateIssuerOptions = {},\n ): Promise<CertificateIssuer> {\n return tracingClient.withSpan(\n \"CertificateClient.updateIssuer\",\n options,\n async (updatedOptions) => {\n const { accountId, password } = options;\n\n const generatedOptions: SetCertificateIssuerOptionalParams = {\n ...updatedOptions,\n credentials: {\n accountId,\n password,\n },\n };\n\n if (\n updatedOptions.organizationId ||\n (updatedOptions.administratorContacts && updatedOptions.administratorContacts.length)\n ) {\n generatedOptions.organizationDetails = {\n id: updatedOptions.organizationId,\n adminDetails: updatedOptions.administratorContacts\n ? updatedOptions.administratorContacts.map((x) => ({\n emailAddress: x.email,\n phone: x.phone,\n firstName: x.firstName,\n lastName: x.lastName,\n }))\n : undefined,\n };\n }\n\n if (updatedOptions.enabled) {\n generatedOptions.attributes = {\n enabled: updatedOptions.enabled,\n };\n }\n\n let parsedBody: any;\n await this.client.updateCertificateIssuer(this.vaultUrl, issuerName, {\n ...generatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n\n return toPublicIssuer(parsedBody);\n },\n );\n }\n\n /**\n * The getIssuer operation returns the specified certificate issuer resources in the\n * specified key vault. This operation requires the certificates/manageissuers/getissuers\n * permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.createIssuer(\"IssuerName\", \"Test\");\n * const certificateIssuer = await client.getIssuer(\"IssuerName\");\n * console.log(certificateIssuer);\n * ```\n * Gets he specified certificate issuer.\n * @param issuerName - The name of the issuer.\n * @param options - The optional parameters\n */\n public getIssuer(issuerName: string, options: GetIssuerOptions = {}): Promise<CertificateIssuer> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.getIssuer\",\n options,\n async (updatedOptions) => {\n await this.client.getCertificateIssuer(this.vaultUrl, issuerName, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return toPublicIssuer(parsedBody);\n },\n );\n }\n\n /**\n * The deleteIssuer operation permanently removes the specified certificate issuer from\n * the vault. This operation requires the certificates/manageissuers/deleteissuers permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.createIssuer(\"IssuerName\", \"Provider\");\n * await client.deleteIssuer(\"IssuerName\");\n * ```\n * Deletes the specified certificate issuer.\n * @param issuerName - The name of the issuer.\n * @param options - The optional parameters\n */\n public deleteIssuer(\n issuerName: string,\n options: DeleteIssuerOptions = {},\n ): Promise<CertificateIssuer> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.deleteIssuer\",\n options,\n async (updatedOptions) => {\n await this.client.deleteCertificateIssuer(this.vaultUrl, issuerName, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return toPublicIssuer(parsedBody);\n },\n );\n }\n\n /**\n * Creates a new certificate. If this is the first version, the certificate resource is created.\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the certificate is fully recovered.\n *\n * **Note:** Sending `Self` as the `issuerName` of the certificate's policy will create a self-signed certificate.\n *\n * This operation requires the certificates/create permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * const certificatePolicy = {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * };\n * const createPoller = await client.beginCreateCertificate(\"MyCertificate\", certificatePolicy);\n *\n * // The pending certificate can be obtained by calling the following method:\n * const pendingCertificate = createPoller.getResult();\n *\n * // Serializing the poller\n * const serialized = createPoller.toString();\n *\n * // A new poller can be created with:\n * // const newPoller = await client.beginCreateCertificate(\"MyCertificate\", certificatePolicy, { resumeFrom: serialized });\n *\n * // Waiting until it's done\n * const certificate = await createPoller.pollUntilDone();\n * console.log(certificate);\n * ```\n * Creates a certificate\n * @param certificateName - The name of the certificate\n * @param certificatePolicy - The certificate's policy\n * @param options - Optional parameters\n */\n public async beginCreateCertificate(\n certificateName: string,\n policy: CertificatePolicy,\n options: BeginCreateCertificateOptions = {},\n ): Promise<PollerLikeWithCancellation<CreateCertificateState, KeyVaultCertificateWithPolicy>> {\n const poller = new CreateCertificatePoller({\n vaultUrl: this.vaultUrl,\n client: this.client,\n certificateName,\n certificatePolicy: policy,\n createCertificateOptions: options,\n operationOptions: options,\n intervalInMs: options.intervalInMs,\n resumeFrom: options.resumeFrom,\n });\n // This will initialize the poller's operation (the creation of the secret).\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets the latest information available from a specific certificate, including the certificate's policy. This operation requires the certificates/get permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * const poller = await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n * await poller.pollUntilDone();\n * const certificate = await client.getCertificate(\"MyCertificate\");\n * console.log(certificate);\n * ```\n * Retrieves a certificate from the certificate's name (includes the certificate policy)\n * @param certificateName - The name of the certificate\n * @param options - The optional parameters\n */\n public getCertificate(\n certificateName: string,\n options: GetCertificateOptions = {},\n ): Promise<KeyVaultCertificateWithPolicy> {\n return tracingClient.withSpan(\n \"CertificateClient.getCertificate\",\n options,\n async (updatedOptions) => {\n const result = await this.client.getCertificate(\n this.vaultUrl,\n certificateName,\n \"\",\n updatedOptions,\n );\n return getCertificateWithPolicyFromCertificateBundle(result);\n },\n );\n }\n\n /**\n * Gets information about a specific certificate on a specific version. It won't return the certificate's policy. This operation requires the certificates/get permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * const poller = await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n * await poller.pollUntilDone();\n * const certificateWithPolicy = await client.getCertificate(\"MyCertificate\");\n * const certificate = await client.getCertificateVersion(\"MyCertificate\", certificateWithPolicy.properties.version!);\n * console.log(certificate);\n * ```\n * Retrieves a certificate from the certificate's name and a specified version\n * @param certificateName - The name of the certificate\n * @param version - The specific version of the certificate\n * @param options - The optional parameters\n */\n public getCertificateVersion(\n certificateName: string,\n version: string,\n options: GetCertificateVersionOptions = {},\n ): Promise<KeyVaultCertificate> {\n return tracingClient.withSpan(\n \"CertificateClient.getCertificateVersion\",\n options,\n async (updatedOptions) => {\n if (!version) {\n throw new Error(\"The 'version' cannot be empty.\");\n }\n const result = await this.client.getCertificate(\n this.vaultUrl,\n certificateName,\n version,\n updatedOptions,\n );\n return getCertificateFromCertificateBundle(result);\n },\n );\n }\n\n /**\n * Imports an existing valid certificate, containing a private key, into Azure Key Vault. The certificate to be imported can be in either PFX or PEM format.\n * If the certificate is in PEM format the PEM file must contain the key as well as x509 certificates. This operation requires the certificates/import permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * // See: @azure/keyvault-secrets\n * const certificateSecret = await secretClient.getSecret(\"MyCertificate\");\n * const base64EncodedCertificate = certificateSecret.value!;\n * let buffer: Uint8Array;\n *\n * if (isNode) {\n * buffer = Buffer.from(base64EncodedCertificate, \"base64\");\n * } else {\n * buffer = Uint8Array.from(atob(base64EncodedCertificate), (c) => c.charCodeAt(0));\n * }\n *\n * await client.importCertificate(\"MyCertificate\", buffer);\n * ```\n * Imports a certificate from a certificate's secret value\n * @param certificateName - The name of the certificate\n * @param certificateBytes - The PFX or ASCII PEM formatted value of the certificate containing both the X.509 certificates and the private key\n * @param options - The optional parameters\n */\n public importCertificate(\n certificateName: string,\n certificateBytes: Uint8Array,\n options: ImportCertificateOptions = {},\n ): Promise<KeyVaultCertificateWithPolicy> {\n return tracingClient.withSpan(\n \"CertificateClient.importCertificate\",\n options,\n async (updatedOptions) => {\n const base64EncodedCertificate = parseCertificateBytes(\n certificateBytes,\n updatedOptions.policy?.contentType,\n );\n const result = await this.client.importCertificate(\n this.vaultUrl,\n certificateName,\n base64EncodedCertificate,\n updatedOptions,\n );\n return getCertificateWithPolicyFromCertificateBundle(result);\n },\n );\n }\n\n /**\n * The getCertificatePolicy operation returns the specified certificate policy resources in the specified key vault. This operation requires the certificates/get permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n * const policy = await client.getCertificatePolicy(\"MyCertificate\");\n * console.log(policy);\n * ```\n * Gets a certificate's policy\n * @param certificateName - The name of the certificate\n * @param options - The optional parameters\n */\n public getCertificatePolicy(\n certificateName: string,\n options: GetCertificatePolicyOptions = {},\n ): Promise<CertificatePolicy> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.getCertificatePolicy\",\n options,\n async (updatedOptions) => {\n await this.client.getCertificatePolicy(this.vaultUrl, certificateName, {\n ...updatedOptions,\n onResponse: (res) => {\n parsedBody = res.parsedBody;\n },\n });\n return toPublicPolicy(parsedBody);\n },\n );\n }\n\n /**\n * Updates the certificate policy for the specified certificate. This operation requires the certificates/update permission.\n * Gets a certificate's policy\n * @param certificateName - The name of the certificate\n * @param policy - The certificate policy\n * @param options - The optional parameters\n */\n public updateCertificatePolicy(\n certificateName: string,\n policy: CertificatePolicy,\n options: UpdateCertificatePolicyOptions = {},\n ): Promise<CertificatePolicy> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.updateCertificatePolicy\",\n options,\n async (updatedOptions) => {\n const corePolicy = toCorePolicy(undefined, policy);\n await this.client.updateCertificatePolicy(this.vaultUrl, certificateName, corePolicy, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return toPublicPolicy(parsedBody);\n },\n );\n }\n\n /**\n * Applies the specified update on the given certificate; the only elements updated are the\n * certificate's attributes. This operation requires the certificates/update permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n *\n * // You may pass an empty string for version which will update\n * // the latest version of the certificate\n * await client.updateCertificateProperties(\"MyCertificate\", \"\", {\n * tags: {\n * customTag: \"value\"\n * }\n * });\n * ```\n * Updates a certificate\n * @param certificateName - The name of the certificate\n * @param version - The version of the certificate to update (an empty string will update the latest version)\n * @param options - The options, including what to update\n */\n public updateCertificateProperties(\n certificateName: string,\n version: string,\n options: UpdateCertificatePropertiesOptions = {},\n ): Promise<KeyVaultCertificate> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.updateCertificateProperties\",\n options,\n async (updatedOptions) => {\n await this.client.updateCertificate(this.vaultUrl, certificateName, version, {\n ...updatedOptions,\n certificateAttributes: toCoreAttributes(options),\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return getCertificateFromCertificateBundle(parsedBody);\n },\n );\n }\n\n /**\n * Gets the creation operation associated with a specified certificate. This operation requires the certificates/get permission.\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the certificate is fully recovered.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * const createPoller = await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n *\n * const poller = await client.getCertificateOperation(\"MyCertificate\");\n * const pendingCertificate = poller.getResult();\n *\n * const certificateOperation = poller.getOperationState().certificateOperation;\n * console.log(certificateOperation);\n * ```\n * Gets a certificate's poller operation\n * @param certificateName - The name of the certificate\n * @param options - The optional parameters\n */\n public async getCertificateOperation(\n certificateName: string,\n options: GetCertificateOperationOptions = {},\n ): Promise<PollerLikeWithCancellation<CertificateOperationState, KeyVaultCertificateWithPolicy>> {\n const poller = new CertificateOperationPoller({\n certificateName,\n client: this.client,\n vaultUrl: this.vaultUrl,\n intervalInMs: options.intervalInMs,\n resumeFrom: options.resumeFrom,\n operationOptions: options,\n });\n // This will initialize the poller's operation, which pre-populates some necessary properties.\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the creation operation for a specified certificate that is in the process of being created.\n * The certificate is no longer created. This operation requires the certificates/update permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n * await client.deleteCertificateOperation(\"MyCertificate\");\n * await client.getCertificateOperation(\"MyCertificate\"); // Throws error: Pending certificate not found: \"MyCertificate\"\n * ```\n * Delete a certificate's operation\n * @param certificateName - The name of the certificate\n * @param options - The optional parameters\n */\n public deleteCertificateOperation(\n certificateName: string,\n options: DeleteCertificateOperationOptions = {},\n ): Promise<CertificateOperation> {\n return tracingClient.withSpan(\n \"CertificateClient.deleteCertificateOperation\",\n options,\n async (updatedOptions) => {\n let parsedBody: any;\n await this.client.deleteCertificateOperation(this.vaultUrl, certificateName, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return getCertificateOperationFromCoreOperation(certificateName, this.vaultUrl, parsedBody);\n },\n );\n }\n\n /**\n * Performs the merging of a certificate or certificate chain with a key pair currently available in the service. This operation requires the certificates/create permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Unknown\",\n * subject: \"cn=MyCert\"\n * });\n * const poller = await client.getCertificateOperation(\"MyCertificate\");\n * const { csr } = poller.getOperationState().certificateOperation!;\n * const base64Csr = Buffer.from(csr!).toString(\"base64\");\n * const wrappedCsr = [\"-----BEGIN CERTIFICATE REQUEST-----\", base64Csr, \"-----END CERTIFICATE REQUEST-----\"].join(\"\\n\");\n *\n * const fs = require(\"fs\");\n * fs.writeFileSync(\"test.csr\", wrappedCsr);\n *\n * // Certificate available locally made using:\n * // openssl genrsa -out ca.key 2048\n * // openssl req -new -x509 -key ca.key -out ca.crt\n * // You can read more about how to create a fake certificate authority here: https://gist.github.com/Soarez/9688998\n *\n * const childProcess = require(\"child_process\");\n * childProcess.execSync(\"openssl x509 -req -in test.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out test.crt\");\n * const base64Crt = fs.readFileSync(\"test.crt\").toString().split(\"\\n\").slice(1, -1).join(\"\");\n *\n * await client.mergeCertificate(\"MyCertificate\", [Buffer.from(base64Crt)]);\n * ```\n * Merges a signed certificate request into a pending certificate\n * @param certificateName - The name of the certificate\n * @param x509Certificates - The certificate(s) to merge\n * @param options - The optional parameters\n */\n public mergeCertificate(\n certificateName: string,\n x509Certificates: Uint8Array[],\n options: MergeCertificateOptions = {},\n ): Promise<KeyVaultCertificateWithPolicy> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.mergeCertificate\",\n options,\n async (updatedOptions) => {\n await this.client.mergeCertificate(this.vaultUrl, certificateName, x509Certificates, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return getCertificateWithPolicyFromCertificateBundle(parsedBody);\n },\n );\n }\n\n /**\n * Requests that a backup of the specified certificate be downloaded to the client. All versions of the certificate will be downloaded.\n * This operation requires the certificates/backup permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n * const backup = await client.backupCertificate(\"MyCertificate\");\n * ```\n * Generates a backup of a certificate\n * @param certificateName - The name of the certificate\n * @param options - The optional parameters\n */\n public backupCertificate(\n certificateName: string,\n options: BackupCertificateOptions = {},\n ): Promise<Uint8Array | undefined> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.backupCertificate\",\n options,\n async (updatedOptions) => {\n await this.client.backupCertificate(this.vaultUrl, certificateName, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return parsedBody.value;\n },\n );\n }\n\n /**\n * Restores a backed up certificate, and all its versions, to a vault. This operation requires the certificates/restore permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n * const backup = await client.backupCertificate(\"MyCertificate\");\n * const poller = await client.beginDeleteCertificate(\"MyCertificate\");\n * await poller.pollUntilDone();\n * // Some time is required before we're able to restore the certificate\n * await client.restoreCertificateBackup(backup!);\n * ```\n * Restores a certificate from a backup\n * @param backup - The back-up certificate to restore from\n * @param options - The optional parameters\n */\n public restoreCertificateBackup(\n backup: Uint8Array,\n options: RestoreCertificateBackupOptions = {},\n ): Promise<KeyVaultCertificateWithPolicy> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.restoreCertificateBackup\",\n options,\n async (updatedOptions) => {\n await this.client.restoreCertificate(this.vaultUrl, backup, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return getCertificateWithPolicyFromCertificateBundle(parsedBody);\n },\n );\n }\n\n private async *listDeletedCertificatesPage(\n continuationState: PageSettings,\n options: ListDeletedCertificatesOptions = {},\n ): AsyncIterableIterator<DeletedCertificate[]> {\n if (continuationState.continuationToken == null) {\n const requestOptionsComplete: GetDeletedCertificatesOptionalParams = {\n maxresults: continuationState.maxPageSize,\n includePending: options.includePending,\n ...options,\n };\n const currentSetResponse = await tracingClient.withSpan(\n \"CertificateClient.listDeletedCertificatesPage\",\n requestOptionsComplete,\n (updatedOptions) => this.client.getDeletedCertificates(this.vaultUrl, updatedOptions),\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getDeletedCertificateFromItem, this);\n }\n }\n while (continuationState.continuationToken) {\n const currentSetResponse = await tracingClient.withSpan(\n \"CertificateClient.listDeletedCertificatesPage\",\n options,\n (updatedOptions) =>\n this.client.getDeletedCertificatesNext(\n this.vaultUrl,\n continuationState.continuationToken!,\n updatedOptions,\n ),\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getDeletedCertificateFromItem, this);\n } else {\n break;\n }\n }\n }\n\n private async *listDeletedCertificatesAll(\n options: ListDeletedCertificatesOptions = {},\n ): AsyncIterableIterator<DeletedCertificate> {\n const f = {};\n\n for await (const page of this.listDeletedCertificatesPage(f, options)) {\n for (const item of page) {\n yield item;\n }\n }\n }\n\n /**\n * Retrieves the certificates in the current vault which are in a deleted state and ready for recovery or purging. This operation includes deletion-specific\n * information. This operation requires the certificates/get/list permission. This operation can only be enabled on soft-delete enabled vaults.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * for await (const deletedCertificate of client.listDeletedCertificates()) {\n * console.log(deletedCertificate);\n * }\n * for await (const page of client.listDeletedCertificates().byPage()) {\n * for (const deletedCertificate of page) {\n * console.log(deletedCertificate);\n * }\n * }\n * ```\n * Lists deleted certificates\n * @param options - The optional parameters\n */\n public listDeletedCertificates(\n options: ListDeletedCertificatesOptions = {},\n ): PagedAsyncIterableIterator<DeletedCertificate> {\n const iter = this.listDeletedCertificatesAll(options);\n\n const result = {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) => this.listDeletedCertificatesPage(settings, options),\n };\n\n return result;\n }\n\n /**\n * retrieves the deleted certificate information plus its attributes, such as retention interval, scheduled permanent deletion and the\n * current deletion recovery level. This operation requires the certificates/get permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * const deletedCertificate = await client.getDeletedCertificate(\"MyDeletedCertificate\");\n * console.log(\"Deleted certificate:\", deletedCertificate);\n * ```\n * Gets a deleted certificate\n * @param certificateName - The name of the certificate\n * @param options - The optional parameters\n */\n public getDeletedCertificate(\n certificateName: string,\n options: GetDeletedCertificateOptions = {},\n ): Promise<DeletedCertificate> {\n return tracingClient.withSpan(\n \"CertificateClient.getDeletedCertificate\",\n options,\n async (updatedOptions) => {\n let parsedBody: any;\n await this.client.getDeletedCertificate(this.vaultUrl, certificateName, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return getDeletedCertificateFromDeletedCertificateBundle(parsedBody);\n },\n );\n }\n\n /**\n * Performs an irreversible deletion of the specified certificate, without possibility for recovery. The operation is not available if the\n * recovery level does not specify 'Purgeable'. This operation requires the certificate/purge permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * const deletePoller = await client.beginDeleteCertificate(\"MyCertificate\");\n * await deletePoller.pollUntilDone();\n * // Deleting a certificate takes time, make sure to wait before purging it\n * client.purgeDeletedCertificate(\"MyCertificate\");\n * ```\n * Gets a deleted certificate\n * @param certificateName - The name of the deleted certificate to purge\n * @param options - The optional parameters\n */\n public async purgeDeletedCertificate(\n certificateName: string,\n options: PurgeDeletedCertificateOptions = {},\n ): Promise<null> {\n return tracingClient.withSpan(\n \"CertificateClient.purgeDeletedCertificate\",\n options,\n async (updatedOptions) => {\n await this.client.purgeDeletedCertificate(this.vaultUrl, certificateName, updatedOptions);\n return null;\n },\n );\n }\n\n /**\n * Recovers the deleted certificate in the specified vault. This operation can only be performed on a soft-delete enabled vault. This operation\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the certificate is fully recovered.\n *\n * This operation requires the certificates/recover permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n *\n * const deletePoller = await client.beginDeleteCertificate(\"MyCertificate\");\n * await deletePoller.pollUntilDone();\n *\n * const recoverPoller = await client.beginRecoverDeletedCertificate(\"MyCertificate\");\n *\n * // Serializing the poller\n * const serialized = deletePoller.toString();\n *\n * // A new poller can be created with:\n * // const newPoller = await client.beginRecoverDeletedCertificate(\"MyCertificate\", { resumeFrom: serialized });\n *\n * // Waiting until it's done\n * const certificate = await recoverPoller.pollUntilDone();\n * console.log(certificate);\n * ```\n * Recovers a deleted certificate\n * @param certificateName - The name of the deleted certificate\n * @param options - The optional parameters\n */\n public async beginRecoverDeletedCertificate(\n certificateName: string,\n options: BeginRecoverDeletedCertificateOptions = {},\n ): Promise<PollerLike<RecoverDeletedCertificateState, KeyVaultCertificateWithPolicy>> {\n const poller = new RecoverDeletedCertificatePoller({\n certificateName,\n client: this.client,\n vaultUrl: this.vaultUrl,\n ...options,\n operationOptions: options,\n });\n // This will initialize the poller's operation (the recovery of the deleted secret).\n await poller.poll();\n return poller;\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAUlC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,OAAO,EA4CL,oBAAoB,EAWpB,wBAAwB,EAExB,kBAAkB,EAGlB,6BAA6B,EAC7B,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;;;;;;OA4BG;IACI,KAAK,CAAC,8BAA8B,CACzC,eAAuB,EACvB,UAAiD,EAAE;QAEnD,MAAM,MAAM,GAAG,IAAI,+BAA+B,+BAChD,eAAe,EACf,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IACpB,OAAO,KACV,gBAAgB,EAAE,OAAO,IACzB,CAAC;QACH,oFAAoF;QACpF,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,OAAO,MAAM,CAAC;IAChB,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// This file makes more sense if ordered based on how meaningful are some methods in relation to others.\n\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport type { InternalClientPipelineOptions } from \"@azure/core-client\";\n\nimport type { TokenCredential } from \"@azure/core-auth\";\n\nimport { logger } from \"./log.js\";\nimport type { PollOperationState } from \"@azure/core-lro\";\nimport { PollerLike } from \"@azure/core-lro\";\n\nimport {\n KeyVaultCertificate,\n KeyVaultCertificateWithPolicy,\n AdministratorContact,\n BackupCertificateOptions,\n BeginCreateCertificateOptions,\n BeginDeleteCertificateOptions,\n BeginRecoverDeletedCertificateOptions,\n CertificateIssuer,\n CertificateContact,\n CertificateContentType,\n CertificatePolicy,\n CertificateProperties,\n CreateCertificateOptions,\n DeleteCertificateOperationOptions,\n DeleteContactsOptions,\n DeleteIssuerOptions,\n DeletedCertificate,\n GetContactsOptions,\n GetIssuerOptions,\n GetCertificateOperationOptions,\n GetPlainCertificateOperationOptions,\n GetCertificateOptions,\n GetCertificatePolicyOptions,\n GetCertificateVersionOptions,\n GetDeletedCertificateOptions,\n CertificateTags,\n ImportCertificateOptions,\n ListPropertiesOfCertificatesOptions,\n ErrorModel,\n ListPropertiesOfCertificateVersionsOptions,\n ListPropertiesOfIssuersOptions,\n ListDeletedCertificatesOptions,\n MergeCertificateOptions,\n PurgeDeletedCertificateOptions,\n RestoreCertificateBackupOptions,\n SetContactsOptions,\n CreateIssuerOptions,\n CertificateOperation,\n CertificateOperationError,\n SubjectAlternativeNames,\n UpdateIssuerOptions,\n UpdateCertificatePropertiesOptions,\n UpdateCertificatePolicyOptions,\n WellKnownIssuerNames,\n CertificatePollerOptions,\n IssuerProperties,\n CertificateContactAll,\n CertificatePolicyAction,\n LifetimeAction,\n RequireAtLeastOne,\n ArrayOneOrMore,\n SubjectAlternativeNamesAll,\n CertificatePolicyProperties,\n PolicySubjectProperties,\n DefaultCertificatePolicy,\n CertificateClientOptions,\n LATEST_API_VERSION,\n CancelCertificateOperationOptions,\n ImportCertificatePolicy,\n KnownCertificateKeyCurveNames,\n KnownCertificateKeyTypes,\n KnownKeyUsageTypes,\n PollerLikeWithCancellation,\n} from \"./certificatesModels.js\";\n\nimport type {\n GetCertificatesOptionalParams,\n GetCertificateIssuersOptionalParams,\n GetCertificateVersionsOptionalParams,\n SetCertificateIssuerOptionalParams,\n GetDeletedCertificatesOptionalParams,\n} from \"./generated/models/index.js\";\nimport {\n BackupCertificateResult,\n IssuerParameters,\n IssuerCredentials,\n IssuerAttributes,\n X509CertificateProperties,\n SubjectAlternativeNames as CoreSubjectAlternativeNames,\n ActionType,\n DeletionRecoveryLevel,\n JsonWebKeyType as CertificateKeyType,\n JsonWebKeyCurveName as CertificateKeyCurveName,\n KnownDeletionRecoveryLevel as KnownDeletionRecoveryLevels,\n KeyUsageType,\n} from \"./generated/models/index.js\";\nimport { KeyVaultClient } from \"./generated/keyVaultClient.js\";\nimport type { PageSettings, PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { keyVaultAuthenticationPolicy } from \"@azure/keyvault-common\";\nimport { CreateCertificatePoller } from \"./lro/create/poller.js\";\nimport { CertificateOperationPoller } from \"./lro/operation/poller.js\";\nimport { DeleteCertificatePoller } from \"./lro/delete/poller.js\";\nimport { RecoverDeletedCertificatePoller } from \"./lro/recover/poller.js\";\nimport { CertificateOperationState } from \"./lro/operation/operation.js\";\nimport { DeleteCertificateState } from \"./lro/delete/operation.js\";\nimport { CreateCertificateState } from \"./lro/create/operation.js\";\nimport { RecoverDeletedCertificateState } from \"./lro/recover/operation.js\";\nimport { parseCertificateBytes } from \"./utils.js\";\nimport { KeyVaultCertificateIdentifier, parseKeyVaultCertificateIdentifier } from \"./identifier.js\";\nimport {\n coreContactsToCertificateContacts,\n getCertificateFromCertificateBundle,\n getCertificateOperationFromCoreOperation,\n getCertificateWithPolicyFromCertificateBundle,\n getDeletedCertificateFromDeletedCertificateBundle,\n getDeletedCertificateFromItem,\n getPropertiesFromCertificateBundle,\n toCoreAttributes,\n toCorePolicy,\n toPublicIssuer,\n toPublicPolicy,\n} from \"./transformations.js\";\nimport { KeyVaultCertificatePollOperationState } from \"./lro/keyVaultCertificatePoller.js\";\nimport { tracingClient } from \"./tracing.js\";\n\nexport {\n CertificateClientOptions,\n ActionType,\n AdministratorContact,\n ArrayOneOrMore,\n BackupCertificateResult,\n BeginCreateCertificateOptions,\n BeginDeleteCertificateOptions,\n BeginRecoverDeletedCertificateOptions,\n KeyVaultCertificate,\n KeyVaultCertificateWithPolicy,\n BackupCertificateOptions,\n CertificateContentType,\n CertificateProperties,\n CertificateIssuer,\n CertificateOperation,\n CertificateOperationError,\n CertificatePolicy,\n ImportCertificatePolicy,\n CertificatePolicyAction,\n CertificatePolicyProperties,\n PolicySubjectProperties,\n CertificateTags,\n CreateCertificateOptions,\n CertificatePollerOptions,\n KeyVaultCertificateIdentifier,\n parseKeyVaultCertificateIdentifier,\n PollerLike,\n PollerLikeWithCancellation,\n CreateCertificateState,\n DeleteCertificateState,\n RecoverDeletedCertificateState,\n CertificateOperationState,\n CoreSubjectAlternativeNames,\n RequireAtLeastOne,\n CertificateContactAll,\n CertificateContact,\n DeleteCertificateOperationOptions,\n DeleteContactsOptions,\n DeleteIssuerOptions,\n DeletedCertificate,\n DeletionRecoveryLevel,\n DefaultCertificatePolicy,\n ErrorModel,\n GetContactsOptions,\n GetIssuerOptions,\n GetCertificateOperationOptions,\n GetPlainCertificateOperationOptions,\n GetCertificateOptions,\n GetCertificatePolicyOptions,\n GetCertificateVersionOptions,\n GetDeletedCertificateOptions,\n ImportCertificateOptions,\n IssuerAttributes,\n IssuerCredentials,\n IssuerParameters,\n IssuerProperties,\n CertificateKeyType,\n CertificateKeyCurveName,\n KeyUsageType,\n LifetimeAction,\n ListPropertiesOfCertificatesOptions,\n ListPropertiesOfCertificateVersionsOptions,\n ListPropertiesOfIssuersOptions,\n ListDeletedCertificatesOptions,\n MergeCertificateOptions,\n PurgeDeletedCertificateOptions,\n RestoreCertificateBackupOptions,\n SetContactsOptions,\n SubjectAlternativeNamesAll,\n CreateIssuerOptions,\n SubjectAlternativeNames,\n UpdateIssuerOptions,\n UpdateCertificatePropertiesOptions as UpdateCertificateOptions,\n UpdateCertificatePolicyOptions,\n WellKnownIssuerNames as WellKnownIssuer,\n X509CertificateProperties,\n logger,\n CancelCertificateOperationOptions,\n KeyVaultCertificatePollOperationState,\n KnownCertificateKeyCurveNames,\n KnownDeletionRecoveryLevels,\n KnownCertificateKeyTypes,\n KnownKeyUsageTypes,\n};\n\n/**\n * Deprecated KeyVault copy of core-lro's PollerLike.\n */\n// eslint-disable-next-line no-use-before-define\nexport type KVPollerLike<TState extends PollOperationState<TResult>, TResult> = PollerLike<\n TState,\n TResult\n>;\n\n/**\n * The client to interact with the KeyVault certificates functionality\n */\nexport class CertificateClient {\n /**\n * The base URL to the vault\n */\n public readonly vaultUrl: string;\n\n private readonly client: KeyVaultClient;\n\n /**\n * Creates an instance of CertificateClient.\n * @param vaultUrl - the base URL to the vault. You should validate that this URL references a valid Key Vault resource. See https://aka.ms/azsdk/blog/vault-uri for details.\n * @param credential - An object that implements the `TokenCredential` interface used to authenticate requests to the service. Use the \\@azure/identity package to create a credential that suits your needs.\n * @param clientOptions - Pipeline options used to configure Key Vault API requests.\n * Omit this parameter to use the default pipeline configuration.\n */\n constructor(\n vaultUrl: string,\n credential: TokenCredential,\n clientOptions: CertificateClientOptions = {},\n ) {\n this.vaultUrl = vaultUrl;\n\n const internalClientPipelineOptions: InternalClientPipelineOptions = {\n ...clientOptions,\n loggingOptions: {\n logger: logger.info,\n additionalAllowedHeaderNames: [\n \"x-ms-keyvault-region\",\n \"x-ms-keyvault-network-info\",\n \"x-ms-keyvault-service-version\",\n ],\n },\n };\n\n this.client = new KeyVaultClient(\n clientOptions.serviceVersion || LATEST_API_VERSION,\n internalClientPipelineOptions,\n );\n\n // The authentication policy must come after the deserialization policy since the deserialization policy\n // converts 401 responses to an Error, and we don't want to deal with that.\n this.client.pipeline.addPolicy(keyVaultAuthenticationPolicy(credential, clientOptions), {\n afterPolicies: [\"deserializationPolicy\"],\n });\n }\n\n private async *listPropertiesOfCertificatesPage(\n continuationState: PageSettings,\n options: ListPropertiesOfCertificatesOptions = {},\n ): AsyncIterableIterator<CertificateProperties[]> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: GetCertificatesOptionalParams = {\n maxresults: continuationState.maxPageSize,\n includePending: options.includePending,\n ...options,\n };\n const currentSetResponse = await tracingClient.withSpan(\n \"CertificateClient.listPropertiesOfCertificatesPage\",\n optionsComplete,\n (updatedOptions) => this.client.getCertificates(this.vaultUrl, updatedOptions),\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getPropertiesFromCertificateBundle, this);\n }\n }\n while (continuationState.continuationToken) {\n const currentSetResponse = await tracingClient.withSpan(\n \"CertificateClient.listPropertiesOfCertificatesPage\",\n options,\n (updatedOptions) =>\n this.client.getCertificatesNext(\n this.vaultUrl,\n continuationState.continuationToken!,\n updatedOptions,\n ),\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getPropertiesFromCertificateBundle, this);\n } else {\n break;\n }\n }\n }\n\n private async *listPropertiesOfCertificatesAll(\n options: ListPropertiesOfCertificatesOptions = {},\n ): AsyncIterableIterator<CertificateProperties> {\n const f = {};\n\n for await (const page of this.listPropertiesOfCertificatesPage(f, options)) {\n for (const certificate of page) {\n yield certificate;\n }\n }\n }\n\n /**\n * Iterates the latest version of all certificates in the vault. The full certificate identifier and attributes are provided\n * in the response. No values are returned for the certificates. This operations requires the certificates/list permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * // All in one call\n * for await (const certificateProperties of client.listPropertiesOfCertificates()) {\n * console.log(certificateProperties);\n * }\n * // By pages\n * for await (const page of client.listPropertiesOfCertificates().byPage()) {\n * for (const certificateProperties of page) {\n * console.log(certificateProperties);\n * }\n * }\n * ```\n * List all versions of the specified certificate.\n * @param options - The optional parameters\n */\n public listPropertiesOfCertificates(\n options: ListPropertiesOfCertificatesOptions = {},\n ): PagedAsyncIterableIterator<CertificateProperties> {\n const iter = this.listPropertiesOfCertificatesAll(options);\n\n const result = {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) =>\n this.listPropertiesOfCertificatesPage(settings, options),\n };\n\n return result;\n }\n\n private async *listPropertiesOfCertificateVersionsPage(\n certificateName: string,\n continuationState: PageSettings,\n options: ListPropertiesOfCertificateVersionsOptions = {},\n ): AsyncIterableIterator<CertificateProperties[]> {\n if (continuationState.continuationToken == null) {\n const optionsComplete: GetCertificateVersionsOptionalParams = {\n maxresults: continuationState.maxPageSize,\n ...options,\n };\n const currentSetResponse = await tracingClient.withSpan(\n \"CertificateClient.listPropertiesOfCertificateVersionsPage\",\n optionsComplete,\n (updatedOptions) =>\n this.client.getCertificateVersions(this.vaultUrl, certificateName, updatedOptions),\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getPropertiesFromCertificateBundle, this);\n }\n }\n while (continuationState.continuationToken) {\n const currentSetResponse = await tracingClient.withSpan(\n \"CertificateClient.listPropertiesOfCertificateVersionsPage\",\n options,\n (updatedOptions) =>\n this.client.getCertificateVersions(\n continuationState.continuationToken!,\n certificateName,\n updatedOptions,\n ),\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getPropertiesFromCertificateBundle, this);\n } else {\n break;\n }\n }\n }\n\n private async *listPropertiesOfCertificateVersionsAll(\n certificateName: string,\n options: ListPropertiesOfCertificateVersionsOptions = {},\n ): AsyncIterableIterator<CertificateProperties> {\n const f = {};\n\n for await (const page of this.listPropertiesOfCertificateVersionsPage(\n certificateName,\n f,\n options,\n )) {\n for (const item of page) {\n yield item;\n }\n }\n }\n\n /**\n * Returns the versions of a certificate in the specified key\n * vault. This operation requires the certificates/list permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * for await (const certificateProperties of client.listPropertiesOfCertificateVersions(\"MyCertificate\")) {\n * console.log(certificateProperties.version!);\n * }\n * ```\n * List the versions of a certificate.\n * @param certificateName - The name of the certificate.\n * @param options - The optional parameters\n */\n public listPropertiesOfCertificateVersions(\n certificateName: string,\n options: ListPropertiesOfCertificateVersionsOptions = {},\n ): PagedAsyncIterableIterator<CertificateProperties> {\n const iter = this.listPropertiesOfCertificateVersionsAll(certificateName, options);\n\n const result = {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) =>\n this.listPropertiesOfCertificateVersionsPage(certificateName, settings, options),\n };\n\n return result;\n }\n\n /**\n * The DELETE operation applies to any certificate stored in Azure Key Vault. DELETE cannot be applied\n * to an individual version of a certificate.\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the certificate is fully recovered.\n *\n * This operation requires the certificates/delete permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * const createPoller = await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n * await createPoller.pollUntilDone();\n *\n * const deletePoller = await client.beginDeleteCertificate(\"MyCertificate\");\n *\n * // Serializing the poller\n * const serialized = deletePoller.toString();\n *\n * // A new poller can be created with:\n * // const newPoller = await client.beginDeleteCertificate(\"MyCertificate\", { resumeFrom: serialized });\n *\n * // Waiting until it's done\n * const deletedCertificate = await deletePoller.pollUntilDone();\n * console.log(deletedCertificate);\n * ```\n * Deletes a certificate from a specified key vault.\n * @param certificateName - The name of the certificate.\n * @param options - The optional parameters\n */\n public async beginDeleteCertificate(\n certificateName: string,\n options: BeginDeleteCertificateOptions = {},\n ): Promise<PollerLike<DeleteCertificateState, DeletedCertificate>> {\n const poller = new DeleteCertificatePoller({\n certificateName,\n client: this.client,\n vaultUrl: this.vaultUrl,\n ...options,\n operationOptions: options,\n });\n // This will initialize the poller's operation (the deletion of the secret).\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes all of the certificate contacts. This operation requires the certificates/managecontacts permission.\n *\n * Example usage:\n * ```ts\n * let client = new CertificateClient(url, credentials);\n * await client.setContacts([{\n * email: \"b@b.com\",\n * name: \"b\",\n * phone: \"222222222222\"\n * }]);\n * await client.deleteContacts();\n * ```\n * Deletes all of the certificate contacts\n * @param options - The optional parameters\n */\n public deleteContacts(\n options: DeleteContactsOptions = {},\n ): Promise<CertificateContact[] | undefined> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.deleteContacts\",\n options,\n async (updatedOptions) => {\n await this.client.deleteCertificateContacts(this.vaultUrl, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return coreContactsToCertificateContacts(parsedBody);\n },\n );\n }\n\n /**\n * Sets the certificate contacts for the key vault. This operation requires the certificates/managecontacts permission.\n *\n * Example usage:\n * ```ts\n * let client = new CertificateClient(url, credentials);\n * await client.setContacts([{\n * email: \"b@b.com\",\n * name: \"b\",\n * phone: \"222222222222\"\n * }]);\n * ```\n * Sets the certificate contacts.\n * @param contacts - The contacts to use\n * @param options - The optional parameters\n */\n public setContacts(\n contacts: CertificateContact[],\n options: SetContactsOptions = {},\n ): Promise<CertificateContact[] | undefined> {\n const coreContacts = contacts.map((x) => ({\n emailAddress: x ? x.email : undefined,\n name: x ? x.name : undefined,\n phone: x ? x.phone : undefined,\n }));\n\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.setContacts\",\n options,\n async (updatedOptions) => {\n await this.client.setCertificateContacts(\n this.vaultUrl,\n { contactList: coreContacts },\n {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n },\n );\n return coreContactsToCertificateContacts(parsedBody);\n },\n );\n }\n\n /**\n * Returns the set of certificate contact resources in the specified key vault. This operation requires the certificates/managecontacts permission.\n *\n * Example usage:\n * ```ts\n * let client = new CertificateClient(url, credentials);\n * await client.setContacts([{\n * email: \"b@b.com\",\n * name: \"b\",\n * phone: \"222222222222\"\n * }]);\n * const contacts = await client.getContacts();\n * console.log(contacts);\n * ```\n * Sets the certificate contacts.\n * @param options - The optional parameters\n */\n public getContacts(options: GetContactsOptions = {}): Promise<CertificateContact[] | undefined> {\n return tracingClient.withSpan(\n \"CertificateClient.getContacts\",\n options,\n async (updatedOptions) => {\n const result = await this.client.getCertificateContacts(this.vaultUrl, updatedOptions);\n return coreContactsToCertificateContacts(result);\n },\n );\n }\n\n private async *listPropertiesOfIssuersPage(\n continuationState: PageSettings,\n options: ListPropertiesOfIssuersOptions = {},\n ): AsyncIterableIterator<IssuerProperties[]> {\n if (continuationState.continuationToken == null) {\n const requestOptionsComplete: GetCertificateIssuersOptionalParams = {\n maxresults: continuationState.maxPageSize,\n ...options,\n };\n const currentSetResponse = await tracingClient.withSpan(\n \"CertificateClient.listPropertiesOfIssuersPage\",\n requestOptionsComplete,\n (updatedOptions) => this.client.getCertificateIssuers(this.vaultUrl, updatedOptions),\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value;\n }\n }\n while (continuationState.continuationToken) {\n const currentSetResponse = await tracingClient.withSpan(\n \"CertificateClient.listPropertiesOfIssuersPage\",\n options,\n (updatedOptions) =>\n this.client.getCertificateIssuers(continuationState.continuationToken!, updatedOptions),\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value;\n } else {\n break;\n }\n }\n }\n\n private async *listPropertiesOfIssuersAll(\n options: ListPropertiesOfIssuersOptions = {},\n ): AsyncIterableIterator<IssuerProperties> {\n const f = {};\n\n for await (const page of this.listPropertiesOfIssuersPage(f, options)) {\n for (const item of page) {\n yield item;\n }\n }\n }\n\n /**\n * Returns the set of certificate issuer resources in the specified key vault. This operation requires the certificates/manageissuers/getissuers permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.createIssuer(\"IssuerName\", \"Test\");\n * // All in one call\n * for await (const issuerProperties of client.listPropertiesOfIssuers()) {\n * console.log(issuerProperties);\n * }\n * // By pages\n * for await (const page of client.listPropertiesOfIssuers().byPage()) {\n * for (const issuerProperties of page) {\n * console.log(issuerProperties);\n * }\n * }\n * ```\n * List the certificate issuers.\n * @param options - The optional parameters\n */\n public listPropertiesOfIssuers(\n options: ListPropertiesOfIssuersOptions = {},\n ): PagedAsyncIterableIterator<IssuerProperties> {\n const iter = this.listPropertiesOfIssuersAll(options);\n\n const result = {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) => this.listPropertiesOfIssuersPage(settings, options),\n };\n\n return result;\n }\n\n /**\n * The createIssuer operation adds or updates the specified certificate issuer. This\n * operation requires the certificates/setissuers permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.createIssuer(\"IssuerName\", \"Test\");\n * ```\n * Sets the specified certificate issuer.\n * @param issuerName - The name of the issuer.\n * @param provider - The issuer provider.\n * @param options - The optional parameters\n */\n public createIssuer(\n issuerName: string,\n provider: string,\n options: CreateIssuerOptions = {},\n ): Promise<CertificateIssuer> {\n return tracingClient.withSpan(\n \"CertificateClient.createIssuer\",\n options,\n async (updatedOptions) => {\n const { accountId, password } = updatedOptions;\n\n const generatedOptions: SetCertificateIssuerOptionalParams = {\n ...updatedOptions,\n credentials: {\n accountId,\n password,\n },\n };\n\n if (\n updatedOptions.organizationId ||\n (updatedOptions.administratorContacts && updatedOptions.administratorContacts.length)\n ) {\n generatedOptions.organizationDetails = {\n id: updatedOptions.organizationId,\n adminDetails: updatedOptions.administratorContacts\n ? updatedOptions.administratorContacts.map((x) => ({\n emailAddress: x.email,\n phone: x.phone,\n firstName: x.firstName,\n lastName: x.lastName,\n }))\n : undefined,\n };\n }\n\n if (updatedOptions.enabled !== undefined) {\n generatedOptions.attributes = {\n enabled: updatedOptions.enabled,\n };\n }\n\n let parsedBody: any;\n await this.client.setCertificateIssuer(this.vaultUrl, issuerName, provider, {\n ...generatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return toPublicIssuer(parsedBody);\n },\n );\n }\n\n /**\n * The updateIssuer operation performs an update on the specified certificate issuer\n * entity. This operation requires the certificates/setissuers permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.createIssuer(\"IssuerName\", \"Test\");\n * await client.updateIssuer(\"IssuerName\", {\n * provider: \"Provider2\"\n * });\n * ```\n * Updates the specified certificate issuer.\n * @param issuerName - The name of the issuer.\n * @param options - The optional parameters\n */\n public async updateIssuer(\n issuerName: string,\n options: UpdateIssuerOptions = {},\n ): Promise<CertificateIssuer> {\n return tracingClient.withSpan(\n \"CertificateClient.updateIssuer\",\n options,\n async (updatedOptions) => {\n const { accountId, password } = options;\n\n const generatedOptions: SetCertificateIssuerOptionalParams = {\n ...updatedOptions,\n credentials: {\n accountId,\n password,\n },\n };\n\n if (\n updatedOptions.organizationId ||\n (updatedOptions.administratorContacts && updatedOptions.administratorContacts.length)\n ) {\n generatedOptions.organizationDetails = {\n id: updatedOptions.organizationId,\n adminDetails: updatedOptions.administratorContacts\n ? updatedOptions.administratorContacts.map((x) => ({\n emailAddress: x.email,\n phone: x.phone,\n firstName: x.firstName,\n lastName: x.lastName,\n }))\n : undefined,\n };\n }\n\n if (updatedOptions.enabled) {\n generatedOptions.attributes = {\n enabled: updatedOptions.enabled,\n };\n }\n\n let parsedBody: any;\n await this.client.updateCertificateIssuer(this.vaultUrl, issuerName, {\n ...generatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n\n return toPublicIssuer(parsedBody);\n },\n );\n }\n\n /**\n * The getIssuer operation returns the specified certificate issuer resources in the\n * specified key vault. This operation requires the certificates/manageissuers/getissuers\n * permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.createIssuer(\"IssuerName\", \"Test\");\n * const certificateIssuer = await client.getIssuer(\"IssuerName\");\n * console.log(certificateIssuer);\n * ```\n * Gets he specified certificate issuer.\n * @param issuerName - The name of the issuer.\n * @param options - The optional parameters\n */\n public getIssuer(issuerName: string, options: GetIssuerOptions = {}): Promise<CertificateIssuer> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.getIssuer\",\n options,\n async (updatedOptions) => {\n await this.client.getCertificateIssuer(this.vaultUrl, issuerName, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return toPublicIssuer(parsedBody);\n },\n );\n }\n\n /**\n * The deleteIssuer operation permanently removes the specified certificate issuer from\n * the vault. This operation requires the certificates/manageissuers/deleteissuers permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.createIssuer(\"IssuerName\", \"Provider\");\n * await client.deleteIssuer(\"IssuerName\");\n * ```\n * Deletes the specified certificate issuer.\n * @param issuerName - The name of the issuer.\n * @param options - The optional parameters\n */\n public deleteIssuer(\n issuerName: string,\n options: DeleteIssuerOptions = {},\n ): Promise<CertificateIssuer> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.deleteIssuer\",\n options,\n async (updatedOptions) => {\n await this.client.deleteCertificateIssuer(this.vaultUrl, issuerName, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return toPublicIssuer(parsedBody);\n },\n );\n }\n\n /**\n * Creates a new certificate. If this is the first version, the certificate resource is created.\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the certificate is fully recovered.\n *\n * **Note:** Sending `Self` as the `issuerName` of the certificate's policy will create a self-signed certificate.\n *\n * This operation requires the certificates/create permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * const certificatePolicy = {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * };\n * const createPoller = await client.beginCreateCertificate(\"MyCertificate\", certificatePolicy);\n *\n * // The pending certificate can be obtained by calling the following method:\n * const pendingCertificate = createPoller.getResult();\n *\n * // Serializing the poller\n * const serialized = createPoller.toString();\n *\n * // A new poller can be created with:\n * // const newPoller = await client.beginCreateCertificate(\"MyCertificate\", certificatePolicy, { resumeFrom: serialized });\n *\n * // Waiting until it's done\n * const certificate = await createPoller.pollUntilDone();\n * console.log(certificate);\n * ```\n * Creates a certificate\n * @param certificateName - The name of the certificate\n * @param certificatePolicy - The certificate's policy\n * @param options - Optional parameters\n */\n public async beginCreateCertificate(\n certificateName: string,\n policy: CertificatePolicy,\n options: BeginCreateCertificateOptions = {},\n ): Promise<PollerLikeWithCancellation<CreateCertificateState, KeyVaultCertificateWithPolicy>> {\n const poller = new CreateCertificatePoller({\n vaultUrl: this.vaultUrl,\n client: this.client,\n certificateName,\n certificatePolicy: policy,\n createCertificateOptions: options,\n operationOptions: options,\n intervalInMs: options.intervalInMs,\n resumeFrom: options.resumeFrom,\n });\n // This will initialize the poller's operation (the creation of the secret).\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets the latest information available from a specific certificate, including the certificate's policy. This operation requires the certificates/get permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * const poller = await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n * await poller.pollUntilDone();\n * const certificate = await client.getCertificate(\"MyCertificate\");\n * console.log(certificate);\n * ```\n * Retrieves a certificate from the certificate's name (includes the certificate policy)\n * @param certificateName - The name of the certificate\n * @param options - The optional parameters\n */\n public getCertificate(\n certificateName: string,\n options: GetCertificateOptions = {},\n ): Promise<KeyVaultCertificateWithPolicy> {\n return tracingClient.withSpan(\n \"CertificateClient.getCertificate\",\n options,\n async (updatedOptions) => {\n const result = await this.client.getCertificate(\n this.vaultUrl,\n certificateName,\n \"\",\n updatedOptions,\n );\n return getCertificateWithPolicyFromCertificateBundle(result);\n },\n );\n }\n\n /**\n * Gets information about a specific certificate on a specific version. It won't return the certificate's policy. This operation requires the certificates/get permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * const poller = await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n * await poller.pollUntilDone();\n * const certificateWithPolicy = await client.getCertificate(\"MyCertificate\");\n * const certificate = await client.getCertificateVersion(\"MyCertificate\", certificateWithPolicy.properties.version!);\n * console.log(certificate);\n * ```\n * Retrieves a certificate from the certificate's name and a specified version\n * @param certificateName - The name of the certificate\n * @param version - The specific version of the certificate\n * @param options - The optional parameters\n */\n public getCertificateVersion(\n certificateName: string,\n version: string,\n options: GetCertificateVersionOptions = {},\n ): Promise<KeyVaultCertificate> {\n return tracingClient.withSpan(\n \"CertificateClient.getCertificateVersion\",\n options,\n async (updatedOptions) => {\n if (!version) {\n throw new Error(\"The 'version' cannot be empty.\");\n }\n const result = await this.client.getCertificate(\n this.vaultUrl,\n certificateName,\n version,\n updatedOptions,\n );\n return getCertificateFromCertificateBundle(result);\n },\n );\n }\n\n /**\n * Imports an existing valid certificate, containing a private key, into Azure Key Vault. The certificate to be imported can be in either PFX or PEM format.\n * If the certificate is in PEM format the PEM file must contain the key as well as x509 certificates. This operation requires the certificates/import permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * // See: @azure/keyvault-secrets\n * const certificateSecret = await secretClient.getSecret(\"MyCertificate\");\n * const base64EncodedCertificate = certificateSecret.value!;\n * let buffer: Uint8Array;\n *\n * if (isNode) {\n * buffer = Buffer.from(base64EncodedCertificate, \"base64\");\n * } else {\n * buffer = Uint8Array.from(atob(base64EncodedCertificate), (c) => c.charCodeAt(0));\n * }\n *\n * await client.importCertificate(\"MyCertificate\", buffer);\n * ```\n * Imports a certificate from a certificate's secret value\n * @param certificateName - The name of the certificate\n * @param certificateBytes - The PFX or ASCII PEM formatted value of the certificate containing both the X.509 certificates and the private key\n * @param options - The optional parameters\n */\n public importCertificate(\n certificateName: string,\n certificateBytes: Uint8Array,\n options: ImportCertificateOptions = {},\n ): Promise<KeyVaultCertificateWithPolicy> {\n return tracingClient.withSpan(\n \"CertificateClient.importCertificate\",\n options,\n async (updatedOptions) => {\n const base64EncodedCertificate = parseCertificateBytes(\n certificateBytes,\n updatedOptions.policy?.contentType,\n );\n const result = await this.client.importCertificate(\n this.vaultUrl,\n certificateName,\n base64EncodedCertificate,\n updatedOptions,\n );\n return getCertificateWithPolicyFromCertificateBundle(result);\n },\n );\n }\n\n /**\n * The getCertificatePolicy operation returns the specified certificate policy resources in the specified key vault. This operation requires the certificates/get permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n * const policy = await client.getCertificatePolicy(\"MyCertificate\");\n * console.log(policy);\n * ```\n * Gets a certificate's policy\n * @param certificateName - The name of the certificate\n * @param options - The optional parameters\n */\n public getCertificatePolicy(\n certificateName: string,\n options: GetCertificatePolicyOptions = {},\n ): Promise<CertificatePolicy> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.getCertificatePolicy\",\n options,\n async (updatedOptions) => {\n await this.client.getCertificatePolicy(this.vaultUrl, certificateName, {\n ...updatedOptions,\n onResponse: (res) => {\n parsedBody = res.parsedBody;\n },\n });\n return toPublicPolicy(parsedBody);\n },\n );\n }\n\n /**\n * Updates the certificate policy for the specified certificate. This operation requires the certificates/update permission.\n * Gets a certificate's policy\n * @param certificateName - The name of the certificate\n * @param policy - The certificate policy\n * @param options - The optional parameters\n */\n public updateCertificatePolicy(\n certificateName: string,\n policy: CertificatePolicy,\n options: UpdateCertificatePolicyOptions = {},\n ): Promise<CertificatePolicy> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.updateCertificatePolicy\",\n options,\n async (updatedOptions) => {\n const corePolicy = toCorePolicy(undefined, policy);\n await this.client.updateCertificatePolicy(this.vaultUrl, certificateName, corePolicy, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return toPublicPolicy(parsedBody);\n },\n );\n }\n\n /**\n * Applies the specified update on the given certificate; the only elements updated are the\n * certificate's attributes. This operation requires the certificates/update permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n *\n * // You may pass an empty string for version which will update\n * // the latest version of the certificate\n * await client.updateCertificateProperties(\"MyCertificate\", \"\", {\n * tags: {\n * customTag: \"value\"\n * }\n * });\n * ```\n * Updates a certificate\n * @param certificateName - The name of the certificate\n * @param version - The version of the certificate to update (an empty string will update the latest version)\n * @param options - The options, including what to update\n */\n public updateCertificateProperties(\n certificateName: string,\n version: string,\n options: UpdateCertificatePropertiesOptions = {},\n ): Promise<KeyVaultCertificate> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.updateCertificateProperties\",\n options,\n async (updatedOptions) => {\n await this.client.updateCertificate(this.vaultUrl, certificateName, version, {\n ...updatedOptions,\n certificateAttributes: toCoreAttributes(options),\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return getCertificateFromCertificateBundle(parsedBody);\n },\n );\n }\n\n /**\n * Gets the creation operation associated with a specified certificate. This operation requires the certificates/get permission.\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the certificate is fully recovered.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * const createPoller = await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n *\n * const poller = await client.getCertificateOperation(\"MyCertificate\");\n * const pendingCertificate = poller.getResult();\n *\n * const certificateOperation = poller.getOperationState().certificateOperation;\n * console.log(certificateOperation);\n * ```\n * Gets a certificate's poller operation\n * @param certificateName - The name of the certificate\n * @param options - The optional parameters\n */\n public async getCertificateOperation(\n certificateName: string,\n options: GetCertificateOperationOptions = {},\n ): Promise<PollerLikeWithCancellation<CertificateOperationState, KeyVaultCertificateWithPolicy>> {\n const poller = new CertificateOperationPoller({\n certificateName,\n client: this.client,\n vaultUrl: this.vaultUrl,\n intervalInMs: options.intervalInMs,\n resumeFrom: options.resumeFrom,\n operationOptions: options,\n });\n // This will initialize the poller's operation, which pre-populates some necessary properties.\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the creation operation for a specified certificate that is in the process of being created.\n * The certificate is no longer created. This operation requires the certificates/update permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n * await client.deleteCertificateOperation(\"MyCertificate\");\n * await client.getCertificateOperation(\"MyCertificate\"); // Throws error: Pending certificate not found: \"MyCertificate\"\n * ```\n * Delete a certificate's operation\n * @param certificateName - The name of the certificate\n * @param options - The optional parameters\n */\n public deleteCertificateOperation(\n certificateName: string,\n options: DeleteCertificateOperationOptions = {},\n ): Promise<CertificateOperation> {\n return tracingClient.withSpan(\n \"CertificateClient.deleteCertificateOperation\",\n options,\n async (updatedOptions) => {\n let parsedBody: any;\n await this.client.deleteCertificateOperation(this.vaultUrl, certificateName, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return getCertificateOperationFromCoreOperation(certificateName, this.vaultUrl, parsedBody);\n },\n );\n }\n\n /**\n * Performs the merging of a certificate or certificate chain with a key pair currently available in the service. This operation requires the certificates/create permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Unknown\",\n * subject: \"cn=MyCert\"\n * });\n * const poller = await client.getCertificateOperation(\"MyCertificate\");\n * const { csr } = poller.getOperationState().certificateOperation!;\n * const base64Csr = Buffer.from(csr!).toString(\"base64\");\n * const wrappedCsr = [\"-----BEGIN CERTIFICATE REQUEST-----\", base64Csr, \"-----END CERTIFICATE REQUEST-----\"].join(\"\\n\");\n *\n * const fs = require(\"fs\");\n * fs.writeFileSync(\"test.csr\", wrappedCsr);\n *\n * // Certificate available locally made using:\n * // openssl genrsa -out ca.key 2048\n * // openssl req -new -x509 -key ca.key -out ca.crt\n * // You can read more about how to create a fake certificate authority here: https://gist.github.com/Soarez/9688998\n *\n * const childProcess = require(\"child_process\");\n * childProcess.execSync(\"openssl x509 -req -in test.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out test.crt\");\n * const base64Crt = fs.readFileSync(\"test.crt\").toString().split(\"\\n\").slice(1, -1).join(\"\");\n *\n * await client.mergeCertificate(\"MyCertificate\", [Buffer.from(base64Crt)]);\n * ```\n * Merges a signed certificate request into a pending certificate\n * @param certificateName - The name of the certificate\n * @param x509Certificates - The certificate(s) to merge\n * @param options - The optional parameters\n */\n public mergeCertificate(\n certificateName: string,\n x509Certificates: Uint8Array[],\n options: MergeCertificateOptions = {},\n ): Promise<KeyVaultCertificateWithPolicy> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.mergeCertificate\",\n options,\n async (updatedOptions) => {\n await this.client.mergeCertificate(this.vaultUrl, certificateName, x509Certificates, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return getCertificateWithPolicyFromCertificateBundle(parsedBody);\n },\n );\n }\n\n /**\n * Requests that a backup of the specified certificate be downloaded to the client. All versions of the certificate will be downloaded.\n * This operation requires the certificates/backup permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n * const backup = await client.backupCertificate(\"MyCertificate\");\n * ```\n * Generates a backup of a certificate\n * @param certificateName - The name of the certificate\n * @param options - The optional parameters\n */\n public backupCertificate(\n certificateName: string,\n options: BackupCertificateOptions = {},\n ): Promise<Uint8Array | undefined> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.backupCertificate\",\n options,\n async (updatedOptions) => {\n await this.client.backupCertificate(this.vaultUrl, certificateName, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return parsedBody.value;\n },\n );\n }\n\n /**\n * Restores a backed up certificate, and all its versions, to a vault. This operation requires the certificates/restore permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * await client.beginCreateCertificate(\"MyCertificate\", {\n * issuerName: \"Self\",\n * subject: \"cn=MyCert\"\n * });\n * const backup = await client.backupCertificate(\"MyCertificate\");\n * const poller = await client.beginDeleteCertificate(\"MyCertificate\");\n * await poller.pollUntilDone();\n * // Some time is required before we're able to restore the certificate\n * await client.restoreCertificateBackup(backup!);\n * ```\n * Restores a certificate from a backup\n * @param backup - The back-up certificate to restore from\n * @param options - The optional parameters\n */\n public restoreCertificateBackup(\n backup: Uint8Array,\n options: RestoreCertificateBackupOptions = {},\n ): Promise<KeyVaultCertificateWithPolicy> {\n let parsedBody: any;\n return tracingClient.withSpan(\n \"CertificateClient.restoreCertificateBackup\",\n options,\n async (updatedOptions) => {\n await this.client.restoreCertificate(this.vaultUrl, backup, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return getCertificateWithPolicyFromCertificateBundle(parsedBody);\n },\n );\n }\n\n private async *listDeletedCertificatesPage(\n continuationState: PageSettings,\n options: ListDeletedCertificatesOptions = {},\n ): AsyncIterableIterator<DeletedCertificate[]> {\n if (continuationState.continuationToken == null) {\n const requestOptionsComplete: GetDeletedCertificatesOptionalParams = {\n maxresults: continuationState.maxPageSize,\n includePending: options.includePending,\n ...options,\n };\n const currentSetResponse = await tracingClient.withSpan(\n \"CertificateClient.listDeletedCertificatesPage\",\n requestOptionsComplete,\n (updatedOptions) => this.client.getDeletedCertificates(this.vaultUrl, updatedOptions),\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getDeletedCertificateFromItem, this);\n }\n }\n while (continuationState.continuationToken) {\n const currentSetResponse = await tracingClient.withSpan(\n \"CertificateClient.listDeletedCertificatesPage\",\n options,\n (updatedOptions) =>\n this.client.getDeletedCertificatesNext(\n this.vaultUrl,\n continuationState.continuationToken!,\n updatedOptions,\n ),\n );\n continuationState.continuationToken = currentSetResponse.nextLink;\n if (currentSetResponse.value) {\n yield currentSetResponse.value.map(getDeletedCertificateFromItem, this);\n } else {\n break;\n }\n }\n }\n\n private async *listDeletedCertificatesAll(\n options: ListDeletedCertificatesOptions = {},\n ): AsyncIterableIterator<DeletedCertificate> {\n const f = {};\n\n for await (const page of this.listDeletedCertificatesPage(f, options)) {\n for (const item of page) {\n yield item;\n }\n }\n }\n\n /**\n * Retrieves the certificates in the current vault which are in a deleted state and ready for recovery or purging. This operation includes deletion-specific\n * information. This operation requires the certificates/get/list permission. This operation can only be enabled on soft-delete enabled vaults.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * for await (const deletedCertificate of client.listDeletedCertificates()) {\n * console.log(deletedCertificate);\n * }\n * for await (const page of client.listDeletedCertificates().byPage()) {\n * for (const deletedCertificate of page) {\n * console.log(deletedCertificate);\n * }\n * }\n * ```\n * Lists deleted certificates\n * @param options - The optional parameters\n */\n public listDeletedCertificates(\n options: ListDeletedCertificatesOptions = {},\n ): PagedAsyncIterableIterator<DeletedCertificate> {\n const iter = this.listDeletedCertificatesAll(options);\n\n const result = {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings: PageSettings = {}) => this.listDeletedCertificatesPage(settings, options),\n };\n\n return result;\n }\n\n /**\n * retrieves the deleted certificate information plus its attributes, such as retention interval, scheduled permanent deletion and the\n * current deletion recovery level. This operation requires the certificates/get permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * const deletedCertificate = await client.getDeletedCertificate(\"MyDeletedCertificate\");\n * console.log(\"Deleted certificate:\", deletedCertificate);\n * ```\n * Gets a deleted certificate\n * @param certificateName - The name of the certificate\n * @param options - The optional parameters\n */\n public getDeletedCertificate(\n certificateName: string,\n options: GetDeletedCertificateOptions = {},\n ): Promise<DeletedCertificate> {\n return tracingClient.withSpan(\n \"CertificateClient.getDeletedCertificate\",\n options,\n async (updatedOptions) => {\n let parsedBody: any;\n await this.client.getDeletedCertificate(this.vaultUrl, certificateName, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return getDeletedCertificateFromDeletedCertificateBundle(parsedBody);\n },\n );\n }\n\n /**\n * Performs an irreversible deletion of the specified certificate, without possibility for recovery. The operation is not available if the\n * recovery level does not specify 'Purgeable'. This operation requires the certificate/purge permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n * const deletePoller = await client.beginDeleteCertificate(\"MyCertificate\");\n * await deletePoller.pollUntilDone();\n * // Deleting a certificate takes time, make sure to wait before purging it\n * client.purgeDeletedCertificate(\"MyCertificate\");\n * ```\n * Gets a deleted certificate\n * @param certificateName - The name of the deleted certificate to purge\n * @param options - The optional parameters\n */\n public async purgeDeletedCertificate(\n certificateName: string,\n options: PurgeDeletedCertificateOptions = {},\n ): Promise<null> {\n return tracingClient.withSpan(\n \"CertificateClient.purgeDeletedCertificate\",\n options,\n async (updatedOptions) => {\n await this.client.purgeDeletedCertificate(this.vaultUrl, certificateName, updatedOptions);\n return null;\n },\n );\n }\n\n /**\n * Recovers the deleted certificate in the specified vault. This operation can only be performed on a soft-delete enabled vault. This operation\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the certificate is fully recovered.\n *\n * This operation requires the certificates/recover permission.\n *\n * Example usage:\n * ```ts\n * const client = new CertificateClient(url, credentials);\n *\n * const deletePoller = await client.beginDeleteCertificate(\"MyCertificate\");\n * await deletePoller.pollUntilDone();\n *\n * const recoverPoller = await client.beginRecoverDeletedCertificate(\"MyCertificate\");\n *\n * // Serializing the poller\n * const serialized = deletePoller.toString();\n *\n * // A new poller can be created with:\n * // const newPoller = await client.beginRecoverDeletedCertificate(\"MyCertificate\", { resumeFrom: serialized });\n *\n * // Waiting until it's done\n * const certificate = await recoverPoller.pollUntilDone();\n * console.log(certificate);\n * ```\n * Recovers a deleted certificate\n * @param certificateName - The name of the deleted certificate\n * @param options - The optional parameters\n */\n public async beginRecoverDeletedCertificate(\n certificateName: string,\n options: BeginRecoverDeletedCertificateOptions = {},\n ): Promise<PollerLike<RecoverDeletedCertificateState, KeyVaultCertificateWithPolicy>> {\n const poller = new RecoverDeletedCertificatePoller({\n certificateName,\n client: this.client,\n vaultUrl: this.vaultUrl,\n ...options,\n operationOptions: options,\n });\n // This will initialize the poller's operation (the recovery of the deleted secret).\n await poller.poll();\n return poller;\n }\n}\n"]}
@@ -1,9 +1,10 @@
1
- import { AbortSignalLike } from "@azure/abort-controller";
2
- import { OperationOptions } from "@azure/core-client";
3
- import { KeyVaultCertificateWithPolicy, CreateCertificateOptions, CertificatePolicy } from "../../certificatesModels.js";
4
- import { CertificateOperation } from "../../generated/models/index.js";
5
- import { KeyVaultCertificatePollOperation, KeyVaultCertificatePollOperationState } from "../keyVaultCertificatePoller.js";
6
- import { KeyVaultClient } from "../../generated/keyVaultClient.js";
1
+ import type { AbortSignalLike } from "@azure/abort-controller";
2
+ import type { OperationOptions } from "@azure/core-client";
3
+ import type { KeyVaultCertificateWithPolicy, CreateCertificateOptions, CertificatePolicy } from "../../certificatesModels.js";
4
+ import type { CertificateOperation } from "../../generated/models/index.js";
5
+ import type { KeyVaultCertificatePollOperationState } from "../keyVaultCertificatePoller.js";
6
+ import { KeyVaultCertificatePollOperation } from "../keyVaultCertificatePoller.js";
7
+ import type { KeyVaultClient } from "../../generated/keyVaultClient.js";
7
8
  /**
8
9
  * The public representation of the CreateCertificatePoller operation state.
9
10
  */
@@ -1 +1 @@
1
- {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../../src/lro/create/operation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,EACxB,iBAAiB,EAIlB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EACL,gCAAgC,EAChC,qCAAqC,EACtC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AASnE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAChC,qCAAqC,CAAC,6BAA6B,CAAC,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,mCACf,SAAQ,qCAAqC,CAAC,6BAA6B,CAAC;IAC5E;;OAEG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC;;OAEG;IACH,wBAAwB,EAAE,wBAAwB,CAAC;IACnD;;OAEG;IACH,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC7C;AAED;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,gCAAgC,CAClF,mCAAmC,EACnC,6BAA6B,CAC9B;IAEU,KAAK,EAAE,mCAAmC;IACjD,OAAO,CAAC,QAAQ;IACh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,GAChC,qCAAqC,CAAC,6BAA6B,CAAC,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,mCACf,SAAQ,qCAAqC,CAAC,6BAA6B,CAAC;IAC5E;;OAEG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC;;OAEG;IACH,wBAAwB,EAAE,wBAAwB,CAAC;IACnD;;OAEG;IACH,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC7C;AAED;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,gCAAgC,CAClF,mCAAmC,EACnC,6BAA6B,CAC9B;IAEU,KAAK,EAAE,mCAAmC;IACjD,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,gBAAgB;gBAHjB,KAAK,EAAE,mCAAmC,EACzC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,cAAc,EACtB,gBAAgB,GAAE,gBAAqB;IAKjD;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAuBzB;;OAEG;IACH,OAAO,CAAC,cAAc;IAoBtB;;OAEG;IACH,OAAO,CAAC,4BAA4B;IAoBpC;;OAEG;IACH,OAAO,CAAC,0BAA0B;IAoBlC;;OAEG;IACG,MAAM,CACV,IAAI,EAAE,8BAA8B,EACpC,OAAO,GAAE;QACP,WAAW,CAAC,EAAE,eAAe,CAAC;QAC9B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,mCAAmC,KAAK,IAAI,CAAC;KAChE,GACL,OAAO,CAAC,8BAA8B,CAAC;IAsC1C;;OAEG;IACG,MAAM,CACV,IAAI,EAAE,8BAA8B,EACpC,OAAO,GAAE;QAAE,WAAW,CAAC,EAAE,WAAW,CAAA;KAAO,GAC1C,OAAO,CAAC,8BAA8B,CAAC;CAgB3C"}
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- import { KeyVaultCertificatePollOperation, } from "../keyVaultCertificatePoller.js";
3
+ import { KeyVaultCertificatePollOperation } from "../keyVaultCertificatePoller.js";
4
4
  import { getCertificateOperationFromCoreOperation, getCertificateWithPolicyFromCertificateBundle, toCoreAttributes, toCorePolicy, } from "../../transformations.js";
5
5
  import { tracingClient } from "../../tracing.js";
6
6
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"operation.js","sourceRoot":"","sources":["../../../../src/lro/create/operation.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAalC,OAAO,EACL,gCAAgC,GAEjC,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,wCAAwC,EACxC,6CAA6C,EAC7C,gBAAgB,EAChB,YAAY,GACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA2BjD;;GAEG;AACH,MAAM,OAAO,8BAA+B,SAAQ,gCAGnD;IACC,YACS,KAA0C,EACzC,QAAgB,EAChB,MAAsB,EACtB,mBAAqC,EAAE;QAE/C,KAAK,CAAC,KAAK,CAAC,CAAC;QALN,UAAK,GAAL,KAAK,CAAqC;QACzC,aAAQ,GAAR,QAAQ,CAAQ;QAChB,WAAM,GAAN,MAAM,CAAgB;QACtB,qBAAgB,GAAhB,gBAAgB,CAAuB;IAGjD,CAAC;IAED;;OAEG;IACK,iBAAiB,CACvB,eAAuB,EACvB,iBAAoC,EACpC,UAAoC,EAAE;QAEtC,OAAO,aAAa,CAAC,QAAQ,CAC3B,2CAA2C,EAC3C,OAAO,EACP,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,MAAM,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC;YACtB,MAAM,qBAAqB,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;YACxD,MAAM,UAAU,GAAG,YAAY,CAAC,EAAE,EAAE,iBAAiB,EAAE,qBAAqB,CAAC,CAAC;YAC9E,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,EAAE,e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AAM,KAAK,YAAY,EAAE,CAAC;YACrF,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC;YACzB,KAAK,CAAC,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;YACjF,IAAI,KAAK,CAAC,oBAAoB,CAAC,KAAK,EAAE,CAAC;gBACrC,KAAK,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,oBAAoB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACpE,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAEV,UAAyC,EAAE;QAE3C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,MAAM,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;QAElC,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;YACxB,IAAI,CAAC,gBAAgB,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;QAC1D,CAAC;QAED,KAAK,CAAC,oBAAoB,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAChE,eAAe,EACf,IAAI,CAAC,gBAAgB,CACtB,CAAC;QAEF,IAAI,CAAC,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC;QAC9B,OAAO,IAAI,CAAC;IACd,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { OperationOptions } from \"@azure/core-client\";\nimport {\n KeyVaultCertificateWithPolicy,\n CreateCertificateOptions,\n CertificatePolicy,\n GetCertificateOptions,\n GetPlainCertificateOperationOptions,\n CancelCertificateOperationOptions,\n} from \"../../certificatesModels.js\";\nimport { CertificateOperation } from \"../../generated/models/index.js\";\nimport {\n KeyVaultCertificatePollOperation,\n KeyVaultCertificatePollOperationState,\n} from \"../keyVaultCertificatePoller.js\";\nimport { KeyVaultClient } from \"../../generated/keyVaultClient.js\";\nimport {\n getCertificateOperationFromCoreOperation,\n getCertificateWithPolicyFromCertificateBundle,\n toCoreAttributes,\n toCorePolicy,\n} from \"../../transformations.js\";\nimport { tracingClient } from \"../../tracing.js\";\n\n/**\n * The public representation of the CreateCertificatePoller operation state.\n */\nexport type CreateCertificateState =\n KeyVaultCertificatePollOperationState<KeyVaultCertificateWithPolicy>;\n\n/**\n * An interface representing the state of a create certificate's poll operation\n */\nexport interface CreateCertificatePollOperationState\n extends KeyVaultCertificatePollOperationState<KeyVaultCertificateWithPolicy> {\n /**\n * The policy of the certificate.\n */\n certificatePolicy?: CertificatePolicy;\n /**\n * Optional parameters sent to createCertificates\n */\n createCertificateOptions: CreateCertificateOptions;\n /**\n * The operation of the certificate\n */\n certificateOperation?: CertificateOperation;\n}\n\n/**\n * An interface representing a create certificate's poll operation\n */\nexport class CreateCertificatePollOperation extends KeyVaultCertificatePollOperation<\n CreateCertificatePollOperationState,\n KeyVaultCertificateWithPolicy\n> {\n constructor(\n public state: CreateCertificatePollOperationState,\n private vaultUrl: string,\n private client: KeyVaultClient,\n private operationOptions: OperationOptions = {},\n ) {\n super(state);\n }\n\n /**\n * Creates a new certificate. If this is the first version, the certificate resource is created. This operation requires the certificates/create permission.\n */\n private createCertificate(\n certificateName: string,\n certificatePolicy: CertificatePolicy,\n options: CreateCertificateOptions = {},\n ): Promise<KeyVaultCertificateWithPolicy> {\n return tracingClient.withSpan(\n \"CreateCertificatePoller.createCertificate\",\n options,\n async (updatedOptions) => {\n const id = options.id;\n const certificateAttributes = toCoreAttributes(options);\n const corePolicy = toCorePolicy(id, certificatePolicy, certificateAttributes);\n const result = await this.client.createCertificate(this.vaultUrl, certificateName, {\n ...updatedOptions,\n certificatePolicy: corePolicy,\n certificateAttributes,\n });\n\n return getCertificateWithPolicyFromCertificateBundle(result);\n },\n );\n }\n\n /**\n * Gets the latest information available from a specific certificate, including the certificate's policy. This operation requires the certificates/get permission.\n */\n private getCertificate(\n certificateName: string,\n options: GetCertificateOptions = {},\n ): Promise<KeyVaultCertificateWithPolicy> {\n return tracingClient.withSpan(\n \"CreateCertificatePoller.getCertificate\",\n options,\n async (updatedOptions) => {\n const result = await this.client.getCertificate(\n this.vaultUrl,\n certificateName,\n \"\",\n updatedOptions,\n );\n\n return getCertificateWithPolicyFromCertificateBundle(result);\n },\n );\n }\n\n /**\n * Gets the certificate operation.\n */\n private getPlainCertificateOperation(\n certificateName: string,\n options: GetPlainCertificateOperationOptions = {},\n ): Promise<CertificateOperation> {\n return tracingClient.withSpan(\n \"CreateCertificatePoller.getPlainCertificateOperation\",\n options,\n async (updatedOptions) => {\n let parsedBody: any;\n await this.client.getCertificateOperation(this.vaultUrl, certificateName, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return getCertificateOperationFromCoreOperation(certificateName, this.vaultUrl, parsedBody);\n },\n );\n }\n\n /**\n * Cancels a certificate creation operation that is already in progress. This operation requires the certificates/update permission.\n */\n private cancelCertificateOperation(\n certificateName: string,\n options: CancelCertificateOperationOptions = {},\n ): Promise<CertificateOperation> {\n return tracingClient.withSpan(\n \"CreateCertificatePoller.cancelCertificateOperation\",\n options,\n async (updatedOptions) => {\n let parsedBody: any;\n await this.client.updateCertificateOperation(this.vaultUrl, certificateName, true, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return getCertificateOperationFromCoreOperation(certificateName, this.vaultUrl, parsedBody);\n },\n );\n }\n\n /**\n * Reaches to the service and updates the create certificate's poll operation.\n */\n async update(\n this: CreateCertificatePollOperation,\n options: {\n abortSignal?: AbortSignalLike;\n fireProgress?: (state: CreateCertificatePollOperationState) => void;\n } = {},\n ): Promise<CreateCertificatePollOperation> {\n const state = this.state;\n const { certificateName, certificatePolicy, createCertificateOptions } = state;\n\n if (options.abortSignal) {\n this.operationOptions.abortSignal = options.abortSignal;\n createCertificateOptions.abortSignal = options.abortSignal;\n }\n\n if (!state.isStarted) {\n state.isStarted = true;\n state.result = await this.createCertificate(\n certificateName,\n certificatePolicy!,\n createCertificateOptions,\n );\n this.state.certificateOperation = await this.getPlainCertificateOperation(\n certificateName,\n this.operationOptions,\n );\n } else if (!state.isCompleted) {\n this.state.certificateOperation = await this.getPlainCertificateOperation(\n certificateName,\n this.operationOptions,\n );\n }\n\n if (state.certificateOperation && state.certificateOperation.status !== \"inProgress\") {\n state.isCompleted = true;\n state.result = await this.getCertificate(certificateName, this.operationOptions);\n if (state.certificateOperation.error) {\n state.error = new Error(state.certificateOperation.error.message);\n }\n }\n\n return this;\n }\n\n /**\n * Reaches to the service and cancels the certificate's operation, also updating the certificate's poll operation\n */\n async cancel(\n this: CreateCertificatePollOperation,\n options: { abortSignal?: AbortSignal } = {},\n ): Promise<CreateCertificatePollOperation> {\n const state = this.state;\n const { certificateName } = state;\n\n if (options.abortSignal) {\n this.operationOptions.abortSignal = options.abortSignal;\n }\n\n state.certificateOperation = await this.cancelCertificateOperation(\n certificateName,\n this.operationOptions,\n );\n\n this.state.isCancelled = true;\n return this;\n }\n}\n"]}
1
+ {"version":3,"file":"operation.js","sourceRoot":"","sources":["../../../../src/lro/create/operation.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAclC,OAAO,EAAE,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AAEnF,OAAO,EACL,wCAAwC,EACxC,6CAA6C,EAC7C,gBAAgB,EAChB,YAAY,GACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA2BjD;;GAEG;AACH,MAAM,OAAO,8BAA+B,SAAQ,gCAGnD;IACC,YACS,KAA0C,EACzC,QAAgB,EAChB,MAAsB,EACtB,mBAAqC,EAAE;QAE/C,KAAK,CAAC,KAAK,CAAC,CAAC;QALN,UAAK,GAAL,KAAK,CAAqC;QACzC,aAAQ,GAAR,QAAQ,CAAQ;QAChB,WAAM,GAAN,M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AAC,0BAA0B,CAChE,eAAe,EACf,IAAI,CAAC,gBAAgB,CACtB,CAAC;QAEF,IAAI,CAAC,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC;QAC9B,OAAO,IAAI,CAAC;IACd,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { OperationOptions } from \"@azure/core-client\";\nimport type {\n KeyVaultCertificateWithPolicy,\n CreateCertificateOptions,\n CertificatePolicy,\n GetCertificateOptions,\n GetPlainCertificateOperationOptions,\n CancelCertificateOperationOptions,\n} from \"../../certificatesModels.js\";\nimport type { CertificateOperation } from \"../../generated/models/index.js\";\nimport type { KeyVaultCertificatePollOperationState } from \"../keyVaultCertificatePoller.js\";\nimport { KeyVaultCertificatePollOperation } from \"../keyVaultCertificatePoller.js\";\nimport type { KeyVaultClient } from \"../../generated/keyVaultClient.js\";\nimport {\n getCertificateOperationFromCoreOperation,\n getCertificateWithPolicyFromCertificateBundle,\n toCoreAttributes,\n toCorePolicy,\n} from \"../../transformations.js\";\nimport { tracingClient } from \"../../tracing.js\";\n\n/**\n * The public representation of the CreateCertificatePoller operation state.\n */\nexport type CreateCertificateState =\n KeyVaultCertificatePollOperationState<KeyVaultCertificateWithPolicy>;\n\n/**\n * An interface representing the state of a create certificate's poll operation\n */\nexport interface CreateCertificatePollOperationState\n extends KeyVaultCertificatePollOperationState<KeyVaultCertificateWithPolicy> {\n /**\n * The policy of the certificate.\n */\n certificatePolicy?: CertificatePolicy;\n /**\n * Optional parameters sent to createCertificates\n */\n createCertificateOptions: CreateCertificateOptions;\n /**\n * The operation of the certificate\n */\n certificateOperation?: CertificateOperation;\n}\n\n/**\n * An interface representing a create certificate's poll operation\n */\nexport class CreateCertificatePollOperation extends KeyVaultCertificatePollOperation<\n CreateCertificatePollOperationState,\n KeyVaultCertificateWithPolicy\n> {\n constructor(\n public state: CreateCertificatePollOperationState,\n private vaultUrl: string,\n private client: KeyVaultClient,\n private operationOptions: OperationOptions = {},\n ) {\n super(state);\n }\n\n /**\n * Creates a new certificate. If this is the first version, the certificate resource is created. This operation requires the certificates/create permission.\n */\n private createCertificate(\n certificateName: string,\n certificatePolicy: CertificatePolicy,\n options: CreateCertificateOptions = {},\n ): Promise<KeyVaultCertificateWithPolicy> {\n return tracingClient.withSpan(\n \"CreateCertificatePoller.createCertificate\",\n options,\n async (updatedOptions) => {\n const id = options.id;\n const certificateAttributes = toCoreAttributes(options);\n const corePolicy = toCorePolicy(id, certificatePolicy, certificateAttributes);\n const result = await this.client.createCertificate(this.vaultUrl, certificateName, {\n ...updatedOptions,\n certificatePolicy: corePolicy,\n certificateAttributes,\n });\n\n return getCertificateWithPolicyFromCertificateBundle(result);\n },\n );\n }\n\n /**\n * Gets the latest information available from a specific certificate, including the certificate's policy. This operation requires the certificates/get permission.\n */\n private getCertificate(\n certificateName: string,\n options: GetCertificateOptions = {},\n ): Promise<KeyVaultCertificateWithPolicy> {\n return tracingClient.withSpan(\n \"CreateCertificatePoller.getCertificate\",\n options,\n async (updatedOptions) => {\n const result = await this.client.getCertificate(\n this.vaultUrl,\n certificateName,\n \"\",\n updatedOptions,\n );\n\n return getCertificateWithPolicyFromCertificateBundle(result);\n },\n );\n }\n\n /**\n * Gets the certificate operation.\n */\n private getPlainCertificateOperation(\n certificateName: string,\n options: GetPlainCertificateOperationOptions = {},\n ): Promise<CertificateOperation> {\n return tracingClient.withSpan(\n \"CreateCertificatePoller.getPlainCertificateOperation\",\n options,\n async (updatedOptions) => {\n let parsedBody: any;\n await this.client.getCertificateOperation(this.vaultUrl, certificateName, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return getCertificateOperationFromCoreOperation(certificateName, this.vaultUrl, parsedBody);\n },\n );\n }\n\n /**\n * Cancels a certificate creation operation that is already in progress. This operation requires the certificates/update permission.\n */\n private cancelCertificateOperation(\n certificateName: string,\n options: CancelCertificateOperationOptions = {},\n ): Promise<CertificateOperation> {\n return tracingClient.withSpan(\n \"CreateCertificatePoller.cancelCertificateOperation\",\n options,\n async (updatedOptions) => {\n let parsedBody: any;\n await this.client.updateCertificateOperation(this.vaultUrl, certificateName, true, {\n ...updatedOptions,\n onResponse: (response) => {\n parsedBody = response.parsedBody;\n },\n });\n return getCertificateOperationFromCoreOperation(certificateName, this.vaultUrl, parsedBody);\n },\n );\n }\n\n /**\n * Reaches to the service and updates the create certificate's poll operation.\n */\n async update(\n this: CreateCertificatePollOperation,\n options: {\n abortSignal?: AbortSignalLike;\n fireProgress?: (state: CreateCertificatePollOperationState) => void;\n } = {},\n ): Promise<CreateCertificatePollOperation> {\n const state = this.state;\n const { certificateName, certificatePolicy, createCertificateOptions } = state;\n\n if (options.abortSignal) {\n this.operationOptions.abortSignal = options.abortSignal;\n createCertificateOptions.abortSignal = options.abortSignal;\n }\n\n if (!state.isStarted) {\n state.isStarted = true;\n state.result = await this.createCertificate(\n certificateName,\n certificatePolicy!,\n createCertificateOptions,\n );\n this.state.certificateOperation = await this.getPlainCertificateOperation(\n certificateName,\n this.operationOptions,\n );\n } else if (!state.isCompleted) {\n this.state.certificateOperation = await this.getPlainCertificateOperation(\n certificateName,\n this.operationOptions,\n );\n }\n\n if (state.certificateOperation && state.certificateOperation.status !== \"inProgress\") {\n state.isCompleted = true;\n state.result = await this.getCertificate(certificateName, this.operationOptions);\n if (state.certificateOperation.error) {\n state.error = new Error(state.certificateOperation.error.message);\n }\n }\n\n return this;\n }\n\n /**\n * Reaches to the service and cancels the certificate's operation, also updating the certificate's poll operation\n */\n async cancel(\n this: CreateCertificatePollOperation,\n options: { abortSignal?: AbortSignal } = {},\n ): Promise<CreateCertificatePollOperation> {\n const state = this.state;\n const { certificateName } = state;\n\n if (options.abortSignal) {\n this.operationOptions.abortSignal = options.abortSignal;\n }\n\n state.certificateOperation = await this.cancelCertificateOperation(\n certificateName,\n this.operationOptions,\n );\n\n this.state.isCancelled = true;\n return this;\n }\n}\n"]}
@@ -1,6 +1,7 @@
1
- import { CreateCertificateState } from "./operation.js";
2
- import { KeyVaultCertificateWithPolicy, CreateCertificateOptions, CertificatePolicy } from "../../certificatesModels.js";
3
- import { KeyVaultCertificatePoller, KeyVaultCertificatePollerOptions } from "../keyVaultCertificatePoller.js";
1
+ import type { CreateCertificateState } from "./operation.js";
2
+ import type { KeyVaultCertificateWithPolicy, CreateCertificateOptions, CertificatePolicy } from "../../certificatesModels.js";
3
+ import type { KeyVaultCertificatePollerOptions } from "../keyVaultCertificatePoller.js";
4
+ import { KeyVaultCertificatePoller } from "../keyVaultCertificatePoller.js";
4
5
  export interface CreateCertificatePollerOptions extends KeyVaultCertificatePollerOptions {
5
6
  certificatePolicy?: CertificatePolicy;
6
7
  createCertificateOptions: CreateCertificateOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"poller.d.ts","sourceRoot":"","sources":["../../../../src/lro/create/poller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkC,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxF,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,yBAAyB,EACzB,gCAAgC,EACjC,MAAM,iCAAiC,CAAC;AAEzC,MAAM,WAAW,8BAA+B,SAAQ,gCAAgC;IACtF,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,wBAAwB,EAAE,wBAAwB,CAAC;CACpD;AAED;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,yBAAyB,CACpE,sBAAsB,EACtB,6BAA6B,CAC9B;gBACa,OAAO,EAAE,8BAA8B;CAkCpD"}
1
+ {"version":3,"file":"poller.d.ts","sourceRoot":"","sources":["../../../../src/lro/create/poller.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAE7D,OAAO,KAAK,EACV,6BAA6B,EAC7B,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E,MAAM,WAAW,8BAA+B,SAAQ,gCAAgC;IACtF,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,wBAAwB,EAAE,wBAAwB,CAAC;CACpD;AAED;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,yBAAyB,CACpE,sBAAsB,EACtB,6BAA6B,CAC9B;gBACa,OAAO,EAAE,8BAA8B;CAkCpD"}
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
  import { CreateCertificatePollOperation } from "./operation.js";
4
- import { KeyVaultCertificatePoller, } from "../keyVaultCertificatePoller.js";
4
+ import { KeyVaultCertificatePoller } from "../keyVaultCertificatePoller.js";
5
5
  /**
6
6
  * Class that deletes a poller that waits until a certificate finishes being deleted
7
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"poller.js","sourceRoot":"","sources":["../../../../src/lro/create/poller.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,8BAA8B,EAA0B,MAAM,gBAAgB,CAAC;AAMxF,OAAO,EACL,yBAAyB,GAE1B,MAAM,iCAAiC,CAAC;AAOzC;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,yBAG5C;IACC,YAAY,OAAuC;QACjD,MAAM,EACJ,QAAQ,EACR,MAAM,EACN,eAAe,EACf,iBAAiB,EACjB,wBAAwB,EACxB,gBAAgB,EAChB,YAAY,GAAG,IAAI,EACnB,UAAU,GACX,GAAG,OAAO,CAAC;QAEZ,IAAI,KAAyC,CAAC;QAE9C,IAAI,UAAU,EAAE,CAAC;YACf,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC;QACvC,CAAC;QAED,MAAM,SAAS,GAAG,IAAI,8BAA8B,iCAE7C,KAAK,KACR,eAAe;YACf,iBAAiB;YACjB,wBAAwB,KAE1B,QAAQ,EACR,MAAM,EACN,gBAAgB,CACjB,CAAC;QAEF,KAAK,CAAC,SAAS,CAAC,CAAC;QAEjB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { CreateCertificatePollOperation, CreateCertificateState } from \"./operation.js\";\nimport {\n KeyVaultCertificateWithPolicy,\n CreateCertificateOptions,\n CertificatePolicy,\n} from \"../../certificatesModels.js\";\nimport {\n KeyVaultCertificatePoller,\n KeyVaultCertificatePollerOptions,\n} from \"../keyVaultCertificatePoller.js\";\n\nexport interface CreateCertificatePollerOptions extends KeyVaultCertificatePollerOptions {\n certificatePolicy?: CertificatePolicy;\n createCertificateOptions: CreateCertificateOptions;\n}\n\n/**\n * Class that deletes a poller that waits until a certificate finishes being deleted\n */\nexport class CreateCertificatePoller extends KeyVaultCertificatePoller<\n CreateCertificateState,\n KeyVaultCertificateWithPolicy\n> {\n constructor(options: CreateCertificatePollerOptions) {\n const {\n vaultUrl,\n client,\n certificateName,\n certificatePolicy,\n createCertificateOptions,\n operationOptions,\n intervalInMs = 2000,\n resumeFrom,\n } = options;\n\n let state: CreateCertificateState | undefined;\n\n if (resumeFrom) {\n state = JSON.parse(resumeFrom).state;\n }\n\n const operation = new CreateCertificatePollOperation(\n {\n ...state,\n certificateName,\n certificatePolicy,\n createCertificateOptions,\n },\n vaultUrl,\n client,\n operationOptions,\n );\n\n super(operation);\n\n this.intervalInMs = intervalInMs;\n }\n}\n"]}
1
+ {"version":3,"file":"poller.js","sourceRoot":"","sources":["../../../../src/lro/create/poller.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAOhE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAO5E;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,yBAG5C;IACC,YAAY,OAAuC;QACjD,MAAM,EACJ,QAAQ,EACR,MAAM,EACN,eAAe,EACf,iBAAiB,EACjB,wBAAwB,EACxB,gBAAgB,EAChB,YAAY,GAAG,IAAI,EACnB,UAAU,GACX,GAAG,OAAO,CAAC;QAEZ,IAAI,KAAyC,CAAC;QAE9C,IAAI,UAAU,EAAE,CAAC;YACf,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC;QACvC,CAAC;QAED,MAAM,SAAS,GAAG,IAAI,8BAA8B,iCAE7C,KAAK,KACR,eAAe;YACf,iBAAiB;YACjB,wBAAwB,KAE1B,QAAQ,EACR,MAAM,EACN,gBAAgB,CACjB,CAAC;QAEF,KAAK,CAAC,SAAS,CAAC,CAAC;QAEjB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { CreateCertificateState } from \"./operation.js\";\nimport { CreateCertificatePollOperation } from \"./operation.js\";\nimport type {\n KeyVaultCertificateWithPolicy,\n CreateCertificateOptions,\n CertificatePolicy,\n} from \"../../certificatesModels.js\";\nimport type { KeyVaultCertificatePollerOptions } from \"../keyVaultCertificatePoller.js\";\nimport { KeyVaultCertificatePoller } from \"../keyVaultCertificatePoller.js\";\n\nexport interface CreateCertificatePollerOptions extends KeyVaultCertificatePollerOptions {\n certificatePolicy?: CertificatePolicy;\n createCertificateOptions: CreateCertificateOptions;\n}\n\n/**\n * Class that deletes a poller that waits until a certificate finishes being deleted\n */\nexport class CreateCertificatePoller extends KeyVaultCertificatePoller<\n CreateCertificateState,\n KeyVaultCertificateWithPolicy\n> {\n constructor(options: CreateCertificatePollerOptions) {\n const {\n vaultUrl,\n client,\n certificateName,\n certificatePolicy,\n createCertificateOptions,\n operationOptions,\n intervalInMs = 2000,\n resumeFrom,\n } = options;\n\n let state: CreateCertificateState | undefined;\n\n if (resumeFrom) {\n state = JSON.parse(resumeFrom).state;\n }\n\n const operation = new CreateCertificatePollOperation(\n {\n ...state,\n certificateName,\n certificatePolicy,\n createCertificateOptions,\n },\n vaultUrl,\n client,\n operationOptions,\n );\n\n super(operation);\n\n this.intervalInMs = intervalInMs;\n }\n}\n"]}
@@ -1,8 +1,9 @@
1
- import { AbortSignalLike } from "@azure/abort-controller";
2
- import { OperationOptions } from "@azure/core-client";
3
- import { DeletedCertificate, GetDeletedCertificateOptions } from "../../certificatesModels.js";
4
- import { KeyVaultCertificatePollOperation, KeyVaultCertificatePollOperationState } from "../keyVaultCertificatePoller.js";
5
- import { KeyVaultClient } from "../../generated/keyVaultClient.js";
1
+ import type { AbortSignalLike } from "@azure/abort-controller";
2
+ import type { OperationOptions } from "@azure/core-client";
3
+ import type { DeletedCertificate, GetDeletedCertificateOptions } from "../../certificatesModels.js";
4
+ import type { KeyVaultCertificatePollOperationState } from "../keyVaultCertificatePoller.js";
5
+ import { KeyVaultCertificatePollOperation } from "../keyVaultCertificatePoller.js";
6
+ import type { KeyVaultClient } from "../../generated/keyVaultClient.js";
6
7
  /**
7
8
  * The public representation of the DeleteCertificatePoller operation state.
8
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../../src/lro/delete/operation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAEL,kBAAkB,EAClB,4BAA4B,EAC7B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,gCAAgC,EAChC,qCAAqC,EACtC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAInE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,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;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,qCAAqC,CAAC,kBAAkB,CAAC,CAAC;AAE/F;;GAEG;AACH,MAAM,WAAW,mCACf,SAAQ,qCAAqC,CAAC,kBAAkB,CAAC;CAAG;AAEtE;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,gCAAgC,CAClF,mCAAmC,EACnC,kBAAkB,CACnB;IAEU,KAAK,EAAE,mCAAmC;IACjD,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,gBAAgB;gBAHjB,KAAK,EAAE,mCAAmC,EACzC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,cAAc,EACtB,gBAAgB,GAAE,gBAAqB;IAKjD;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAkBzB;;;OAGG;IACU,qBAAqB,CAChC,eAAe,EAAE,MAAM,EACvB,OAAO,GAAE,4BAAiC,GACzC,OAAO,CAAC,kBAAkB,CAAC;IAiB9B;;OAEG;IACG,MAAM,CACV,IAAI,EAAE,8BAA8B,EACpC,OAAO,GAAE;QACP,WAAW,CAAC,EAAE,eAAe,CAAC;QAC9B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,mCAAmC,KAAK,IAAI,CAAC;KAChE,GACL,OAAO,CAAC,8BAA8B,CAAC;CAsC3C"}
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
- import { KeyVaultCertificatePollOperation, } from "../keyVaultCertificatePoller.js";
3
+ import { KeyVaultCertificatePollOperation } from "../keyVaultCertificatePoller.js";
4
4
  import { getDeletedCertificateFromDeletedCertificateBundle } from "../../transformations.js";
5
5
  import { tracingClient } from "../../tracing.js";
6
6
  /**