@nutanix-scratch/dataprotection-js-client 4.1.1 → 4.3.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 (662) hide show
  1. package/README.md +24 -16
  2. package/dist/Ntnx-Dataprotection-js-client-prod.js +1 -1
  3. package/dist/Ntnx-Dataprotection-js-client.js +1213 -547
  4. package/dist/es/ApiClient.d.ts +29 -7
  5. package/dist/es/ApiClient.js +854 -667
  6. package/dist/es/Paginable.d.ts +1 -1
  7. package/dist/es/Paginable.js +144 -183
  8. package/dist/es/apis/dataprotectionclustercapabilities-endpoints.d.ts +46 -0
  9. package/dist/es/apis/dataprotectionclustercapabilities-endpoints.js +107 -0
  10. package/dist/es/apis/protectedresources-endpoints.d.ts +1 -1
  11. package/dist/es/apis/protectedresources-endpoints.js +128 -146
  12. package/dist/es/apis/recoveryplanactions-endpoints.d.ts +76 -0
  13. package/dist/es/apis/recoveryplanactions-endpoints.js +282 -0
  14. package/dist/es/apis/recoveryplanjobs-endpoints.d.ts +108 -0
  15. package/dist/es/apis/recoveryplanjobs-endpoints.js +291 -0
  16. package/dist/es/apis/recoverypoints-endpoints.d.ts +3 -3
  17. package/dist/es/apis/recoverypoints-endpoints.js +530 -552
  18. package/dist/es/index.d.ts +121 -1
  19. package/dist/es/index.js +801 -321
  20. package/dist/es/models/common/v1/config/EntityReference.d.ts +79 -0
  21. package/dist/es/models/common/v1/config/EntityReference.js +355 -0
  22. package/dist/es/models/common/v1/config/EntityType.d.ts +19 -0
  23. package/dist/es/models/common/v1/config/EntityType.js +239 -0
  24. package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
  25. package/dist/es/models/common/v1/config/Flag.js +170 -211
  26. package/dist/es/models/common/v1/config/IPAddress.d.ts +2 -20
  27. package/dist/es/models/common/v1/config/IPAddress.js +170 -217
  28. package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
  29. package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
  30. package/dist/es/models/common/v1/config/IPv6Address.d.ts +2 -8
  31. package/dist/es/models/common/v1/config/IPv6Address.js +174 -215
  32. package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
  33. package/dist/es/models/common/v1/config/KVPair.js +225 -270
  34. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  35. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
  36. package/dist/es/models/common/v1/config/Message.d.ts +2 -10
  37. package/dist/es/models/common/v1/config/Message.js +213 -258
  38. package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
  39. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  40. package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
  41. package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
  42. package/dist/es/models/common/v1/response/ApiLink.js +165 -206
  43. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  44. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
  45. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  46. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  47. package/dist/es/models/dataprotection/v4/common/BackupType.js +7 -9
  48. package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +12 -21
  49. package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.js +280 -301
  50. package/dist/es/models/dataprotection/v4/common/BaseVmRecoveryPoint.d.ts +1 -32
  51. package/dist/es/models/dataprotection/v4/common/BaseVmRecoveryPoint.js +294 -335
  52. package/dist/es/models/dataprotection/v4/common/ClusterInfo.d.ts +5 -29
  53. package/dist/es/models/dataprotection/v4/common/ClusterInfo.js +166 -207
  54. package/dist/es/models/dataprotection/v4/common/DiskRecoveryPoint.d.ts +2 -8
  55. package/dist/es/models/dataprotection/v4/common/DiskRecoveryPoint.js +163 -206
  56. package/dist/es/models/dataprotection/v4/common/RecoveryPointStatus.js +7 -9
  57. package/dist/es/models/dataprotection/v4/common/RecoveryPointType.js +7 -9
  58. package/dist/es/models/dataprotection/v4/common/VssProperties.d.ts +2 -10
  59. package/dist/es/models/dataprotection/v4/common/VssProperties.js +222 -267
  60. package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +1 -1
  61. package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.js +75 -106
  62. package/dist/es/models/dataprotection/v4/config/AmazonS3Bucket.d.ts +2 -8
  63. package/dist/es/models/dataprotection/v4/config/AmazonS3Bucket.js +171 -212
  64. package/dist/es/models/dataprotection/v4/config/AzureBlobStorageContainer.d.ts +2 -8
  65. package/dist/es/models/dataprotection/v4/config/AzureBlobStorageContainer.js +171 -212
  66. package/dist/es/models/dataprotection/v4/config/Capability.d.ts +71 -0
  67. package/dist/es/models/dataprotection/v4/config/Capability.js +279 -0
  68. package/dist/es/models/dataprotection/v4/config/ClusterInfoApiResponse.d.ts +2 -43
  69. package/dist/es/models/dataprotection/v4/config/ClusterInfoApiResponse.js +187 -242
  70. package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.d.ts +1 -26
  71. package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.js +244 -301
  72. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +2 -8
  73. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.js +166 -207
  74. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +7 -9
  75. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +2 -8
  76. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +171 -212
  77. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +1 -1
  78. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.js +74 -103
  79. package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +2 -43
  80. package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +187 -242
  81. package/dist/es/models/dataprotection/v4/config/CreationTimeRange.d.ts +58 -0
  82. package/dist/es/models/dataprotection/v4/config/CreationTimeRange.js +272 -0
  83. package/dist/es/models/dataprotection/v4/config/DataProtectionCapabilityName.d.ts +19 -0
  84. package/dist/es/models/dataprotection/v4/config/DataProtectionCapabilityName.js +77 -0
  85. package/dist/es/models/dataprotection/v4/config/DataProtectionClusterCapability.d.ts +34 -0
  86. package/dist/es/models/dataprotection/v4/config/DataProtectionClusterCapability.js +277 -0
  87. package/dist/es/models/dataprotection/v4/config/DataProtectionClusterCapabilityProjection.d.ts +10 -0
  88. package/dist/es/models/dataprotection/v4/config/DataProtectionClusterCapabilityProjection.js +124 -0
  89. package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +2 -8
  90. package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.js +171 -212
  91. package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPlanJobApiResponse.d.ts +58 -0
  92. package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPlanJobApiResponse.js +288 -0
  93. package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +2 -43
  94. package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +187 -242
  95. package/dist/es/models/dataprotection/v4/config/DisasterRecoveryLocation.d.ts +72 -0
  96. package/dist/es/models/dataprotection/v4/config/DisasterRecoveryLocation.js +292 -0
  97. package/dist/es/models/dataprotection/v4/config/EntityRecoveryResult.d.ts +79 -0
  98. package/dist/es/models/dataprotection/v4/config/EntityRecoveryResult.js +352 -0
  99. package/dist/es/models/dataprotection/v4/config/EntityReference.d.ts +57 -0
  100. package/dist/es/models/dataprotection/v4/config/EntityReference.js +243 -0
  101. package/dist/es/models/dataprotection/v4/config/ErrorGroup.d.ts +19 -0
  102. package/dist/es/models/dataprotection/v4/config/ErrorGroup.js +113 -0
  103. package/dist/es/models/dataprotection/v4/config/ErrorMessage.d.ts +53 -0
  104. package/dist/es/models/dataprotection/v4/config/ErrorMessage.js +335 -0
  105. package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +2 -7
  106. package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +143 -182
  107. package/dist/es/models/dataprotection/v4/config/ExecutionStepEntityReference.d.ts +68 -0
  108. package/dist/es/models/dataprotection/v4/config/ExecutionStepEntityReference.js +311 -0
  109. package/dist/es/models/dataprotection/v4/config/ExecutionStepEntityType.d.ts +19 -0
  110. package/dist/es/models/dataprotection/v4/config/ExecutionStepEntityType.js +143 -0
  111. package/dist/es/models/dataprotection/v4/config/ExecutionStepResult.d.ts +58 -0
  112. package/dist/es/models/dataprotection/v4/config/ExecutionStepResult.js +253 -0
  113. package/dist/es/models/dataprotection/v4/config/ExpirationTimeSpec.d.ts +7 -12
  114. package/dist/es/models/dataprotection/v4/config/ExpirationTimeSpec.js +143 -182
  115. package/dist/es/models/dataprotection/v4/config/FailoverDirection.d.ts +90 -0
  116. package/dist/es/models/dataprotection/v4/config/FailoverDirection.js +354 -0
  117. package/dist/es/models/dataprotection/v4/config/ForceDeleteAllRecoveryPointsSpec.d.ts +55 -0
  118. package/dist/es/models/dataprotection/v4/config/ForceDeleteAllRecoveryPointsSpec.js +274 -0
  119. package/dist/es/models/dataprotection/v4/config/GetProtectedResourceApiResponse.d.ts +3 -44
  120. package/dist/es/models/dataprotection/v4/config/GetProtectedResourceApiResponse.js +187 -242
  121. package/dist/es/models/dataprotection/v4/config/GetRecoveryPlanJobApiResponse.d.ts +58 -0
  122. package/dist/es/models/dataprotection/v4/config/GetRecoveryPlanJobApiResponse.js +288 -0
  123. package/dist/es/models/dataprotection/v4/config/GetRecoveryPointApiResponse.d.ts +2 -43
  124. package/dist/es/models/dataprotection/v4/config/GetRecoveryPointApiResponse.js +187 -242
  125. package/dist/es/models/dataprotection/v4/config/GetVmRecoveryPointApiResponse.d.ts +2 -45
  126. package/dist/es/models/dataprotection/v4/config/GetVmRecoveryPointApiResponse.js +187 -242
  127. package/dist/es/models/dataprotection/v4/config/HostReference.d.ts +1 -17
  128. package/dist/es/models/dataprotection/v4/config/HostReference.js +153 -197
  129. package/dist/es/models/dataprotection/v4/config/HostType.js +7 -9
  130. package/dist/es/models/dataprotection/v4/config/HypervisorType.js +7 -9
  131. package/dist/es/models/dataprotection/v4/config/ListDPClusterCapabilitiesApiResponse.d.ts +59 -0
  132. package/dist/es/models/dataprotection/v4/config/ListDPClusterCapabilitiesApiResponse.js +315 -0
  133. package/dist/es/models/dataprotection/v4/config/ListRecoveryPlanJobExecutionStepsApiResponse.d.ts +59 -0
  134. package/dist/es/models/dataprotection/v4/config/ListRecoveryPlanJobExecutionStepsApiResponse.js +315 -0
  135. package/dist/es/models/dataprotection/v4/config/ListRecoveryPlanJobValidationErrorsApiResponse.d.ts +59 -0
  136. package/dist/es/models/dataprotection/v4/config/ListRecoveryPlanJobValidationErrorsApiResponse.js +315 -0
  137. package/dist/es/models/dataprotection/v4/config/ListRecoveryPlanJobsApiResponse.d.ts +59 -0
  138. package/dist/es/models/dataprotection/v4/config/ListRecoveryPlanJobsApiResponse.js +315 -0
  139. package/dist/es/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.d.ts +2 -43
  140. package/dist/es/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.js +213 -268
  141. package/dist/es/models/dataprotection/v4/config/LocationReference.d.ts +2 -7
  142. package/dist/es/models/dataprotection/v4/config/LocationReference.js +142 -181
  143. package/dist/es/models/dataprotection/v4/config/NutanixObjectsBucket.d.ts +2 -7
  144. package/dist/es/models/dataprotection/v4/config/NutanixObjectsBucket.js +140 -179
  145. package/dist/es/models/dataprotection/v4/config/ObjectStorageType.js +7 -9
  146. package/dist/es/models/dataprotection/v4/config/OperationType.d.ts +19 -0
  147. package/dist/es/models/dataprotection/v4/config/OperationType.js +251 -0
  148. package/dist/es/models/dataprotection/v4/config/PhaseSummary.d.ts +33 -0
  149. package/dist/es/models/dataprotection/v4/config/PhaseSummary.js +274 -0
  150. package/dist/es/models/dataprotection/v4/config/ProtectedEntityType.js +7 -9
  151. package/dist/es/models/dataprotection/v4/config/ProtectedResource.d.ts +4 -72
  152. package/dist/es/models/dataprotection/v4/config/ProtectedResource.js +307 -369
  153. package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +2 -43
  154. package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +187 -242
  155. package/dist/es/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +8 -10
  156. package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +2 -43
  157. package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +187 -242
  158. package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +5 -11
  159. package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +169 -210
  160. package/dist/es/models/dataprotection/v4/config/RecoveryInfo.d.ts +2 -13
  161. package/dist/es/models/dataprotection/v4/config/RecoveryInfo.js +149 -192
  162. package/dist/es/models/dataprotection/v4/config/RecoveryPlanActionType.d.ts +19 -0
  163. package/dist/es/models/dataprotection/v4/config/RecoveryPlanActionType.js +95 -0
  164. package/dist/es/models/dataprotection/v4/config/RecoveryPlanJob.d.ts +177 -0
  165. package/dist/es/models/dataprotection/v4/config/RecoveryPlanJob.js +771 -0
  166. package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobExecutionStatus.d.ts +19 -0
  167. package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobExecutionStatus.js +107 -0
  168. package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobExecutionStep.d.ts +132 -0
  169. package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobExecutionStep.js +624 -0
  170. package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobExecutionStepProjection.d.ts +10 -0
  171. package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobExecutionStepProjection.js +129 -0
  172. package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobPhaseType.d.ts +19 -0
  173. package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobPhaseType.js +89 -0
  174. package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobProjection.d.ts +10 -0
  175. package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobProjection.js +128 -0
  176. package/dist/es/models/dataprotection/v4/config/RecoveryPlanValidationError.d.ts +32 -0
  177. package/dist/es/models/dataprotection/v4/config/RecoveryPlanValidationError.js +322 -0
  178. package/dist/es/models/dataprotection/v4/config/RecoveryPlanValidationErrorProjection.d.ts +10 -0
  179. package/dist/es/models/dataprotection/v4/config/RecoveryPlanValidationErrorProjection.js +126 -0
  180. package/dist/es/models/dataprotection/v4/config/RecoveryPoint.d.ts +23 -101
  181. package/dist/es/models/dataprotection/v4/config/RecoveryPoint.js +337 -348
  182. package/dist/es/models/dataprotection/v4/config/RecoveryPointProjection.d.ts +1 -1
  183. package/dist/es/models/dataprotection/v4/config/RecoveryPointProjection.js +75 -103
  184. package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +2 -43
  185. package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +187 -242
  186. package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +5 -11
  187. package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +172 -213
  188. package/dist/es/models/dataprotection/v4/config/RecoveryPointRepository.d.ts +1 -18
  189. package/dist/es/models/dataprotection/v4/config/RecoveryPointRepository.js +196 -246
  190. package/dist/es/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.d.ts +1 -1
  191. package/dist/es/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.js +73 -102
  192. package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +19 -33
  193. package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +259 -273
  194. package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +2 -43
  195. package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +187 -242
  196. package/dist/es/models/dataprotection/v4/config/RecycleBinEntry.d.ts +77 -0
  197. package/dist/es/models/dataprotection/v4/config/RecycleBinEntry.js +405 -0
  198. package/dist/es/models/dataprotection/v4/config/RecycleBinVm.d.ts +44 -0
  199. package/dist/es/models/dataprotection/v4/config/RecycleBinVm.js +352 -0
  200. package/dist/es/models/dataprotection/v4/config/RecycleBinVmProjection.d.ts +10 -0
  201. package/dist/es/models/dataprotection/v4/config/RecycleBinVmProjection.js +124 -0
  202. package/dist/es/models/dataprotection/v4/config/RecycleBinVolumeGroup.d.ts +44 -0
  203. package/dist/es/models/dataprotection/v4/config/RecycleBinVolumeGroup.js +352 -0
  204. package/dist/es/models/dataprotection/v4/config/RecycleBinVolumeGroupProjection.d.ts +10 -0
  205. package/dist/es/models/dataprotection/v4/config/RecycleBinVolumeGroupProjection.js +124 -0
  206. package/dist/es/models/dataprotection/v4/config/ReplicationState.d.ts +2 -16
  207. package/dist/es/models/dataprotection/v4/config/ReplicationState.js +221 -266
  208. package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.d.ts +2 -8
  209. package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.js +166 -207
  210. package/dist/es/models/dataprotection/v4/config/RootCauseAnalysis.d.ts +69 -0
  211. package/dist/es/models/dataprotection/v4/config/RootCauseAnalysis.js +329 -0
  212. package/dist/es/models/dataprotection/v4/config/Severity.d.ts +19 -0
  213. package/dist/es/models/dataprotection/v4/config/Severity.js +83 -0
  214. package/dist/es/models/dataprotection/v4/config/SiteProtectionInfo.d.ts +2 -26
  215. package/dist/es/models/dataprotection/v4/config/SiteProtectionInfo.js +185 -228
  216. package/dist/es/models/dataprotection/v4/config/SiteReference.d.ts +2 -8
  217. package/dist/es/models/dataprotection/v4/config/SiteReference.js +171 -212
  218. package/dist/es/models/dataprotection/v4/config/StageSummary.d.ts +22 -0
  219. package/dist/es/models/dataprotection/v4/config/StageSummary.js +230 -0
  220. package/dist/es/models/dataprotection/v4/config/Summary.d.ts +59 -0
  221. package/dist/es/models/dataprotection/v4/config/Summary.js +277 -0
  222. package/dist/es/models/dataprotection/v4/config/SynchronousReplicationRole.js +8 -10
  223. package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +2 -43
  224. package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +187 -242
  225. package/dist/es/models/dataprotection/v4/config/VmRecoveryPoint.d.ts +1 -33
  226. package/dist/es/models/dataprotection/v4/config/VmRecoveryPoint.js +183 -206
  227. package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +8 -15
  228. package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +211 -258
  229. package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +2 -7
  230. package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +143 -182
  231. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +18 -32
  232. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +283 -306
  233. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +2 -13
  234. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +166 -207
  235. package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +1 -29
  236. package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.js +148 -192
  237. package/dist/es/models/dataprotection/v4/config/Witness.d.ts +1 -34
  238. package/dist/es/models/dataprotection/v4/config/Witness.js +226 -278
  239. package/dist/es/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +7 -9
  240. package/dist/es/models/dataprotection/v4/content/BaseRecoveryPointSpec.d.ts +2 -8
  241. package/dist/es/models/dataprotection/v4/content/BaseRecoveryPointSpec.js +171 -212
  242. package/dist/es/models/dataprotection/v4/content/ChangedRegion.d.ts +2 -9
  243. package/dist/es/models/dataprotection/v4/content/ChangedRegion.js +189 -232
  244. package/dist/es/models/dataprotection/v4/content/ChangedVmRegionsApiResponse.d.ts +2 -43
  245. package/dist/es/models/dataprotection/v4/content/ChangedVmRegionsApiResponse.js +209 -264
  246. package/dist/es/models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse.d.ts +2 -43
  247. package/dist/es/models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse.js +209 -264
  248. package/dist/es/models/dataprotection/v4/content/ClusterDiscoverOperation.js +9 -11
  249. package/dist/es/models/dataprotection/v4/content/ClusterDiscoverSpec.d.ts +2 -8
  250. package/dist/es/models/dataprotection/v4/content/ClusterDiscoverSpec.js +179 -224
  251. package/dist/es/models/dataprotection/v4/content/ComputeChangedRegionsClusterDiscoverSpec.d.ts +3 -9
  252. package/dist/es/models/dataprotection/v4/content/ComputeChangedRegionsClusterDiscoverSpec.js +197 -246
  253. package/dist/es/models/dataprotection/v4/content/DiskRecoveryPointReference.d.ts +2 -8
  254. package/dist/es/models/dataprotection/v4/content/DiskRecoveryPointReference.js +172 -213
  255. package/dist/es/models/dataprotection/v4/content/FileWrapper.d.ts +36 -0
  256. package/dist/es/models/dataprotection/v4/content/FileWrapper.js +200 -0
  257. package/dist/es/models/dataprotection/v4/content/GetVssMetadataApiResponse.d.ts +8 -48
  258. package/dist/es/models/dataprotection/v4/content/GetVssMetadataApiResponse.js +188 -242
  259. package/dist/es/models/dataprotection/v4/content/GetVssMetadataClusterDiscoverSpec.d.ts +3 -8
  260. package/dist/es/models/dataprotection/v4/content/GetVssMetadataClusterDiscoverSpec.js +143 -182
  261. package/dist/es/models/dataprotection/v4/content/RegionType.js +7 -9
  262. package/dist/es/models/dataprotection/v4/content/VmDiskRecoveryPointClusterDiscoverSpec.d.ts +1 -9
  263. package/dist/es/models/dataprotection/v4/content/VmDiskRecoveryPointClusterDiscoverSpec.js +130 -169
  264. package/dist/es/models/dataprotection/v4/content/VmDiskRecoveryPointReference.d.ts +1 -9
  265. package/dist/es/models/dataprotection/v4/content/VmDiskRecoveryPointReference.js +130 -169
  266. package/dist/es/models/dataprotection/v4/content/VmRecoveryPointChangedRegionsComputeSpec.d.ts +4 -15
  267. package/dist/es/models/dataprotection/v4/content/VmRecoveryPointChangedRegionsComputeSpec.js +190 -231
  268. package/dist/es/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointClusterDiscoverSpec.d.ts +1 -9
  269. package/dist/es/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointClusterDiscoverSpec.js +130 -169
  270. package/dist/es/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointReference.d.ts +1 -9
  271. package/dist/es/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointReference.js +131 -170
  272. package/dist/es/models/dataprotection/v4/content/VolumeGroupRecoveryPointChangedRegionsComputeSpec.d.ts +4 -15
  273. package/dist/es/models/dataprotection/v4/content/VolumeGroupRecoveryPointChangedRegionsComputeSpec.js +190 -231
  274. package/dist/es/models/dataprotection/v4/error/AppMessage.d.ts +2 -12
  275. package/dist/es/models/dataprotection/v4/error/AppMessage.js +264 -313
  276. package/dist/es/models/dataprotection/v4/error/ErrorResponse.d.ts +2 -7
  277. package/dist/es/models/dataprotection/v4/error/ErrorResponse.js +190 -222
  278. package/dist/es/models/dataprotection/v4/error/SchemaValidationError.d.ts +2 -18
  279. package/dist/es/models/dataprotection/v4/error/SchemaValidationError.js +249 -300
  280. package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  281. package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +191 -234
  282. package/dist/es/models/dataprotection/v4/operations/BaseRecoveryPlanActionSpec.d.ts +73 -0
  283. package/dist/es/models/dataprotection/v4/operations/BaseRecoveryPlanActionSpec.js +297 -0
  284. package/dist/es/models/dataprotection/v4/operations/CleanupRecoveryPlanResourcesApiResponse.d.ts +58 -0
  285. package/dist/es/models/dataprotection/v4/operations/CleanupRecoveryPlanResourcesApiResponse.js +288 -0
  286. package/dist/es/models/dataprotection/v4/operations/PlannedFailoverRecoveryPlanApiResponse.d.ts +58 -0
  287. package/dist/es/models/dataprotection/v4/operations/PlannedFailoverRecoveryPlanApiResponse.js +288 -0
  288. package/dist/es/models/dataprotection/v4/operations/PlannedFailoverSpec.d.ts +37 -0
  289. package/dist/es/models/dataprotection/v4/operations/PlannedFailoverSpec.js +274 -0
  290. package/dist/es/models/dataprotection/v4/operations/TestFailoverRecoveryPlanApiResponse.d.ts +58 -0
  291. package/dist/es/models/dataprotection/v4/operations/TestFailoverRecoveryPlanApiResponse.js +288 -0
  292. package/dist/es/models/dataprotection/v4/operations/TestFailoverSpec.d.ts +37 -0
  293. package/dist/es/models/dataprotection/v4/operations/TestFailoverSpec.js +274 -0
  294. package/dist/es/models/dataprotection/v4/operations/UnplannedFailoverRecoveryPlanApiResponse.d.ts +58 -0
  295. package/dist/es/models/dataprotection/v4/operations/UnplannedFailoverRecoveryPlanApiResponse.js +288 -0
  296. package/dist/es/models/dataprotection/v4/operations/UnplannedFailoverSpec.d.ts +48 -0
  297. package/dist/es/models/dataprotection/v4/operations/UnplannedFailoverSpec.js +311 -0
  298. package/dist/es/models/dataprotection/v4/operations/ValidateRecoveryPlanApiResponse.d.ts +58 -0
  299. package/dist/es/models/dataprotection/v4/operations/ValidateRecoveryPlanApiResponse.js +288 -0
  300. package/dist/es/models/dataprotection/v4/operations/ValidateSpec.d.ts +24 -0
  301. package/dist/es/models/dataprotection/v4/operations/ValidateSpec.js +129 -0
  302. package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
  303. package/dist/es/models/prism/v4/config/TaskReference.js +150 -183
  304. package/dist/es/models/validation/ValidationError.js +26 -42
  305. package/dist/es/models/validation/ValidationScopes.js +3 -3
  306. package/dist/es/models/vmm/v4/ahv/config/CategoryReference.d.ts +2 -7
  307. package/dist/es/models/vmm/v4/ahv/config/CategoryReference.js +142 -181
  308. package/dist/es/models/vmm/v4/ahv/config/GuestStaticIpSpec.d.ts +57 -0
  309. package/dist/es/models/vmm/v4/ahv/config/GuestStaticIpSpec.js +277 -0
  310. package/dist/es/models/vmm/v4/ahv/config/OwnerReference.d.ts +2 -7
  311. package/dist/es/models/vmm/v4/ahv/config/OwnerReference.js +142 -181
  312. package/dist/es/models/vmm/v4/ahv/config/OwnershipInfo.d.ts +2 -12
  313. package/dist/es/models/vmm/v4/ahv/config/OwnershipInfo.js +138 -177
  314. package/dist/es/models/vmm/v4/ahv/config/SubnetReference.d.ts +2 -7
  315. package/dist/es/models/vmm/v4/ahv/config/SubnetReference.js +142 -181
  316. package/dist/es/models/vmm/v4/ahv/config/VmConfigOverrideSpecification.d.ts +12 -39
  317. package/dist/es/models/vmm/v4/ahv/config/VmConfigOverrideSpecification.js +283 -300
  318. package/dist/es/models/vmm/v4/ahv/config/VmRestoreGuestNicInfoOverrideSpec.d.ts +48 -0
  319. package/dist/es/models/vmm/v4/ahv/config/VmRestoreGuestNicInfoOverrideSpec.js +245 -0
  320. package/dist/es/models/vmm/v4/ahv/config/VmRestoreGuestToolsSpecification.d.ts +47 -0
  321. package/dist/es/models/vmm/v4/ahv/config/VmRestoreGuestToolsSpecification.js +236 -0
  322. package/dist/es/models/vmm/v4/ahv/config/VmRestoreIpv4ConfigOverrideSpec.d.ts +2 -20
  323. package/dist/es/models/vmm/v4/ahv/config/VmRestoreIpv4ConfigOverrideSpec.js +173 -218
  324. package/dist/es/models/vmm/v4/ahv/config/VmRestoreNicConfigOverrideParams.d.ts +12 -9
  325. package/dist/es/models/vmm/v4/ahv/config/VmRestoreNicConfigOverrideParams.js +252 -269
  326. package/dist/es/models/vmm/v4/ahv/config/VmRestoreNicConfigSpecification.d.ts +2 -15
  327. package/dist/es/models/vmm/v4/ahv/config/VmRestoreNicConfigSpecification.js +183 -228
  328. package/dist/es/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicNetworkInfoOverrideSpec.d.ts +2 -31
  329. package/dist/es/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicNetworkInfoOverrideSpec.js +162 -203
  330. package/dist/es/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicOverrideSpec.d.ts +2 -7
  331. package/dist/es/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicOverrideSpec.js +142 -181
  332. package/dist/es/utils/ValidationUtils.js +39 -69
  333. package/dist/lib/ApiClient.d.ts +29 -7
  334. package/dist/lib/ApiClient.js +854 -667
  335. package/dist/lib/Paginable.d.ts +1 -1
  336. package/dist/lib/Paginable.js +144 -183
  337. package/dist/lib/apis/dataprotectionclustercapabilities-endpoints.d.ts +46 -0
  338. package/dist/lib/apis/dataprotectionclustercapabilities-endpoints.js +107 -0
  339. package/dist/lib/apis/protectedresources-endpoints.d.ts +1 -1
  340. package/dist/lib/apis/protectedresources-endpoints.js +128 -146
  341. package/dist/lib/apis/recoveryplanactions-endpoints.d.ts +76 -0
  342. package/dist/lib/apis/recoveryplanactions-endpoints.js +282 -0
  343. package/dist/lib/apis/recoveryplanjobs-endpoints.d.ts +108 -0
  344. package/dist/lib/apis/recoveryplanjobs-endpoints.js +291 -0
  345. package/dist/lib/apis/recoverypoints-endpoints.d.ts +3 -3
  346. package/dist/lib/apis/recoverypoints-endpoints.js +530 -552
  347. package/dist/lib/index.d.ts +121 -1
  348. package/dist/lib/index.js +801 -321
  349. package/dist/lib/models/common/v1/config/EntityReference.d.ts +79 -0
  350. package/dist/lib/models/common/v1/config/EntityReference.js +355 -0
  351. package/dist/lib/models/common/v1/config/EntityType.d.ts +19 -0
  352. package/dist/lib/models/common/v1/config/EntityType.js +239 -0
  353. package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
  354. package/dist/lib/models/common/v1/config/Flag.js +170 -211
  355. package/dist/lib/models/common/v1/config/IPAddress.d.ts +2 -20
  356. package/dist/lib/models/common/v1/config/IPAddress.js +170 -217
  357. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
  358. package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
  359. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +2 -8
  360. package/dist/lib/models/common/v1/config/IPv6Address.js +174 -215
  361. package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
  362. package/dist/lib/models/common/v1/config/KVPair.js +225 -270
  363. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  364. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
  365. package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
  366. package/dist/lib/models/common/v1/config/Message.js +213 -258
  367. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
  368. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  369. package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
  370. package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
  371. package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
  372. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  373. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
  374. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  375. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  376. package/dist/lib/models/dataprotection/v4/common/BackupType.js +7 -9
  377. package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +12 -21
  378. package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.js +280 -301
  379. package/dist/lib/models/dataprotection/v4/common/BaseVmRecoveryPoint.d.ts +1 -32
  380. package/dist/lib/models/dataprotection/v4/common/BaseVmRecoveryPoint.js +294 -335
  381. package/dist/lib/models/dataprotection/v4/common/ClusterInfo.d.ts +5 -29
  382. package/dist/lib/models/dataprotection/v4/common/ClusterInfo.js +166 -207
  383. package/dist/lib/models/dataprotection/v4/common/DiskRecoveryPoint.d.ts +2 -8
  384. package/dist/lib/models/dataprotection/v4/common/DiskRecoveryPoint.js +163 -206
  385. package/dist/lib/models/dataprotection/v4/common/RecoveryPointStatus.js +7 -9
  386. package/dist/lib/models/dataprotection/v4/common/RecoveryPointType.js +7 -9
  387. package/dist/lib/models/dataprotection/v4/common/VssProperties.d.ts +2 -10
  388. package/dist/lib/models/dataprotection/v4/common/VssProperties.js +222 -267
  389. package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +1 -1
  390. package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.js +75 -106
  391. package/dist/lib/models/dataprotection/v4/config/AmazonS3Bucket.d.ts +2 -8
  392. package/dist/lib/models/dataprotection/v4/config/AmazonS3Bucket.js +171 -212
  393. package/dist/lib/models/dataprotection/v4/config/AzureBlobStorageContainer.d.ts +2 -8
  394. package/dist/lib/models/dataprotection/v4/config/AzureBlobStorageContainer.js +171 -212
  395. package/dist/lib/models/dataprotection/v4/config/Capability.d.ts +71 -0
  396. package/dist/lib/models/dataprotection/v4/config/Capability.js +279 -0
  397. package/dist/lib/models/dataprotection/v4/config/ClusterInfoApiResponse.d.ts +2 -43
  398. package/dist/lib/models/dataprotection/v4/config/ClusterInfoApiResponse.js +187 -242
  399. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.d.ts +1 -26
  400. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.js +244 -301
  401. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +2 -8
  402. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.js +166 -207
  403. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +7 -9
  404. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +2 -8
  405. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +171 -212
  406. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +1 -1
  407. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.js +74 -103
  408. package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +2 -43
  409. package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +187 -242
  410. package/dist/lib/models/dataprotection/v4/config/CreationTimeRange.d.ts +58 -0
  411. package/dist/lib/models/dataprotection/v4/config/CreationTimeRange.js +272 -0
  412. package/dist/lib/models/dataprotection/v4/config/DataProtectionCapabilityName.d.ts +19 -0
  413. package/dist/lib/models/dataprotection/v4/config/DataProtectionCapabilityName.js +77 -0
  414. package/dist/lib/models/dataprotection/v4/config/DataProtectionClusterCapability.d.ts +34 -0
  415. package/dist/lib/models/dataprotection/v4/config/DataProtectionClusterCapability.js +277 -0
  416. package/dist/lib/models/dataprotection/v4/config/DataProtectionClusterCapabilityProjection.d.ts +10 -0
  417. package/dist/lib/models/dataprotection/v4/config/DataProtectionClusterCapabilityProjection.js +124 -0
  418. package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +2 -8
  419. package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.js +171 -212
  420. package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPlanJobApiResponse.d.ts +58 -0
  421. package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPlanJobApiResponse.js +288 -0
  422. package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +2 -43
  423. package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +187 -242
  424. package/dist/lib/models/dataprotection/v4/config/DisasterRecoveryLocation.d.ts +72 -0
  425. package/dist/lib/models/dataprotection/v4/config/DisasterRecoveryLocation.js +292 -0
  426. package/dist/lib/models/dataprotection/v4/config/EntityRecoveryResult.d.ts +79 -0
  427. package/dist/lib/models/dataprotection/v4/config/EntityRecoveryResult.js +352 -0
  428. package/dist/lib/models/dataprotection/v4/config/EntityReference.d.ts +57 -0
  429. package/dist/lib/models/dataprotection/v4/config/EntityReference.js +243 -0
  430. package/dist/lib/models/dataprotection/v4/config/ErrorGroup.d.ts +19 -0
  431. package/dist/lib/models/dataprotection/v4/config/ErrorGroup.js +113 -0
  432. package/dist/lib/models/dataprotection/v4/config/ErrorMessage.d.ts +53 -0
  433. package/dist/lib/models/dataprotection/v4/config/ErrorMessage.js +335 -0
  434. package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +2 -7
  435. package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +143 -182
  436. package/dist/lib/models/dataprotection/v4/config/ExecutionStepEntityReference.d.ts +68 -0
  437. package/dist/lib/models/dataprotection/v4/config/ExecutionStepEntityReference.js +311 -0
  438. package/dist/lib/models/dataprotection/v4/config/ExecutionStepEntityType.d.ts +19 -0
  439. package/dist/lib/models/dataprotection/v4/config/ExecutionStepEntityType.js +143 -0
  440. package/dist/lib/models/dataprotection/v4/config/ExecutionStepResult.d.ts +58 -0
  441. package/dist/lib/models/dataprotection/v4/config/ExecutionStepResult.js +253 -0
  442. package/dist/lib/models/dataprotection/v4/config/ExpirationTimeSpec.d.ts +7 -12
  443. package/dist/lib/models/dataprotection/v4/config/ExpirationTimeSpec.js +143 -182
  444. package/dist/lib/models/dataprotection/v4/config/FailoverDirection.d.ts +90 -0
  445. package/dist/lib/models/dataprotection/v4/config/FailoverDirection.js +354 -0
  446. package/dist/lib/models/dataprotection/v4/config/ForceDeleteAllRecoveryPointsSpec.d.ts +55 -0
  447. package/dist/lib/models/dataprotection/v4/config/ForceDeleteAllRecoveryPointsSpec.js +274 -0
  448. package/dist/lib/models/dataprotection/v4/config/GetProtectedResourceApiResponse.d.ts +3 -44
  449. package/dist/lib/models/dataprotection/v4/config/GetProtectedResourceApiResponse.js +187 -242
  450. package/dist/lib/models/dataprotection/v4/config/GetRecoveryPlanJobApiResponse.d.ts +58 -0
  451. package/dist/lib/models/dataprotection/v4/config/GetRecoveryPlanJobApiResponse.js +288 -0
  452. package/dist/lib/models/dataprotection/v4/config/GetRecoveryPointApiResponse.d.ts +2 -43
  453. package/dist/lib/models/dataprotection/v4/config/GetRecoveryPointApiResponse.js +187 -242
  454. package/dist/lib/models/dataprotection/v4/config/GetVmRecoveryPointApiResponse.d.ts +2 -45
  455. package/dist/lib/models/dataprotection/v4/config/GetVmRecoveryPointApiResponse.js +187 -242
  456. package/dist/lib/models/dataprotection/v4/config/HostReference.d.ts +1 -17
  457. package/dist/lib/models/dataprotection/v4/config/HostReference.js +153 -197
  458. package/dist/lib/models/dataprotection/v4/config/HostType.js +7 -9
  459. package/dist/lib/models/dataprotection/v4/config/HypervisorType.js +7 -9
  460. package/dist/lib/models/dataprotection/v4/config/ListDPClusterCapabilitiesApiResponse.d.ts +59 -0
  461. package/dist/lib/models/dataprotection/v4/config/ListDPClusterCapabilitiesApiResponse.js +315 -0
  462. package/dist/lib/models/dataprotection/v4/config/ListRecoveryPlanJobExecutionStepsApiResponse.d.ts +59 -0
  463. package/dist/lib/models/dataprotection/v4/config/ListRecoveryPlanJobExecutionStepsApiResponse.js +315 -0
  464. package/dist/lib/models/dataprotection/v4/config/ListRecoveryPlanJobValidationErrorsApiResponse.d.ts +59 -0
  465. package/dist/lib/models/dataprotection/v4/config/ListRecoveryPlanJobValidationErrorsApiResponse.js +315 -0
  466. package/dist/lib/models/dataprotection/v4/config/ListRecoveryPlanJobsApiResponse.d.ts +59 -0
  467. package/dist/lib/models/dataprotection/v4/config/ListRecoveryPlanJobsApiResponse.js +315 -0
  468. package/dist/lib/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.d.ts +2 -43
  469. package/dist/lib/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.js +213 -268
  470. package/dist/lib/models/dataprotection/v4/config/LocationReference.d.ts +2 -7
  471. package/dist/lib/models/dataprotection/v4/config/LocationReference.js +142 -181
  472. package/dist/lib/models/dataprotection/v4/config/NutanixObjectsBucket.d.ts +2 -7
  473. package/dist/lib/models/dataprotection/v4/config/NutanixObjectsBucket.js +140 -179
  474. package/dist/lib/models/dataprotection/v4/config/ObjectStorageType.js +7 -9
  475. package/dist/lib/models/dataprotection/v4/config/OperationType.d.ts +19 -0
  476. package/dist/lib/models/dataprotection/v4/config/OperationType.js +251 -0
  477. package/dist/lib/models/dataprotection/v4/config/PhaseSummary.d.ts +33 -0
  478. package/dist/lib/models/dataprotection/v4/config/PhaseSummary.js +274 -0
  479. package/dist/lib/models/dataprotection/v4/config/ProtectedEntityType.js +7 -9
  480. package/dist/lib/models/dataprotection/v4/config/ProtectedResource.d.ts +4 -72
  481. package/dist/lib/models/dataprotection/v4/config/ProtectedResource.js +307 -369
  482. package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +2 -43
  483. package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +187 -242
  484. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +8 -10
  485. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +2 -43
  486. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +187 -242
  487. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +5 -11
  488. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +169 -210
  489. package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.d.ts +2 -13
  490. package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.js +149 -192
  491. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanActionType.d.ts +19 -0
  492. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanActionType.js +95 -0
  493. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJob.d.ts +177 -0
  494. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJob.js +771 -0
  495. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobExecutionStatus.d.ts +19 -0
  496. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobExecutionStatus.js +107 -0
  497. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobExecutionStep.d.ts +132 -0
  498. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobExecutionStep.js +624 -0
  499. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobExecutionStepProjection.d.ts +10 -0
  500. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobExecutionStepProjection.js +129 -0
  501. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobPhaseType.d.ts +19 -0
  502. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobPhaseType.js +89 -0
  503. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobProjection.d.ts +10 -0
  504. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobProjection.js +128 -0
  505. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanValidationError.d.ts +32 -0
  506. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanValidationError.js +322 -0
  507. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanValidationErrorProjection.d.ts +10 -0
  508. package/dist/lib/models/dataprotection/v4/config/RecoveryPlanValidationErrorProjection.js +126 -0
  509. package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.d.ts +23 -101
  510. package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.js +337 -348
  511. package/dist/lib/models/dataprotection/v4/config/RecoveryPointProjection.d.ts +1 -1
  512. package/dist/lib/models/dataprotection/v4/config/RecoveryPointProjection.js +75 -103
  513. package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +2 -43
  514. package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +187 -242
  515. package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +5 -11
  516. package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +172 -213
  517. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepository.d.ts +1 -18
  518. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepository.js +196 -246
  519. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.d.ts +1 -1
  520. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.js +73 -102
  521. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +19 -33
  522. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +259 -273
  523. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +2 -43
  524. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +187 -242
  525. package/dist/lib/models/dataprotection/v4/config/RecycleBinEntry.d.ts +77 -0
  526. package/dist/lib/models/dataprotection/v4/config/RecycleBinEntry.js +405 -0
  527. package/dist/lib/models/dataprotection/v4/config/RecycleBinVm.d.ts +44 -0
  528. package/dist/lib/models/dataprotection/v4/config/RecycleBinVm.js +352 -0
  529. package/dist/lib/models/dataprotection/v4/config/RecycleBinVmProjection.d.ts +10 -0
  530. package/dist/lib/models/dataprotection/v4/config/RecycleBinVmProjection.js +124 -0
  531. package/dist/lib/models/dataprotection/v4/config/RecycleBinVolumeGroup.d.ts +44 -0
  532. package/dist/lib/models/dataprotection/v4/config/RecycleBinVolumeGroup.js +352 -0
  533. package/dist/lib/models/dataprotection/v4/config/RecycleBinVolumeGroupProjection.d.ts +10 -0
  534. package/dist/lib/models/dataprotection/v4/config/RecycleBinVolumeGroupProjection.js +124 -0
  535. package/dist/lib/models/dataprotection/v4/config/ReplicationState.d.ts +2 -16
  536. package/dist/lib/models/dataprotection/v4/config/ReplicationState.js +221 -266
  537. package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.d.ts +2 -8
  538. package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.js +166 -207
  539. package/dist/lib/models/dataprotection/v4/config/RootCauseAnalysis.d.ts +69 -0
  540. package/dist/lib/models/dataprotection/v4/config/RootCauseAnalysis.js +329 -0
  541. package/dist/lib/models/dataprotection/v4/config/Severity.d.ts +19 -0
  542. package/dist/lib/models/dataprotection/v4/config/Severity.js +83 -0
  543. package/dist/lib/models/dataprotection/v4/config/SiteProtectionInfo.d.ts +2 -26
  544. package/dist/lib/models/dataprotection/v4/config/SiteProtectionInfo.js +185 -228
  545. package/dist/lib/models/dataprotection/v4/config/SiteReference.d.ts +2 -8
  546. package/dist/lib/models/dataprotection/v4/config/SiteReference.js +171 -212
  547. package/dist/lib/models/dataprotection/v4/config/StageSummary.d.ts +22 -0
  548. package/dist/lib/models/dataprotection/v4/config/StageSummary.js +230 -0
  549. package/dist/lib/models/dataprotection/v4/config/Summary.d.ts +59 -0
  550. package/dist/lib/models/dataprotection/v4/config/Summary.js +277 -0
  551. package/dist/lib/models/dataprotection/v4/config/SynchronousReplicationRole.js +8 -10
  552. package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +2 -43
  553. package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +187 -242
  554. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPoint.d.ts +1 -33
  555. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPoint.js +183 -206
  556. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +8 -15
  557. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +211 -258
  558. package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +2 -7
  559. package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +143 -182
  560. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +18 -32
  561. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +283 -306
  562. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +2 -13
  563. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +166 -207
  564. package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +1 -29
  565. package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.js +148 -192
  566. package/dist/lib/models/dataprotection/v4/config/Witness.d.ts +1 -34
  567. package/dist/lib/models/dataprotection/v4/config/Witness.js +226 -278
  568. package/dist/lib/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +7 -9
  569. package/dist/lib/models/dataprotection/v4/content/BaseRecoveryPointSpec.d.ts +2 -8
  570. package/dist/lib/models/dataprotection/v4/content/BaseRecoveryPointSpec.js +171 -212
  571. package/dist/lib/models/dataprotection/v4/content/ChangedRegion.d.ts +2 -9
  572. package/dist/lib/models/dataprotection/v4/content/ChangedRegion.js +189 -232
  573. package/dist/lib/models/dataprotection/v4/content/ChangedVmRegionsApiResponse.d.ts +2 -43
  574. package/dist/lib/models/dataprotection/v4/content/ChangedVmRegionsApiResponse.js +209 -264
  575. package/dist/lib/models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse.d.ts +2 -43
  576. package/dist/lib/models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse.js +209 -264
  577. package/dist/lib/models/dataprotection/v4/content/ClusterDiscoverOperation.js +9 -11
  578. package/dist/lib/models/dataprotection/v4/content/ClusterDiscoverSpec.d.ts +2 -8
  579. package/dist/lib/models/dataprotection/v4/content/ClusterDiscoverSpec.js +179 -224
  580. package/dist/lib/models/dataprotection/v4/content/ComputeChangedRegionsClusterDiscoverSpec.d.ts +3 -9
  581. package/dist/lib/models/dataprotection/v4/content/ComputeChangedRegionsClusterDiscoverSpec.js +197 -246
  582. package/dist/lib/models/dataprotection/v4/content/DiskRecoveryPointReference.d.ts +2 -8
  583. package/dist/lib/models/dataprotection/v4/content/DiskRecoveryPointReference.js +172 -213
  584. package/dist/lib/models/dataprotection/v4/content/FileWrapper.d.ts +36 -0
  585. package/dist/lib/models/dataprotection/v4/content/FileWrapper.js +200 -0
  586. package/dist/lib/models/dataprotection/v4/content/GetVssMetadataApiResponse.d.ts +8 -48
  587. package/dist/lib/models/dataprotection/v4/content/GetVssMetadataApiResponse.js +188 -242
  588. package/dist/lib/models/dataprotection/v4/content/GetVssMetadataClusterDiscoverSpec.d.ts +3 -8
  589. package/dist/lib/models/dataprotection/v4/content/GetVssMetadataClusterDiscoverSpec.js +143 -182
  590. package/dist/lib/models/dataprotection/v4/content/RegionType.js +7 -9
  591. package/dist/lib/models/dataprotection/v4/content/VmDiskRecoveryPointClusterDiscoverSpec.d.ts +1 -9
  592. package/dist/lib/models/dataprotection/v4/content/VmDiskRecoveryPointClusterDiscoverSpec.js +130 -169
  593. package/dist/lib/models/dataprotection/v4/content/VmDiskRecoveryPointReference.d.ts +1 -9
  594. package/dist/lib/models/dataprotection/v4/content/VmDiskRecoveryPointReference.js +130 -169
  595. package/dist/lib/models/dataprotection/v4/content/VmRecoveryPointChangedRegionsComputeSpec.d.ts +4 -15
  596. package/dist/lib/models/dataprotection/v4/content/VmRecoveryPointChangedRegionsComputeSpec.js +190 -231
  597. package/dist/lib/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointClusterDiscoverSpec.d.ts +1 -9
  598. package/dist/lib/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointClusterDiscoverSpec.js +130 -169
  599. package/dist/lib/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointReference.d.ts +1 -9
  600. package/dist/lib/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointReference.js +131 -170
  601. package/dist/lib/models/dataprotection/v4/content/VolumeGroupRecoveryPointChangedRegionsComputeSpec.d.ts +4 -15
  602. package/dist/lib/models/dataprotection/v4/content/VolumeGroupRecoveryPointChangedRegionsComputeSpec.js +190 -231
  603. package/dist/lib/models/dataprotection/v4/error/AppMessage.d.ts +2 -12
  604. package/dist/lib/models/dataprotection/v4/error/AppMessage.js +264 -313
  605. package/dist/lib/models/dataprotection/v4/error/ErrorResponse.d.ts +2 -7
  606. package/dist/lib/models/dataprotection/v4/error/ErrorResponse.js +190 -222
  607. package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.d.ts +2 -18
  608. package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.js +249 -300
  609. package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  610. package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +191 -234
  611. package/dist/lib/models/dataprotection/v4/operations/BaseRecoveryPlanActionSpec.d.ts +73 -0
  612. package/dist/lib/models/dataprotection/v4/operations/BaseRecoveryPlanActionSpec.js +297 -0
  613. package/dist/lib/models/dataprotection/v4/operations/CleanupRecoveryPlanResourcesApiResponse.d.ts +58 -0
  614. package/dist/lib/models/dataprotection/v4/operations/CleanupRecoveryPlanResourcesApiResponse.js +288 -0
  615. package/dist/lib/models/dataprotection/v4/operations/PlannedFailoverRecoveryPlanApiResponse.d.ts +58 -0
  616. package/dist/lib/models/dataprotection/v4/operations/PlannedFailoverRecoveryPlanApiResponse.js +288 -0
  617. package/dist/lib/models/dataprotection/v4/operations/PlannedFailoverSpec.d.ts +37 -0
  618. package/dist/lib/models/dataprotection/v4/operations/PlannedFailoverSpec.js +274 -0
  619. package/dist/lib/models/dataprotection/v4/operations/TestFailoverRecoveryPlanApiResponse.d.ts +58 -0
  620. package/dist/lib/models/dataprotection/v4/operations/TestFailoverRecoveryPlanApiResponse.js +288 -0
  621. package/dist/lib/models/dataprotection/v4/operations/TestFailoverSpec.d.ts +37 -0
  622. package/dist/lib/models/dataprotection/v4/operations/TestFailoverSpec.js +274 -0
  623. package/dist/lib/models/dataprotection/v4/operations/UnplannedFailoverRecoveryPlanApiResponse.d.ts +58 -0
  624. package/dist/lib/models/dataprotection/v4/operations/UnplannedFailoverRecoveryPlanApiResponse.js +288 -0
  625. package/dist/lib/models/dataprotection/v4/operations/UnplannedFailoverSpec.d.ts +48 -0
  626. package/dist/lib/models/dataprotection/v4/operations/UnplannedFailoverSpec.js +311 -0
  627. package/dist/lib/models/dataprotection/v4/operations/ValidateRecoveryPlanApiResponse.d.ts +58 -0
  628. package/dist/lib/models/dataprotection/v4/operations/ValidateRecoveryPlanApiResponse.js +288 -0
  629. package/dist/lib/models/dataprotection/v4/operations/ValidateSpec.d.ts +24 -0
  630. package/dist/lib/models/dataprotection/v4/operations/ValidateSpec.js +129 -0
  631. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
  632. package/dist/lib/models/prism/v4/config/TaskReference.js +150 -183
  633. package/dist/lib/models/validation/ValidationError.js +26 -42
  634. package/dist/lib/models/validation/ValidationScopes.js +3 -3
  635. package/dist/lib/models/vmm/v4/ahv/config/CategoryReference.d.ts +2 -7
  636. package/dist/lib/models/vmm/v4/ahv/config/CategoryReference.js +142 -181
  637. package/dist/lib/models/vmm/v4/ahv/config/GuestStaticIpSpec.d.ts +57 -0
  638. package/dist/lib/models/vmm/v4/ahv/config/GuestStaticIpSpec.js +277 -0
  639. package/dist/lib/models/vmm/v4/ahv/config/OwnerReference.d.ts +2 -7
  640. package/dist/lib/models/vmm/v4/ahv/config/OwnerReference.js +142 -181
  641. package/dist/lib/models/vmm/v4/ahv/config/OwnershipInfo.d.ts +2 -12
  642. package/dist/lib/models/vmm/v4/ahv/config/OwnershipInfo.js +138 -177
  643. package/dist/lib/models/vmm/v4/ahv/config/SubnetReference.d.ts +2 -7
  644. package/dist/lib/models/vmm/v4/ahv/config/SubnetReference.js +142 -181
  645. package/dist/lib/models/vmm/v4/ahv/config/VmConfigOverrideSpecification.d.ts +12 -39
  646. package/dist/lib/models/vmm/v4/ahv/config/VmConfigOverrideSpecification.js +283 -300
  647. package/dist/lib/models/vmm/v4/ahv/config/VmRestoreGuestNicInfoOverrideSpec.d.ts +48 -0
  648. package/dist/lib/models/vmm/v4/ahv/config/VmRestoreGuestNicInfoOverrideSpec.js +245 -0
  649. package/dist/lib/models/vmm/v4/ahv/config/VmRestoreGuestToolsSpecification.d.ts +47 -0
  650. package/dist/lib/models/vmm/v4/ahv/config/VmRestoreGuestToolsSpecification.js +236 -0
  651. package/dist/lib/models/vmm/v4/ahv/config/VmRestoreIpv4ConfigOverrideSpec.d.ts +2 -20
  652. package/dist/lib/models/vmm/v4/ahv/config/VmRestoreIpv4ConfigOverrideSpec.js +173 -218
  653. package/dist/lib/models/vmm/v4/ahv/config/VmRestoreNicConfigOverrideParams.d.ts +12 -9
  654. package/dist/lib/models/vmm/v4/ahv/config/VmRestoreNicConfigOverrideParams.js +252 -269
  655. package/dist/lib/models/vmm/v4/ahv/config/VmRestoreNicConfigSpecification.d.ts +2 -15
  656. package/dist/lib/models/vmm/v4/ahv/config/VmRestoreNicConfigSpecification.js +183 -228
  657. package/dist/lib/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicNetworkInfoOverrideSpec.d.ts +2 -31
  658. package/dist/lib/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicNetworkInfoOverrideSpec.js +162 -203
  659. package/dist/lib/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicOverrideSpec.d.ts +2 -7
  660. package/dist/lib/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicOverrideSpec.js +142 -181
  661. package/dist/lib/utils/ValidationUtils.js +39 -69
  662. package/package.json +1 -1
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -25,38 +24,36 @@ var _VolumeGroupRecoveryPointChangedRegionsComputeSpec = _interopRequireDefault(
25
24
  var _ChangedVolumeGroupRegionsApiResponse = _interopRequireDefault(require("../models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse"));
26
25
  var _RecoveryPointReplicationSpec = _interopRequireDefault(require("../models/dataprotection/v4/config/RecoveryPointReplicationSpec"));
27
26
  var _UpdateRecoveryPointExpirationTimeApiResponse = _interopRequireDefault(require("../models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse"));
28
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
29
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
32
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
33
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
34
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
35
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
36
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
37
- function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
38
- function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
39
- function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
40
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
41
- function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
27
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
28
+ /*
42
29
  * Nutanix Data Protection APIs
43
30
  *
44
- * OpenAPI spec version: 4.1.1
31
+ * OpenAPI spec version: 4.3.1
45
32
  *
46
33
  * NOTE: This class is auto generated by the Open API Dev Platform.
47
34
  *
48
- * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
35
+ * Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
49
36
  *
50
37
  * Do not edit the class manually.
51
38
  *
52
39
  */
40
+
53
41
  /**
54
42
  * RecoveryPoints service.
55
- * @version 4.1.1
43
+ * @version 4.3.1
56
44
  * @class RecoveryPointsApi
57
45
  */
58
- var _headersToSkip = /*#__PURE__*/new WeakMap();
59
- var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
46
+ class RecoveryPointsApi {
47
+ #headersToSkip;
48
+
49
+ /**
50
+ * Make the default {@link ApiClient} class available for developers to be able to extend it and bring
51
+ * their own fetch methods into the SDK
52
+ */
53
+ static get ApiClient() {
54
+ return _ApiClient.ApiClient;
55
+ }
56
+
60
57
  /**
61
58
  * Constructs a new RecoveryPointsApi.
62
59
  * @alias module:api/RecoveryPointsApi
@@ -64,15 +61,13 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
64
61
  * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
65
62
  * default to {@link module:ApiClient#instance} if unspecified.
66
63
  */
67
- function RecoveryPointsApi(apiClient) {
68
- _classCallCheck(this, RecoveryPointsApi);
69
- _classPrivateFieldInitSpec(this, _headersToSkip, void 0);
64
+ constructor(apiClient) {
70
65
  this.apiClient = apiClient || _ApiClient.ApiClient.instance;
71
- _classPrivateFieldSet(_headersToSkip, this, new Set());
72
- _classPrivateFieldGet(_headersToSkip, this).add('authorization');
73
- _classPrivateFieldGet(_headersToSkip, this).add('cookie');
74
- _classPrivateFieldGet(_headersToSkip, this).add('host');
75
- _classPrivateFieldGet(_headersToSkip, this).add('user-agent');
66
+ this.#headersToSkip = new Set();
67
+ this.#headersToSkip.add('authorization');
68
+ this.#headersToSkip.add('cookie');
69
+ this.#headersToSkip.add('host');
70
+ this.#headersToSkip.add('user-agent');
76
71
  }
77
72
 
78
73
  /**
@@ -82,555 +77,538 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
82
77
  * @param {Object} args Additional Arguments
83
78
  * @return {Promise<CreateRecoveryPointApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateRecoveryPointApiResponse } and HTTP response
84
79
  */
85
- return _createClass(RecoveryPointsApi, [{
86
- key: "createRecoveryPoint",
87
- value: function createRecoveryPoint(body) {
88
- var _this = this;
89
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
90
- var postBody = null;
91
- if (body instanceof _RecoveryPoint["default"] && typeof body.toJson === 'function') {
92
- postBody = body.toJson();
93
- } else {
94
- postBody = body;
95
- }
96
- // verify the required parameter 'body' is set
97
- if (typeof postBody === 'undefined' || postBody === null) {
98
- throw new Error("Invalid body when calling createRecoveryPoint");
99
- }
100
- var pathParams = {};
101
- var queryParams = {};
102
- var headersToInclude = {};
103
- Object.keys(argMap).forEach(function (header) {
104
- if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
105
- headersToInclude[header] = argMap[header];
106
- }
107
- });
108
- var headerParams = _objectSpread({}, headersToInclude);
109
- var formParams = {};
110
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
111
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
112
- var contentTypes = ['application/json'];
113
- var accepts = ['application/json'];
114
- var returnType = _CreateRecoveryPointApiResponse["default"];
115
- return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
80
+ createRecoveryPoint(body, ...args) {
81
+ let argMap = args.length > 0 ? args[0] : {};
82
+ let postBody = null;
83
+ if (body instanceof _RecoveryPoint.default && typeof body.toJson === 'function') {
84
+ postBody = body.toJson();
85
+ } else {
86
+ postBody = body;
116
87
  }
117
-
118
- /**
119
- * Delete a recovery point
120
- * Delete the recovery point identified by {extId}.
121
- * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
122
- * @param {Object} args Additional Arguments
123
- * @return {Promise<DeleteRecoveryPointApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteRecoveryPointApiResponse } and HTTP response
124
- */
125
- }, {
126
- key: "deleteRecoveryPointById",
127
- value: function deleteRecoveryPointById(extId) {
128
- var _this2 = this;
129
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
130
- var postBody = null;
131
- // verify the required parameter 'extId' is set
132
- if (typeof extId === 'undefined' || extId === null) {
133
- throw new Error("Missing the required parameter 'extId' when calling deleteRecoveryPointById");
134
- }
135
- var pathParams = {
136
- 'extId': extId
137
- };
138
- var queryParams = {};
139
- var headersToInclude = {};
140
- Object.keys(argMap).forEach(function (header) {
141
- if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
142
- headersToInclude[header] = argMap[header];
143
- }
144
- });
145
- var headerParams = _objectSpread({}, headersToInclude);
146
- var formParams = {};
147
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
148
- var contentTypes = [];
149
- var accepts = ['application/json'];
150
- var returnType = _DeleteRecoveryPointApiResponse["default"];
151
- return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
88
+ // verify the required parameter 'body' is set
89
+ if (typeof postBody === 'undefined' || postBody === null) {
90
+ throw new Error("Invalid body when calling createRecoveryPoint");
152
91
  }
153
-
154
- /**
155
- * Discover cluster details for a recovery point
156
- * It returns cluster details where the given recovery point is located, and a certificate to access the endpoint. The certificate must be set as a NTNX_IGW_SESSION cookie in the header. For example, Cookie: NTNX_IGW_SESSION&#x3D;&#x27;certificate&#x27;
157
- * @param { Required<Pick<ClusterDiscoverSpec, 'operation' | 'spec'>> & Partial<ClusterDiscoverSpec> } body specification
158
- * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
159
- * @param {Object} args Additional Arguments
160
- * @return {Promise<ClusterInfoApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ClusterInfoApiResponse } and HTTP response
161
- */
162
- }, {
163
- key: "discoverClusterForRecoveryPointId",
164
- value: function discoverClusterForRecoveryPointId(extId, body) {
165
- var _this3 = this;
166
- var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
167
- var postBody = null;
168
- if (body instanceof _ClusterDiscoverSpec["default"] && typeof body.toJson === 'function') {
169
- postBody = body.toJson();
170
- } else {
171
- postBody = body;
172
- }
173
- // verify the required parameter 'extId' is set
174
- if (typeof extId === 'undefined' || extId === null) {
175
- throw new Error("Missing the required parameter 'extId' when calling discoverClusterForRecoveryPointId");
92
+ const pathParams = {};
93
+ const queryParams = {};
94
+ let headersToInclude = {};
95
+ Object.keys(argMap).forEach(header => {
96
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
97
+ headersToInclude[header] = argMap[header];
176
98
  }
177
- // verify the required parameter 'body' is set
178
- if (typeof postBody === 'undefined' || postBody === null) {
179
- throw new Error("Invalid body when calling discoverClusterForRecoveryPointId");
180
- }
181
- var pathParams = {
182
- 'extId': extId
183
- };
184
- var queryParams = {};
185
- var headersToInclude = {};
186
- Object.keys(argMap).forEach(function (header) {
187
- if (!_classPrivateFieldGet(_headersToSkip, _this3).has(header.toLowerCase())) {
188
- headersToInclude[header] = argMap[header];
189
- }
190
- });
191
- var headerParams = _objectSpread({}, headersToInclude);
192
- var formParams = {};
193
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
194
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
195
- var contentTypes = ['application/json'];
196
- var accepts = ['application/json'];
197
- var returnType = _ClusterInfoApiResponse["default"];
198
- return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points/{extId}/$actions/discover-cluster', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
199
- }
99
+ });
100
+ const headerParams = {
101
+ ...headersToInclude
102
+ };
103
+ const formParams = {};
104
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
105
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
106
+ const contentTypes = ['application/json'];
107
+ const accepts = ['application/json'];
108
+ const returnType = _CreateRecoveryPointApiResponse.default;
109
+ return this.apiClient.callApi('/api/dataprotection/v4.3/config/recovery-points', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
110
+ }
200
111
 
201
- /**
202
- * Get a recovery point
203
- * Query the recovery point identified by {extId}.
204
- * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
205
- * @param {Object} args Additional Arguments
206
- * @return {Promise<GetRecoveryPointApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetRecoveryPointApiResponse } and HTTP response
207
- */
208
- }, {
209
- key: "getRecoveryPointById",
210
- value: function getRecoveryPointById(extId) {
211
- var _this4 = this;
212
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
213
- var postBody = null;
214
- // verify the required parameter 'extId' is set
215
- if (typeof extId === 'undefined' || extId === null) {
216
- throw new Error("Missing the required parameter 'extId' when calling getRecoveryPointById");
217
- }
218
- var pathParams = {
219
- 'extId': extId
220
- };
221
- var queryParams = {};
222
- var headersToInclude = {};
223
- Object.keys(argMap).forEach(function (header) {
224
- if (!_classPrivateFieldGet(_headersToSkip, _this4).has(header.toLowerCase())) {
225
- headersToInclude[header] = argMap[header];
226
- }
227
- });
228
- var headerParams = _objectSpread({}, headersToInclude);
229
- var formParams = {};
230
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
231
- var contentTypes = [];
232
- var accepts = ['application/json'];
233
- var returnType = _GetRecoveryPointApiResponse["default"];
234
- return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
112
+ /**
113
+ * Delete a recovery point
114
+ * Delete the recovery point identified by {extId}.
115
+ * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
116
+ * @param {Object} args Additional Arguments
117
+ * @return {Promise<DeleteRecoveryPointApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteRecoveryPointApiResponse } and HTTP response
118
+ */
119
+ deleteRecoveryPointById(extId, ...args) {
120
+ let argMap = args.length > 0 ? args[0] : {};
121
+ const postBody = null;
122
+ // verify the required parameter 'extId' is set
123
+ if (typeof extId === 'undefined' || extId === null) {
124
+ throw new Error("Missing the required parameter 'extId' when calling deleteRecoveryPointById");
235
125
  }
236
-
237
- /**
238
- * Get a VM recovery point
239
- * Query the VM recovery point identified by {extId}.
240
- * @param { String } recoveryPointExtId The external identifier that can be used to retrieve the recovery point using its URL.
241
- * @param { String } extId The external identifier that can be used to identify a VM recovery point.
242
- * @param {Object} args Additional Arguments
243
- * @return {Promise<GetVmRecoveryPointApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetVmRecoveryPointApiResponse } and HTTP response
244
- */
245
- }, {
246
- key: "getVmRecoveryPointById",
247
- value: function getVmRecoveryPointById(recoveryPointExtId, extId) {
248
- var _this5 = this;
249
- var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
250
- var postBody = null;
251
- // verify the required parameter 'recoveryPointExtId' is set
252
- if (typeof recoveryPointExtId === 'undefined' || recoveryPointExtId === null) {
253
- throw new Error("Missing the required parameter 'recoveryPointExtId' when calling getVmRecoveryPointById");
254
- }
255
- // verify the required parameter 'extId' is set
256
- if (typeof extId === 'undefined' || extId === null) {
257
- throw new Error("Missing the required parameter 'extId' when calling getVmRecoveryPointById");
126
+ const pathParams = {
127
+ 'extId': extId
128
+ };
129
+ const queryParams = {};
130
+ let headersToInclude = {};
131
+ Object.keys(argMap).forEach(header => {
132
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
133
+ headersToInclude[header] = argMap[header];
258
134
  }
259
- var pathParams = {
260
- 'recoveryPointExtId': recoveryPointExtId,
261
- 'extId': extId
262
- };
263
- var queryParams = {};
264
- var headersToInclude = {};
265
- Object.keys(argMap).forEach(function (header) {
266
- if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {
267
- headersToInclude[header] = argMap[header];
268
- }
269
- });
270
- var headerParams = _objectSpread({}, headersToInclude);
271
- var formParams = {};
272
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
273
- var contentTypes = [];
274
- var accepts = ['application/json'];
275
- var returnType = _GetVmRecoveryPointApiResponse["default"];
276
- return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points/{recoveryPointExtId}/vm-recovery-points/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
135
+ });
136
+ const headerParams = {
137
+ ...headersToInclude
138
+ };
139
+ const formParams = {};
140
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
141
+ const contentTypes = [];
142
+ const accepts = ['application/json'];
143
+ const returnType = _DeleteRecoveryPointApiResponse.default;
144
+ return this.apiClient.callApi('/api/dataprotection/v4.3/config/recovery-points/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
145
+ }
146
+
147
+ /**
148
+ * Discover cluster details for a recovery point
149
+ * It returns cluster details where the given recovery point is located, and a certificate to access the endpoint. The certificate must be set as a NTNX_IGW_SESSION cookie in the header. For example, Cookie: NTNX_IGW_SESSION&#x3D;&#x27;certificate&#x27;
150
+ * @param { Required<Pick<ClusterDiscoverSpec, 'operation' | 'spec'>> & Partial<ClusterDiscoverSpec> } body specification
151
+ * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
152
+ * @param {Object} args Additional Arguments
153
+ * @return {Promise<ClusterInfoApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ClusterInfoApiResponse } and HTTP response
154
+ */
155
+ discoverClusterForRecoveryPointId(extId, body, ...args) {
156
+ let argMap = args.length > 0 ? args[0] : {};
157
+ let postBody = null;
158
+ if (body instanceof _ClusterDiscoverSpec.default && typeof body.toJson === 'function') {
159
+ postBody = body.toJson();
160
+ } else {
161
+ postBody = body;
277
162
  }
163
+ // verify the required parameter 'extId' is set
164
+ if (typeof extId === 'undefined' || extId === null) {
165
+ throw new Error("Missing the required parameter 'extId' when calling discoverClusterForRecoveryPointId");
166
+ }
167
+ // verify the required parameter 'body' is set
168
+ if (typeof postBody === 'undefined' || postBody === null) {
169
+ throw new Error("Invalid body when calling discoverClusterForRecoveryPointId");
170
+ }
171
+ const pathParams = {
172
+ 'extId': extId
173
+ };
174
+ const queryParams = {};
175
+ let headersToInclude = {};
176
+ Object.keys(argMap).forEach(header => {
177
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
178
+ headersToInclude[header] = argMap[header];
179
+ }
180
+ });
181
+ const headerParams = {
182
+ ...headersToInclude
183
+ };
184
+ const formParams = {};
185
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
186
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
187
+ const contentTypes = ['application/json'];
188
+ const accepts = ['application/json'];
189
+ const returnType = _ClusterInfoApiResponse.default;
190
+ return this.apiClient.callApi('/api/dataprotection/v4.3/config/recovery-points/{extId}/$actions/discover-cluster', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
191
+ }
278
192
 
279
- /**
280
- * Get VSS metadata by VM recovery point ID
281
- * The metadata documents of Volume Shadow Copy Service (VSS) writers and requesters are called VSS metadata. During a VSS backup operation, the VSS metadata is compressed into a cabinet file, which is in a .cab file format designed to store compressed files. This cabinet file must be saved to the backup media during a backup operation, as it will be required during a restore operation. This API returns the VSS metadata (cabinet file) of a VM recovery point under a composite recovery point that is identified by an external identifier. This external identifier was saved during the recovery point creation operation.
282
- * @param { String } recoveryPointExtId The external identifier that can be used to retrieve the recovery point using its URL.
283
- * @param { String } vmRecoveryPointExtId The external identifier that can be used to identify a VM recovery point.
284
- * @param {Object} args Additional Arguments
285
- * @return {Promise<GetVssMetadataApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetVssMetadataApiResponse } and HTTP response
286
- */
287
- }, {
288
- key: "getVssMetadataByVmRecoveryPointId",
289
- value: function getVssMetadataByVmRecoveryPointId(recoveryPointExtId, vmRecoveryPointExtId) {
290
- var _this6 = this;
291
- var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
292
- var postBody = null;
293
- // verify the required parameter 'recoveryPointExtId' is set
294
- if (typeof recoveryPointExtId === 'undefined' || recoveryPointExtId === null) {
295
- throw new Error("Missing the required parameter 'recoveryPointExtId' when calling getVssMetadataByVmRecoveryPointId");
193
+ /**
194
+ * Get a recovery point
195
+ * Query the recovery point identified by {extId}.
196
+ * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
197
+ * @param {Object} args Additional Arguments
198
+ * @return {Promise<GetRecoveryPointApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetRecoveryPointApiResponse } and HTTP response
199
+ */
200
+ getRecoveryPointById(extId, ...args) {
201
+ let argMap = args.length > 0 ? args[0] : {};
202
+ const postBody = null;
203
+ // verify the required parameter 'extId' is set
204
+ if (typeof extId === 'undefined' || extId === null) {
205
+ throw new Error("Missing the required parameter 'extId' when calling getRecoveryPointById");
206
+ }
207
+ const pathParams = {
208
+ 'extId': extId
209
+ };
210
+ const queryParams = {};
211
+ let headersToInclude = {};
212
+ Object.keys(argMap).forEach(header => {
213
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
214
+ headersToInclude[header] = argMap[header];
296
215
  }
297
- // verify the required parameter 'vmRecoveryPointExtId' is set
298
- if (typeof vmRecoveryPointExtId === 'undefined' || vmRecoveryPointExtId === null) {
299
- throw new Error("Missing the required parameter 'vmRecoveryPointExtId' when calling getVssMetadataByVmRecoveryPointId");
216
+ });
217
+ const headerParams = {
218
+ ...headersToInclude
219
+ };
220
+ const formParams = {};
221
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
222
+ const contentTypes = [];
223
+ const accepts = ['application/json'];
224
+ const returnType = _GetRecoveryPointApiResponse.default;
225
+ return this.apiClient.callApi('/api/dataprotection/v4.3/config/recovery-points/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
226
+ }
227
+
228
+ /**
229
+ * Get a VM recovery point
230
+ * Query the VM recovery point identified by {extId}.
231
+ * @param { String } recoveryPointExtId The external identifier that can be used to retrieve the recovery point using its URL.
232
+ * @param { String } extId The external identifier that can be used to identify a VM recovery point.
233
+ * @param {Object} args Additional Arguments
234
+ * @return {Promise<GetVmRecoveryPointApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetVmRecoveryPointApiResponse } and HTTP response
235
+ */
236
+ getVmRecoveryPointById(recoveryPointExtId, extId, ...args) {
237
+ let argMap = args.length > 0 ? args[0] : {};
238
+ const postBody = null;
239
+ // verify the required parameter 'recoveryPointExtId' is set
240
+ if (typeof recoveryPointExtId === 'undefined' || recoveryPointExtId === null) {
241
+ throw new Error("Missing the required parameter 'recoveryPointExtId' when calling getVmRecoveryPointById");
242
+ }
243
+ // verify the required parameter 'extId' is set
244
+ if (typeof extId === 'undefined' || extId === null) {
245
+ throw new Error("Missing the required parameter 'extId' when calling getVmRecoveryPointById");
246
+ }
247
+ const pathParams = {
248
+ 'recoveryPointExtId': recoveryPointExtId,
249
+ 'extId': extId
250
+ };
251
+ const queryParams = {};
252
+ let headersToInclude = {};
253
+ Object.keys(argMap).forEach(header => {
254
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
255
+ headersToInclude[header] = argMap[header];
300
256
  }
301
- var pathParams = {
302
- 'recoveryPointExtId': recoveryPointExtId,
303
- 'vmRecoveryPointExtId': vmRecoveryPointExtId
304
- };
305
- var queryParams = {};
306
- var headersToInclude = {};
307
- Object.keys(argMap).forEach(function (header) {
308
- if (!_classPrivateFieldGet(_headersToSkip, _this6).has(header.toLowerCase())) {
309
- headersToInclude[header] = argMap[header];
310
- }
311
- });
312
- var headerParams = _objectSpread({}, headersToInclude);
313
- var formParams = {};
314
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
315
- var contentTypes = [];
316
- var accepts = ['application/octet-stream', 'application/json'];
317
- var returnType = _GetVssMetadataApiResponse["default"];
318
- return this.apiClient.callApi('/api/dataprotection/v4.1/content/recovery-points/{recoveryPointExtId}/vm-recovery-points/{vmRecoveryPointExtId}/vss-metadata', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
257
+ });
258
+ const headerParams = {
259
+ ...headersToInclude
260
+ };
261
+ const formParams = {};
262
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
263
+ const contentTypes = [];
264
+ const accepts = ['application/json'];
265
+ const returnType = _GetVmRecoveryPointApiResponse.default;
266
+ return this.apiClient.callApi('/api/dataprotection/v4.3/config/recovery-points/{recoveryPointExtId}/vm-recovery-points/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
267
+ }
268
+
269
+ /**
270
+ * Get VSS metadata by VM recovery point ID
271
+ * The metadata documents of Volume Shadow Copy Service (VSS) writers and requesters are called VSS metadata. During a VSS backup operation, the VSS metadata is compressed into a cabinet file, which is in a .cab file format designed to store compressed files. This cabinet file must be saved to the backup media during a backup operation, as it is required during a restore operation. This API returns the VSS metadata (cabinet file) of a VM recovery point under a composite recovery point that is identified by an external identifier. This external identifier was saved during the recovery point creation operation.
272
+ * @param { String } recoveryPointExtId The external identifier that can be used to retrieve the recovery point using its URL.
273
+ * @param { String } vmRecoveryPointExtId The external identifier that can be used to identify a VM recovery point.
274
+ * @param {Object} args Additional Arguments
275
+ * @return {Promise<GetVssMetadataApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetVssMetadataApiResponse } and HTTP response
276
+ */
277
+ getVssMetadataByVmRecoveryPointId(recoveryPointExtId, vmRecoveryPointExtId, ...args) {
278
+ let argMap = args.length > 0 ? args[0] : {};
279
+ const postBody = null;
280
+ // verify the required parameter 'recoveryPointExtId' is set
281
+ if (typeof recoveryPointExtId === 'undefined' || recoveryPointExtId === null) {
282
+ throw new Error("Missing the required parameter 'recoveryPointExtId' when calling getVssMetadataByVmRecoveryPointId");
283
+ }
284
+ // verify the required parameter 'vmRecoveryPointExtId' is set
285
+ if (typeof vmRecoveryPointExtId === 'undefined' || vmRecoveryPointExtId === null) {
286
+ throw new Error("Missing the required parameter 'vmRecoveryPointExtId' when calling getVssMetadataByVmRecoveryPointId");
319
287
  }
288
+ const pathParams = {
289
+ 'recoveryPointExtId': recoveryPointExtId,
290
+ 'vmRecoveryPointExtId': vmRecoveryPointExtId
291
+ };
292
+ const queryParams = {};
293
+ let headersToInclude = {};
294
+ Object.keys(argMap).forEach(header => {
295
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
296
+ headersToInclude[header] = argMap[header];
297
+ }
298
+ });
299
+ const headerParams = {
300
+ ...headersToInclude
301
+ };
302
+ const formParams = {};
303
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
304
+ const contentTypes = [];
305
+ const accepts = ['application/octet-stream', 'application/json'];
306
+ const returnType = _GetVssMetadataApiResponse.default;
307
+ return this.apiClient.callApi('/api/dataprotection/v4.3/content/recovery-points/{recoveryPointExtId}/vm-recovery-points/{vmRecoveryPointExtId}/vss-metadata', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
308
+ }
320
309
 
321
- /**
322
- * List recovery points
323
- * List of recovery points.
324
- * @param {Object} opts Optional parameters defined for the operation
325
- * @param { String } opts.xClusterId Cluster type from which recovery points must be fetched. Valid values: [AOS, MST]
326
- * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
327
- * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
328
- * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
329
- * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
330
- * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
331
- * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
332
- * @param {Object} args Additional Arguments
333
- * @return {Promise<ListRecoveryPointsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListRecoveryPointsApiResponse } and HTTP response
334
- */
335
- }, {
336
- key: "listRecoveryPoints",
337
- value: function listRecoveryPoints(opts) {
338
- var _this7 = this;
339
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
340
- opts = opts || {};
341
- var postBody = null;
342
- var pathParams = {};
343
- var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
310
+ /**
311
+ * List recovery points
312
+ * List of recovery points.
313
+ * @param {Object} opts Optional parameters defined for the operation
314
+ * @param { String } opts.xClusterId Cluster type from which recovery points must be fetched. Valid values: [AOS, MST]
315
+ * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
316
+ * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
317
+ * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
318
+ * For example, filter **$filter=name eq 'karbon-ntnx-1.0'** would filter the result on cluster name 'karbon-ntnx1.0', filter **$filter=startswith(name, 'C')** would filter on cluster name starting with 'C'.
319
+ * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
320
+ * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
321
+ * @param {Object} args Additional Arguments
322
+ * @return {Promise<ListRecoveryPointsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListRecoveryPointsApiResponse } and HTTP response
323
+ */
324
+ listRecoveryPoints(opts, ...args) {
325
+ let argMap = args.length > 0 ? args[0] : {};
326
+ opts = opts || {};
327
+ const postBody = null;
328
+ const pathParams = {};
329
+ const queryParams = {
330
+ ...(opts.hasOwnProperty('$page') ? {
344
331
  '$page': opts['$page']
345
- } : {}), opts.hasOwnProperty('$limit') ? {
332
+ } : {}),
333
+ ...(opts.hasOwnProperty('$limit') ? {
346
334
  '$limit': opts['$limit']
347
- } : {}), opts.hasOwnProperty('$filter') ? {
335
+ } : {}),
336
+ ...(opts.hasOwnProperty('$filter') ? {
348
337
  '$filter': opts['$filter']
349
- } : {}), opts.hasOwnProperty('$orderby') ? {
338
+ } : {}),
339
+ ...(opts.hasOwnProperty('$orderby') ? {
350
340
  '$orderby': opts['$orderby']
351
- } : {}), opts.hasOwnProperty('$select') ? {
341
+ } : {}),
342
+ ...(opts.hasOwnProperty('$select') ? {
352
343
  '$select': opts['$select']
353
- } : {});
354
- var headersToInclude = {};
355
- Object.keys(argMap).forEach(function (header) {
356
- if (!_classPrivateFieldGet(_headersToSkip, _this7).has(header.toLowerCase())) {
357
- headersToInclude[header] = argMap[header];
358
- }
359
- });
360
- var headerParams = _objectSpread({
361
- 'X-Cluster-Id': opts['xClusterId']
362
- }, headersToInclude);
363
- var formParams = {};
364
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
365
- var contentTypes = [];
366
- var accepts = ['application/json'];
367
- var returnType = _ListRecoveryPointsApiResponse["default"];
368
- return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
369
- }
370
-
371
- /**
372
- * Replicate a recovery point
373
- * Replicate the recovery point identified by {extId}.&lt;br&gt; #### Task Completion Details &lt;br&gt; External identifier of the replicated recovery point can be found in the task completion details under the key &#x60;recoveryPointExtId&#x60;.
374
- * @param { Partial<RecoveryPointReplicationSpec> } body specification
375
- * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
376
- * @param {Object} args Additional Arguments
377
- * @return {Promise<RecoveryPointReplicateApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link RecoveryPointReplicateApiResponse } and HTTP response
378
- */
379
- }, {
380
- key: "replicateRecoveryPoint",
381
- value: function replicateRecoveryPoint(extId, body) {
382
- var _this8 = this;
383
- var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
384
- var postBody = null;
385
- if (body instanceof _RecoveryPointReplicationSpec["default"] && typeof body.toJson === 'function') {
386
- postBody = body.toJson();
387
- } else {
388
- postBody = body;
389
- }
390
- // verify the required parameter 'extId' is set
391
- if (typeof extId === 'undefined' || extId === null) {
392
- throw new Error("Missing the required parameter 'extId' when calling replicateRecoveryPoint");
393
- }
394
- // verify the required parameter 'body' is set
395
- if (typeof postBody === 'undefined' || postBody === null) {
396
- throw new Error("Invalid body when calling replicateRecoveryPoint");
344
+ } : {})
345
+ };
346
+ let headersToInclude = {};
347
+ Object.keys(argMap).forEach(header => {
348
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
349
+ headersToInclude[header] = argMap[header];
397
350
  }
398
- var pathParams = {
399
- 'extId': extId
400
- };
401
- var queryParams = {};
402
- var headersToInclude = {};
403
- Object.keys(argMap).forEach(function (header) {
404
- if (!_classPrivateFieldGet(_headersToSkip, _this8).has(header.toLowerCase())) {
405
- headersToInclude[header] = argMap[header];
406
- }
407
- });
408
- var headerParams = _objectSpread({}, headersToInclude);
409
- var formParams = {};
410
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
411
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
412
- var contentTypes = ['application/json'];
413
- var accepts = ['application/json'];
414
- var returnType = _RecoveryPointReplicateApiResponse["default"];
415
- return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points/{extId}/$actions/replicate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
416
- }
351
+ });
352
+ const headerParams = {
353
+ 'X-Cluster-Id': opts['xClusterId'],
354
+ ...headersToInclude
355
+ };
356
+ const formParams = {};
357
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
358
+ const contentTypes = [];
359
+ const accepts = ['application/json'];
360
+ const returnType = _ListRecoveryPointsApiResponse.default;
361
+ return this.apiClient.callApi('/api/dataprotection/v4.3/config/recovery-points', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
362
+ }
417
363
 
418
- /**
419
- * Restore recovery point
420
- * Restore a recovery point identified by {extId}.&lt;br&gt; #### Task Completion Details &lt;br&gt; A comma separated list of the created VM and volume group external identifiers can be found in the task completion details under the keys &#x60;vmExtIds&#x60; and &#x60;volumeGroupExtIds&#x60; respectively.
421
- * @param { Partial<RecoveryPointRestorationSpec> } body specification
422
- * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
423
- * @param {Object} args Additional Arguments
424
- * @return {Promise<RecoveryPointRestoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link RecoveryPointRestoreApiResponse } and HTTP response
425
- */
426
- }, {
427
- key: "restoreRecoveryPoint",
428
- value: function restoreRecoveryPoint(extId, body) {
429
- var _this9 = this;
430
- var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
431
- var postBody = null;
432
- if (body instanceof _RecoveryPointRestorationSpec["default"] && typeof body.toJson === 'function') {
433
- postBody = body.toJson();
434
- } else {
435
- postBody = body;
436
- }
437
- // verify the required parameter 'extId' is set
438
- if (typeof extId === 'undefined' || extId === null) {
439
- throw new Error("Missing the required parameter 'extId' when calling restoreRecoveryPoint");
440
- }
441
- var pathParams = {
442
- 'extId': extId
443
- };
444
- var queryParams = {};
445
- var headersToInclude = {};
446
- Object.keys(argMap).forEach(function (header) {
447
- if (!_classPrivateFieldGet(_headersToSkip, _this9).has(header.toLowerCase())) {
448
- headersToInclude[header] = argMap[header];
449
- }
450
- });
451
- var headerParams = _objectSpread({}, headersToInclude);
452
- var formParams = {};
453
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
454
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
455
- var contentTypes = ['application/json'];
456
- var accepts = ['application/json'];
457
- var returnType = _RecoveryPointRestoreApiResponse["default"];
458
- return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points/{extId}/$actions/restore', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
364
+ /**
365
+ * Replicate a recovery point
366
+ * Replicate the recovery point identified by {extId}.&lt;br&gt; #### Task Completion Details &lt;br&gt; External identifier of the replicated recovery point can be found in the task completion details under the key &#x60;recoveryPointExtId&#x60;.
367
+ * @param { Partial<RecoveryPointReplicationSpec> } body specification
368
+ * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
369
+ * @param {Object} args Additional Arguments
370
+ * @return {Promise<RecoveryPointReplicateApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link RecoveryPointReplicateApiResponse } and HTTP response
371
+ */
372
+ replicateRecoveryPoint(extId, body, ...args) {
373
+ let argMap = args.length > 0 ? args[0] : {};
374
+ let postBody = null;
375
+ if (body instanceof _RecoveryPointReplicationSpec.default && typeof body.toJson === 'function') {
376
+ postBody = body.toJson();
377
+ } else {
378
+ postBody = body;
459
379
  }
460
-
461
- /**
462
- * Set the expiration time of the recovery point
463
- * Set the expiration time for the recovery point identified by {extId}.
464
- * @param { Required<Pick<ExpirationTimeSpec, 'expirationTime'>> & Partial<ExpirationTimeSpec> } body specification
465
- * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
466
- * @param {Object} args Additional Arguments
467
- * @return {Promise<UpdateRecoveryPointExpirationTimeApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateRecoveryPointExpirationTimeApiResponse } and HTTP response
468
- */
469
- }, {
470
- key: "setRecoveryPointExpirationTime",
471
- value: function setRecoveryPointExpirationTime(extId, body) {
472
- var _this0 = this;
473
- var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
474
- var postBody = null;
475
- if (body instanceof _ExpirationTimeSpec["default"] && typeof body.toJson === 'function') {
476
- postBody = body.toJson();
477
- } else {
478
- postBody = body;
479
- }
480
- // verify the required parameter 'extId' is set
481
- if (typeof extId === 'undefined' || extId === null) {
482
- throw new Error("Missing the required parameter 'extId' when calling setRecoveryPointExpirationTime");
483
- }
484
- // verify the required parameter 'body' is set
485
- if (typeof postBody === 'undefined' || postBody === null) {
486
- throw new Error("Invalid body when calling setRecoveryPointExpirationTime");
487
- }
488
- var pathParams = {
489
- 'extId': extId
490
- };
491
- var queryParams = {};
492
- var headersToInclude = {};
493
- Object.keys(argMap).forEach(function (header) {
494
- if (!_classPrivateFieldGet(_headersToSkip, _this0).has(header.toLowerCase())) {
495
- headersToInclude[header] = argMap[header];
496
- }
497
- });
498
- var headerParams = _objectSpread({}, headersToInclude);
499
- var formParams = {};
500
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
501
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
502
- var contentTypes = ['application/json'];
503
- var accepts = ['application/json'];
504
- var returnType = _UpdateRecoveryPointExpirationTimeApiResponse["default"];
505
- return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points/{extId}/$actions/set-expiration-time', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
380
+ // verify the required parameter 'extId' is set
381
+ if (typeof extId === 'undefined' || extId === null) {
382
+ throw new Error("Missing the required parameter 'extId' when calling replicateRecoveryPoint");
506
383
  }
507
-
508
- /**
509
- * Compute VM recovery points changed regions
510
- * Displays the calculated metadata with the changed region details between any two VM disk recovery points of a file. This API can be used for incremental and differential backups, as well as for a full backup, because it indicates the regions that are zeros, helping to avoid copying zero regions.
511
- * @param { Partial<VmRecoveryPointChangedRegionsComputeSpec> } body specification
512
- * @param { String } recoveryPointExtId The external identifier that can be used to retrieve the recovery point using its URL.
513
- * @param { String } vmRecoveryPointExtId The external identifier that can be used to identify a VM recovery point.
514
- * @param { String } extId Disk recovery point identifier.
515
- * @param {Object} args Additional Arguments
516
- * @return {Promise<ChangedVmRegionsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ChangedVmRegionsApiResponse } and HTTP response
517
- */
518
- }, {
519
- key: "vmRecoveryPointComputeChangedRegions",
520
- value: function vmRecoveryPointComputeChangedRegions(recoveryPointExtId, vmRecoveryPointExtId, extId, body) {
521
- var _this1 = this;
522
- var argMap = (arguments.length <= 4 ? 0 : arguments.length - 4) > 0 ? arguments.length <= 4 ? undefined : arguments[4] : {};
523
- var postBody = null;
524
- if (body instanceof _VmRecoveryPointChangedRegionsComputeSpec["default"] && typeof body.toJson === 'function') {
525
- postBody = body.toJson();
526
- } else {
527
- postBody = body;
528
- }
529
- // verify the required parameter 'recoveryPointExtId' is set
530
- if (typeof recoveryPointExtId === 'undefined' || recoveryPointExtId === null) {
531
- throw new Error("Missing the required parameter 'recoveryPointExtId' when calling vmRecoveryPointComputeChangedRegions");
532
- }
533
- // verify the required parameter 'vmRecoveryPointExtId' is set
534
- if (typeof vmRecoveryPointExtId === 'undefined' || vmRecoveryPointExtId === null) {
535
- throw new Error("Missing the required parameter 'vmRecoveryPointExtId' when calling vmRecoveryPointComputeChangedRegions");
536
- }
537
- // verify the required parameter 'extId' is set
538
- if (typeof extId === 'undefined' || extId === null) {
539
- throw new Error("Missing the required parameter 'extId' when calling vmRecoveryPointComputeChangedRegions");
540
- }
541
- // verify the required parameter 'body' is set
542
- if (typeof postBody === 'undefined' || postBody === null) {
543
- throw new Error("Invalid body when calling vmRecoveryPointComputeChangedRegions");
544
- }
545
- var pathParams = {
546
- 'recoveryPointExtId': recoveryPointExtId,
547
- 'vmRecoveryPointExtId': vmRecoveryPointExtId,
548
- 'extId': extId
549
- };
550
- var queryParams = {};
551
- var headersToInclude = {};
552
- Object.keys(argMap).forEach(function (header) {
553
- if (!_classPrivateFieldGet(_headersToSkip, _this1).has(header.toLowerCase())) {
554
- headersToInclude[header] = argMap[header];
555
- }
556
- });
557
- var headerParams = _objectSpread({}, headersToInclude);
558
- var formParams = {};
559
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
560
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
561
- var contentTypes = ['application/json'];
562
- var accepts = ['application/json'];
563
- var returnType = _ChangedVmRegionsApiResponse["default"];
564
- return this.apiClient.callApi('/api/dataprotection/v4.1/content/recovery-points/{recoveryPointExtId}/vm-recovery-points/{vmRecoveryPointExtId}/disk-recovery-points/{extId}/$actions/compute-changed-regions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
384
+ // verify the required parameter 'body' is set
385
+ if (typeof postBody === 'undefined' || postBody === null) {
386
+ throw new Error("Invalid body when calling replicateRecoveryPoint");
565
387
  }
566
-
567
- /**
568
- * Compute Volume Group recovery points changed regions
569
- * Displays the calculated metadata with the changed region details between any two volume group disk recovery points of a file. This API can be used for incremental and differential backups, as well as for a full backup, because it indicates the regions that are zeros, helping to avoid copying zero regions.
570
- * @param { Partial<VolumeGroupRecoveryPointChangedRegionsComputeSpec> } body specification
571
- * @param { String } recoveryPointExtId The external identifier that can be used to retrieve the recovery point using its URL.
572
- * @param { String } volumeGroupRecoveryPointExtId External identifier of the volume group recovery point.
573
- * @param { String } extId Disk recovery point identifier.
574
- * @param {Object} args Additional Arguments
575
- * @return {Promise<ChangedVolumeGroupRegionsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ChangedVolumeGroupRegionsApiResponse } and HTTP response
576
- */
577
- }, {
578
- key: "volumeGroupRecoveryPointComputeChangedRegions",
579
- value: function volumeGroupRecoveryPointComputeChangedRegions(recoveryPointExtId, volumeGroupRecoveryPointExtId, extId, body) {
580
- var _this10 = this;
581
- var argMap = (arguments.length <= 4 ? 0 : arguments.length - 4) > 0 ? arguments.length <= 4 ? undefined : arguments[4] : {};
582
- var postBody = null;
583
- if (body instanceof _VolumeGroupRecoveryPointChangedRegionsComputeSpec["default"] && typeof body.toJson === 'function') {
584
- postBody = body.toJson();
585
- } else {
586
- postBody = body;
388
+ const pathParams = {
389
+ 'extId': extId
390
+ };
391
+ const queryParams = {};
392
+ let headersToInclude = {};
393
+ Object.keys(argMap).forEach(header => {
394
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
395
+ headersToInclude[header] = argMap[header];
587
396
  }
588
- // verify the required parameter 'recoveryPointExtId' is set
589
- if (typeof recoveryPointExtId === 'undefined' || recoveryPointExtId === null) {
590
- throw new Error("Missing the required parameter 'recoveryPointExtId' when calling volumeGroupRecoveryPointComputeChangedRegions");
591
- }
592
- // verify the required parameter 'volumeGroupRecoveryPointExtId' is set
593
- if (typeof volumeGroupRecoveryPointExtId === 'undefined' || volumeGroupRecoveryPointExtId === null) {
594
- throw new Error("Missing the required parameter 'volumeGroupRecoveryPointExtId' when calling volumeGroupRecoveryPointComputeChangedRegions");
397
+ });
398
+ const headerParams = {
399
+ ...headersToInclude
400
+ };
401
+ const formParams = {};
402
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
403
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
404
+ const contentTypes = ['application/json'];
405
+ const accepts = ['application/json'];
406
+ const returnType = _RecoveryPointReplicateApiResponse.default;
407
+ return this.apiClient.callApi('/api/dataprotection/v4.3/config/recovery-points/{extId}/$actions/replicate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
408
+ }
409
+
410
+ /**
411
+ * Restore recovery point
412
+ * Restore a recovery point identified by {extId}.&lt;br&gt; #### Task Completion Details &lt;br&gt; A comma separated list of the created VM and volume group external identifiers can be found in the task completion details under the keys &#x60;vmExtIds&#x60; and &#x60;volumeGroupExtIds&#x60; respectively.
413
+ * @param { Partial<RecoveryPointRestorationSpec> } body specification
414
+ * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
415
+ * @param {Object} args Additional Arguments
416
+ * @return {Promise<RecoveryPointRestoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link RecoveryPointRestoreApiResponse } and HTTP response
417
+ */
418
+ restoreRecoveryPoint(extId, body, ...args) {
419
+ let argMap = args.length > 0 ? args[0] : {};
420
+ let postBody = null;
421
+ if (body instanceof _RecoveryPointRestorationSpec.default && typeof body.toJson === 'function') {
422
+ postBody = body.toJson();
423
+ } else {
424
+ postBody = body;
425
+ }
426
+ // verify the required parameter 'extId' is set
427
+ if (typeof extId === 'undefined' || extId === null) {
428
+ throw new Error("Missing the required parameter 'extId' when calling restoreRecoveryPoint");
429
+ }
430
+ const pathParams = {
431
+ 'extId': extId
432
+ };
433
+ const queryParams = {};
434
+ let headersToInclude = {};
435
+ Object.keys(argMap).forEach(header => {
436
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
437
+ headersToInclude[header] = argMap[header];
595
438
  }
596
- // verify the required parameter 'extId' is set
597
- if (typeof extId === 'undefined' || extId === null) {
598
- throw new Error("Missing the required parameter 'extId' when calling volumeGroupRecoveryPointComputeChangedRegions");
439
+ });
440
+ const headerParams = {
441
+ ...headersToInclude
442
+ };
443
+ const formParams = {};
444
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
445
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
446
+ const contentTypes = ['application/json'];
447
+ const accepts = ['application/json'];
448
+ const returnType = _RecoveryPointRestoreApiResponse.default;
449
+ return this.apiClient.callApi('/api/dataprotection/v4.3/config/recovery-points/{extId}/$actions/restore', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
450
+ }
451
+
452
+ /**
453
+ * Set the expiration time of the recovery point
454
+ * Set the expiration time for the recovery point identified by {extId}.
455
+ * @param { Required<Pick<ExpirationTimeSpec, 'expirationTime'>> & Partial<ExpirationTimeSpec> } body specification
456
+ * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
457
+ * @param {Object} args Additional Arguments
458
+ * @return {Promise<UpdateRecoveryPointExpirationTimeApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateRecoveryPointExpirationTimeApiResponse } and HTTP response
459
+ */
460
+ setRecoveryPointExpirationTime(extId, body, ...args) {
461
+ let argMap = args.length > 0 ? args[0] : {};
462
+ let postBody = null;
463
+ if (body instanceof _ExpirationTimeSpec.default && typeof body.toJson === 'function') {
464
+ postBody = body.toJson();
465
+ } else {
466
+ postBody = body;
467
+ }
468
+ // verify the required parameter 'extId' is set
469
+ if (typeof extId === 'undefined' || extId === null) {
470
+ throw new Error("Missing the required parameter 'extId' when calling setRecoveryPointExpirationTime");
471
+ }
472
+ // verify the required parameter 'body' is set
473
+ if (typeof postBody === 'undefined' || postBody === null) {
474
+ throw new Error("Invalid body when calling setRecoveryPointExpirationTime");
475
+ }
476
+ const pathParams = {
477
+ 'extId': extId
478
+ };
479
+ const queryParams = {};
480
+ let headersToInclude = {};
481
+ Object.keys(argMap).forEach(header => {
482
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
483
+ headersToInclude[header] = argMap[header];
599
484
  }
600
- // verify the required parameter 'body' is set
601
- if (typeof postBody === 'undefined' || postBody === null) {
602
- throw new Error("Invalid body when calling volumeGroupRecoveryPointComputeChangedRegions");
485
+ });
486
+ const headerParams = {
487
+ ...headersToInclude
488
+ };
489
+ const formParams = {};
490
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
491
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
492
+ const contentTypes = ['application/json'];
493
+ const accepts = ['application/json'];
494
+ const returnType = _UpdateRecoveryPointExpirationTimeApiResponse.default;
495
+ return this.apiClient.callApi('/api/dataprotection/v4.3/config/recovery-points/{extId}/$actions/set-expiration-time', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
496
+ }
497
+
498
+ /**
499
+ * Compute VM recovery points changed regions
500
+ * Displays the calculated metadata with the changed region details between any two VM disk recovery points of a file. This API can be used for incremental and differential backups, as well as for a full backup, because it indicates the regions that are zeros, helping to avoid copying zero regions.
501
+ * @param { Partial<VmRecoveryPointChangedRegionsComputeSpec> } body specification
502
+ * @param { String } recoveryPointExtId The external identifier that can be used to retrieve the recovery point using its URL.
503
+ * @param { String } vmRecoveryPointExtId The external identifier that can be used to identify a VM recovery point.
504
+ * @param { String } extId Disk recovery point identifier.
505
+ * @param {Object} args Additional Arguments
506
+ * @return {Promise<ChangedVmRegionsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ChangedVmRegionsApiResponse } and HTTP response
507
+ */
508
+ vmRecoveryPointComputeChangedRegions(recoveryPointExtId, vmRecoveryPointExtId, extId, body, ...args) {
509
+ let argMap = args.length > 0 ? args[0] : {};
510
+ let postBody = null;
511
+ if (body instanceof _VmRecoveryPointChangedRegionsComputeSpec.default && typeof body.toJson === 'function') {
512
+ postBody = body.toJson();
513
+ } else {
514
+ postBody = body;
515
+ }
516
+ // verify the required parameter 'recoveryPointExtId' is set
517
+ if (typeof recoveryPointExtId === 'undefined' || recoveryPointExtId === null) {
518
+ throw new Error("Missing the required parameter 'recoveryPointExtId' when calling vmRecoveryPointComputeChangedRegions");
519
+ }
520
+ // verify the required parameter 'vmRecoveryPointExtId' is set
521
+ if (typeof vmRecoveryPointExtId === 'undefined' || vmRecoveryPointExtId === null) {
522
+ throw new Error("Missing the required parameter 'vmRecoveryPointExtId' when calling vmRecoveryPointComputeChangedRegions");
523
+ }
524
+ // verify the required parameter 'extId' is set
525
+ if (typeof extId === 'undefined' || extId === null) {
526
+ throw new Error("Missing the required parameter 'extId' when calling vmRecoveryPointComputeChangedRegions");
527
+ }
528
+ // verify the required parameter 'body' is set
529
+ if (typeof postBody === 'undefined' || postBody === null) {
530
+ throw new Error("Invalid body when calling vmRecoveryPointComputeChangedRegions");
531
+ }
532
+ const pathParams = {
533
+ 'recoveryPointExtId': recoveryPointExtId,
534
+ 'vmRecoveryPointExtId': vmRecoveryPointExtId,
535
+ 'extId': extId
536
+ };
537
+ const queryParams = {};
538
+ let headersToInclude = {};
539
+ Object.keys(argMap).forEach(header => {
540
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
541
+ headersToInclude[header] = argMap[header];
603
542
  }
604
- var pathParams = {
605
- 'recoveryPointExtId': recoveryPointExtId,
606
- 'volumeGroupRecoveryPointExtId': volumeGroupRecoveryPointExtId,
607
- 'extId': extId
608
- };
609
- var queryParams = {};
610
- var headersToInclude = {};
611
- Object.keys(argMap).forEach(function (header) {
612
- if (!_classPrivateFieldGet(_headersToSkip, _this10).has(header.toLowerCase())) {
613
- headersToInclude[header] = argMap[header];
614
- }
615
- });
616
- var headerParams = _objectSpread({}, headersToInclude);
617
- var formParams = {};
618
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
619
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
620
- var contentTypes = ['application/json'];
621
- var accepts = ['application/json'];
622
- var returnType = _ChangedVolumeGroupRegionsApiResponse["default"];
623
- return this.apiClient.callApi('/api/dataprotection/v4.1/content/recovery-points/{recoveryPointExtId}/volume-group-recovery-points/{volumeGroupRecoveryPointExtId}/disk-recovery-points/{extId}/$actions/compute-changed-regions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
543
+ });
544
+ const headerParams = {
545
+ ...headersToInclude
546
+ };
547
+ const formParams = {};
548
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
549
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
550
+ const contentTypes = ['application/json'];
551
+ const accepts = ['application/json'];
552
+ const returnType = _ChangedVmRegionsApiResponse.default;
553
+ return this.apiClient.callApi('/api/dataprotection/v4.3/content/recovery-points/{recoveryPointExtId}/vm-recovery-points/{vmRecoveryPointExtId}/disk-recovery-points/{extId}/$actions/compute-changed-regions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
554
+ }
555
+
556
+ /**
557
+ * Compute Volume Group recovery points changed regions
558
+ * Displays the calculated metadata with the changed region details between any two volume group disk recovery points of a file. This API can be used for incremental and differential backups, as well as for a full backup, because it indicates the regions that are zeros, helping to avoid copying zero regions.
559
+ * @param { Partial<VolumeGroupRecoveryPointChangedRegionsComputeSpec> } body specification
560
+ * @param { String } recoveryPointExtId The external identifier that can be used to retrieve the recovery point using its URL.
561
+ * @param { String } volumeGroupRecoveryPointExtId External identifier of the volume group recovery point.
562
+ * @param { String } extId Disk recovery point identifier.
563
+ * @param {Object} args Additional Arguments
564
+ * @return {Promise<ChangedVolumeGroupRegionsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ChangedVolumeGroupRegionsApiResponse } and HTTP response
565
+ */
566
+ volumeGroupRecoveryPointComputeChangedRegions(recoveryPointExtId, volumeGroupRecoveryPointExtId, extId, body, ...args) {
567
+ let argMap = args.length > 0 ? args[0] : {};
568
+ let postBody = null;
569
+ if (body instanceof _VolumeGroupRecoveryPointChangedRegionsComputeSpec.default && typeof body.toJson === 'function') {
570
+ postBody = body.toJson();
571
+ } else {
572
+ postBody = body;
573
+ }
574
+ // verify the required parameter 'recoveryPointExtId' is set
575
+ if (typeof recoveryPointExtId === 'undefined' || recoveryPointExtId === null) {
576
+ throw new Error("Missing the required parameter 'recoveryPointExtId' when calling volumeGroupRecoveryPointComputeChangedRegions");
577
+ }
578
+ // verify the required parameter 'volumeGroupRecoveryPointExtId' is set
579
+ if (typeof volumeGroupRecoveryPointExtId === 'undefined' || volumeGroupRecoveryPointExtId === null) {
580
+ throw new Error("Missing the required parameter 'volumeGroupRecoveryPointExtId' when calling volumeGroupRecoveryPointComputeChangedRegions");
624
581
  }
625
- }], [{
626
- key: "ApiClient",
627
- get:
628
- /**
629
- * Make the default {@link ApiClient} class available for developers to be able to extend it and bring
630
- * their own fetch methods into the SDK
631
- */
632
- function get() {
633
- return _ApiClient.ApiClient;
582
+ // verify the required parameter 'extId' is set
583
+ if (typeof extId === 'undefined' || extId === null) {
584
+ throw new Error("Missing the required parameter 'extId' when calling volumeGroupRecoveryPointComputeChangedRegions");
634
585
  }
635
- }]);
636
- }();
586
+ // verify the required parameter 'body' is set
587
+ if (typeof postBody === 'undefined' || postBody === null) {
588
+ throw new Error("Invalid body when calling volumeGroupRecoveryPointComputeChangedRegions");
589
+ }
590
+ const pathParams = {
591
+ 'recoveryPointExtId': recoveryPointExtId,
592
+ 'volumeGroupRecoveryPointExtId': volumeGroupRecoveryPointExtId,
593
+ 'extId': extId
594
+ };
595
+ const queryParams = {};
596
+ let headersToInclude = {};
597
+ Object.keys(argMap).forEach(header => {
598
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
599
+ headersToInclude[header] = argMap[header];
600
+ }
601
+ });
602
+ const headerParams = {
603
+ ...headersToInclude
604
+ };
605
+ const formParams = {};
606
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
607
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
608
+ const contentTypes = ['application/json'];
609
+ const accepts = ['application/json'];
610
+ const returnType = _ChangedVolumeGroupRegionsApiResponse.default;
611
+ return this.apiClient.callApi('/api/dataprotection/v4.3/content/recovery-points/{recoveryPointExtId}/volume-group-recovery-points/{volumeGroupRecoveryPointExtId}/disk-recovery-points/{extId}/$actions/compute-changed-regions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
612
+ }
613
+ }
614
+ exports.RecoveryPointsApi = RecoveryPointsApi;