@nutanix-scratch/dataprotection-js-client 4.0.1-alpha.4

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 (445) hide show
  1. package/LICENSE.txt +49 -0
  2. package/README.md +194 -0
  3. package/dist/Ntnx-Dataprotection-js-client-prod.js +11 -0
  4. package/dist/Ntnx-Dataprotection-js-client.js +2349 -0
  5. package/dist/es/ApiClient.d.ts +158 -0
  6. package/dist/es/ApiClient.js +1056 -0
  7. package/dist/es/Paginable.d.ts +95 -0
  8. package/dist/es/Paginable.js +289 -0
  9. package/dist/es/apis/consistencygroup-endpoints.d.ts +98 -0
  10. package/dist/es/apis/consistencygroup-endpoints.js +304 -0
  11. package/dist/es/index.d.ts +214 -0
  12. package/dist/es/index.js +853 -0
  13. package/dist/es/models/common/v1/config/Flag.d.ts +58 -0
  14. package/dist/es/models/common/v1/config/Flag.js +277 -0
  15. package/dist/es/models/common/v1/config/IPv4Address.d.ts +62 -0
  16. package/dist/es/models/common/v1/config/IPv4Address.js +290 -0
  17. package/dist/es/models/common/v1/config/KVPair.d.ts +62 -0
  18. package/dist/es/models/common/v1/config/KVPair.js +334 -0
  19. package/dist/es/models/common/v1/config/Message.d.ts +84 -0
  20. package/dist/es/models/common/v1/config/Message.js +356 -0
  21. package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
  22. package/dist/es/models/common/v1/config/MessageSeverity.js +92 -0
  23. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +50 -0
  24. package/dist/es/models/common/v1/config/TenantAwareModel.js +245 -0
  25. package/dist/es/models/common/v1/response/ApiLink.d.ts +62 -0
  26. package/dist/es/models/common/v1/response/ApiLink.js +282 -0
  27. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
  28. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +440 -0
  29. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
  30. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +273 -0
  31. package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +100 -0
  32. package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.js +461 -0
  33. package/dist/es/models/dataprotection/v4/common/RecoveryPointStatus.d.ts +19 -0
  34. package/dist/es/models/dataprotection/v4/common/RecoveryPointStatus.js +92 -0
  35. package/dist/es/models/dataprotection/v4/common/RecoveryPointType.d.ts +19 -0
  36. package/dist/es/models/dataprotection/v4/common/RecoveryPointType.js +86 -0
  37. package/dist/es/models/dataprotection/v4/common/VendorSpecificProperty.d.ts +70 -0
  38. package/dist/es/models/dataprotection/v4/common/VendorSpecificProperty.js +286 -0
  39. package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +50 -0
  40. package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.js +247 -0
  41. package/dist/es/models/dataprotection/v4/config/Category.d.ts +70 -0
  42. package/dist/es/models/dataprotection/v4/config/Category.js +286 -0
  43. package/dist/es/models/dataprotection/v4/config/ChangedRegions.d.ts +62 -0
  44. package/dist/es/models/dataprotection/v4/config/ChangedRegions.js +295 -0
  45. package/dist/es/models/dataprotection/v4/config/ChangedRegionsListApiResponse.d.ts +59 -0
  46. package/dist/es/models/dataprotection/v4/config/ChangedRegionsListApiResponse.js +314 -0
  47. package/dist/es/models/dataprotection/v4/config/ClusterReference.d.ts +69 -0
  48. package/dist/es/models/dataprotection/v4/config/ClusterReference.js +285 -0
  49. package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.d.ts +62 -0
  50. package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.js +328 -0
  51. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupApiResponse.d.ts +59 -0
  52. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupApiResponse.js +314 -0
  53. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.d.ts +59 -0
  54. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.js +341 -0
  55. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +79 -0
  56. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.js +326 -0
  57. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMemberType.d.ts +19 -0
  58. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +86 -0
  59. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.d.ts +59 -0
  60. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.js +318 -0
  61. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +69 -0
  62. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +290 -0
  63. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +9 -0
  64. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.js +134 -0
  65. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.d.ts +67 -0
  66. package/dist/es/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.js +285 -0
  67. package/dist/es/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.d.ts +59 -0
  68. package/dist/es/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.js +318 -0
  69. package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +59 -0
  70. package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +318 -0
  71. package/dist/es/models/dataprotection/v4/config/DataProtectionInfo.d.ts +58 -0
  72. package/dist/es/models/dataprotection/v4/config/DataProtectionInfo.js +278 -0
  73. package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +62 -0
  74. package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.js +287 -0
  75. package/dist/es/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.d.ts +59 -0
  76. package/dist/es/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.js +316 -0
  77. package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +59 -0
  78. package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +318 -0
  79. package/dist/es/models/dataprotection/v4/config/DisasterRecoveryLocation.d.ts +68 -0
  80. package/dist/es/models/dataprotection/v4/config/DisasterRecoveryLocation.js +297 -0
  81. package/dist/es/models/dataprotection/v4/config/Disk.d.ts +62 -0
  82. package/dist/es/models/dataprotection/v4/config/Disk.js +285 -0
  83. package/dist/es/models/dataprotection/v4/config/DiskRecoveryPoint.d.ts +37 -0
  84. package/dist/es/models/dataprotection/v4/config/DiskRecoveryPoint.js +254 -0
  85. package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.d.ts +59 -0
  86. package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.js +314 -0
  87. package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.d.ts +59 -0
  88. package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.js +336 -0
  89. package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +50 -0
  90. package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +247 -0
  91. package/dist/es/models/dataprotection/v4/config/HardwareArchitecture.d.ts +19 -0
  92. package/dist/es/models/dataprotection/v4/config/HardwareArchitecture.js +86 -0
  93. package/dist/es/models/dataprotection/v4/config/HostReference.d.ts +42 -0
  94. package/dist/es/models/dataprotection/v4/config/HostReference.js +264 -0
  95. package/dist/es/models/dataprotection/v4/config/HostType.d.ts +19 -0
  96. package/dist/es/models/dataprotection/v4/config/HostType.js +80 -0
  97. package/dist/es/models/dataprotection/v4/config/HypervisorType.d.ts +19 -0
  98. package/dist/es/models/dataprotection/v4/config/HypervisorType.js +92 -0
  99. package/dist/es/models/dataprotection/v4/config/IpAddress.d.ts +57 -0
  100. package/dist/es/models/dataprotection/v4/config/IpAddress.js +249 -0
  101. package/dist/es/models/dataprotection/v4/config/LocationReference.d.ts +50 -0
  102. package/dist/es/models/dataprotection/v4/config/LocationReference.js +247 -0
  103. package/dist/es/models/dataprotection/v4/config/PowerState.d.ts +19 -0
  104. package/dist/es/models/dataprotection/v4/config/PowerState.js +86 -0
  105. package/dist/es/models/dataprotection/v4/config/ProtectedResource.d.ts +74 -0
  106. package/dist/es/models/dataprotection/v4/config/ProtectedResource.js +400 -0
  107. package/dist/es/models/dataprotection/v4/config/ProtectedResourceApiResponse.d.ts +59 -0
  108. package/dist/es/models/dataprotection/v4/config/ProtectedResourceApiResponse.js +314 -0
  109. package/dist/es/models/dataprotection/v4/config/ProtectedResourceEntityType.d.ts +19 -0
  110. package/dist/es/models/dataprotection/v4/config/ProtectedResourceEntityType.js +86 -0
  111. package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +59 -0
  112. package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +314 -0
  113. package/dist/es/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.d.ts +19 -0
  114. package/dist/es/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +104 -0
  115. package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +59 -0
  116. package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +314 -0
  117. package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +69 -0
  118. package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +287 -0
  119. package/dist/es/models/dataprotection/v4/config/RecoveryInfo.d.ts +50 -0
  120. package/dist/es/models/dataprotection/v4/config/RecoveryInfo.js +255 -0
  121. package/dist/es/models/dataprotection/v4/config/RecoveryPoint.d.ts +104 -0
  122. package/dist/es/models/dataprotection/v4/config/RecoveryPoint.js +512 -0
  123. package/dist/es/models/dataprotection/v4/config/RecoveryPointApiResponse.d.ts +59 -0
  124. package/dist/es/models/dataprotection/v4/config/RecoveryPointApiResponse.js +314 -0
  125. package/dist/es/models/dataprotection/v4/config/RecoveryPointListApiResponse.d.ts +59 -0
  126. package/dist/es/models/dataprotection/v4/config/RecoveryPointListApiResponse.js +336 -0
  127. package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +59 -0
  128. package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +318 -0
  129. package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +43 -0
  130. package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +263 -0
  131. package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +74 -0
  132. package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +357 -0
  133. package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +59 -0
  134. package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +318 -0
  135. package/dist/es/models/dataprotection/v4/config/Regions.d.ts +62 -0
  136. package/dist/es/models/dataprotection/v4/config/Regions.js +282 -0
  137. package/dist/es/models/dataprotection/v4/config/ReplicationState.d.ts +82 -0
  138. package/dist/es/models/dataprotection/v4/config/ReplicationState.js +357 -0
  139. package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.d.ts +62 -0
  140. package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.js +282 -0
  141. package/dist/es/models/dataprotection/v4/config/SetExpirationTimeSpec.d.ts +57 -0
  142. package/dist/es/models/dataprotection/v4/config/SetExpirationTimeSpec.js +246 -0
  143. package/dist/es/models/dataprotection/v4/config/SiteReference.d.ts +62 -0
  144. package/dist/es/models/dataprotection/v4/config/SiteReference.js +288 -0
  145. package/dist/es/models/dataprotection/v4/config/Subnet.d.ts +48 -0
  146. package/dist/es/models/dataprotection/v4/config/Subnet.js +242 -0
  147. package/dist/es/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.d.ts +59 -0
  148. package/dist/es/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.js +314 -0
  149. package/dist/es/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.d.ts +59 -0
  150. package/dist/es/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.js +314 -0
  151. package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +59 -0
  152. package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +314 -0
  153. package/dist/es/models/dataprotection/v4/config/VMRecoveryPoint.d.ts +49 -0
  154. package/dist/es/models/dataprotection/v4/config/VMRecoveryPoint.js +295 -0
  155. package/dist/es/models/dataprotection/v4/config/VMRecoveryPointApiResponse.d.ts +59 -0
  156. package/dist/es/models/dataprotection/v4/config/VMRecoveryPointApiResponse.js +314 -0
  157. package/dist/es/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.d.ts +59 -0
  158. package/dist/es/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.js +336 -0
  159. package/dist/es/models/dataprotection/v4/config/ValidateRecoveryPointResult.d.ts +79 -0
  160. package/dist/es/models/dataprotection/v4/config/ValidateRecoveryPointResult.js +320 -0
  161. package/dist/es/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.d.ts +59 -0
  162. package/dist/es/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.js +336 -0
  163. package/dist/es/models/dataprotection/v4/config/ValidationSeverity.d.ts +19 -0
  164. package/dist/es/models/dataprotection/v4/config/ValidationSeverity.js +86 -0
  165. package/dist/es/models/dataprotection/v4/config/Vm.d.ts +140 -0
  166. package/dist/es/models/dataprotection/v4/config/Vm.js +545 -0
  167. package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.d.ts +70 -0
  168. package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.js +319 -0
  169. package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.d.ts +59 -0
  170. package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.js +318 -0
  171. package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +76 -0
  172. package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +320 -0
  173. package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPoint.d.ts +98 -0
  174. package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPoint.js +405 -0
  175. package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPointProjection.d.ts +9 -0
  176. package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPointProjection.js +132 -0
  177. package/dist/es/models/dataprotection/v4/config/VolumeGroup.d.ts +62 -0
  178. package/dist/es/models/dataprotection/v4/config/VolumeGroup.js +285 -0
  179. package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +50 -0
  180. package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +247 -0
  181. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +49 -0
  182. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +295 -0
  183. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.d.ts +59 -0
  184. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.js +314 -0
  185. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.d.ts +59 -0
  186. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.js +336 -0
  187. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.d.ts +62 -0
  188. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.js +288 -0
  189. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.d.ts +59 -0
  190. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.js +318 -0
  191. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +66 -0
  192. package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +284 -0
  193. package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.d.ts +98 -0
  194. package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.js +407 -0
  195. package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.d.ts +9 -0
  196. package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.js +132 -0
  197. package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +58 -0
  198. package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.js +279 -0
  199. package/dist/es/models/dataprotection/v4/config/VpcReference.d.ts +69 -0
  200. package/dist/es/models/dataprotection/v4/config/VpcReference.js +285 -0
  201. package/dist/es/models/dataprotection/v4/config/Witness.d.ts +66 -0
  202. package/dist/es/models/dataprotection/v4/config/Witness.js +358 -0
  203. package/dist/es/models/dataprotection/v4/config/WitnessApiResponse.d.ts +59 -0
  204. package/dist/es/models/dataprotection/v4/config/WitnessApiResponse.js +314 -0
  205. package/dist/es/models/dataprotection/v4/config/WitnessAvailabilityStatus.d.ts +19 -0
  206. package/dist/es/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +86 -0
  207. package/dist/es/models/dataprotection/v4/error/AppMessage.d.ts +100 -0
  208. package/dist/es/models/dataprotection/v4/error/AppMessage.js +422 -0
  209. package/dist/es/models/dataprotection/v4/error/ErrorResponse.d.ts +48 -0
  210. package/dist/es/models/dataprotection/v4/error/ErrorResponse.js +313 -0
  211. package/dist/es/models/dataprotection/v4/error/SchemaValidationError.d.ts +88 -0
  212. package/dist/es/models/dataprotection/v4/error/SchemaValidationError.js +394 -0
  213. package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +68 -0
  214. package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +311 -0
  215. package/dist/es/models/prism/v4/config/TaskReference.d.ts +50 -0
  216. package/dist/es/models/prism/v4/config/TaskReference.js +260 -0
  217. package/dist/es/models/storage/v4/config/Task.d.ts +50 -0
  218. package/dist/es/models/storage/v4/config/Task.js +254 -0
  219. package/dist/es/models/validation/ValidationError.d.ts +13 -0
  220. package/dist/es/models/validation/ValidationError.js +62 -0
  221. package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
  222. package/dist/es/models/validation/ValidationScopes.js +39 -0
  223. package/dist/es/utils/ValidationUtils.d.ts +13 -0
  224. package/dist/es/utils/ValidationUtils.js +87 -0
  225. package/dist/lib/ApiClient.d.ts +158 -0
  226. package/dist/lib/ApiClient.js +1056 -0
  227. package/dist/lib/Paginable.d.ts +95 -0
  228. package/dist/lib/Paginable.js +289 -0
  229. package/dist/lib/apis/consistencygroup-endpoints.d.ts +98 -0
  230. package/dist/lib/apis/consistencygroup-endpoints.js +304 -0
  231. package/dist/lib/index.d.ts +214 -0
  232. package/dist/lib/index.js +853 -0
  233. package/dist/lib/models/common/v1/config/Flag.d.ts +58 -0
  234. package/dist/lib/models/common/v1/config/Flag.js +277 -0
  235. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +62 -0
  236. package/dist/lib/models/common/v1/config/IPv4Address.js +290 -0
  237. package/dist/lib/models/common/v1/config/KVPair.d.ts +62 -0
  238. package/dist/lib/models/common/v1/config/KVPair.js +334 -0
  239. package/dist/lib/models/common/v1/config/Message.d.ts +84 -0
  240. package/dist/lib/models/common/v1/config/Message.js +356 -0
  241. package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
  242. package/dist/lib/models/common/v1/config/MessageSeverity.js +92 -0
  243. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +50 -0
  244. package/dist/lib/models/common/v1/config/TenantAwareModel.js +245 -0
  245. package/dist/lib/models/common/v1/response/ApiLink.d.ts +62 -0
  246. package/dist/lib/models/common/v1/response/ApiLink.js +282 -0
  247. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
  248. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +440 -0
  249. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
  250. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +273 -0
  251. package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +100 -0
  252. package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.js +461 -0
  253. package/dist/lib/models/dataprotection/v4/common/RecoveryPointStatus.d.ts +19 -0
  254. package/dist/lib/models/dataprotection/v4/common/RecoveryPointStatus.js +92 -0
  255. package/dist/lib/models/dataprotection/v4/common/RecoveryPointType.d.ts +19 -0
  256. package/dist/lib/models/dataprotection/v4/common/RecoveryPointType.js +86 -0
  257. package/dist/lib/models/dataprotection/v4/common/VendorSpecificProperty.d.ts +70 -0
  258. package/dist/lib/models/dataprotection/v4/common/VendorSpecificProperty.js +286 -0
  259. package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +50 -0
  260. package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.js +247 -0
  261. package/dist/lib/models/dataprotection/v4/config/Category.d.ts +70 -0
  262. package/dist/lib/models/dataprotection/v4/config/Category.js +286 -0
  263. package/dist/lib/models/dataprotection/v4/config/ChangedRegions.d.ts +62 -0
  264. package/dist/lib/models/dataprotection/v4/config/ChangedRegions.js +295 -0
  265. package/dist/lib/models/dataprotection/v4/config/ChangedRegionsListApiResponse.d.ts +59 -0
  266. package/dist/lib/models/dataprotection/v4/config/ChangedRegionsListApiResponse.js +314 -0
  267. package/dist/lib/models/dataprotection/v4/config/ClusterReference.d.ts +69 -0
  268. package/dist/lib/models/dataprotection/v4/config/ClusterReference.js +285 -0
  269. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.d.ts +62 -0
  270. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.js +328 -0
  271. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupApiResponse.d.ts +59 -0
  272. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupApiResponse.js +314 -0
  273. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.d.ts +59 -0
  274. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.js +341 -0
  275. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +79 -0
  276. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.js +326 -0
  277. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMemberType.d.ts +19 -0
  278. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +86 -0
  279. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.d.ts +59 -0
  280. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.js +318 -0
  281. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +69 -0
  282. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +290 -0
  283. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +9 -0
  284. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.js +134 -0
  285. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.d.ts +67 -0
  286. package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.js +285 -0
  287. package/dist/lib/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.d.ts +59 -0
  288. package/dist/lib/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.js +318 -0
  289. package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +59 -0
  290. package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +318 -0
  291. package/dist/lib/models/dataprotection/v4/config/DataProtectionInfo.d.ts +58 -0
  292. package/dist/lib/models/dataprotection/v4/config/DataProtectionInfo.js +278 -0
  293. package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +62 -0
  294. package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.js +287 -0
  295. package/dist/lib/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.d.ts +59 -0
  296. package/dist/lib/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.js +316 -0
  297. package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +59 -0
  298. package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +318 -0
  299. package/dist/lib/models/dataprotection/v4/config/DisasterRecoveryLocation.d.ts +68 -0
  300. package/dist/lib/models/dataprotection/v4/config/DisasterRecoveryLocation.js +297 -0
  301. package/dist/lib/models/dataprotection/v4/config/Disk.d.ts +62 -0
  302. package/dist/lib/models/dataprotection/v4/config/Disk.js +285 -0
  303. package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPoint.d.ts +37 -0
  304. package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPoint.js +254 -0
  305. package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.d.ts +59 -0
  306. package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.js +314 -0
  307. package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.d.ts +59 -0
  308. package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.js +336 -0
  309. package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +50 -0
  310. package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +247 -0
  311. package/dist/lib/models/dataprotection/v4/config/HardwareArchitecture.d.ts +19 -0
  312. package/dist/lib/models/dataprotection/v4/config/HardwareArchitecture.js +86 -0
  313. package/dist/lib/models/dataprotection/v4/config/HostReference.d.ts +42 -0
  314. package/dist/lib/models/dataprotection/v4/config/HostReference.js +264 -0
  315. package/dist/lib/models/dataprotection/v4/config/HostType.d.ts +19 -0
  316. package/dist/lib/models/dataprotection/v4/config/HostType.js +80 -0
  317. package/dist/lib/models/dataprotection/v4/config/HypervisorType.d.ts +19 -0
  318. package/dist/lib/models/dataprotection/v4/config/HypervisorType.js +92 -0
  319. package/dist/lib/models/dataprotection/v4/config/IpAddress.d.ts +57 -0
  320. package/dist/lib/models/dataprotection/v4/config/IpAddress.js +249 -0
  321. package/dist/lib/models/dataprotection/v4/config/LocationReference.d.ts +50 -0
  322. package/dist/lib/models/dataprotection/v4/config/LocationReference.js +247 -0
  323. package/dist/lib/models/dataprotection/v4/config/PowerState.d.ts +19 -0
  324. package/dist/lib/models/dataprotection/v4/config/PowerState.js +86 -0
  325. package/dist/lib/models/dataprotection/v4/config/ProtectedResource.d.ts +74 -0
  326. package/dist/lib/models/dataprotection/v4/config/ProtectedResource.js +400 -0
  327. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceApiResponse.d.ts +59 -0
  328. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceApiResponse.js +314 -0
  329. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceEntityType.d.ts +19 -0
  330. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceEntityType.js +86 -0
  331. package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +59 -0
  332. package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +314 -0
  333. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.d.ts +19 -0
  334. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +104 -0
  335. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +59 -0
  336. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +314 -0
  337. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +69 -0
  338. package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +287 -0
  339. package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.d.ts +50 -0
  340. package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.js +255 -0
  341. package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.d.ts +104 -0
  342. package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.js +512 -0
  343. package/dist/lib/models/dataprotection/v4/config/RecoveryPointApiResponse.d.ts +59 -0
  344. package/dist/lib/models/dataprotection/v4/config/RecoveryPointApiResponse.js +314 -0
  345. package/dist/lib/models/dataprotection/v4/config/RecoveryPointListApiResponse.d.ts +59 -0
  346. package/dist/lib/models/dataprotection/v4/config/RecoveryPointListApiResponse.js +336 -0
  347. package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +59 -0
  348. package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +318 -0
  349. package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +43 -0
  350. package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +263 -0
  351. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +74 -0
  352. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +357 -0
  353. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +59 -0
  354. package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +318 -0
  355. package/dist/lib/models/dataprotection/v4/config/Regions.d.ts +62 -0
  356. package/dist/lib/models/dataprotection/v4/config/Regions.js +282 -0
  357. package/dist/lib/models/dataprotection/v4/config/ReplicationState.d.ts +82 -0
  358. package/dist/lib/models/dataprotection/v4/config/ReplicationState.js +357 -0
  359. package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.d.ts +62 -0
  360. package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.js +282 -0
  361. package/dist/lib/models/dataprotection/v4/config/SetExpirationTimeSpec.d.ts +57 -0
  362. package/dist/lib/models/dataprotection/v4/config/SetExpirationTimeSpec.js +246 -0
  363. package/dist/lib/models/dataprotection/v4/config/SiteReference.d.ts +62 -0
  364. package/dist/lib/models/dataprotection/v4/config/SiteReference.js +288 -0
  365. package/dist/lib/models/dataprotection/v4/config/Subnet.d.ts +48 -0
  366. package/dist/lib/models/dataprotection/v4/config/Subnet.js +242 -0
  367. package/dist/lib/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.d.ts +59 -0
  368. package/dist/lib/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.js +314 -0
  369. package/dist/lib/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.d.ts +59 -0
  370. package/dist/lib/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.js +314 -0
  371. package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +59 -0
  372. package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +314 -0
  373. package/dist/lib/models/dataprotection/v4/config/VMRecoveryPoint.d.ts +49 -0
  374. package/dist/lib/models/dataprotection/v4/config/VMRecoveryPoint.js +295 -0
  375. package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointApiResponse.d.ts +59 -0
  376. package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointApiResponse.js +314 -0
  377. package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.d.ts +59 -0
  378. package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.js +336 -0
  379. package/dist/lib/models/dataprotection/v4/config/ValidateRecoveryPointResult.d.ts +79 -0
  380. package/dist/lib/models/dataprotection/v4/config/ValidateRecoveryPointResult.js +320 -0
  381. package/dist/lib/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.d.ts +59 -0
  382. package/dist/lib/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.js +336 -0
  383. package/dist/lib/models/dataprotection/v4/config/ValidationSeverity.d.ts +19 -0
  384. package/dist/lib/models/dataprotection/v4/config/ValidationSeverity.js +86 -0
  385. package/dist/lib/models/dataprotection/v4/config/Vm.d.ts +140 -0
  386. package/dist/lib/models/dataprotection/v4/config/Vm.js +545 -0
  387. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.d.ts +70 -0
  388. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.js +319 -0
  389. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.d.ts +59 -0
  390. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.js +318 -0
  391. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +76 -0
  392. package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +320 -0
  393. package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPoint.d.ts +98 -0
  394. package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPoint.js +405 -0
  395. package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPointProjection.d.ts +9 -0
  396. package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPointProjection.js +132 -0
  397. package/dist/lib/models/dataprotection/v4/config/VolumeGroup.d.ts +62 -0
  398. package/dist/lib/models/dataprotection/v4/config/VolumeGroup.js +285 -0
  399. package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +50 -0
  400. package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +247 -0
  401. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +49 -0
  402. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +295 -0
  403. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.d.ts +59 -0
  404. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.js +314 -0
  405. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.d.ts +59 -0
  406. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.js +336 -0
  407. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.d.ts +62 -0
  408. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.js +288 -0
  409. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.d.ts +59 -0
  410. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.js +318 -0
  411. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +66 -0
  412. package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +284 -0
  413. package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.d.ts +98 -0
  414. package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.js +407 -0
  415. package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.d.ts +9 -0
  416. package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.js +132 -0
  417. package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +58 -0
  418. package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.js +279 -0
  419. package/dist/lib/models/dataprotection/v4/config/VpcReference.d.ts +69 -0
  420. package/dist/lib/models/dataprotection/v4/config/VpcReference.js +285 -0
  421. package/dist/lib/models/dataprotection/v4/config/Witness.d.ts +66 -0
  422. package/dist/lib/models/dataprotection/v4/config/Witness.js +358 -0
  423. package/dist/lib/models/dataprotection/v4/config/WitnessApiResponse.d.ts +59 -0
  424. package/dist/lib/models/dataprotection/v4/config/WitnessApiResponse.js +314 -0
  425. package/dist/lib/models/dataprotection/v4/config/WitnessAvailabilityStatus.d.ts +19 -0
  426. package/dist/lib/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +86 -0
  427. package/dist/lib/models/dataprotection/v4/error/AppMessage.d.ts +100 -0
  428. package/dist/lib/models/dataprotection/v4/error/AppMessage.js +422 -0
  429. package/dist/lib/models/dataprotection/v4/error/ErrorResponse.d.ts +48 -0
  430. package/dist/lib/models/dataprotection/v4/error/ErrorResponse.js +313 -0
  431. package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.d.ts +88 -0
  432. package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.js +394 -0
  433. package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +68 -0
  434. package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +311 -0
  435. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +50 -0
  436. package/dist/lib/models/prism/v4/config/TaskReference.js +260 -0
  437. package/dist/lib/models/storage/v4/config/Task.d.ts +50 -0
  438. package/dist/lib/models/storage/v4/config/Task.js +254 -0
  439. package/dist/lib/models/validation/ValidationError.d.ts +13 -0
  440. package/dist/lib/models/validation/ValidationError.js +62 -0
  441. package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
  442. package/dist/lib/models/validation/ValidationScopes.js +39 -0
  443. package/dist/lib/utils/ValidationUtils.d.ts +13 -0
  444. package/dist/lib/utils/ValidationUtils.js +87 -0
  445. package/package.json +52 -0
