@nutanix-scratch/dataprotection-js-client 4.0.1-alpha.4 → 4.0.1-beta.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 (483) hide show
  1. package/README.md +35 -28
  2. package/dist/Ntnx-Dataprotection-js-client-prod.js +1 -11
  3. package/dist/Ntnx-Dataprotection-js-client.js +530 -1501
  4. package/dist/es/ApiClient.d.ts +2 -1
  5. package/dist/es/ApiClient.js +401 -246
  6. package/dist/es/Paginable.d.ts +1 -1
  7. package/dist/es/Paginable.js +17 -19
  8. package/dist/es/apis/protectedresources-endpoints.d.ts +52 -0
  9. package/dist/es/apis/protectedresources-endpoints.js +192 -0
  10. package/dist/es/apis/recoverypoints-endpoints.d.ts +126 -0
  11. package/dist/es/apis/recoverypoints-endpoints.js +394 -0
  12. package/dist/es/index.d.ts +55 -87
  13. package/dist/es/index.js +169 -298
  14. package/dist/es/models/common/v1/config/Flag.d.ts +5 -5
  15. package/dist/es/models/common/v1/config/Flag.js +25 -27
  16. package/dist/es/models/common/v1/config/IPv4Address.d.ts +5 -5
  17. package/dist/es/models/common/v1/config/IPv4Address.js +25 -27
  18. package/dist/es/models/common/v1/config/KVPair.d.ts +5 -5
  19. package/dist/es/models/common/v1/config/KVPair.js +28 -30
  20. package/dist/es/models/common/v1/config/Message.d.ts +5 -5
  21. package/dist/es/models/common/v1/config/Message.js +25 -27
  22. package/dist/es/models/common/v1/config/MessageSeverity.js +9 -10
  23. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +8 -8
  24. package/dist/es/models/common/v1/config/TenantAwareModel.js +29 -31
  25. package/dist/es/models/common/v1/response/ApiLink.d.ts +5 -5
  26. package/dist/es/models/common/v1/response/ApiLink.js +26 -28
  27. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +8 -8
  28. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +29 -31
  29. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +5 -5
  30. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +36 -39
  31. package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +2 -14
  32. package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.js +33 -81
  33. package/dist/es/models/dataprotection/v4/common/RecoveryPointStatus.js +3 -4
  34. package/dist/es/models/dataprotection/v4/common/RecoveryPointType.js +3 -4
  35. package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +5 -5
  36. package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.js +31 -31
  37. package/dist/es/models/dataprotection/v4/config/AmazonS3Bucket.d.ts +62 -0
  38. package/dist/es/models/{storage/v4/config/Task.js → dataprotection/v4/config/AmazonS3Bucket.js} +101 -72
  39. package/dist/es/models/dataprotection/v4/config/AzureBlobStorageContainer.d.ts +62 -0
  40. package/dist/{lib/models/storage/v4/config/Task.js → es/models/dataprotection/v4/config/AzureBlobStorageContainer.js} +101 -72
  41. package/dist/es/models/dataprotection/v4/config/Category.d.ts +17 -11
  42. package/dist/es/models/dataprotection/v4/config/Category.js +33 -29
  43. package/dist/es/models/dataprotection/v4/config/ClusterReference.d.ts +12 -9
  44. package/dist/es/models/dataprotection/v4/config/ClusterReference.js +29 -28
  45. package/dist/es/models/{storage/v4/config/Task.d.ts → dataprotection/v4/config/ComputeChangedRegionsResponse.d.ts} +17 -19
  46. package/dist/es/models/dataprotection/v4/config/ComputeChangedRegionsResponse.js +262 -0
  47. package/dist/{lib/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.d.ts → es/models/dataprotection/v4/config/ComputeChangedRegionsResponseModel.d.ts} +12 -12
  48. package/dist/es/models/dataprotection/v4/config/{WitnessApiResponse.js → ComputeChangedRegionsResponseModel.js} +57 -60
  49. package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.d.ts +39 -7
  50. package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.js +123 -42
  51. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +18 -26
  52. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.js +48 -88
  53. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +3 -4
  54. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +15 -22
  55. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +65 -69
  56. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +5 -1
  57. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.js +39 -35
  58. package/dist/es/models/dataprotection/v4/config/{VmRecoveryPointRestoreApiResponse.d.ts → CreateConsistencyGroupApiResponse.d.ts} +12 -12
  59. package/dist/{lib/models/dataprotection/v4/config/ConsistencyGroupApiResponse.js → es/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.js} +54 -57
  60. package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +5 -5
  61. package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +35 -42
  62. package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +10 -10
  63. package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.js +44 -46
  64. package/dist/es/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.d.ts +5 -5
  65. package/dist/es/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.js +35 -38
  66. package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +5 -5
  67. package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +35 -42
  68. package/dist/es/models/dataprotection/v4/config/DisasterRecoveryLocation.d.ts +12 -9
  69. package/dist/es/models/dataprotection/v4/config/DisasterRecoveryLocation.js +29 -28
  70. package/dist/es/models/dataprotection/v4/config/DiskRecoveryPoint.d.ts +44 -19
  71. package/dist/es/models/dataprotection/v4/config/DiskRecoveryPoint.js +137 -105
  72. package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +5 -5
  73. package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +31 -31
  74. package/dist/es/models/dataprotection/v4/config/ExpirationTimeSpec.d.ts +60 -0
  75. package/dist/es/models/dataprotection/v4/config/{SetExpirationTimeSpec.js → ExpirationTimeSpec.js} +51 -50
  76. package/dist/es/models/dataprotection/v4/config/{ConsistencyGroupListApiResponse.d.ts → GetProtectedResourceApiResponse.d.ts} +12 -12
  77. package/dist/{lib/models/dataprotection/v4/config/ProtectedResourceApiResponse.js → es/models/dataprotection/v4/config/GetProtectedResourceApiResponse.js} +54 -57
  78. package/dist/{lib/models/dataprotection/v4/config/ConsistencyGroupApiResponse.d.ts → es/models/dataprotection/v4/config/GetRecoveryPointApiResponse.d.ts} +12 -12
  79. package/dist/{lib/models/dataprotection/v4/config/RecoveryPointApiResponse.js → es/models/dataprotection/v4/config/GetRecoveryPointApiResponse.js} +54 -57
  80. package/dist/es/models/dataprotection/v4/config/HostReference.d.ts +2 -2
  81. package/dist/es/models/dataprotection/v4/config/HostReference.js +34 -34
  82. package/dist/es/models/dataprotection/v4/config/HostType.js +3 -4
  83. package/dist/es/models/dataprotection/v4/config/IpAddress.d.ts +12 -9
  84. package/dist/es/models/dataprotection/v4/config/IpAddress.js +29 -28
  85. package/dist/{lib/models/dataprotection/v4/config/ChangedRegionsListApiResponse.d.ts → es/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.d.ts} +12 -12
  86. package/dist/{lib/models/dataprotection/v4/config/RecoveryPointListApiResponse.js → es/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.js} +59 -57
  87. package/dist/es/models/dataprotection/v4/config/LocationReference.d.ts +8 -8
  88. package/dist/es/models/dataprotection/v4/config/LocationReference.js +30 -32
  89. package/dist/es/models/dataprotection/v4/config/{ConsistencyGroupMigrateApiResponse.d.ts → MigrateConsistencyGroupApiResponse.d.ts} +12 -12
  90. package/dist/{lib/models/dataprotection/v4/config/WitnessApiResponse.js → es/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.js} +57 -60
  91. package/dist/es/models/dataprotection/v4/config/NutanixObjectsBucket.d.ts +50 -0
  92. package/dist/es/models/dataprotection/v4/config/NutanixObjectsBucket.js +245 -0
  93. package/dist/{lib/models/dataprotection/v4/config/HypervisorType.d.ts → es/models/dataprotection/v4/config/ObjectStorageType.d.ts} +6 -6
  94. package/dist/{lib/models/dataprotection/v4/config/HypervisorType.js → es/models/dataprotection/v4/config/ObjectStorageType.js} +26 -27
  95. package/dist/es/models/dataprotection/v4/config/{ValidationSeverity.d.ts → ProtectedEntityType.d.ts} +6 -6
  96. package/dist/{lib/models/dataprotection/v4/config/ProtectedResourceEntityType.js → es/models/dataprotection/v4/config/ProtectedEntityType.js} +21 -22
  97. package/dist/es/models/dataprotection/v4/config/ProtectedResource.d.ts +21 -9
  98. package/dist/es/models/dataprotection/v4/config/ProtectedResource.js +111 -62
  99. package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +5 -5
  100. package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +35 -38
  101. package/dist/es/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +11 -24
  102. package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +5 -5
  103. package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +35 -38
  104. package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +24 -9
  105. package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +95 -31
  106. package/dist/es/models/dataprotection/v4/config/RecoveryInfo.d.ts +5 -5
  107. package/dist/es/models/dataprotection/v4/config/RecoveryInfo.js +25 -27
  108. package/dist/es/models/dataprotection/v4/config/RecoveryPoint.d.ts +14 -44
  109. package/dist/es/models/dataprotection/v4/config/RecoveryPoint.js +59 -167
  110. package/dist/es/models/dataprotection/v4/config/RecoveryPointProjection.d.ts +9 -0
  111. package/dist/es/models/dataprotection/v4/config/RecoveryPointProjection.js +132 -0
  112. package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +5 -5
  113. package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +35 -42
  114. package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +37 -18
  115. package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +114 -91
  116. package/dist/es/models/dataprotection/v4/config/RecoveryPointRepository.d.ts +52 -0
  117. package/dist/es/models/dataprotection/v4/config/RecoveryPointRepository.js +323 -0
  118. package/dist/es/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.d.ts +9 -0
  119. package/dist/es/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.js +129 -0
  120. package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +14 -14
  121. package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +42 -44
  122. package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +5 -5
  123. package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +35 -42
  124. package/dist/es/models/dataprotection/v4/config/RedirectionResponse.d.ts +60 -0
  125. package/dist/es/models/dataprotection/v4/config/RedirectionResponse.js +279 -0
  126. package/dist/es/models/dataprotection/v4/config/Region.d.ts +91 -0
  127. package/dist/{lib/models/dataprotection/v4/config/Regions.js → es/models/dataprotection/v4/config/Region.js} +107 -58
  128. package/dist/es/models/dataprotection/v4/config/RegionResponse.d.ts +60 -0
  129. package/dist/es/models/dataprotection/v4/config/{ChangedRegions.js → RegionResponse.js} +58 -58
  130. package/dist/es/models/dataprotection/v4/config/{PowerState.d.ts → RegionType.d.ts} +6 -6
  131. package/dist/es/models/dataprotection/v4/config/{PowerState.js → RegionType.js} +23 -24
  132. package/dist/es/models/dataprotection/v4/config/ReplicationState.d.ts +19 -17
  133. package/dist/es/models/dataprotection/v4/config/ReplicationState.js +72 -66
  134. package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.d.ts +5 -5
  135. package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.js +25 -27
  136. package/dist/{lib/models/dataprotection/v4/config/DataProtectionInfo.d.ts → es/models/dataprotection/v4/config/SiteProtectionInfo.d.ts} +12 -12
  137. package/dist/{lib/models/dataprotection/v4/config/DataProtectionInfo.js → es/models/dataprotection/v4/config/SiteProtectionInfo.js} +45 -47
  138. package/dist/es/models/dataprotection/v4/config/SiteReference.d.ts +5 -5
  139. package/dist/es/models/dataprotection/v4/config/SiteReference.js +25 -27
  140. package/dist/es/models/dataprotection/v4/config/Subnet.d.ts +5 -5
  141. package/dist/es/models/dataprotection/v4/config/Subnet.js +25 -27
  142. package/dist/es/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.d.ts +5 -5
  143. package/dist/es/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.js +35 -38
  144. package/dist/{lib/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.d.ts → es/models/dataprotection/v4/config/UpdateConsistencyGroupApiResponse.d.ts} +12 -12
  145. package/dist/es/models/dataprotection/v4/config/{VMRecoveryPointListApiResponse.js → UpdateConsistencyGroupApiResponse.js} +57 -60
  146. package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +5 -5
  147. package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +35 -38
  148. package/dist/es/models/dataprotection/v4/config/VmRecoveryPoint.d.ts +77 -0
  149. package/dist/es/models/dataprotection/v4/config/VmRecoveryPoint.js +361 -0
  150. package/dist/es/models/dataprotection/v4/config/VmRecoveryPointComputeChangedRegionsRequest.d.ts +98 -0
  151. package/dist/es/models/dataprotection/v4/config/VmRecoveryPointComputeChangedRegionsRequest.js +403 -0
  152. package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +12 -38
  153. package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +49 -125
  154. package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +5 -5
  155. package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +29 -29
  156. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +40 -22
  157. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +126 -108
  158. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointComputeChangedRegionsRequest.d.ts +98 -0
  159. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointComputeChangedRegionsRequest.js +403 -0
  160. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +12 -18
  161. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +49 -53
  162. package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +5 -5
  163. package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.js +27 -31
  164. package/dist/es/models/dataprotection/v4/config/VpcReference.d.ts +13 -10
  165. package/dist/es/models/dataprotection/v4/config/VpcReference.js +30 -29
  166. package/dist/es/models/dataprotection/v4/config/Witness.d.ts +5 -5
  167. package/dist/es/models/dataprotection/v4/config/Witness.js +39 -41
  168. package/dist/es/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +3 -4
  169. package/dist/es/models/dataprotection/v4/error/AppMessage.d.ts +20 -12
  170. package/dist/es/models/dataprotection/v4/error/AppMessage.js +49 -39
  171. package/dist/es/models/dataprotection/v4/error/ErrorResponse.d.ts +5 -5
  172. package/dist/es/models/dataprotection/v4/error/ErrorResponse.js +36 -50
  173. package/dist/es/models/dataprotection/v4/error/SchemaValidationError.d.ts +20 -10
  174. package/dist/es/models/dataprotection/v4/error/SchemaValidationError.js +45 -32
  175. package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +14 -8
  176. package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +37 -30
  177. package/dist/es/models/prism/v4/config/TaskReference.d.ts +5 -5
  178. package/dist/es/models/prism/v4/config/TaskReference.js +27 -32
  179. package/dist/es/models/validation/ValidationError.js +8 -10
  180. package/dist/es/models/validation/ValidationScopes.js +1 -2
  181. package/dist/es/utils/ValidationUtils.js +8 -10
  182. package/dist/lib/ApiClient.d.ts +2 -1
  183. package/dist/lib/ApiClient.js +401 -246
  184. package/dist/lib/Paginable.d.ts +1 -1
  185. package/dist/lib/Paginable.js +17 -19
  186. package/dist/lib/apis/protectedresources-endpoints.d.ts +52 -0
  187. package/dist/lib/apis/protectedresources-endpoints.js +192 -0
  188. package/dist/lib/apis/recoverypoints-endpoints.d.ts +126 -0
  189. package/dist/lib/apis/recoverypoints-endpoints.js +394 -0
  190. package/dist/lib/index.d.ts +55 -87
  191. package/dist/lib/index.js +169 -298
  192. package/dist/lib/models/common/v1/config/Flag.d.ts +5 -5
  193. package/dist/lib/models/common/v1/config/Flag.js +25 -27
  194. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +5 -5
  195. package/dist/lib/models/common/v1/config/IPv4Address.js +25 -27
  196. package/dist/lib/models/common/v1/config/KVPair.d.ts +5 -5
  197. package/dist/lib/models/common/v1/config/KVPair.js +28 -30
  198. package/dist/lib/models/common/v1/config/Message.d.ts +5 -5
  199. package/dist/lib/models/common/v1/config/Message.js +25 -27
  200. package/dist/lib/models/common/v1/config/MessageSeverity.js +9 -10
  201. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +8 -8
  202. package/dist/lib/models/common/v1/config/TenantAwareModel.js +29 -31
  203. package/dist/lib/models/common/v1/response/ApiLink.d.ts +5 -5
  204. package/dist/lib/models/common/v1/response/ApiLink.js +26 -28
  205. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +8 -8
  206. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +29 -31
  207. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +5 -5
  208. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +36 -39
  209. package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +2 -14
  210. package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.js +33 -81
  211. package/dist/lib/models/dataprotection/v4/common/RecoveryPointStatus.js +3 -4
  212. package/dist/lib/models/dataprotection/v4/common/RecoveryPointType.js +3 -4
  213. package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +5 -5
  214. package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.js +31 -31
  215. package/dist/lib/models/dataprotection/v4/config/AmazonS3Bucket.d.ts +62 -0
  216. package/dist/lib/models/dataprotection/v4/config/AmazonS3Bucket.js +283 -0
  217. package/dist/lib/models/dataprotection/v4/config/AzureBlobStorageContainer.d.ts +62 -0
  218. package/dist/lib/models/dataprotection/v4/config/AzureBlobStorageContainer.js +283 -0
  219. package/dist/lib/models/dataprotection/v4/config/Category.d.ts +17 -11
  220. package/dist/lib/models/dataprotection/v4/config/Category.js +33 -29
  221. package/dist/lib/models/dataprotection/v4/config/ClusterReference.d.ts +12 -9
  222. package/dist/lib/models/dataprotection/v4/config/ClusterReference.js +29 -28
  223. package/dist/lib/models/{storage/v4/config/Task.d.ts → dataprotection/v4/config/ComputeChangedRegionsResponse.d.ts} +17 -19
  224. package/dist/lib/models/dataprotection/v4/config/ComputeChangedRegionsResponse.js +262 -0
  225. package/dist/lib/models/dataprotection/v4/config/ComputeChangedRegionsResponseModel.d.ts +59 -0
  226. package/dist/lib/models/dataprotection/v4/config/ComputeChangedRegionsResponseModel.js +311 -0
  227. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.d.ts +39 -7
  228. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.js +123 -42
  229. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +18 -26
  230. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.js +48 -88
  231. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +3 -4
  232. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +15 -22
  233. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +65 -69
  234. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +5 -1
  235. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.js +39 -35
  236. package/dist/{es/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.d.ts → lib/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.d.ts} +12 -12
  237. package/dist/{es/models/dataprotection/v4/config/ConsistencyGroupApiResponse.js → lib/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.js} +54 -57
  238. package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +5 -5
  239. package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +35 -42
  240. package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +10 -10
  241. package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.js +44 -46
  242. package/dist/lib/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.d.ts +5 -5
  243. package/dist/lib/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.js +35 -38
  244. package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +5 -5
  245. package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +35 -42
  246. package/dist/lib/models/dataprotection/v4/config/DisasterRecoveryLocation.d.ts +12 -9
  247. package/dist/lib/models/dataprotection/v4/config/DisasterRecoveryLocation.js +29 -28
  248. package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPoint.d.ts +44 -19
  249. package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPoint.js +137 -105
  250. package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +5 -5
  251. package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +31 -31
  252. package/dist/lib/models/dataprotection/v4/config/ExpirationTimeSpec.d.ts +60 -0
  253. package/dist/lib/models/dataprotection/v4/config/{SetExpirationTimeSpec.js → ExpirationTimeSpec.js} +51 -50
  254. package/dist/lib/models/dataprotection/v4/config/{ConsistencyGroupListApiResponse.d.ts → GetProtectedResourceApiResponse.d.ts} +12 -12
  255. package/dist/{es/models/dataprotection/v4/config/ProtectedResourceApiResponse.js → lib/models/dataprotection/v4/config/GetProtectedResourceApiResponse.js} +54 -57
  256. package/dist/{es/models/dataprotection/v4/config/ConsistencyGroupApiResponse.d.ts → lib/models/dataprotection/v4/config/GetRecoveryPointApiResponse.d.ts} +12 -12
  257. package/dist/{es/models/dataprotection/v4/config/RecoveryPointApiResponse.js → lib/models/dataprotection/v4/config/GetRecoveryPointApiResponse.js} +54 -57
  258. package/dist/lib/models/dataprotection/v4/config/HostReference.d.ts +2 -2
  259. package/dist/lib/models/dataprotection/v4/config/HostReference.js +34 -34
  260. package/dist/lib/models/dataprotection/v4/config/HostType.js +3 -4
  261. package/dist/lib/models/dataprotection/v4/config/IpAddress.d.ts +12 -9
  262. package/dist/lib/models/dataprotection/v4/config/IpAddress.js +29 -28
  263. package/dist/{es/models/dataprotection/v4/config/ChangedRegionsListApiResponse.d.ts → lib/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.d.ts} +12 -12
  264. package/dist/{es/models/dataprotection/v4/config/RecoveryPointListApiResponse.js → lib/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.js} +59 -57
  265. package/dist/lib/models/dataprotection/v4/config/LocationReference.d.ts +8 -8
  266. package/dist/lib/models/dataprotection/v4/config/LocationReference.js +30 -32
  267. package/dist/lib/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.d.ts +59 -0
  268. package/dist/{es/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.js → lib/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.js} +54 -61
  269. package/dist/lib/models/dataprotection/v4/config/NutanixObjectsBucket.d.ts +50 -0
  270. package/dist/lib/models/dataprotection/v4/config/NutanixObjectsBucket.js +245 -0
  271. package/dist/{es/models/dataprotection/v4/config/HypervisorType.d.ts → lib/models/dataprotection/v4/config/ObjectStorageType.d.ts} +6 -6
  272. package/dist/{es/models/dataprotection/v4/config/HypervisorType.js → lib/models/dataprotection/v4/config/ObjectStorageType.js} +26 -27
  273. package/dist/lib/models/dataprotection/v4/config/ProtectedEntityType.d.ts +19 -0
  274. package/dist/{es/models/dataprotection/v4/config/ProtectedResourceEntityType.js → lib/models/dataprotection/v4/config/ProtectedEntityType.js} +21 -22
  275. package/dist/lib/models/dataprotection/v4/config/ProtectedResource.d.ts +21 -9
  276. package/dist/lib/models/dataprotection/v4/config/ProtectedResource.js +111 -62
  277. package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +5 -5
  278. package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +35 -38
  279. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +11 -24
  280. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +5 -5
  281. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +35 -38
  282. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +24 -9
  283. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +95 -31
  284. package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.d.ts +5 -5
  285. package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.js +25 -27
  286. package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.d.ts +14 -44
  287. package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.js +59 -167
  288. package/dist/lib/models/dataprotection/v4/config/RecoveryPointProjection.d.ts +9 -0
  289. package/dist/lib/models/dataprotection/v4/config/RecoveryPointProjection.js +132 -0
  290. package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +5 -5
  291. package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +35 -42
  292. package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +37 -18
  293. package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +114 -91
  294. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepository.d.ts +52 -0
  295. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepository.js +323 -0
  296. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.d.ts +9 -0
  297. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.js +129 -0
  298. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +14 -14
  299. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +42 -44
  300. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +5 -5
  301. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +35 -42
  302. package/dist/lib/models/dataprotection/v4/config/RedirectionResponse.d.ts +60 -0
  303. package/dist/lib/models/dataprotection/v4/config/RedirectionResponse.js +279 -0
  304. package/dist/lib/models/dataprotection/v4/config/Region.d.ts +91 -0
  305. package/dist/{es/models/dataprotection/v4/config/Regions.js → lib/models/dataprotection/v4/config/Region.js} +107 -58
  306. package/dist/lib/models/dataprotection/v4/config/RegionResponse.d.ts +60 -0
  307. package/dist/lib/models/dataprotection/v4/config/{ChangedRegions.js → RegionResponse.js} +58 -58
  308. package/dist/lib/models/dataprotection/v4/config/{PowerState.d.ts → RegionType.d.ts} +6 -6
  309. package/dist/lib/models/dataprotection/v4/config/{PowerState.js → RegionType.js} +23 -24
  310. package/dist/lib/models/dataprotection/v4/config/ReplicationState.d.ts +19 -17
  311. package/dist/lib/models/dataprotection/v4/config/ReplicationState.js +72 -66
  312. package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.d.ts +5 -5
  313. package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.js +25 -27
  314. package/dist/{es/models/dataprotection/v4/config/DataProtectionInfo.d.ts → lib/models/dataprotection/v4/config/SiteProtectionInfo.d.ts} +12 -12
  315. package/dist/{es/models/dataprotection/v4/config/DataProtectionInfo.js → lib/models/dataprotection/v4/config/SiteProtectionInfo.js} +45 -47
  316. package/dist/lib/models/dataprotection/v4/config/SiteReference.d.ts +5 -5
  317. package/dist/lib/models/dataprotection/v4/config/SiteReference.js +25 -27
  318. package/dist/lib/models/dataprotection/v4/config/Subnet.d.ts +5 -5
  319. package/dist/lib/models/dataprotection/v4/config/Subnet.js +25 -27
  320. package/dist/lib/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.d.ts +5 -5
  321. package/dist/lib/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.js +35 -38
  322. package/dist/lib/models/dataprotection/v4/config/UpdateConsistencyGroupApiResponse.d.ts +59 -0
  323. package/dist/lib/models/dataprotection/v4/config/{VMRecoveryPointListApiResponse.js → UpdateConsistencyGroupApiResponse.js} +57 -60
  324. package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +5 -5
  325. package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +35 -38
  326. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPoint.d.ts +77 -0
  327. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPoint.js +361 -0
  328. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointComputeChangedRegionsRequest.d.ts +98 -0
  329. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointComputeChangedRegionsRequest.js +403 -0
  330. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +12 -38
  331. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +49 -125
  332. package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +5 -5
  333. package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +29 -29
  334. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +40 -22
  335. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +126 -108
  336. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointComputeChangedRegionsRequest.d.ts +98 -0
  337. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointComputeChangedRegionsRequest.js +403 -0
  338. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +12 -18
  339. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +49 -53
  340. package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +5 -5
  341. package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.js +27 -31
  342. package/dist/lib/models/dataprotection/v4/config/VpcReference.d.ts +13 -10
  343. package/dist/lib/models/dataprotection/v4/config/VpcReference.js +30 -29
  344. package/dist/lib/models/dataprotection/v4/config/Witness.d.ts +5 -5
  345. package/dist/lib/models/dataprotection/v4/config/Witness.js +39 -41
  346. package/dist/lib/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +3 -4
  347. package/dist/lib/models/dataprotection/v4/error/AppMessage.d.ts +20 -12
  348. package/dist/lib/models/dataprotection/v4/error/AppMessage.js +49 -39
  349. package/dist/lib/models/dataprotection/v4/error/ErrorResponse.d.ts +5 -5
  350. package/dist/lib/models/dataprotection/v4/error/ErrorResponse.js +36 -50
  351. package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.d.ts +20 -10
  352. package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.js +45 -32
  353. package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +14 -8
  354. package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +37 -30
  355. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +5 -5
  356. package/dist/lib/models/prism/v4/config/TaskReference.js +27 -32
  357. package/dist/lib/models/validation/ValidationError.js +8 -10
  358. package/dist/lib/models/validation/ValidationScopes.js +1 -2
  359. package/dist/lib/utils/ValidationUtils.js +8 -10
  360. package/package.json +3 -2
  361. package/dist/es/apis/consistencygroup-endpoints.d.ts +0 -98
  362. package/dist/es/apis/consistencygroup-endpoints.js +0 -304
  363. package/dist/es/models/dataprotection/v4/common/VendorSpecificProperty.d.ts +0 -70
  364. package/dist/es/models/dataprotection/v4/common/VendorSpecificProperty.js +0 -286
  365. package/dist/es/models/dataprotection/v4/config/ChangedRegions.d.ts +0 -62
  366. package/dist/es/models/dataprotection/v4/config/ChangedRegionsListApiResponse.js +0 -314
  367. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.js +0 -341
  368. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.d.ts +0 -67
  369. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.js +0 -285
  370. package/dist/es/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.d.ts +0 -59
  371. package/dist/es/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.js +0 -318
  372. package/dist/es/models/dataprotection/v4/config/Disk.d.ts +0 -62
  373. package/dist/es/models/dataprotection/v4/config/Disk.js +0 -285
  374. package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.js +0 -314
  375. package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.d.ts +0 -59
  376. package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.js +0 -336
  377. package/dist/es/models/dataprotection/v4/config/HardwareArchitecture.d.ts +0 -19
  378. package/dist/es/models/dataprotection/v4/config/HardwareArchitecture.js +0 -86
  379. package/dist/es/models/dataprotection/v4/config/ProtectedResourceApiResponse.d.ts +0 -59
  380. package/dist/es/models/dataprotection/v4/config/ProtectedResourceEntityType.d.ts +0 -19
  381. package/dist/es/models/dataprotection/v4/config/RecoveryPointApiResponse.d.ts +0 -59
  382. package/dist/es/models/dataprotection/v4/config/RecoveryPointListApiResponse.d.ts +0 -59
  383. package/dist/es/models/dataprotection/v4/config/Regions.d.ts +0 -62
  384. package/dist/es/models/dataprotection/v4/config/SetExpirationTimeSpec.d.ts +0 -57
  385. package/dist/es/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.d.ts +0 -59
  386. package/dist/es/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.js +0 -314
  387. package/dist/es/models/dataprotection/v4/config/VMRecoveryPoint.d.ts +0 -49
  388. package/dist/es/models/dataprotection/v4/config/VMRecoveryPoint.js +0 -295
  389. package/dist/es/models/dataprotection/v4/config/VMRecoveryPointApiResponse.d.ts +0 -59
  390. package/dist/es/models/dataprotection/v4/config/VMRecoveryPointApiResponse.js +0 -314
  391. package/dist/es/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.d.ts +0 -59
  392. package/dist/es/models/dataprotection/v4/config/ValidateRecoveryPointResult.d.ts +0 -79
  393. package/dist/es/models/dataprotection/v4/config/ValidateRecoveryPointResult.js +0 -320
  394. package/dist/es/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.d.ts +0 -59
  395. package/dist/es/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.js +0 -336
  396. package/dist/es/models/dataprotection/v4/config/ValidationSeverity.js +0 -86
  397. package/dist/es/models/dataprotection/v4/config/Vm.d.ts +0 -140
  398. package/dist/es/models/dataprotection/v4/config/Vm.js +0 -545
  399. package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.d.ts +0 -70
  400. package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.js +0 -319
  401. package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.js +0 -318
  402. package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPoint.d.ts +0 -98
  403. package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPoint.js +0 -405
  404. package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPointProjection.d.ts +0 -9
  405. package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPointProjection.js +0 -132
  406. package/dist/es/models/dataprotection/v4/config/VolumeGroup.d.ts +0 -62
  407. package/dist/es/models/dataprotection/v4/config/VolumeGroup.js +0 -285
  408. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.d.ts +0 -59
  409. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.js +0 -314
  410. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.d.ts +0 -59
  411. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.js +0 -336
  412. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.d.ts +0 -62
  413. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.js +0 -288
  414. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.d.ts +0 -59
  415. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.js +0 -318
  416. package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.d.ts +0 -98
  417. package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.js +0 -407
  418. package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.d.ts +0 -9
  419. package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.js +0 -132
  420. package/dist/es/models/dataprotection/v4/config/WitnessApiResponse.d.ts +0 -59
  421. package/dist/lib/apis/consistencygroup-endpoints.d.ts +0 -98
  422. package/dist/lib/apis/consistencygroup-endpoints.js +0 -304
  423. package/dist/lib/models/dataprotection/v4/common/VendorSpecificProperty.d.ts +0 -70
  424. package/dist/lib/models/dataprotection/v4/common/VendorSpecificProperty.js +0 -286
  425. package/dist/lib/models/dataprotection/v4/config/ChangedRegions.d.ts +0 -62
  426. package/dist/lib/models/dataprotection/v4/config/ChangedRegionsListApiResponse.js +0 -314
  427. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.js +0 -341
  428. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.js +0 -318
  429. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.d.ts +0 -67
  430. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.js +0 -285
  431. package/dist/lib/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.d.ts +0 -59
  432. package/dist/lib/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.js +0 -318
  433. package/dist/lib/models/dataprotection/v4/config/Disk.d.ts +0 -62
  434. package/dist/lib/models/dataprotection/v4/config/Disk.js +0 -285
  435. package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.d.ts +0 -59
  436. package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.js +0 -314
  437. package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.d.ts +0 -59
  438. package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.js +0 -336
  439. package/dist/lib/models/dataprotection/v4/config/HardwareArchitecture.d.ts +0 -19
  440. package/dist/lib/models/dataprotection/v4/config/HardwareArchitecture.js +0 -86
  441. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceApiResponse.d.ts +0 -59
  442. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceEntityType.d.ts +0 -19
  443. package/dist/lib/models/dataprotection/v4/config/RecoveryPointApiResponse.d.ts +0 -59
  444. package/dist/lib/models/dataprotection/v4/config/RecoveryPointListApiResponse.d.ts +0 -59
  445. package/dist/lib/models/dataprotection/v4/config/Regions.d.ts +0 -62
  446. package/dist/lib/models/dataprotection/v4/config/SetExpirationTimeSpec.d.ts +0 -57
  447. package/dist/lib/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.d.ts +0 -59
  448. package/dist/lib/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.js +0 -314
  449. package/dist/lib/models/dataprotection/v4/config/VMRecoveryPoint.d.ts +0 -49
  450. package/dist/lib/models/dataprotection/v4/config/VMRecoveryPoint.js +0 -295
  451. package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointApiResponse.d.ts +0 -59
  452. package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointApiResponse.js +0 -314
  453. package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.d.ts +0 -59
  454. package/dist/lib/models/dataprotection/v4/config/ValidateRecoveryPointResult.d.ts +0 -79
  455. package/dist/lib/models/dataprotection/v4/config/ValidateRecoveryPointResult.js +0 -320
  456. package/dist/lib/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.d.ts +0 -59
  457. package/dist/lib/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.js +0 -336
  458. package/dist/lib/models/dataprotection/v4/config/ValidationSeverity.d.ts +0 -19
  459. package/dist/lib/models/dataprotection/v4/config/ValidationSeverity.js +0 -86
  460. package/dist/lib/models/dataprotection/v4/config/Vm.d.ts +0 -140
  461. package/dist/lib/models/dataprotection/v4/config/Vm.js +0 -545
  462. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.d.ts +0 -70
  463. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.js +0 -319
  464. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.js +0 -318
  465. package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPoint.d.ts +0 -98
  466. package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPoint.js +0 -405
  467. package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPointProjection.d.ts +0 -9
  468. package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPointProjection.js +0 -132
  469. package/dist/lib/models/dataprotection/v4/config/VolumeGroup.d.ts +0 -62
  470. package/dist/lib/models/dataprotection/v4/config/VolumeGroup.js +0 -285
  471. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.d.ts +0 -59
  472. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.js +0 -314
  473. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.d.ts +0 -59
  474. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.js +0 -336
  475. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.d.ts +0 -62
  476. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.js +0 -288
  477. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.d.ts +0 -59
  478. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.js +0 -318
  479. package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.d.ts +0 -98
  480. package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.js +0 -407
  481. package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.d.ts +0 -9
  482. package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.js +0 -132
  483. package/dist/lib/models/dataprotection/v4/config/WitnessApiResponse.d.ts +0 -59
