@nutanix-scratch/licensing-js-client 4.0.1-alpha.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 (337) hide show
  1. package/LICENSE.txt +49 -0
  2. package/README.md +197 -0
  3. package/dist/Ntnx-Licensing-js-client-prod.js +1 -0
  4. package/dist/Ntnx-Licensing-js-client.js +1257 -0
  5. package/dist/es/ApiClient.d.ts +159 -0
  6. package/dist/es/ApiClient.js +1211 -0
  7. package/dist/es/Paginable.d.ts +95 -0
  8. package/dist/es/Paginable.js +287 -0
  9. package/dist/es/apis/enduserlicenseagreements-endpoints.d.ts +51 -0
  10. package/dist/es/apis/enduserlicenseagreements-endpoints.js +183 -0
  11. package/dist/es/apis/licenses-endpoints.d.ts +292 -0
  12. package/dist/es/apis/licenses-endpoints.js +666 -0
  13. package/dist/es/index.d.ts +160 -0
  14. package/dist/es/index.js +636 -0
  15. package/dist/es/models/common/v1/config/Flag.d.ts +58 -0
  16. package/dist/es/models/common/v1/config/Flag.js +275 -0
  17. package/dist/es/models/common/v1/config/KVPair.d.ts +62 -0
  18. package/dist/es/models/common/v1/config/KVPair.js +332 -0
  19. package/dist/es/models/common/v1/config/Message.d.ts +84 -0
  20. package/dist/es/models/common/v1/config/Message.js +354 -0
  21. package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
  22. package/dist/es/models/common/v1/config/MessageSeverity.js +91 -0
  23. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +50 -0
  24. package/dist/es/models/common/v1/config/TenantAwareModel.js +243 -0
  25. package/dist/es/models/common/v1/response/ApiLink.d.ts +62 -0
  26. package/dist/es/models/common/v1/response/ApiLink.js +280 -0
  27. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
  28. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +438 -0
  29. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
  30. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
  31. package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.d.ts +59 -0
  32. package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.js +311 -0
  33. package/dist/es/models/licensing/v4/agreements/Eula.d.ts +95 -0
  34. package/dist/es/models/licensing/v4/agreements/Eula.js +404 -0
  35. package/dist/es/models/licensing/v4/agreements/EulaUser.d.ts +103 -0
  36. package/dist/es/models/licensing/v4/agreements/EulaUser.js +409 -0
  37. package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +59 -0
  38. package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.js +311 -0
  39. package/dist/es/models/licensing/v4/agreements/UpdateEulaApiResponse.d.ts +59 -0
  40. package/dist/es/models/licensing/v4/agreements/UpdateEulaApiResponse.js +311 -0
  41. package/dist/es/models/licensing/v4/config/AllowanceDetail.d.ts +82 -0
  42. package/dist/es/models/licensing/v4/config/AllowanceDetail.js +358 -0
  43. package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.d.ts +9 -0
  44. package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.js +131 -0
  45. package/dist/es/models/licensing/v4/config/BaseClusterInfo.d.ts +32 -0
  46. package/dist/es/models/licensing/v4/config/BaseClusterInfo.js +223 -0
  47. package/dist/es/models/licensing/v4/config/BaseLicenseInfo.d.ts +74 -0
  48. package/dist/es/models/licensing/v4/config/BaseLicenseInfo.js +374 -0
  49. package/dist/es/models/licensing/v4/config/CapacityViolation.d.ts +80 -0
  50. package/dist/es/models/licensing/v4/config/CapacityViolation.js +350 -0
  51. package/dist/es/models/licensing/v4/config/ClusterAllowance.d.ts +55 -0
  52. package/dist/es/models/licensing/v4/config/ClusterAllowance.js +319 -0
  53. package/dist/es/models/licensing/v4/config/ClusterAllowanceProjection.d.ts +34 -0
  54. package/dist/es/models/licensing/v4/config/ClusterAllowanceProjection.js +241 -0
  55. package/dist/es/models/licensing/v4/config/ClusterEntitlement.d.ts +79 -0
  56. package/dist/es/models/licensing/v4/config/ClusterEntitlement.js +398 -0
  57. package/dist/es/models/licensing/v4/config/ClusterEntitlementProjection.d.ts +36 -0
  58. package/dist/es/models/licensing/v4/config/ClusterEntitlementProjection.js +249 -0
  59. package/dist/es/models/licensing/v4/config/ClusterTypeEnum.d.ts +19 -0
  60. package/dist/es/models/licensing/v4/config/ClusterTypeEnum.js +91 -0
  61. package/dist/es/models/licensing/v4/config/ClusterViolation.d.ts +57 -0
  62. package/dist/es/models/licensing/v4/config/ClusterViolation.js +346 -0
  63. package/dist/es/models/licensing/v4/config/Compliance.d.ts +55 -0
  64. package/dist/es/models/licensing/v4/config/Compliance.js +319 -0
  65. package/dist/es/models/licensing/v4/config/ComplianceProjection.d.ts +34 -0
  66. package/dist/es/models/licensing/v4/config/ComplianceProjection.js +241 -0
  67. package/dist/es/models/licensing/v4/config/Consumption.d.ts +44 -0
  68. package/dist/es/models/licensing/v4/config/Consumption.js +266 -0
  69. package/dist/es/models/licensing/v4/config/ConsumptionProjection.d.ts +9 -0
  70. package/dist/es/models/licensing/v4/config/ConsumptionProjection.js +129 -0
  71. package/dist/es/models/licensing/v4/config/EnforcementActionsEnum.d.ts +19 -0
  72. package/dist/es/models/licensing/v4/config/EnforcementActionsEnum.js +139 -0
  73. package/dist/es/models/licensing/v4/config/EnforcementLevelEnum.d.ts +19 -0
  74. package/dist/es/models/licensing/v4/config/EnforcementLevelEnum.js +85 -0
  75. package/dist/es/models/licensing/v4/config/EnforcementPolicyEnum.d.ts +19 -0
  76. package/dist/es/models/licensing/v4/config/EnforcementPolicyEnum.js +85 -0
  77. package/dist/es/models/licensing/v4/config/EntitlementDetail.d.ts +124 -0
  78. package/dist/es/models/licensing/v4/config/EntitlementDetail.js +501 -0
  79. package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.d.ts +9 -0
  80. package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.js +134 -0
  81. package/dist/es/models/licensing/v4/config/ExpiredLicense.d.ts +59 -0
  82. package/dist/es/models/licensing/v4/config/ExpiredLicense.js +324 -0
  83. package/dist/es/models/licensing/v4/config/Feature.d.ts +94 -0
  84. package/dist/es/models/licensing/v4/config/Feature.js +449 -0
  85. package/dist/es/models/licensing/v4/config/FeatureDetail.d.ts +74 -0
  86. package/dist/es/models/licensing/v4/config/FeatureDetail.js +327 -0
  87. package/dist/es/models/licensing/v4/config/FeatureProjection.d.ts +9 -0
  88. package/dist/es/models/licensing/v4/config/FeatureProjection.js +134 -0
  89. package/dist/es/models/licensing/v4/config/FeatureViolation.d.ts +32 -0
  90. package/dist/es/models/licensing/v4/config/FeatureViolation.js +229 -0
  91. package/dist/es/models/licensing/v4/config/GetClusterAllowanceApiResponse.d.ts +59 -0
  92. package/dist/es/models/licensing/v4/config/GetClusterAllowanceApiResponse.js +311 -0
  93. package/dist/es/models/licensing/v4/config/GetClusterEntitlementApiResponse.d.ts +59 -0
  94. package/dist/es/models/licensing/v4/config/GetClusterEntitlementApiResponse.js +311 -0
  95. package/dist/es/models/licensing/v4/config/GetClusterViolationApiResponse.d.ts +59 -0
  96. package/dist/es/models/licensing/v4/config/GetClusterViolationApiResponse.js +311 -0
  97. package/dist/es/models/licensing/v4/config/GetComplianceApiResponse.d.ts +59 -0
  98. package/dist/es/models/licensing/v4/config/GetComplianceApiResponse.js +311 -0
  99. package/dist/es/models/licensing/v4/config/GetLicenseApiResponse.d.ts +59 -0
  100. package/dist/es/models/licensing/v4/config/GetLicenseApiResponse.js +311 -0
  101. package/dist/es/models/licensing/v4/config/GetSettingApiResponse.d.ts +59 -0
  102. package/dist/es/models/licensing/v4/config/GetSettingApiResponse.js +311 -0
  103. package/dist/es/models/licensing/v4/config/License.d.ts +69 -0
  104. package/dist/es/models/licensing/v4/config/License.js +376 -0
  105. package/dist/es/models/licensing/v4/config/LicenseCategoryEnum.d.ts +19 -0
  106. package/dist/es/models/licensing/v4/config/LicenseCategoryEnum.js +271 -0
  107. package/dist/es/models/licensing/v4/config/LicenseProjection.d.ts +39 -0
  108. package/dist/es/models/licensing/v4/config/LicenseProjection.js +264 -0
  109. package/dist/es/models/licensing/v4/config/LicenseTypeEnum.d.ts +19 -0
  110. package/dist/es/models/licensing/v4/config/LicenseTypeEnum.js +235 -0
  111. package/dist/es/models/licensing/v4/config/ListClusterAllowancesApiResponse.d.ts +59 -0
  112. package/dist/es/models/licensing/v4/config/ListClusterAllowancesApiResponse.js +338 -0
  113. package/dist/es/models/licensing/v4/config/ListClusterEntitlementsApiResponse.d.ts +59 -0
  114. package/dist/es/models/licensing/v4/config/ListClusterEntitlementsApiResponse.js +338 -0
  115. package/dist/es/models/licensing/v4/config/ListClusterViolationsApiResponse.d.ts +59 -0
  116. package/dist/es/models/licensing/v4/config/ListClusterViolationsApiResponse.js +333 -0
  117. package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +59 -0
  118. package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.js +338 -0
  119. package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +59 -0
  120. package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.js +338 -0
  121. package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.d.ts +59 -0
  122. package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.js +338 -0
  123. package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.d.ts +59 -0
  124. package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.js +333 -0
  125. package/dist/es/models/licensing/v4/config/LogicalVersion.d.ts +62 -0
  126. package/dist/es/models/licensing/v4/config/LogicalVersion.js +280 -0
  127. package/dist/es/models/licensing/v4/config/MeterEnum.d.ts +19 -0
  128. package/dist/es/models/licensing/v4/config/MeterEnum.js +121 -0
  129. package/dist/es/models/licensing/v4/config/NutanixClusterConfig.d.ts +98 -0
  130. package/dist/es/models/licensing/v4/config/NutanixClusterConfig.js +406 -0
  131. package/dist/es/models/licensing/v4/config/PostPaidCategoryEnum.d.ts +19 -0
  132. package/dist/es/models/licensing/v4/config/PostPaidCategoryEnum.js +85 -0
  133. package/dist/es/models/licensing/v4/config/PostPaidConfig.d.ts +74 -0
  134. package/dist/es/models/licensing/v4/config/PostPaidConfig.js +324 -0
  135. package/dist/es/models/licensing/v4/config/ProductNameEnum.d.ts +19 -0
  136. package/dist/es/models/licensing/v4/config/ProductNameEnum.js +115 -0
  137. package/dist/es/models/licensing/v4/config/ResetScopeEnum.d.ts +19 -0
  138. package/dist/es/models/licensing/v4/config/ResetScopeEnum.js +85 -0
  139. package/dist/es/models/licensing/v4/config/ScopeEnum.d.ts +19 -0
  140. package/dist/es/models/licensing/v4/config/ScopeEnum.js +97 -0
  141. package/dist/es/models/licensing/v4/config/Service.d.ts +104 -0
  142. package/dist/es/models/licensing/v4/config/Service.js +444 -0
  143. package/dist/es/models/licensing/v4/config/ServiceProjection.d.ts +9 -0
  144. package/dist/es/models/licensing/v4/config/ServiceProjection.js +134 -0
  145. package/dist/es/models/licensing/v4/config/ServiceViolation.d.ts +60 -0
  146. package/dist/es/models/licensing/v4/config/ServiceViolation.js +278 -0
  147. package/dist/es/models/licensing/v4/config/ServiceViolationEnum.d.ts +19 -0
  148. package/dist/es/models/licensing/v4/config/ServiceViolationEnum.js +91 -0
  149. package/dist/es/models/licensing/v4/config/Setting.d.ts +133 -0
  150. package/dist/es/models/licensing/v4/config/Setting.js +568 -0
  151. package/dist/es/models/licensing/v4/config/StatusEnum.d.ts +19 -0
  152. package/dist/es/models/licensing/v4/config/StatusEnum.js +85 -0
  153. package/dist/es/models/licensing/v4/config/SubCategoryEnum.d.ts +19 -0
  154. package/dist/es/models/licensing/v4/config/SubCategoryEnum.js +85 -0
  155. package/dist/es/models/licensing/v4/config/TypeEnum.d.ts +19 -0
  156. package/dist/es/models/licensing/v4/config/TypeEnum.js +85 -0
  157. package/dist/es/models/licensing/v4/error/AppMessage.d.ts +108 -0
  158. package/dist/es/models/licensing/v4/error/AppMessage.js +432 -0
  159. package/dist/es/models/licensing/v4/error/ErrorResponse.d.ts +48 -0
  160. package/dist/es/models/licensing/v4/error/ErrorResponse.js +299 -0
  161. package/dist/es/models/licensing/v4/error/SchemaValidationError.d.ts +98 -0
  162. package/dist/es/models/licensing/v4/error/SchemaValidationError.js +407 -0
  163. package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
  164. package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.js +318 -0
  165. package/dist/es/models/validation/ValidationError.d.ts +13 -0
  166. package/dist/es/models/validation/ValidationError.js +60 -0
  167. package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
  168. package/dist/es/models/validation/ValidationScopes.js +38 -0
  169. package/dist/es/utils/ValidationUtils.d.ts +13 -0
  170. package/dist/es/utils/ValidationUtils.js +85 -0
  171. package/dist/lib/ApiClient.d.ts +159 -0
  172. package/dist/lib/ApiClient.js +1211 -0
  173. package/dist/lib/Paginable.d.ts +95 -0
  174. package/dist/lib/Paginable.js +287 -0
  175. package/dist/lib/apis/enduserlicenseagreements-endpoints.d.ts +51 -0
  176. package/dist/lib/apis/enduserlicenseagreements-endpoints.js +183 -0
  177. package/dist/lib/apis/licenses-endpoints.d.ts +292 -0
  178. package/dist/lib/apis/licenses-endpoints.js +666 -0
  179. package/dist/lib/index.d.ts +160 -0
  180. package/dist/lib/index.js +636 -0
  181. package/dist/lib/models/common/v1/config/Flag.d.ts +58 -0
  182. package/dist/lib/models/common/v1/config/Flag.js +275 -0
  183. package/dist/lib/models/common/v1/config/KVPair.d.ts +62 -0
  184. package/dist/lib/models/common/v1/config/KVPair.js +332 -0
  185. package/dist/lib/models/common/v1/config/Message.d.ts +84 -0
  186. package/dist/lib/models/common/v1/config/Message.js +354 -0
  187. package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
  188. package/dist/lib/models/common/v1/config/MessageSeverity.js +91 -0
  189. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +50 -0
  190. package/dist/lib/models/common/v1/config/TenantAwareModel.js +243 -0
  191. package/dist/lib/models/common/v1/response/ApiLink.d.ts +62 -0
  192. package/dist/lib/models/common/v1/response/ApiLink.js +280 -0
  193. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
  194. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +438 -0
  195. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
  196. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
  197. package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.d.ts +59 -0
  198. package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.js +311 -0
  199. package/dist/lib/models/licensing/v4/agreements/Eula.d.ts +95 -0
  200. package/dist/lib/models/licensing/v4/agreements/Eula.js +404 -0
  201. package/dist/lib/models/licensing/v4/agreements/EulaUser.d.ts +103 -0
  202. package/dist/lib/models/licensing/v4/agreements/EulaUser.js +409 -0
  203. package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +59 -0
  204. package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.js +311 -0
  205. package/dist/lib/models/licensing/v4/agreements/UpdateEulaApiResponse.d.ts +59 -0
  206. package/dist/lib/models/licensing/v4/agreements/UpdateEulaApiResponse.js +311 -0
  207. package/dist/lib/models/licensing/v4/config/AllowanceDetail.d.ts +82 -0
  208. package/dist/lib/models/licensing/v4/config/AllowanceDetail.js +358 -0
  209. package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.d.ts +9 -0
  210. package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.js +131 -0
  211. package/dist/lib/models/licensing/v4/config/BaseClusterInfo.d.ts +32 -0
  212. package/dist/lib/models/licensing/v4/config/BaseClusterInfo.js +223 -0
  213. package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.d.ts +74 -0
  214. package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.js +374 -0
  215. package/dist/lib/models/licensing/v4/config/CapacityViolation.d.ts +80 -0
  216. package/dist/lib/models/licensing/v4/config/CapacityViolation.js +350 -0
  217. package/dist/lib/models/licensing/v4/config/ClusterAllowance.d.ts +55 -0
  218. package/dist/lib/models/licensing/v4/config/ClusterAllowance.js +319 -0
  219. package/dist/lib/models/licensing/v4/config/ClusterAllowanceProjection.d.ts +34 -0
  220. package/dist/lib/models/licensing/v4/config/ClusterAllowanceProjection.js +241 -0
  221. package/dist/lib/models/licensing/v4/config/ClusterEntitlement.d.ts +79 -0
  222. package/dist/lib/models/licensing/v4/config/ClusterEntitlement.js +398 -0
  223. package/dist/lib/models/licensing/v4/config/ClusterEntitlementProjection.d.ts +36 -0
  224. package/dist/lib/models/licensing/v4/config/ClusterEntitlementProjection.js +249 -0
  225. package/dist/lib/models/licensing/v4/config/ClusterTypeEnum.d.ts +19 -0
  226. package/dist/lib/models/licensing/v4/config/ClusterTypeEnum.js +91 -0
  227. package/dist/lib/models/licensing/v4/config/ClusterViolation.d.ts +57 -0
  228. package/dist/lib/models/licensing/v4/config/ClusterViolation.js +346 -0
  229. package/dist/lib/models/licensing/v4/config/Compliance.d.ts +55 -0
  230. package/dist/lib/models/licensing/v4/config/Compliance.js +319 -0
  231. package/dist/lib/models/licensing/v4/config/ComplianceProjection.d.ts +34 -0
  232. package/dist/lib/models/licensing/v4/config/ComplianceProjection.js +241 -0
  233. package/dist/lib/models/licensing/v4/config/Consumption.d.ts +44 -0
  234. package/dist/lib/models/licensing/v4/config/Consumption.js +266 -0
  235. package/dist/lib/models/licensing/v4/config/ConsumptionProjection.d.ts +9 -0
  236. package/dist/lib/models/licensing/v4/config/ConsumptionProjection.js +129 -0
  237. package/dist/lib/models/licensing/v4/config/EnforcementActionsEnum.d.ts +19 -0
  238. package/dist/lib/models/licensing/v4/config/EnforcementActionsEnum.js +139 -0
  239. package/dist/lib/models/licensing/v4/config/EnforcementLevelEnum.d.ts +19 -0
  240. package/dist/lib/models/licensing/v4/config/EnforcementLevelEnum.js +85 -0
  241. package/dist/lib/models/licensing/v4/config/EnforcementPolicyEnum.d.ts +19 -0
  242. package/dist/lib/models/licensing/v4/config/EnforcementPolicyEnum.js +85 -0
  243. package/dist/lib/models/licensing/v4/config/EntitlementDetail.d.ts +124 -0
  244. package/dist/lib/models/licensing/v4/config/EntitlementDetail.js +501 -0
  245. package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.d.ts +9 -0
  246. package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.js +134 -0
  247. package/dist/lib/models/licensing/v4/config/ExpiredLicense.d.ts +59 -0
  248. package/dist/lib/models/licensing/v4/config/ExpiredLicense.js +324 -0
  249. package/dist/lib/models/licensing/v4/config/Feature.d.ts +94 -0
  250. package/dist/lib/models/licensing/v4/config/Feature.js +449 -0
  251. package/dist/lib/models/licensing/v4/config/FeatureDetail.d.ts +74 -0
  252. package/dist/lib/models/licensing/v4/config/FeatureDetail.js +327 -0
  253. package/dist/lib/models/licensing/v4/config/FeatureProjection.d.ts +9 -0
  254. package/dist/lib/models/licensing/v4/config/FeatureProjection.js +134 -0
  255. package/dist/lib/models/licensing/v4/config/FeatureViolation.d.ts +32 -0
  256. package/dist/lib/models/licensing/v4/config/FeatureViolation.js +229 -0
  257. package/dist/lib/models/licensing/v4/config/GetClusterAllowanceApiResponse.d.ts +59 -0
  258. package/dist/lib/models/licensing/v4/config/GetClusterAllowanceApiResponse.js +311 -0
  259. package/dist/lib/models/licensing/v4/config/GetClusterEntitlementApiResponse.d.ts +59 -0
  260. package/dist/lib/models/licensing/v4/config/GetClusterEntitlementApiResponse.js +311 -0
  261. package/dist/lib/models/licensing/v4/config/GetClusterViolationApiResponse.d.ts +59 -0
  262. package/dist/lib/models/licensing/v4/config/GetClusterViolationApiResponse.js +311 -0
  263. package/dist/lib/models/licensing/v4/config/GetComplianceApiResponse.d.ts +59 -0
  264. package/dist/lib/models/licensing/v4/config/GetComplianceApiResponse.js +311 -0
  265. package/dist/lib/models/licensing/v4/config/GetLicenseApiResponse.d.ts +59 -0
  266. package/dist/lib/models/licensing/v4/config/GetLicenseApiResponse.js +311 -0
  267. package/dist/lib/models/licensing/v4/config/GetSettingApiResponse.d.ts +59 -0
  268. package/dist/lib/models/licensing/v4/config/GetSettingApiResponse.js +311 -0
  269. package/dist/lib/models/licensing/v4/config/License.d.ts +69 -0
  270. package/dist/lib/models/licensing/v4/config/License.js +376 -0
  271. package/dist/lib/models/licensing/v4/config/LicenseCategoryEnum.d.ts +19 -0
  272. package/dist/lib/models/licensing/v4/config/LicenseCategoryEnum.js +271 -0
  273. package/dist/lib/models/licensing/v4/config/LicenseProjection.d.ts +39 -0
  274. package/dist/lib/models/licensing/v4/config/LicenseProjection.js +264 -0
  275. package/dist/lib/models/licensing/v4/config/LicenseTypeEnum.d.ts +19 -0
  276. package/dist/lib/models/licensing/v4/config/LicenseTypeEnum.js +235 -0
  277. package/dist/lib/models/licensing/v4/config/ListClusterAllowancesApiResponse.d.ts +59 -0
  278. package/dist/lib/models/licensing/v4/config/ListClusterAllowancesApiResponse.js +338 -0
  279. package/dist/lib/models/licensing/v4/config/ListClusterEntitlementsApiResponse.d.ts +59 -0
  280. package/dist/lib/models/licensing/v4/config/ListClusterEntitlementsApiResponse.js +338 -0
  281. package/dist/lib/models/licensing/v4/config/ListClusterViolationsApiResponse.d.ts +59 -0
  282. package/dist/lib/models/licensing/v4/config/ListClusterViolationsApiResponse.js +333 -0
  283. package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +59 -0
  284. package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.js +338 -0
  285. package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +59 -0
  286. package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.js +338 -0
  287. package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.d.ts +59 -0
  288. package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.js +338 -0
  289. package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.d.ts +59 -0
  290. package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.js +333 -0
  291. package/dist/lib/models/licensing/v4/config/LogicalVersion.d.ts +62 -0
  292. package/dist/lib/models/licensing/v4/config/LogicalVersion.js +280 -0
  293. package/dist/lib/models/licensing/v4/config/MeterEnum.d.ts +19 -0
  294. package/dist/lib/models/licensing/v4/config/MeterEnum.js +121 -0
  295. package/dist/lib/models/licensing/v4/config/NutanixClusterConfig.d.ts +98 -0
  296. package/dist/lib/models/licensing/v4/config/NutanixClusterConfig.js +406 -0
  297. package/dist/lib/models/licensing/v4/config/PostPaidCategoryEnum.d.ts +19 -0
  298. package/dist/lib/models/licensing/v4/config/PostPaidCategoryEnum.js +85 -0
  299. package/dist/lib/models/licensing/v4/config/PostPaidConfig.d.ts +74 -0
  300. package/dist/lib/models/licensing/v4/config/PostPaidConfig.js +324 -0
  301. package/dist/lib/models/licensing/v4/config/ProductNameEnum.d.ts +19 -0
  302. package/dist/lib/models/licensing/v4/config/ProductNameEnum.js +115 -0
  303. package/dist/lib/models/licensing/v4/config/ResetScopeEnum.d.ts +19 -0
  304. package/dist/lib/models/licensing/v4/config/ResetScopeEnum.js +85 -0
  305. package/dist/lib/models/licensing/v4/config/ScopeEnum.d.ts +19 -0
  306. package/dist/lib/models/licensing/v4/config/ScopeEnum.js +97 -0
  307. package/dist/lib/models/licensing/v4/config/Service.d.ts +104 -0
  308. package/dist/lib/models/licensing/v4/config/Service.js +444 -0
  309. package/dist/lib/models/licensing/v4/config/ServiceProjection.d.ts +9 -0
  310. package/dist/lib/models/licensing/v4/config/ServiceProjection.js +134 -0
  311. package/dist/lib/models/licensing/v4/config/ServiceViolation.d.ts +60 -0
  312. package/dist/lib/models/licensing/v4/config/ServiceViolation.js +278 -0
  313. package/dist/lib/models/licensing/v4/config/ServiceViolationEnum.d.ts +19 -0
  314. package/dist/lib/models/licensing/v4/config/ServiceViolationEnum.js +91 -0
  315. package/dist/lib/models/licensing/v4/config/Setting.d.ts +133 -0
  316. package/dist/lib/models/licensing/v4/config/Setting.js +568 -0
  317. package/dist/lib/models/licensing/v4/config/StatusEnum.d.ts +19 -0
  318. package/dist/lib/models/licensing/v4/config/StatusEnum.js +85 -0
  319. package/dist/lib/models/licensing/v4/config/SubCategoryEnum.d.ts +19 -0
  320. package/dist/lib/models/licensing/v4/config/SubCategoryEnum.js +85 -0
  321. package/dist/lib/models/licensing/v4/config/TypeEnum.d.ts +19 -0
  322. package/dist/lib/models/licensing/v4/config/TypeEnum.js +85 -0
  323. package/dist/lib/models/licensing/v4/error/AppMessage.d.ts +108 -0
  324. package/dist/lib/models/licensing/v4/error/AppMessage.js +432 -0
  325. package/dist/lib/models/licensing/v4/error/ErrorResponse.d.ts +48 -0
  326. package/dist/lib/models/licensing/v4/error/ErrorResponse.js +299 -0
  327. package/dist/lib/models/licensing/v4/error/SchemaValidationError.d.ts +98 -0
  328. package/dist/lib/models/licensing/v4/error/SchemaValidationError.js +407 -0
  329. package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
  330. package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.js +318 -0
  331. package/dist/lib/models/validation/ValidationError.d.ts +13 -0
  332. package/dist/lib/models/validation/ValidationError.js +60 -0
  333. package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
  334. package/dist/lib/models/validation/ValidationScopes.js +38 -0
  335. package/dist/lib/utils/ValidationUtils.d.ts +13 -0
  336. package/dist/lib/utils/ValidationUtils.js +85 -0
  337. package/package.json +53 -0