@@ -0,0 +1,356 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _MessageSeverity = _interopRequireDefault(require("./MessageSeverity"));
8
+ var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
9
+ var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
10
+ var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
13
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
14
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
15
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
16
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
17
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
18
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
19
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
20
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
21
+ 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; }
22
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
+ 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); } }
24
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
26
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
27
+ function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
28
+ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
29
+ * Nutanix Dataprotection Versioned APIs
30
+ *
31
+ * OpenAPI spec version: 4.0.1-alpha-4
32
+ *
33
+ * NOTE: This class is auto generated by the Open API Dev Platform.
34
+ *
35
+ * Open API Dev Platform Codegen version: 16.8.0.6343-RELEASE
36
+ *
37
+ * Do not edit the class manually.
38
+ *
39
+ */
40
+ /**
41
+ * The Message model module.
42
+ * @module Ntnx/Message
43
+ * @version 4.0.1-alpha-4
44
+ * @class Message
45
+ */
46
+ var _toJsonMapType = /*#__PURE__*/new WeakSet();
47
+ var Message = /*#__PURE__*/function () {
48
+ /**
49
+ * Constructs a new <code>Message</code>.
50
+ * @alias module:Ntnx/Message
51
+ */
52
+ function Message() {
53
+ _classCallCheck(this, Message);
54
+ /*
55
+ * toJson method for a map type which supports map with primitive keys and values of object types
56
+ * @param {Object} obj
57
+ * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
58
+ * Otherwise, just returns the input object.
59
+ */
60
+ _classPrivateMethodInitSpec(this, _toJsonMapType);
61
+ this.$objectType = "common.v1.config.Message";
62
+ this.$reserved = {
63
+ '$fqObjectType': "common.v1.r0.a3.config.Message"
64
+ };
65
+ this.$unknownFields = {};
66
+ }
67
+
68
+ /**
69
+ * Constructs a <code>Message</code> from a plain JavaScript object, optionally creating a new instance.
70
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
71
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
72
+ * @param {module:Ntnx/Message} obj Optional instance to populate.
73
+ * @param callFromChild {Boolean} Flag to recognise calling instance
74
+ * @return {module:Ntnx/Message} The populated <code>Message</code> instance.
75
+ */
76
+ _createClass(Message, [{
77
+ key: "getCode",
78
+ value:
79
+ /**
80
+ * Returns A code that uniquely identifies a message.
81
+ * @return {}
82
+ */
83
+ function getCode() {
84
+ return this.code;
85
+ }
86
+
87
+ /**
88
+ * Sets A code that uniquely identifies a message.
89
+ * @param {} code A code that uniquely identifies a message.
90
+ */
91
+ }, {
92
+ key: "setCode",
93
+ value: function setCode(code) {
94
+ this.code = code;
95
+ }
96
+
97
+ /**
98
+ * Returns The description of the message.
99
+ * @return {}
100
+ */
101
+ }, {
102
+ key: "getMessage",
103
+ value: function getMessage() {
104
+ return this.message;
105
+ }
106
+
107
+ /**
108
+ * Sets The description of the message.
109
+ * @param {} message The description of the message.
110
+ */
111
+ }, {
112
+ key: "setMessage",
113
+ value: function setMessage(message) {
114
+ this.message = message;
115
+ }
116
+
117
+ /**
118
+ * Returns The locale for the message description.
119
+ * @return {}
120
+ */
121
+ }, {
122
+ key: "getLocale",
123
+ value: function getLocale() {
124
+ return this.locale;
125
+ }
126
+
127
+ /**
128
+ * Sets The locale for the message description.
129
+ * @param {} locale The locale for the message description.
130
+ */
131
+ }, {
132
+ key: "setLocale",
133
+ value: function setLocale(locale) {
134
+ this.locale = locale;
135
+ }
136
+
137
+ /**
138
+ * @return {}
139
+ */
140
+ }, {
141
+ key: "getSeverity",
142
+ value: function getSeverity() {
143
+ return this.severity;
144
+ }
145
+
146
+ /**
147
+ * @param {} severity
148
+ */
149
+ }, {
150
+ key: "setSeverity",
151
+ value: function setSeverity(severity) {
152
+ this.severity = severity;
153
+ }
154
+ }, {
155
+ key: "get$Reserved",
156
+ value: function get$Reserved() {
157
+ return this.$reserved;
158
+ }
159
+ }, {
160
+ key: "get$ObjectType",
161
+ value: function get$ObjectType() {
162
+ return this.$objectType;
163
+ }
164
+ }, {
165
+ key: "get$UnknownFields",
166
+ value: function get$UnknownFields() {
167
+ return this.$unknownFields;
168
+ }
169
+ }, {
170
+ key: "toJson",
171
+ value: function toJson(forMutation) {
172
+ if (forMutation === false) {
173
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {
174
+ 'code': this.getCode()
175
+ } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {
176
+ 'message': this.getMessage()
177
+ } : {}), typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {
178
+ 'locale': this.getLocale()
179
+ } : {}), typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {
180
+ 'severity': this.getSeverity()
181
+ } : {}), {}, {
182
+ '$reserved': this.get$Reserved(),
183
+ '$objectType': this.get$ObjectType(),
184
+ '$unknownFields': this.get$UnknownFields()
185
+ });
186
+ }
187
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {
188
+ 'code': this.getCode()
189
+ } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {
190
+ 'message': this.getMessage()
191
+ } : {}), typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {
192
+ 'locale': this.getLocale()
193
+ } : {}), typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {
194
+ 'severity': this.getSeverity()
195
+ } : {}), {}, {
196
+ '$reserved': this.get$Reserved(),
197
+ '$objectType': this.get$ObjectType(),
198
+ '$unknownFields': this.get$UnknownFields()
199
+ });
200
+ }
201
+ }, {
202
+ key: "validate",
203
+ value: function validate(scope, properties) {
204
+ var _this = this;
205
+ var propList = [];
206
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
207
+ //cases validate() and validate(scope)
208
+ propList = [];
209
+ } else if (arguments.length === 1) {
210
+ //case validate(properties)
211
+ propList = arguments[0];
212
+ scope = null;
213
+ } else {
214
+ //case validate(scope, properties)
215
+ propList = arguments[1];
216
+ }
217
+ var res = [];
218
+ var err = null;
219
+ propList.forEach(function (property) {
220
+ err = _this.validateProperty(property, scope);
221
+ if (err) {
222
+ res.push(err);
223
+ }
224
+ });
225
+ return new Promise(function (resolve, reject) {
226
+ if (res.length !== 0) {
227
+ reject(err);
228
+ } else {
229
+ resolve();
230
+ }
231
+ });
232
+ }
233
+ }, {
234
+ key: "validateProperty",
235
+ value: function validateProperty(scope, property) {
236
+ if (property === "code") {
237
+ if (typeof this.code === 'undefined' || this.code === null) {
238
+ return new _ValidationError["default"]("code", "undefined or null");
239
+ }
240
+ }
241
+ if (property === "message") {
242
+ if (typeof this.message === 'undefined' || this.message === null) {
243
+ return new _ValidationError["default"]("message", "undefined or null");
244
+ }
245
+ }
246
+ if (property === "locale") {
247
+ if (typeof this.locale === 'undefined' || this.locale === null) {
248
+ return new _ValidationError["default"]("locale", "undefined or null");
249
+ }
250
+ }
251
+ if (property === "severity") {
252
+ if (typeof this.severity === 'undefined' || this.severity === null) {
253
+ return new _ValidationError["default"]("severity", "undefined or null");
254
+ }
255
+ }
256
+ if (property === "$reserved") {
257
+ if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
258
+ return new _ValidationError["default"]("$reserved", "undefined or null");
259
+ }
260
+ }
261
+ if (property === "$objectType") {
262
+ if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
263
+ return new _ValidationError["default"]("$objectType", "undefined or null");
264
+ }
265
+ }
266
+ if (property === "$unknownFields") {
267
+ if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
268
+ return new _ValidationError["default"]("$unknownFields", "undefined or null");
269
+ }
270
+ }
271
+ return new _ValidationError["default"](property, "no such property exists");
272
+ }
273
+ }], [{
274
+ key: "constructFromObject",
275
+ value: function constructFromObject(data, obj) {
276
+ var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
277
+ var items, item, i, itemArr, discriminator;
278
+ if (data) {
279
+ obj = obj || new Message();
280
+ if (data.hasOwnProperty('code') && data.code !== null && data.code !== undefined) {
281
+ obj.setCode(data['code']);
282
+ }
283
+ if (data.hasOwnProperty('message') && data.message !== null && data.message !== undefined) {
284
+ obj.setMessage(data['message']);
285
+ }
286
+ if (data.hasOwnProperty('locale') && data.locale !== null && data.locale !== undefined) {
287
+ obj.setLocale(data['locale']);
288
+ }
289
+ if (data.hasOwnProperty('severity') && data.severity !== null && data.severity !== undefined) {
290
+ obj.setSeverity(_MessageSeverity["default"].constructFromObject(data['severity']));
291
+ }
292
+ if (data.hasOwnProperty('$reserved')) {
293
+ obj.$reserved = data['$reserved'];
294
+ }
295
+ if (data.hasOwnProperty('$objectType')) {
296
+ obj.$objectType = data['$objectType'];
297
+ }
298
+ if (data.hasOwnProperty('$unknownFields')) {
299
+ obj.$unknownFields = data['$unknownFields'];
300
+ }
301
+ if (!callFromChild) {
302
+ obj.$unknownFields = _objectSpread({}, data.$unknownFields);
303
+ for (var property in data) {
304
+ if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
305
+ obj.$unknownFields[property] = data[property];
306
+ }
307
+ }
308
+ }
309
+ }
310
+ return obj;
311
+ }
312
+ }]);
313
+ return Message;
314
+ }();
315
+ /**
316
+ * A code that uniquely identifies a message.
317
+ * @memberof Message
318
+ */
319
+ exports["default"] = Message;
320
+ function _toJsonMapType2(obj, forMutation) {
321
+ if (obj instanceof Map) {
322
+ return Object.fromEntries(Array.from(obj, function (_ref) {
323
+ var _ref2 = _slicedToArray(_ref, 2),
324
+ k = _ref2[0],
325
+ v = _ref2[1];
326
+ return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
327
+ }));
328
+ } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
329
+ return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
330
+ return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
331
+ }));
332
+ }
333
+ return obj;
334
+ }
335
+ Message.prototype.code = undefined;
336
+
337
+ /**
338
+ * The description of the message.
339
+ * @memberof Message
340
+ */
341
+ Message.prototype.message = undefined;
342
+
343
+ /**
344
+ * The locale for the message description.
345
+ * @memberof Message
346
+ * @default 'en_US'
347
+ */
348
+ Message.prototype.locale = 'en_US';
349
+
350
+ /**
351
+ * @memberof Message
352
+ */
353
+ Message.prototype.severity = undefined;
354
+ Message.prototype.$reserved = undefined;
355
+ Message.prototype.$objectType = undefined;
356
+ Message.prototype.$unknownFields = undefined;
@@ -0,0 +1,19 @@
1
+ export default MessageSeverity;
2
+ /**
3
+ * *
4
+ */
5
+ type MessageSeverity = string;
6
+ declare namespace MessageSeverity {
7
+ /**
8
+ * Returns a <code>MessageSeverity</code> enum value from a JavaScript object name.
9
+ * @param {Object} obj The plain JavaScript object containing the name of the enum value.
10
+ * @return {MessageSeverity} The enum <code>MessageSeverity</code> value.
11
+ */
12
+ function constructFromObject(obj: any): string;
13
+ /**
14
+ * Validates <code>MessageSeverity</code> enum value.
15
+ * @param {Object} obj The plain JavaScript object containing the name of the enum value.
16
+ * @return {null} Throws error for invalid value.
17
+ */
18
+ function validate(obj: any): null;
19
+ }
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
8
+ var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
9
+ var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ /*
12
+ * Nutanix Dataprotection Versioned APIs
13
+ *
14
+ * OpenAPI spec version: 4.0.1-alpha-4
15
+ *
16
+ * NOTE: This class is auto generated by the Open API Dev Platform.
17
+ *
18
+ * Open API Dev Platform Codegen version: 16.8.0.6343-RELEASE
19
+ *
20
+ * Do not edit the class manually.
21
+ *
22
+ */
23
+
24
+ /**
25
+ * Enum class MessageSeverity.
26
+ * @enum {string}
27
+ * @readonly
28
+ */
29
+ var MessageSeverity = {
30
+ /**
31
+ * value: "$UNKNOWN"
32
+ * @const
33
+ */
34
+ $UNKNOWN: "$UNKNOWN",
35
+ /**
36
+ * value: "$REDACTED"
37
+ * @const
38
+ */
39
+ $REDACTED: "$REDACTED",
40
+ /**
41
+ * value: "INFO"
42
+ * @const
43
+ */
44
+ INFO: "INFO",
45
+ /**
46
+ * value: "WARNING"
47
+ * @const
48
+ */
49
+ WARNING: "WARNING",
50
+ /**
51
+ * value: "ERROR"
52
+ * @const
53
+ */
54
+ ERROR: "ERROR"
55
+ };
56
+
57
+ /**
58
+ * Returns a <code>MessageSeverity</code> enum value from a JavaScript object name.
59
+ * @param {Object} obj The plain JavaScript object containing the name of the enum value.
60
+ * @return {MessageSeverity} The enum <code>MessageSeverity</code> value.
61
+ */
62
+ MessageSeverity.constructFromObject = function (obj) {
63
+ if (typeof obj === 'string' || obj instanceof String) {
64
+ var enumVal = Object.keys(MessageSeverity).find(function (key) {
65
+ return MessageSeverity[key] === obj;
66
+ });
67
+ return enumVal === undefined || enumVal === null ? MessageSeverity.$UNKNOWN : MessageSeverity[enumVal];
68
+ } else {
69
+ throw new Error("Received object name is not an instance of String");
70
+ }
71
+ };
72
+
73
+ /**
74
+ * Validates <code>MessageSeverity</code> enum value.
75
+ * @param {Object} obj The plain JavaScript object containing the name of the enum value.
76
+ * @return {null} Throws error for invalid value.
77
+ */
78
+ MessageSeverity.validate = function (obj) {
79
+ switch (obj) {
80
+ case MessageSeverity.$UNKNOWN:
81
+ case MessageSeverity.$REDACTED:
82
+ case MessageSeverity.INFO:
83
+ case MessageSeverity.WARNING:
84
+ case MessageSeverity.ERROR:
85
+ return;
86
+ default:
87
+ throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }");
88
+ }
89
+ };
90
+ Object.freeze(MessageSeverity);
91
+ var _default = MessageSeverity;
92
+ exports["default"] = _default;
@@ -0,0 +1,50 @@
1
+ /**
2
+ * The TenantAwareModel model module.
3
+ * @module Ntnx/TenantAwareModel
4
+ * @version 4.0.1-alpha-4
5
+ * @class TenantAwareModel
6
+ */
7
+ export default class TenantAwareModel {
8
+ /**
9
+ * Constructs a <code>TenantAwareModel</code> from a plain JavaScript object, optionally creating a new instance.
10
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
11
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
12
+ * @param {module:Ntnx/TenantAwareModel} obj Optional instance to populate.
13
+ * @param callFromChild {Boolean} Flag to recognise calling instance
14
+ * @return {module:Ntnx/TenantAwareModel} The populated <code>TenantAwareModel</code> instance.
15
+ */
16
+ static constructFromObject(data: any, obj: any, callFromChild?: boolean): any;
17
+ $objectType: string;
18
+ $reserved: {
19
+ $fqObjectType: string;
20
+ };
21
+ $unknownFields: {};
22
+ /**
23
+ * Returns A globally unique identifier that represents the tenant that owns this entity. It is automatically assigned by the system and is immutable from an API consumer perspective (some use cases may cause this Id to change - for instance a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
24
+ * @return {}
25
+ */
26
+ getTenantId(): any;
27
+ /**
28
+ * Sets A globally unique identifier that represents the tenant that owns this entity. It is automatically assigned by the system and is immutable from an API consumer perspective (some use cases may cause this Id to change - for instance a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
29
+ * @param {} tenantId A globally unique identifier that represents the tenant that owns this entity. It is automatically assigned by the system and is immutable from an API consumer perspective (some use cases may cause this Id to change - for instance a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
30
+ */
31
+ setTenantId(tenantId: any): void;
32
+ tenantId: any;
33
+ get$Reserved(): {
34
+ $fqObjectType: string;
35
+ };
36
+ get$ObjectType(): string;
37
+ get$UnknownFields(): {};
38
+ toJson(forMutation: any): {
39
+ $reserved: {
40
+ $fqObjectType: string;
41
+ };
42
+ $objectType: string;
43
+ $unknownFields: {};
44
+ tenantId?: any;
45
+ };
46
+ validate(scope: any, properties: any, ...args: any[]): any;
47
+ validateProperty(scope: any, property: any): ValidationError;
48
+ #private;
49
+ }
50
+ import ValidationError from "../../../validation/ValidationError";