@@ -0,0 +1,394 @@
1
+ "use strict";
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
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.RecoveryPointsApi = void 0;
8
+ var _ApiClient = require("../ApiClient");
9
+ var _RecoveryPointReplicateApiResponse = _interopRequireDefault(require("../models/dataprotection/v4/config/RecoveryPointReplicateApiResponse"));
10
+ var _ListRecoveryPointsApiResponse = _interopRequireDefault(require("../models/dataprotection/v4/config/ListRecoveryPointsApiResponse"));
11
+ var _RecoveryPointRestorationSpec = _interopRequireDefault(require("../models/dataprotection/v4/config/RecoveryPointRestorationSpec"));
12
+ var _GetRecoveryPointApiResponse = _interopRequireDefault(require("../models/dataprotection/v4/config/GetRecoveryPointApiResponse"));
13
+ var _ExpirationTimeSpec = _interopRequireDefault(require("../models/dataprotection/v4/config/ExpirationTimeSpec"));
14
+ var _CreateRecoveryPointApiResponse = _interopRequireDefault(require("../models/dataprotection/v4/config/CreateRecoveryPointApiResponse"));
15
+ var _RecoveryPointRestoreApiResponse = _interopRequireDefault(require("../models/dataprotection/v4/config/RecoveryPointRestoreApiResponse"));
16
+ var _RecoveryPoint = _interopRequireDefault(require("../models/dataprotection/v4/config/RecoveryPoint"));
17
+ var _DeleteRecoveryPointApiResponse = _interopRequireDefault(require("../models/dataprotection/v4/config/DeleteRecoveryPointApiResponse"));
18
+ var _RecoveryPointReplicationSpec = _interopRequireDefault(require("../models/dataprotection/v4/config/RecoveryPointReplicationSpec"));
19
+ var _UpdateRecoveryPointExpirationTimeApiResponse = _interopRequireDefault(require("../models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse"));
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+ 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; }
22
+ 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; }
23
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
26
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
28
+ 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); }
29
+ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
30
+ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
31
+ function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
32
+ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
33
+ 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"); } /*
34
+ * Nutanix Dataprotection Versioned APIs
35
+ *
36
+ * OpenAPI spec version: 4.0.1-beta-1
37
+ *
38
+ * NOTE: This class is auto generated by the Open API Dev Platform.
39
+ *
40
+ * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
41
+ *
42
+ * Do not edit the class manually.
43
+ *
44
+ */
45
+ /**
46
+ * RecoveryPoints service.
47
+ * @version 4.0.1-beta-1
48
+ * @class RecoveryPointsApi
49
+ */
50
+ var _headersToSkip = /*#__PURE__*/new WeakMap();
51
+ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
52
+ /**
53
+ * Constructs a new RecoveryPointsApi.
54
+ * @alias module:api/RecoveryPointsApi
55
+ * @class
56
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
57
+ * default to {@link module:ApiClient#instance} if unspecified.
58
+ */
59
+ function RecoveryPointsApi(apiClient) {
60
+ _classCallCheck(this, RecoveryPointsApi);
61
+ _classPrivateFieldInitSpec(this, _headersToSkip, void 0);
62
+ this.apiClient = apiClient || _ApiClient.ApiClient.instance;
63
+ _classPrivateFieldSet(_headersToSkip, this, new Set());
64
+ _classPrivateFieldGet(_headersToSkip, this).add('authorization');
65
+ _classPrivateFieldGet(_headersToSkip, this).add('cookie');
66
+ _classPrivateFieldGet(_headersToSkip, this).add('host');
67
+ _classPrivateFieldGet(_headersToSkip, this).add('user-agent');
68
+ }
69
+
70
+ /**
71
+ * Create a recovery point
72
+ * Create a new recovery point.&lt;br&gt; #### Task Completion Details &lt;br&gt; External identifier of the created recovery point can be found in the task completion details under the key &#x60;recoveryPointExtId&#x60;.
73
+ * @param { Partial<RecoveryPoint> } body specification
74
+ * @param {Object} args Additional Arguments
75
+ * @return {Promise<CreateRecoveryPointApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateRecoveryPointApiResponse } and HTTP response
76
+ */
77
+ return _createClass(RecoveryPointsApi, [{
78
+ key: "createRecoveryPoint",
79
+ value: function createRecoveryPoint(body) {
80
+ var _this = this;
81
+ var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
82
+ var postBody = null;
83
+ if (body instanceof _RecoveryPoint["default"] && typeof body.toJson === 'function') {
84
+ postBody = body.toJson();
85
+ } else {
86
+ postBody = body;
87
+ }
88
+ // verify the required parameter 'body' is set
89
+ if (typeof postBody === 'undefined' || postBody === null) {
90
+ throw new Error("Invalid body when calling createRecoveryPoint");
91
+ }
92
+ var pathParams = {};
93
+ var queryParams = {};
94
+ var headersToInclude = {};
95
+ Object.keys(argMap).forEach(function (header) {
96
+ if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
97
+ headersToInclude[header] = argMap[header];
98
+ }
99
+ });
100
+ var headerParams = _objectSpread({}, headersToInclude);
101
+ var formParams = {};
102
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
103
+ var authNames = ['basicAuthScheme'];
104
+ var contentTypes = ['application/json'];
105
+ var accepts = ['application/json'];
106
+ var returnType = _CreateRecoveryPointApiResponse["default"];
107
+ return this.apiClient.callApi('/api/dataprotection/v4.0.b1/config/recovery-points', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
108
+ }
109
+
110
+ /**
111
+ * Delete a recovery point
112
+ * Delete the recovery point identified by {extId}.
113
+ * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
114
+ * @param {Object} args Additional Arguments
115
+ * @return {Promise<DeleteRecoveryPointApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteRecoveryPointApiResponse } and HTTP response
116
+ */
117
+ }, {
118
+ key: "deleteRecoveryPointById",
119
+ value: function deleteRecoveryPointById(extId) {
120
+ var _this2 = this;
121
+ var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
122
+ var postBody = null;
123
+ // verify the required parameter 'extId' is set
124
+ if (typeof extId === 'undefined' || extId === null) {
125
+ throw new Error("Missing the required parameter 'extId' when calling deleteRecoveryPointById");
126
+ }
127
+ var pathParams = {
128
+ 'extId': extId
129
+ };
130
+ var queryParams = {};
131
+ var headersToInclude = {};
132
+ Object.keys(argMap).forEach(function (header) {
133
+ if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
134
+ headersToInclude[header] = argMap[header];
135
+ }
136
+ });
137
+ var headerParams = _objectSpread({}, headersToInclude);
138
+ var formParams = {};
139
+ var authNames = ['basicAuthScheme'];
140
+ var contentTypes = [];
141
+ var accepts = ['application/json'];
142
+ var returnType = _DeleteRecoveryPointApiResponse["default"];
143
+ return this.apiClient.callApi('/api/dataprotection/v4.0.b1/config/recovery-points/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
144
+ }
145
+
146
+ /**
147
+ * Get a recovery point
148
+ * Query the recovery point identified by {extId}.
149
+ * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
150
+ * @param {Object} args Additional Arguments
151
+ * @return {Promise<GetRecoveryPointApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetRecoveryPointApiResponse } and HTTP response
152
+ */
153
+ }, {
154
+ key: "getRecoveryPointById",
155
+ value: function getRecoveryPointById(extId) {
156
+ var _this3 = this;
157
+ var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
158
+ var postBody = null;
159
+ // verify the required parameter 'extId' is set
160
+ if (typeof extId === 'undefined' || extId === null) {
161
+ throw new Error("Missing the required parameter 'extId' when calling getRecoveryPointById");
162
+ }
163
+ var pathParams = {
164
+ 'extId': extId
165
+ };
166
+ var queryParams = {};
167
+ var headersToInclude = {};
168
+ Object.keys(argMap).forEach(function (header) {
169
+ if (!_classPrivateFieldGet(_headersToSkip, _this3).has(header.toLowerCase())) {
170
+ headersToInclude[header] = argMap[header];
171
+ }
172
+ });
173
+ var headerParams = _objectSpread({}, headersToInclude);
174
+ var formParams = {};
175
+ var authNames = ['basicAuthScheme'];
176
+ var contentTypes = [];
177
+ var accepts = ['application/json'];
178
+ var returnType = _GetRecoveryPointApiResponse["default"];
179
+ return this.apiClient.callApi('/api/dataprotection/v4.0.b1/config/recovery-points/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
180
+ }
181
+
182
+ /**
183
+ * List recovery point
184
+ * List of recovery point.
185
+ * @param {Object} opts Optional parameters defined for the operation
186
+ * @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.
187
+ * @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.
188
+ * @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>
189
+ * 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'.<br>
190
+ * The filter can be applied to the following fields:<br>
191
+ * - creationTime<br>
192
+ * - extId<br>
193
+ * - name<br>
194
+ * - ownerExtId<br>
195
+ * - recoveryPointType<br>
196
+ * - vmRecoveryPoints<br>
197
+ * - volumeGroupRecoveryPoints
198
+ * @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.<br>
199
+ * The orderby can be applied to the following fields:<br>
200
+ * - creationTime<br>
201
+ * - expirationTime<br>
202
+ * - name<br>
203
+ * - ownerExtId
204
+ * @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.
205
+ - creationTime
206
+ - expirationTime
207
+ - extId
208
+ - name
209
+ - recoveryPointType
210
+ * @param {Object} args Additional Arguments
211
+ * @return {Promise<ListRecoveryPointsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListRecoveryPointsApiResponse } and HTTP response
212
+ */
213
+ }, {
214
+ key: "listRecoveryPoints",
215
+ value: function listRecoveryPoints(opts) {
216
+ var _this4 = this;
217
+ var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
218
+ opts = opts || {};
219
+ var postBody = null;
220
+ var pathParams = {};
221
+ var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
222
+ '$page': opts['$page']
223
+ } : {}), opts.hasOwnProperty('$limit') ? {
224
+ '$limit': opts['$limit']
225
+ } : {}), opts.hasOwnProperty('$filter') ? {
226
+ '$filter': opts['$filter']
227
+ } : {}), opts.hasOwnProperty('$orderby') ? {
228
+ '$orderby': opts['$orderby']
229
+ } : {}), opts.hasOwnProperty('$select') ? {
230
+ '$select': opts['$select']
231
+ } : {});
232
+ var headersToInclude = {};
233
+ Object.keys(argMap).forEach(function (header) {
234
+ if (!_classPrivateFieldGet(_headersToSkip, _this4).has(header.toLowerCase())) {
235
+ headersToInclude[header] = argMap[header];
236
+ }
237
+ });
238
+ var headerParams = _objectSpread({}, headersToInclude);
239
+ var formParams = {};
240
+ var authNames = ['basicAuthScheme'];
241
+ var contentTypes = [];
242
+ var accepts = ['application/json'];
243
+ var returnType = _ListRecoveryPointsApiResponse["default"];
244
+ return this.apiClient.callApi('/api/dataprotection/v4.0.b1/config/recovery-points', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
245
+ }
246
+
247
+ /**
248
+ * Replicate a recovery point
249
+ * 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;.
250
+ * @param { Partial<RecoveryPointReplicationSpec> } body specification
251
+ * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
252
+ * @param {Object} args Additional Arguments
253
+ * @return {Promise<RecoveryPointReplicateApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link RecoveryPointReplicateApiResponse } and HTTP response
254
+ */
255
+ }, {
256
+ key: "replicateRecoveryPoint",
257
+ value: function replicateRecoveryPoint(extId, body) {
258
+ var _this5 = this;
259
+ var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
260
+ var postBody = null;
261
+ if (body instanceof _RecoveryPointReplicationSpec["default"] && typeof body.toJson === 'function') {
262
+ postBody = body.toJson();
263
+ } else {
264
+ postBody = body;
265
+ }
266
+ // verify the required parameter 'extId' is set
267
+ if (typeof extId === 'undefined' || extId === null) {
268
+ throw new Error("Missing the required parameter 'extId' when calling replicateRecoveryPoint");
269
+ }
270
+ // verify the required parameter 'body' is set
271
+ if (typeof postBody === 'undefined' || postBody === null) {
272
+ throw new Error("Invalid body when calling replicateRecoveryPoint");
273
+ }
274
+ var pathParams = {
275
+ 'extId': extId
276
+ };
277
+ var queryParams = {};
278
+ var headersToInclude = {};
279
+ Object.keys(argMap).forEach(function (header) {
280
+ if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {
281
+ headersToInclude[header] = argMap[header];
282
+ }
283
+ });
284
+ var headerParams = _objectSpread({}, headersToInclude);
285
+ var formParams = {};
286
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
287
+ var authNames = ['basicAuthScheme'];
288
+ var contentTypes = ['application/json'];
289
+ var accepts = ['application/json'];
290
+ var returnType = _RecoveryPointReplicateApiResponse["default"];
291
+ return this.apiClient.callApi('/api/dataprotection/v4.0.b1/config/recovery-points/{extId}/$actions/replicate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
292
+ }
293
+
294
+ /**
295
+ * Restore recovery point
296
+ * 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.
297
+ * @param { Partial<RecoveryPointRestorationSpec> } body specification
298
+ * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
299
+ * @param {Object} args Additional Arguments
300
+ * @return {Promise<RecoveryPointRestoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link RecoveryPointRestoreApiResponse } and HTTP response
301
+ */
302
+ }, {
303
+ key: "restoreRecoveryPoint",
304
+ value: function restoreRecoveryPoint(extId, body) {
305
+ var _this6 = this;
306
+ var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
307
+ var postBody = null;
308
+ if (body instanceof _RecoveryPointRestorationSpec["default"] && typeof body.toJson === 'function') {
309
+ postBody = body.toJson();
310
+ } else {
311
+ postBody = body;
312
+ }
313
+ // verify the required parameter 'extId' is set
314
+ if (typeof extId === 'undefined' || extId === null) {
315
+ throw new Error("Missing the required parameter 'extId' when calling restoreRecoveryPoint");
316
+ }
317
+ var pathParams = {
318
+ 'extId': extId
319
+ };
320
+ var queryParams = {};
321
+ var headersToInclude = {};
322
+ Object.keys(argMap).forEach(function (header) {
323
+ if (!_classPrivateFieldGet(_headersToSkip, _this6).has(header.toLowerCase())) {
324
+ headersToInclude[header] = argMap[header];
325
+ }
326
+ });
327
+ var headerParams = _objectSpread({}, headersToInclude);
328
+ var formParams = {};
329
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
330
+ var authNames = ['basicAuthScheme'];
331
+ var contentTypes = ['application/json'];
332
+ var accepts = ['application/json'];
333
+ var returnType = _RecoveryPointRestoreApiResponse["default"];
334
+ return this.apiClient.callApi('/api/dataprotection/v4.0.b1/config/recovery-points/{extId}/$actions/restore', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
335
+ }
336
+
337
+ /**
338
+ * Set the expiration time of the recovery point
339
+ * Set the expiration time for the recovery point identified by {extId}.
340
+ * @param { Required<Pick<ExpirationTimeSpec, 'expirationTime'>> & Partial<ExpirationTimeSpec> } body specification
341
+ * @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
342
+ * @param {Object} args Additional Arguments
343
+ * @return {Promise<UpdateRecoveryPointExpirationTimeApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateRecoveryPointExpirationTimeApiResponse } and HTTP response
344
+ */
345
+ }, {
346
+ key: "setRecoveryPointExpirationTime",
347
+ value: function setRecoveryPointExpirationTime(extId, body) {
348
+ var _this7 = this;
349
+ var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
350
+ var postBody = null;
351
+ if (body instanceof _ExpirationTimeSpec["default"] && typeof body.toJson === 'function') {
352
+ postBody = body.toJson();
353
+ } else {
354
+ postBody = body;
355
+ }
356
+ // verify the required parameter 'extId' is set
357
+ if (typeof extId === 'undefined' || extId === null) {
358
+ throw new Error("Missing the required parameter 'extId' when calling setRecoveryPointExpirationTime");
359
+ }
360
+ // verify the required parameter 'body' is set
361
+ if (typeof postBody === 'undefined' || postBody === null) {
362
+ throw new Error("Invalid body when calling setRecoveryPointExpirationTime");
363
+ }
364
+ var pathParams = {
365
+ 'extId': extId
366
+ };
367
+ var queryParams = {};
368
+ var headersToInclude = {};
369
+ Object.keys(argMap).forEach(function (header) {
370
+ if (!_classPrivateFieldGet(_headersToSkip, _this7).has(header.toLowerCase())) {
371
+ headersToInclude[header] = argMap[header];
372
+ }
373
+ });
374
+ var headerParams = _objectSpread({}, headersToInclude);
375
+ var formParams = {};
376
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
377
+ var authNames = ['basicAuthScheme'];
378
+ var contentTypes = ['application/json'];
379
+ var accepts = ['application/json'];
380
+ var returnType = _UpdateRecoveryPointExpirationTimeApiResponse["default"];
381
+ return this.apiClient.callApi('/api/dataprotection/v4.0.b1/config/recovery-points/{extId}/$actions/set-expiration-time', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
382
+ }
383
+ }], [{
384
+ key: "ApiClient",
385
+ get:
386
+ /**
387
+ * Make the default {@link ApiClient} class available for developers to be able to extend it and bring
388
+ * their own fetch methods into the SDK
389
+ */
390
+ function get() {
391
+ return _ApiClient.ApiClient;
392
+ }
393
+ }]);
394
+ }();