@@ -0,0 +1,223 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
8
+ var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
9
+ var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
10
+ var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
11
+ var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
+ 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); }
14
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
15
+ 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."); }
16
+ 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); }
17
+ 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; }
18
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
19
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
+ 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; }
21
+ 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; }
22
+ 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; }
23
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
24
+ 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); } }
25
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
26
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
27
+ 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); }
28
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
29
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
30
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
31
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
32
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
33
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
34
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
+ function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
36
+ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
37
+ * Nutanix Licensing Versioned APIs
38
+ *
39
+ * OpenAPI spec version: 4.0.1-alpha-1
40
+ *
41
+ * NOTE: This class is auto generated by the Open API Dev Platform.
42
+ *
43
+ * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
44
+ *
45
+ * Do not edit the class manually.
46
+ *
47
+ */
48
+ /**
49
+ * The BaseClusterInfo model module.
50
+ * @module Ntnx/BaseClusterInfo
51
+ * @version 4.0.1-alpha-1
52
+ * @class BaseClusterInfo
53
+ */
54
+ var _BaseClusterInfo_brand = /*#__PURE__*/new WeakSet();
55
+ var BaseClusterInfo = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
56
+ /**
57
+ * Constructs a new <code>BaseClusterInfo</code>.
58
+ * Model containing cluster identifier and a boolean attribute representing whether it is a PC or PE
59
+ * @alias module:Ntnx/BaseClusterInfo
60
+ * @extends module:Ntnx/ExternalizableAbstractModel
61
+ */
62
+ function BaseClusterInfo() {
63
+ var _this;
64
+ _classCallCheck(this, BaseClusterInfo);
65
+ _this = _callSuper(this, BaseClusterInfo);
66
+ /*
67
+ * toJson method for a map type which supports map with primitive keys and values of object types
68
+ * @param {Object} obj
69
+ * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
70
+ * Otherwise, just returns the input object.
71
+ */
72
+ _classPrivateMethodInitSpec(_this, _BaseClusterInfo_brand);
73
+ _this.$objectType = "licensing.v4.config.BaseClusterInfo";
74
+ _this.$reserved = {
75
+ '$fv': "v4.r0.a1"
76
+ };
77
+ _this.$unknownFields = {};
78
+ return _this;
79
+ }
80
+
81
+ /**
82
+ * Constructs a <code>BaseClusterInfo</code> from a plain JavaScript object, optionally creating a new instance.
83
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
84
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
85
+ * @param {module:Ntnx/BaseClusterInfo} obj Optional instance to populate.
86
+ * @param callFromChild {Boolean} Flag to recognise calling instance
87
+ * @return {module:Ntnx/BaseClusterInfo} The populated <code>BaseClusterInfo</code> instance.
88
+ */
89
+ _inherits(BaseClusterInfo, _ExternalizableAbstra);
90
+ return _createClass(BaseClusterInfo, [{
91
+ key: "getIsMulticluster",
92
+ value:
93
+ /**
94
+ * Returns True value indicates cluster UUID represents Prism Central otherwise Prism Element
95
+ * @return {}
96
+ */
97
+ function getIsMulticluster() {
98
+ return this.isMulticluster;
99
+ }
100
+
101
+ /**
102
+ * Sets True value indicates cluster UUID represents Prism Central otherwise Prism Element
103
+ * @param {} isMulticluster True value indicates cluster UUID represents Prism Central otherwise Prism Element
104
+ */
105
+ }, {
106
+ key: "setIsMulticluster",
107
+ value: function setIsMulticluster(isMulticluster) {
108
+ this.isMulticluster = isMulticluster;
109
+ }
110
+ }, {
111
+ key: "toJson",
112
+ value: function toJson(forMutation) {
113
+ if (forMutation === false) {
114
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getIsMulticluster() !== 'undefined' && this.getIsMulticluster() !== null ? {
115
+ 'isMulticluster': this.getIsMulticluster()
116
+ } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
117
+ 'extId': this.getExtId()
118
+ } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
119
+ 'links': this.getLinks().map(function (item) {
120
+ return item.toJson(false);
121
+ })
122
+ } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
123
+ 'tenantId': this.getTenantId()
124
+ } : {}), {}, {
125
+ '$reserved': this.get$Reserved(),
126
+ '$objectType': this.get$ObjectType(),
127
+ '$unknownFields': this.get$UnknownFields()
128
+ });
129
+ }
130
+ return _objectSpread(_objectSpread({}, typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
131
+ 'extId': this.getExtId()
132
+ } : {}), {}, {
133
+ '$reserved': this.get$Reserved(),
134
+ '$objectType': this.get$ObjectType(),
135
+ '$unknownFields': this.get$UnknownFields()
136
+ });
137
+ }
138
+ }, {
139
+ key: "validate",
140
+ value: function validate(scope, properties) {
141
+ var _this2 = this;
142
+ var propList = [];
143
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
144
+ //cases validate() and validate(scope)
145
+ propList = [];
146
+ } else if (arguments.length === 1) {
147
+ //case validate(properties)
148
+ propList = arguments[0];
149
+ scope = null;
150
+ } else {
151
+ //case validate(scope, properties)
152
+ propList = arguments[1];
153
+ }
154
+ var res = [];
155
+ var err = null;
156
+ propList.forEach(function (property) {
157
+ err = _this2.validateProperty(property, scope);
158
+ if (err) {
159
+ res.push(err);
160
+ }
161
+ });
162
+ return new Promise(function (resolve, reject) {
163
+ if (res.length !== 0) {
164
+ reject(err);
165
+ } else {
166
+ resolve();
167
+ }
168
+ });
169
+ }
170
+ }, {
171
+ key: "validateProperty",
172
+ value: function validateProperty(scope, property) {
173
+ if (property === "isMulticluster") {
174
+ if (typeof this.isMulticluster === 'undefined' || this.isMulticluster === null) {
175
+ return new _ValidationError["default"]("isMulticluster", "undefined or null");
176
+ }
177
+ }
178
+ return new _ValidationError["default"](property, "no such property exists");
179
+ }
180
+ }], [{
181
+ key: "constructFromObject",
182
+ value: function constructFromObject(data, obj) {
183
+ var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
184
+ var items, item, i, itemArr, discriminator;
185
+ if (data) {
186
+ obj = obj || new BaseClusterInfo();
187
+ _ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
188
+ if (data.hasOwnProperty('isMulticluster') && data.isMulticluster !== null && data.isMulticluster !== undefined) {
189
+ obj.setIsMulticluster(data['isMulticluster']);
190
+ }
191
+ if (!callFromChild) {
192
+ obj.$unknownFields = _objectSpread({}, data.$unknownFields);
193
+ for (var property in data) {
194
+ if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
195
+ obj.$unknownFields[property] = data[property];
196
+ }
197
+ }
198
+ }
199
+ }
200
+ return obj;
201
+ }
202
+ }]);
203
+ }(_ExternalizableAbstractModel["default"]);
204
+ /**
205
+ * True value indicates cluster UUID represents Prism Central otherwise Prism Element
206
+ * @memberof BaseClusterInfo
207
+ */
208
+ function _toJsonMapType(obj, forMutation) {
209
+ if (obj instanceof Map) {
210
+ return Object.fromEntries(Array.from(obj, function (_ref) {
211
+ var _ref2 = _slicedToArray(_ref, 2),
212
+ k = _ref2[0],
213
+ v = _ref2[1];
214
+ return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
215
+ }));
216
+ } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
217
+ return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
218
+ return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
219
+ }));
220
+ }
221
+ return obj;
222
+ }
223
+ BaseClusterInfo.prototype.isMulticluster = undefined;
@@ -0,0 +1,74 @@
1
+ /**
2
+ * The BaseLicenseInfo model module.
3
+ * @module Ntnx/BaseLicenseInfo
4
+ * @version 4.0.1-alpha-1
5
+ * @class BaseLicenseInfo
6
+ */
7
+ export default class BaseLicenseInfo extends ExternalizableAbstractModel {
8
+ /**
9
+ * Returns Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate
10
+ * @return {}
11
+ */
12
+ getName(): any;
13
+ /**
14
+ * Sets Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate
15
+ * @param {} name Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate
16
+ */
17
+ setName(name: any): void;
18
+ name: any;
19
+ /**
20
+ * @return {}
21
+ */
22
+ getType(): any;
23
+ /**
24
+ * @param {} type
25
+ */
26
+ setType(type: any): void;
27
+ type: any;
28
+ /**
29
+ * @return {}
30
+ */
31
+ getCategory(): any;
32
+ /**
33
+ * @param {} category
34
+ */
35
+ setCategory(category: any): void;
36
+ category: any;
37
+ /**
38
+ * @return {}
39
+ */
40
+ getSubCategory(): any;
41
+ /**
42
+ * @param {} subCategory
43
+ */
44
+ setSubCategory(subCategory: any): void;
45
+ subCategory: any;
46
+ /**
47
+ * Returns Indicates expiry date of license
48
+ * @return {}
49
+ */
50
+ getExpiryDate(): any;
51
+ /**
52
+ * Sets Indicates expiry date of license
53
+ * @param {} expiryDate Indicates expiry date of license
54
+ */
55
+ setExpiryDate(expiryDate: any): void;
56
+ expiryDate: any;
57
+ toJson(forMutation: any): {
58
+ $reserved: {
59
+ $fv: string;
60
+ };
61
+ $objectType: string;
62
+ $unknownFields: {};
63
+ tenantId?: any;
64
+ links?: any;
65
+ extId?: any;
66
+ expiryDate?: any;
67
+ subCategory?: any;
68
+ category?: any;
69
+ type?: any;
70
+ name?: any;
71
+ };
72
+ #private;
73
+ }
74
+ import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel";
@@ -0,0 +1,374 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
8
+ var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
9
+ var _LicenseCategoryEnum = _interopRequireDefault(require("./LicenseCategoryEnum"));
10
+ var _LicenseTypeEnum = _interopRequireDefault(require("./LicenseTypeEnum"));
11
+ var _SubCategoryEnum = _interopRequireDefault(require("./SubCategoryEnum"));
12
+ var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
13
+ var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
14
+ var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
+ 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); }
17
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18
+ 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."); }
19
+ 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); }
20
+ 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; }
21
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
22
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
+ 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; }
24
+ 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; }
25
+ 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; }
26
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
+ 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); } }
28
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
30
+ 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); }
31
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
32
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
33
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
34
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
35
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
36
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
37
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
38
+ function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
39
+ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
40
+ * Nutanix Licensing Versioned APIs
41
+ *
42
+ * OpenAPI spec version: 4.0.1-alpha-1
43
+ *
44
+ * NOTE: This class is auto generated by the Open API Dev Platform.
45
+ *
46
+ * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
47
+ *
48
+ * Do not edit the class manually.
49
+ *
50
+ */
51
+ /**
52
+ * The BaseLicenseInfo model module.
53
+ * @module Ntnx/BaseLicenseInfo
54
+ * @version 4.0.1-alpha-1
55
+ * @class BaseLicenseInfo
56
+ */
57
+ var _BaseLicenseInfo_brand = /*#__PURE__*/new WeakSet();
58
+ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
59
+ /**
60
+ * Constructs a new <code>BaseLicenseInfo</code>.
61
+ * Model containing base licensing attributes like name, type, category and others
62
+ * @alias module:Ntnx/BaseLicenseInfo
63
+ * @extends module:Ntnx/ExternalizableAbstractModel
64
+ */
65
+ function BaseLicenseInfo() {
66
+ var _this;
67
+ _classCallCheck(this, BaseLicenseInfo);
68
+ _this = _callSuper(this, BaseLicenseInfo);
69
+ /*
70
+ * toJson method for a map type which supports map with primitive keys and values of object types
71
+ * @param {Object} obj
72
+ * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
73
+ * Otherwise, just returns the input object.
74
+ */
75
+ _classPrivateMethodInitSpec(_this, _BaseLicenseInfo_brand);
76
+ _this.$objectType = "licensing.v4.config.BaseLicenseInfo";
77
+ _this.$reserved = {
78
+ '$fv': "v4.r0.a1"
79
+ };
80
+ _this.$unknownFields = {};
81
+ return _this;
82
+ }
83
+
84
+ /**
85
+ * Constructs a <code>BaseLicenseInfo</code> from a plain JavaScript object, optionally creating a new instance.
86
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
87
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
88
+ * @param {module:Ntnx/BaseLicenseInfo} obj Optional instance to populate.
89
+ * @param callFromChild {Boolean} Flag to recognise calling instance
90
+ * @return {module:Ntnx/BaseLicenseInfo} The populated <code>BaseLicenseInfo</code> instance.
91
+ */
92
+ _inherits(BaseLicenseInfo, _ExternalizableAbstra);
93
+ return _createClass(BaseLicenseInfo, [{
94
+ key: "getName",
95
+ value:
96
+ /**
97
+ * Returns Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate
98
+ * @return {}
99
+ */
100
+ function getName() {
101
+ return this.name;
102
+ }
103
+
104
+ /**
105
+ * Sets Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate
106
+ * @param {} name Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate
107
+ */
108
+ }, {
109
+ key: "setName",
110
+ value: function setName(name) {
111
+ this.name = name;
112
+ }
113
+
114
+ /**
115
+ * @return {}
116
+ */
117
+ }, {
118
+ key: "getType",
119
+ value: function getType() {
120
+ return this.type;
121
+ }
122
+
123
+ /**
124
+ * @param {} type
125
+ */
126
+ }, {
127
+ key: "setType",
128
+ value: function setType(type) {
129
+ this.type = type;
130
+ }
131
+
132
+ /**
133
+ * @return {}
134
+ */
135
+ }, {
136
+ key: "getCategory",
137
+ value: function getCategory() {
138
+ return this.category;
139
+ }
140
+
141
+ /**
142
+ * @param {} category
143
+ */
144
+ }, {
145
+ key: "setCategory",
146
+ value: function setCategory(category) {
147
+ this.category = category;
148
+ }
149
+
150
+ /**
151
+ * @return {}
152
+ */
153
+ }, {
154
+ key: "getSubCategory",
155
+ value: function getSubCategory() {
156
+ return this.subCategory;
157
+ }
158
+
159
+ /**
160
+ * @param {} subCategory
161
+ */
162
+ }, {
163
+ key: "setSubCategory",
164
+ value: function setSubCategory(subCategory) {
165
+ this.subCategory = subCategory;
166
+ }
167
+
168
+ /**
169
+ * Returns Indicates expiry date of license
170
+ * @return {}
171
+ */
172
+ }, {
173
+ key: "getExpiryDate",
174
+ value: function getExpiryDate() {
175
+ return this.expiryDate;
176
+ }
177
+
178
+ /**
179
+ * Sets Indicates expiry date of license
180
+ * @param {} expiryDate Indicates expiry date of license
181
+ */
182
+ }, {
183
+ key: "setExpiryDate",
184
+ value: function setExpiryDate(expiryDate) {
185
+ this.expiryDate = expiryDate;
186
+ }
187
+ }, {
188
+ key: "toJson",
189
+ value: function toJson(forMutation) {
190
+ if (forMutation === false) {
191
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {
192
+ 'name': this.getName()
193
+ } : {}), typeof this.getType() !== 'undefined' && this.getType() !== null ? {
194
+ 'type': this.getType()
195
+ } : {}), typeof this.getCategory() !== 'undefined' && this.getCategory() !== null ? {
196
+ 'category': this.getCategory()
197
+ } : {}), typeof this.getSubCategory() !== 'undefined' && this.getSubCategory() !== null ? {
198
+ 'subCategory': this.getSubCategory()
199
+ } : {}), typeof this.getExpiryDate() !== 'undefined' && this.getExpiryDate() !== null ? {
200
+ 'expiryDate': this.getExpiryDate()
201
+ } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
202
+ 'extId': this.getExtId()
203
+ } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
204
+ 'links': this.getLinks().map(function (item) {
205
+ return item.toJson(false);
206
+ })
207
+ } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
208
+ 'tenantId': this.getTenantId()
209
+ } : {}), {}, {
210
+ '$reserved': this.get$Reserved(),
211
+ '$objectType': this.get$ObjectType(),
212
+ '$unknownFields': this.get$UnknownFields()
213
+ });
214
+ }
215
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {
216
+ 'name': this.getName()
217
+ } : {}), typeof this.getType() !== 'undefined' && this.getType() !== null ? {
218
+ 'type': this.getType()
219
+ } : {}), typeof this.getCategory() !== 'undefined' && this.getCategory() !== null ? {
220
+ 'category': this.getCategory()
221
+ } : {}), typeof this.getSubCategory() !== 'undefined' && this.getSubCategory() !== null ? {
222
+ 'subCategory': this.getSubCategory()
223
+ } : {}), typeof this.getExpiryDate() !== 'undefined' && this.getExpiryDate() !== null ? {
224
+ 'expiryDate': this.getExpiryDate()
225
+ } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
226
+ 'extId': this.getExtId()
227
+ } : {}), {}, {
228
+ '$reserved': this.get$Reserved(),
229
+ '$objectType': this.get$ObjectType(),
230
+ '$unknownFields': this.get$UnknownFields()
231
+ });
232
+ }
233
+ }, {
234
+ key: "validate",
235
+ value: function validate(scope, properties) {
236
+ var _this2 = this;
237
+ var propList = [];
238
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
239
+ //cases validate() and validate(scope)
240
+ propList = [];
241
+ } else if (arguments.length === 1) {
242
+ //case validate(properties)
243
+ propList = arguments[0];
244
+ scope = null;
245
+ } else {
246
+ //case validate(scope, properties)
247
+ propList = arguments[1];
248
+ }
249
+ var res = [];
250
+ var err = null;
251
+ propList.forEach(function (property) {
252
+ err = _this2.validateProperty(property, scope);
253
+ if (err) {
254
+ res.push(err);
255
+ }
256
+ });
257
+ return new Promise(function (resolve, reject) {
258
+ if (res.length !== 0) {
259
+ reject(err);
260
+ } else {
261
+ resolve();
262
+ }
263
+ });
264
+ }
265
+ }, {
266
+ key: "validateProperty",
267
+ value: function validateProperty(scope, property) {
268
+ if (property === "name") {
269
+ if (typeof this.name === 'undefined' || this.name === null) {
270
+ return new _ValidationError["default"]("name", "undefined or null");
271
+ }
272
+ if (!_ValidationUtils["default"].validateMaxLength(this.name, 64)) {
273
+ return new _ValidationError["default"]("name", "does not satisfy required maxLength constraint: 64");
274
+ }
275
+ }
276
+ if (property === "type") {
277
+ if (typeof this.type === 'undefined' || this.type === null) {
278
+ return new _ValidationError["default"]("type", "undefined or null");
279
+ }
280
+ }
281
+ if (property === "category") {
282
+ if (typeof this.category === 'undefined' || this.category === null) {
283
+ return new _ValidationError["default"]("category", "undefined or null");
284
+ }
285
+ }
286
+ if (property === "subCategory") {
287
+ if (typeof this.subCategory === 'undefined' || this.subCategory === null) {
288
+ return new _ValidationError["default"]("subCategory", "undefined or null");
289
+ }
290
+ }
291
+ if (property === "expiryDate") {
292
+ if (typeof this.expiryDate === 'undefined' || this.expiryDate === null) {
293
+ return new _ValidationError["default"]("expiryDate", "undefined or null");
294
+ }
295
+ }
296
+ return new _ValidationError["default"](property, "no such property exists");
297
+ }
298
+ }], [{
299
+ key: "constructFromObject",
300
+ value: function constructFromObject(data, obj) {
301
+ var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
302
+ var items, item, i, itemArr, discriminator;
303
+ if (data) {
304
+ obj = obj || new BaseLicenseInfo();
305
+ _ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
306
+ if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
307
+ obj.setName(data['name']);
308
+ }
309
+ if (data.hasOwnProperty('type') && data.type !== null && data.type !== undefined) {
310
+ obj.setType(_LicenseTypeEnum["default"].constructFromObject(data['type']));
311
+ }
312
+ if (data.hasOwnProperty('category') && data.category !== null && data.category !== undefined) {
313
+ obj.setCategory(_LicenseCategoryEnum["default"].constructFromObject(data['category']));
314
+ }
315
+ if (data.hasOwnProperty('subCategory') && data.subCategory !== null && data.subCategory !== undefined) {
316
+ obj.setSubCategory(_SubCategoryEnum["default"].constructFromObject(data['subCategory']));
317
+ }
318
+ if (data.hasOwnProperty('expiryDate') && data.expiryDate !== null && data.expiryDate !== undefined) {
319
+ obj.setExpiryDate(data['expiryDate']);
320
+ }
321
+ if (!callFromChild) {
322
+ obj.$unknownFields = _objectSpread({}, data.$unknownFields);
323
+ for (var property in data) {
324
+ if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
325
+ obj.$unknownFields[property] = data[property];
326
+ }
327
+ }
328
+ }
329
+ }
330
+ return obj;
331
+ }
332
+ }]);
333
+ }(_ExternalizableAbstractModel["default"]);
334
+ /**
335
+ * Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate
336
+ * @memberof BaseLicenseInfo
337
+ */
338
+ function _toJsonMapType(obj, forMutation) {
339
+ if (obj instanceof Map) {
340
+ return Object.fromEntries(Array.from(obj, function (_ref) {
341
+ var _ref2 = _slicedToArray(_ref, 2),
342
+ k = _ref2[0],
343
+ v = _ref2[1];
344
+ return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
345
+ }));
346
+ } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
347
+ return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
348
+ return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
349
+ }));
350
+ }
351
+ return obj;
352
+ }
353
+ BaseLicenseInfo.prototype.name = undefined;
354
+
355
+ /**
356
+ * @memberof BaseLicenseInfo
357
+ */
358
+ BaseLicenseInfo.prototype.type = undefined;
359
+
360
+ /**
361
+ * @memberof BaseLicenseInfo
362
+ */
363
+ BaseLicenseInfo.prototype.category = undefined;
364
+
365
+ /**
366
+ * @memberof BaseLicenseInfo
367
+ */
368
+ BaseLicenseInfo.prototype.subCategory = undefined;
369
+
370
+ /**
371
+ * Indicates expiry date of license
372
+ * @memberof BaseLicenseInfo
373
+ */
374
+ BaseLicenseInfo.prototype.expiryDate = undefined;