@nutanix-scratch/licensing-js-client 4.0.1-alpha.1 → 4.1.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 (501) hide show
  1. package/LICENSE.txt +202 -49
  2. package/README.md +54 -36
  3. package/dist/Ntnx-Licensing-js-client-prod.js +1 -1
  4. package/dist/Ntnx-Licensing-js-client.js +506 -242
  5. package/dist/es/ApiClient.d.ts +14 -1
  6. package/dist/es/ApiClient.js +257 -206
  7. package/dist/es/Paginable.d.ts +1 -1
  8. package/dist/es/Paginable.js +10 -10
  9. package/dist/es/apis/enduserlicenseagreement-endpoints.d.ts +41 -0
  10. package/dist/es/apis/{enduserlicenseagreements-endpoints.js → enduserlicenseagreement-endpoints.js} +28 -70
  11. package/dist/es/apis/licensekeys-endpoints.d.ts +90 -0
  12. package/dist/es/apis/licensekeys-endpoints.js +283 -0
  13. package/dist/es/apis/licenses-endpoints.d.ts +60 -146
  14. package/dist/es/apis/licenses-endpoints.js +176 -362
  15. package/dist/es/index.d.ts +115 -67
  16. package/dist/es/index.js +348 -156
  17. package/dist/es/models/common/v1/config/Flag.d.ts +32 -26
  18. package/dist/es/models/common/v1/config/Flag.js +66 -22
  19. package/dist/es/models/common/v1/config/KVPair.d.ts +35 -26
  20. package/dist/es/models/common/v1/config/KVPair.js +71 -25
  21. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  22. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
  23. package/dist/es/models/common/v1/config/Message.d.ts +41 -38
  24. package/dist/es/models/common/v1/config/Message.js +58 -26
  25. package/dist/es/models/common/v1/config/MessageSeverity.js +8 -8
  26. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +24 -22
  27. package/dist/es/models/common/v1/config/TenantAwareModel.js +55 -23
  28. package/dist/es/models/common/v1/response/ApiLink.d.ts +28 -26
  29. package/dist/es/models/common/v1/response/ApiLink.js +54 -22
  30. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
  31. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +72 -28
  32. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
  33. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
  34. package/dist/es/models/licensing/v4/agreements/Acceptance.d.ts +81 -0
  35. package/dist/es/models/licensing/v4/agreements/Acceptance.js +314 -0
  36. package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.d.ts +65 -25
  37. package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.js +96 -42
  38. package/dist/es/models/licensing/v4/agreements/EndUser.d.ts +110 -0
  39. package/dist/{lib/models/licensing/v4/agreements/EulaUser.js → es/models/licensing/v4/agreements/EndUser.js} +148 -137
  40. package/dist/es/models/licensing/v4/agreements/Eula.d.ts +61 -41
  41. package/dist/es/models/licensing/v4/agreements/Eula.js +112 -75
  42. package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +65 -25
  43. package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.js +60 -28
  44. package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +103 -0
  45. package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.js +347 -0
  46. package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +127 -0
  47. package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +360 -0
  48. package/dist/es/models/licensing/v4/config/Allowance.d.ts +70 -0
  49. package/dist/es/models/licensing/v4/config/{ClusterAllowance.js → Allowance.js} +136 -84
  50. package/dist/es/models/licensing/v4/config/AllowanceDetail.d.ts +46 -42
  51. package/dist/es/models/licensing/v4/config/AllowanceDetail.js +84 -52
  52. package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.d.ts +2 -1
  53. package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.js +40 -19
  54. package/dist/es/models/licensing/v4/config/AllowanceProjection.d.ts +56 -0
  55. package/dist/es/models/licensing/v4/config/AllowanceProjection.js +320 -0
  56. package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +102 -0
  57. package/dist/es/models/licensing/v4/config/{ListClusterAllowancesApiResponse.js → AssignLicenseKeysApiResponse.js} +90 -63
  58. package/dist/es/models/licensing/v4/config/BaseClusterInfo.d.ts +21 -16
  59. package/dist/es/models/licensing/v4/config/BaseClusterInfo.js +82 -34
  60. package/dist/es/models/licensing/v4/config/BaseLicenseInfo.d.ts +49 -41
  61. package/dist/es/models/licensing/v4/config/BaseLicenseInfo.js +101 -52
  62. package/dist/es/models/licensing/v4/config/BillingPlan.d.ts +19 -0
  63. package/dist/es/models/licensing/v4/config/BillingPlan.js +91 -0
  64. package/dist/es/models/licensing/v4/config/CapacityViolation.d.ts +45 -40
  65. package/dist/es/models/licensing/v4/config/CapacityViolation.js +84 -52
  66. package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +30 -0
  67. package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.js +269 -0
  68. package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +10 -0
  69. package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +151 -0
  70. package/dist/es/models/licensing/v4/config/ClusterType.d.ts +19 -0
  71. package/dist/es/models/licensing/v4/config/ClusterType.js +91 -0
  72. package/dist/es/models/licensing/v4/config/Compliance.d.ts +52 -29
  73. package/dist/es/models/licensing/v4/config/Compliance.js +90 -38
  74. package/dist/es/models/licensing/v4/config/ComplianceProjection.d.ts +56 -18
  75. package/dist/es/models/licensing/v4/config/ComplianceProjection.js +112 -33
  76. package/dist/es/models/licensing/v4/config/Consumption.d.ts +46 -26
  77. package/dist/es/models/licensing/v4/config/Consumption.js +114 -65
  78. package/dist/es/models/licensing/v4/config/ConsumptionProjection.d.ts +2 -1
  79. package/dist/es/models/licensing/v4/config/ConsumptionProjection.js +38 -17
  80. package/dist/es/models/licensing/v4/config/{ProductNameEnum.d.ts → ConsumptionType.d.ts} +6 -6
  81. package/dist/es/models/licensing/v4/config/ConsumptionType.js +85 -0
  82. package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +98 -0
  83. package/dist/{lib/models/licensing/v4/config/GetClusterAllowanceApiResponse.js → es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js} +93 -59
  84. package/dist/es/models/licensing/v4/config/DryRunCheck.d.ts +72 -0
  85. package/dist/es/models/licensing/v4/config/DryRunCheck.js +325 -0
  86. package/dist/es/models/licensing/v4/config/DryRunStatus.d.ts +19 -0
  87. package/dist/es/models/licensing/v4/config/DryRunStatus.js +86 -0
  88. package/dist/es/models/licensing/v4/config/DryRunValidationResult.d.ts +68 -0
  89. package/dist/es/models/licensing/v4/config/DryRunValidationResult.js +297 -0
  90. package/dist/es/models/licensing/v4/config/EnforcementActions.d.ts +19 -0
  91. package/dist/es/models/licensing/v4/config/EnforcementActions.js +139 -0
  92. package/dist/es/models/licensing/v4/config/EnforcementLevel.d.ts +19 -0
  93. package/dist/{lib/models/licensing/v4/config/EnforcementLevelEnum.js → es/models/licensing/v4/config/EnforcementLevel.js} +27 -27
  94. package/dist/es/models/licensing/v4/config/EnforcementPolicy.d.ts +19 -0
  95. package/dist/es/models/licensing/v4/config/EnforcementPolicy.js +85 -0
  96. package/dist/es/models/licensing/v4/config/Entitlement.d.ts +98 -0
  97. package/dist/es/models/licensing/v4/config/{ClusterEntitlement.js → Entitlement.js} +147 -95
  98. package/dist/es/models/licensing/v4/config/EntitlementDetail.d.ts +74 -67
  99. package/dist/es/models/licensing/v4/config/EntitlementDetail.js +89 -56
  100. package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.d.ts +2 -1
  101. package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.js +43 -22
  102. package/dist/es/models/licensing/v4/config/EntitlementProjection.d.ts +66 -0
  103. package/dist/{lib/models/licensing/v4/config/ClusterEntitlementProjection.js → es/models/licensing/v4/config/EntitlementProjection.js} +149 -60
  104. package/dist/es/models/licensing/v4/config/ExpiredLicense.d.ts +38 -32
  105. package/dist/es/models/licensing/v4/config/ExpiredLicense.js +116 -44
  106. package/dist/es/models/licensing/v4/config/Feature.d.ts +63 -53
  107. package/dist/es/models/licensing/v4/config/Feature.js +144 -81
  108. package/dist/es/models/licensing/v4/config/FeatureDetail.d.ts +40 -38
  109. package/dist/es/models/licensing/v4/config/FeatureDetail.js +68 -36
  110. package/dist/es/models/licensing/v4/config/FeatureProjection.d.ts +2 -1
  111. package/dist/es/models/licensing/v4/config/FeatureProjection.js +40 -22
  112. package/dist/es/models/licensing/v4/config/FeatureViolation.d.ts +15 -16
  113. package/dist/es/models/licensing/v4/config/FeatureViolation.js +79 -30
  114. package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +99 -0
  115. package/dist/es/models/licensing/v4/config/{GetComplianceApiResponse.js → GetLicenseKeyApiResponse.js} +90 -58
  116. package/dist/es/models/licensing/v4/config/License.d.ts +66 -40
  117. package/dist/es/models/licensing/v4/config/License.js +165 -57
  118. package/dist/es/models/licensing/v4/config/{LicenseTypeEnum.d.ts → LicenseCategory.d.ts} +6 -6
  119. package/dist/es/models/licensing/v4/config/LicenseCategory.js +277 -0
  120. package/dist/es/models/licensing/v4/config/LicenseClass.d.ts +19 -0
  121. package/dist/es/models/licensing/v4/config/LicenseClass.js +91 -0
  122. package/dist/es/models/licensing/v4/config/LicenseKey.d.ts +149 -0
  123. package/dist/es/models/licensing/v4/config/LicenseKey.js +623 -0
  124. package/dist/es/models/licensing/v4/config/LicenseKeyAssignSpec.d.ts +71 -0
  125. package/dist/es/models/licensing/v4/config/LicenseKeyAssignSpec.js +329 -0
  126. package/dist/es/models/licensing/v4/config/LicenseKeyMapping.d.ts +64 -0
  127. package/dist/es/models/licensing/v4/config/LicenseKeyMapping.js +315 -0
  128. package/dist/es/models/licensing/v4/config/LicenseKeyProjection.d.ts +60 -0
  129. package/dist/es/models/licensing/v4/config/LicenseKeyProjection.js +366 -0
  130. package/dist/{lib/models/licensing/v4/config/EnforcementPolicyEnum.d.ts → es/models/licensing/v4/config/LicenseKeySubCategory.d.ts} +6 -6
  131. package/dist/es/models/licensing/v4/config/LicenseKeySubCategory.js +85 -0
  132. package/dist/es/models/licensing/v4/config/LicenseProjection.d.ts +41 -22
  133. package/dist/es/models/licensing/v4/config/LicenseProjection.js +146 -36
  134. package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +75 -0
  135. package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.js +364 -0
  136. package/dist/es/models/licensing/v4/config/LicenseType.d.ts +19 -0
  137. package/dist/es/models/licensing/v4/config/LicenseType.js +271 -0
  138. package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +100 -0
  139. package/dist/{lib/models/licensing/v4/config/ListClusterEntitlementsApiResponse.js → es/models/licensing/v4/config/ListAllowancesApiResponse.js} +93 -61
  140. package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +66 -25
  141. package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.js +60 -28
  142. package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +100 -0
  143. package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.js +370 -0
  144. package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +66 -25
  145. package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.js +60 -28
  146. package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +100 -0
  147. package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.js +370 -0
  148. package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.d.ts +66 -25
  149. package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.js +60 -28
  150. package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +99 -0
  151. package/dist/{lib/models/licensing/v4/config/ListClusterViolationsApiResponse.js → es/models/licensing/v4/config/ListRecommendationsApiResponse.js} +90 -58
  152. package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.d.ts +65 -25
  153. package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.js +60 -28
  154. package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.d.ts +99 -0
  155. package/dist/es/models/licensing/v4/config/{ListClusterViolationsApiResponse.js → ListViolationsApiResponse.js} +90 -58
  156. package/dist/es/models/licensing/v4/config/LogicalVersion.d.ts +32 -30
  157. package/dist/es/models/licensing/v4/config/LogicalVersion.js +93 -61
  158. package/dist/es/models/licensing/v4/config/{TypeEnum.d.ts → Meter.d.ts} +6 -6
  159. package/dist/es/models/licensing/v4/config/Meter.js +127 -0
  160. package/dist/es/models/licensing/v4/config/OperationType.d.ts +19 -0
  161. package/dist/es/models/licensing/v4/config/OperationType.js +97 -0
  162. package/dist/es/models/licensing/v4/config/PortalSetting.d.ts +86 -0
  163. package/dist/es/models/licensing/v4/config/PortalSetting.js +359 -0
  164. package/dist/es/models/licensing/v4/config/PostPaidCategory.d.ts +19 -0
  165. package/dist/es/models/licensing/v4/config/PostPaidCategory.js +85 -0
  166. package/dist/es/models/licensing/v4/config/PostPaidConfig.d.ts +61 -38
  167. package/dist/es/models/licensing/v4/config/PostPaidConfig.js +141 -42
  168. package/dist/es/models/licensing/v4/config/ProductName.d.ts +19 -0
  169. package/dist/es/models/licensing/v4/config/ProductName.js +115 -0
  170. package/dist/es/models/licensing/v4/config/Recommendation.d.ts +47 -0
  171. package/dist/es/models/licensing/v4/config/Recommendation.js +287 -0
  172. package/dist/es/models/licensing/v4/config/RecommendationDetail.d.ts +98 -0
  173. package/dist/es/models/licensing/v4/config/RecommendationDetail.js +429 -0
  174. package/dist/es/models/licensing/v4/config/{LicenseCategoryEnum.d.ts → RecommendationScope.d.ts} +6 -6
  175. package/dist/es/models/licensing/v4/config/RecommendationScope.js +85 -0
  176. package/dist/{lib/models/licensing/v4/config/StatusEnum.d.ts → es/models/licensing/v4/config/ResetScope.d.ts} +6 -6
  177. package/dist/{lib/models/licensing/v4/config/ResetScopeEnum.js → es/models/licensing/v4/config/ResetScope.js} +27 -27
  178. package/dist/{lib/models/licensing/v4/config/TypeEnum.d.ts → es/models/licensing/v4/config/Scope.d.ts} +6 -6
  179. package/dist/{lib/models/licensing/v4/config/ScopeEnum.js → es/models/licensing/v4/config/Scope.js} +29 -35
  180. package/dist/es/models/licensing/v4/config/Service.d.ts +65 -52
  181. package/dist/es/models/licensing/v4/config/Service.js +79 -41
  182. package/dist/es/models/licensing/v4/config/ServiceProjection.d.ts +2 -1
  183. package/dist/es/models/licensing/v4/config/ServiceProjection.js +42 -21
  184. package/dist/es/models/licensing/v4/config/ServiceViolation.d.ts +28 -25
  185. package/dist/es/models/licensing/v4/config/ServiceViolation.js +59 -26
  186. package/dist/es/models/licensing/v4/config/{PostPaidCategoryEnum.d.ts → ServiceViolationType.d.ts} +6 -6
  187. package/dist/{lib/models/licensing/v4/config/ServiceViolationEnum.js → es/models/licensing/v4/config/ServiceViolationType.js} +29 -29
  188. package/dist/es/models/licensing/v4/config/Setting.d.ts +97 -85
  189. package/dist/es/models/licensing/v4/config/Setting.js +137 -124
  190. package/dist/es/models/licensing/v4/config/{ScopeEnum.d.ts → Status.d.ts} +6 -6
  191. package/dist/es/models/licensing/v4/config/Status.js +85 -0
  192. package/dist/es/models/licensing/v4/config/SubCategory.d.ts +19 -0
  193. package/dist/es/models/licensing/v4/config/{SubCategoryEnum.js → SubCategory.js} +27 -27
  194. package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +99 -0
  195. package/dist/{lib/models/licensing/v4/config/GetClusterEntitlementApiResponse.js → es/models/licensing/v4/config/SyncLicenseStateApiResponse.js} +90 -58
  196. package/dist/es/models/licensing/v4/config/SyncOperationType.d.ts +19 -0
  197. package/dist/es/models/licensing/v4/config/SyncOperationType.js +121 -0
  198. package/dist/{lib/models/licensing/v4/config/ScopeEnum.d.ts → es/models/licensing/v4/config/ValueType.d.ts} +6 -6
  199. package/dist/es/models/licensing/v4/config/{TypeEnum.js → ValueType.js} +27 -27
  200. package/dist/es/models/licensing/v4/config/Violation.d.ts +102 -0
  201. package/dist/es/models/licensing/v4/config/{ClusterViolation.js → Violation.js} +112 -60
  202. package/dist/es/models/licensing/v4/error/AppMessage.d.ts +59 -50
  203. package/dist/es/models/licensing/v4/error/AppMessage.js +65 -33
  204. package/dist/es/models/licensing/v4/error/ErrorResponse.d.ts +23 -19
  205. package/dist/es/models/licensing/v4/error/ErrorResponse.js +64 -32
  206. package/dist/es/models/licensing/v4/error/SchemaValidationError.d.ts +53 -43
  207. package/dist/es/models/licensing/v4/error/SchemaValidationError.js +63 -30
  208. package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
  209. package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.js +56 -24
  210. package/dist/es/models/prism/v4/config/TaskReference.d.ts +52 -0
  211. package/dist/es/models/prism/v4/config/TaskReference.js +279 -0
  212. package/dist/es/models/validation/ValidationError.js +6 -6
  213. package/dist/es/utils/ValidationUtils.js +6 -6
  214. package/dist/lib/ApiClient.d.ts +14 -1
  215. package/dist/lib/ApiClient.js +257 -206
  216. package/dist/lib/Paginable.d.ts +1 -1
  217. package/dist/lib/Paginable.js +10 -10
  218. package/dist/lib/apis/enduserlicenseagreement-endpoints.d.ts +41 -0
  219. package/dist/lib/apis/{enduserlicenseagreements-endpoints.js → enduserlicenseagreement-endpoints.js} +28 -70
  220. package/dist/lib/apis/licensekeys-endpoints.d.ts +90 -0
  221. package/dist/lib/apis/licensekeys-endpoints.js +283 -0
  222. package/dist/lib/apis/licenses-endpoints.d.ts +60 -146
  223. package/dist/lib/apis/licenses-endpoints.js +176 -362
  224. package/dist/lib/index.d.ts +115 -67
  225. package/dist/lib/index.js +348 -156
  226. package/dist/lib/models/common/v1/config/Flag.d.ts +32 -26
  227. package/dist/lib/models/common/v1/config/Flag.js +66 -22
  228. package/dist/lib/models/common/v1/config/KVPair.d.ts +35 -26
  229. package/dist/lib/models/common/v1/config/KVPair.js +71 -25
  230. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  231. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
  232. package/dist/lib/models/common/v1/config/Message.d.ts +41 -38
  233. package/dist/lib/models/common/v1/config/Message.js +58 -26
  234. package/dist/lib/models/common/v1/config/MessageSeverity.js +8 -8
  235. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +24 -22
  236. package/dist/lib/models/common/v1/config/TenantAwareModel.js +55 -23
  237. package/dist/lib/models/common/v1/response/ApiLink.d.ts +28 -26
  238. package/dist/lib/models/common/v1/response/ApiLink.js +54 -22
  239. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
  240. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +72 -28
  241. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
  242. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
  243. package/dist/lib/models/licensing/v4/agreements/Acceptance.d.ts +81 -0
  244. package/dist/lib/models/licensing/v4/agreements/Acceptance.js +314 -0
  245. package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.d.ts +65 -25
  246. package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.js +96 -42
  247. package/dist/lib/models/licensing/v4/agreements/EndUser.d.ts +110 -0
  248. package/dist/{es/models/licensing/v4/agreements/EulaUser.js → lib/models/licensing/v4/agreements/EndUser.js} +148 -137
  249. package/dist/lib/models/licensing/v4/agreements/Eula.d.ts +61 -41
  250. package/dist/lib/models/licensing/v4/agreements/Eula.js +112 -75
  251. package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +65 -25
  252. package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.js +60 -28
  253. package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +103 -0
  254. package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.js +347 -0
  255. package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +127 -0
  256. package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +360 -0
  257. package/dist/lib/models/licensing/v4/config/Allowance.d.ts +70 -0
  258. package/dist/lib/models/licensing/v4/config/{ClusterAllowance.js → Allowance.js} +136 -84
  259. package/dist/lib/models/licensing/v4/config/AllowanceDetail.d.ts +46 -42
  260. package/dist/lib/models/licensing/v4/config/AllowanceDetail.js +84 -52
  261. package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.d.ts +2 -1
  262. package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.js +40 -19
  263. package/dist/lib/models/licensing/v4/config/AllowanceProjection.d.ts +56 -0
  264. package/dist/lib/models/licensing/v4/config/AllowanceProjection.js +320 -0
  265. package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +102 -0
  266. package/dist/{es/models/licensing/v4/config/ListClusterEntitlementsApiResponse.js → lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.js} +90 -63
  267. package/dist/lib/models/licensing/v4/config/BaseClusterInfo.d.ts +21 -16
  268. package/dist/lib/models/licensing/v4/config/BaseClusterInfo.js +82 -34
  269. package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.d.ts +49 -41
  270. package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.js +101 -52
  271. package/dist/lib/models/licensing/v4/config/BillingPlan.d.ts +19 -0
  272. package/dist/lib/models/licensing/v4/config/BillingPlan.js +91 -0
  273. package/dist/lib/models/licensing/v4/config/CapacityViolation.d.ts +45 -40
  274. package/dist/lib/models/licensing/v4/config/CapacityViolation.js +84 -52
  275. package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +30 -0
  276. package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.js +269 -0
  277. package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +10 -0
  278. package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +151 -0
  279. package/dist/lib/models/licensing/v4/config/ClusterType.d.ts +19 -0
  280. package/dist/lib/models/licensing/v4/config/ClusterType.js +91 -0
  281. package/dist/lib/models/licensing/v4/config/Compliance.d.ts +52 -29
  282. package/dist/lib/models/licensing/v4/config/Compliance.js +90 -38
  283. package/dist/lib/models/licensing/v4/config/ComplianceProjection.d.ts +56 -18
  284. package/dist/lib/models/licensing/v4/config/ComplianceProjection.js +112 -33
  285. package/dist/lib/models/licensing/v4/config/Consumption.d.ts +46 -26
  286. package/dist/lib/models/licensing/v4/config/Consumption.js +114 -65
  287. package/dist/lib/models/licensing/v4/config/ConsumptionProjection.d.ts +2 -1
  288. package/dist/lib/models/licensing/v4/config/ConsumptionProjection.js +38 -17
  289. package/dist/{es/models/licensing/v4/config/SubCategoryEnum.d.ts → lib/models/licensing/v4/config/ConsumptionType.d.ts} +6 -6
  290. package/dist/lib/models/licensing/v4/config/ConsumptionType.js +85 -0
  291. package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +98 -0
  292. package/dist/{es/models/licensing/v4/config/GetClusterAllowanceApiResponse.js → lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js} +93 -59
  293. package/dist/lib/models/licensing/v4/config/DryRunCheck.d.ts +72 -0
  294. package/dist/lib/models/licensing/v4/config/DryRunCheck.js +325 -0
  295. package/dist/lib/models/licensing/v4/config/DryRunStatus.d.ts +19 -0
  296. package/dist/lib/models/licensing/v4/config/DryRunStatus.js +86 -0
  297. package/dist/lib/models/licensing/v4/config/DryRunValidationResult.d.ts +68 -0
  298. package/dist/lib/models/licensing/v4/config/DryRunValidationResult.js +297 -0
  299. package/dist/lib/models/licensing/v4/config/EnforcementActions.d.ts +19 -0
  300. package/dist/lib/models/licensing/v4/config/EnforcementActions.js +139 -0
  301. package/dist/lib/models/licensing/v4/config/EnforcementLevel.d.ts +19 -0
  302. package/dist/{es/models/licensing/v4/config/EnforcementLevelEnum.js → lib/models/licensing/v4/config/EnforcementLevel.js} +27 -27
  303. package/dist/lib/models/licensing/v4/config/EnforcementPolicy.d.ts +19 -0
  304. package/dist/lib/models/licensing/v4/config/EnforcementPolicy.js +85 -0
  305. package/dist/lib/models/licensing/v4/config/Entitlement.d.ts +98 -0
  306. package/dist/lib/models/licensing/v4/config/{ClusterEntitlement.js → Entitlement.js} +147 -95
  307. package/dist/lib/models/licensing/v4/config/EntitlementDetail.d.ts +74 -67
  308. package/dist/lib/models/licensing/v4/config/EntitlementDetail.js +89 -56
  309. package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.d.ts +2 -1
  310. package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.js +43 -22
  311. package/dist/lib/models/licensing/v4/config/EntitlementProjection.d.ts +66 -0
  312. package/dist/{es/models/licensing/v4/config/ClusterEntitlementProjection.js → lib/models/licensing/v4/config/EntitlementProjection.js} +149 -60
  313. package/dist/lib/models/licensing/v4/config/ExpiredLicense.d.ts +38 -32
  314. package/dist/lib/models/licensing/v4/config/ExpiredLicense.js +116 -44
  315. package/dist/lib/models/licensing/v4/config/Feature.d.ts +63 -53
  316. package/dist/lib/models/licensing/v4/config/Feature.js +144 -81
  317. package/dist/lib/models/licensing/v4/config/FeatureDetail.d.ts +40 -38
  318. package/dist/lib/models/licensing/v4/config/FeatureDetail.js +68 -36
  319. package/dist/lib/models/licensing/v4/config/FeatureProjection.d.ts +2 -1
  320. package/dist/lib/models/licensing/v4/config/FeatureProjection.js +40 -22
  321. package/dist/lib/models/licensing/v4/config/FeatureViolation.d.ts +15 -16
  322. package/dist/lib/models/licensing/v4/config/FeatureViolation.js +79 -30
  323. package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +99 -0
  324. package/dist/lib/models/licensing/v4/config/{GetComplianceApiResponse.js → GetLicenseKeyApiResponse.js} +90 -58
  325. package/dist/lib/models/licensing/v4/config/License.d.ts +66 -40
  326. package/dist/lib/models/licensing/v4/config/License.js +165 -57
  327. package/dist/{es/models/licensing/v4/config/ClusterTypeEnum.d.ts → lib/models/licensing/v4/config/LicenseCategory.d.ts} +6 -6
  328. package/dist/lib/models/licensing/v4/config/LicenseCategory.js +277 -0
  329. package/dist/lib/models/licensing/v4/config/LicenseClass.d.ts +19 -0
  330. package/dist/lib/models/licensing/v4/config/LicenseClass.js +91 -0
  331. package/dist/lib/models/licensing/v4/config/LicenseKey.d.ts +149 -0
  332. package/dist/lib/models/licensing/v4/config/LicenseKey.js +623 -0
  333. package/dist/lib/models/licensing/v4/config/LicenseKeyAssignSpec.d.ts +71 -0
  334. package/dist/lib/models/licensing/v4/config/LicenseKeyAssignSpec.js +329 -0
  335. package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.d.ts +64 -0
  336. package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.js +315 -0
  337. package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.d.ts +60 -0
  338. package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.js +366 -0
  339. package/dist/{es/models/licensing/v4/config/EnforcementPolicyEnum.d.ts → lib/models/licensing/v4/config/LicenseKeySubCategory.d.ts} +6 -6
  340. package/dist/lib/models/licensing/v4/config/LicenseKeySubCategory.js +85 -0
  341. package/dist/lib/models/licensing/v4/config/LicenseProjection.d.ts +41 -22
  342. package/dist/lib/models/licensing/v4/config/LicenseProjection.js +146 -36
  343. package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +75 -0
  344. package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.js +364 -0
  345. package/dist/lib/models/licensing/v4/config/LicenseType.d.ts +19 -0
  346. package/dist/lib/models/licensing/v4/config/LicenseType.js +271 -0
  347. package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +100 -0
  348. package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.js +370 -0
  349. package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +66 -25
  350. package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.js +60 -28
  351. package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +100 -0
  352. package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.js +370 -0
  353. package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +66 -25
  354. package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.js +60 -28
  355. package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +100 -0
  356. package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.js +370 -0
  357. package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.d.ts +66 -25
  358. package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.js +60 -28
  359. package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +99 -0
  360. package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.js +365 -0
  361. package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.d.ts +65 -25
  362. package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.js +60 -28
  363. package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.d.ts +99 -0
  364. package/dist/lib/models/licensing/v4/config/{ListClusterAllowancesApiResponse.js → ListViolationsApiResponse.js} +90 -63
  365. package/dist/lib/models/licensing/v4/config/LogicalVersion.d.ts +32 -30
  366. package/dist/lib/models/licensing/v4/config/LogicalVersion.js +93 -61
  367. package/dist/lib/models/licensing/v4/config/{MeterEnum.d.ts → Meter.d.ts} +6 -6
  368. package/dist/lib/models/licensing/v4/config/Meter.js +127 -0
  369. package/dist/lib/models/licensing/v4/config/OperationType.d.ts +19 -0
  370. package/dist/lib/models/licensing/v4/config/OperationType.js +97 -0
  371. package/dist/lib/models/licensing/v4/config/PortalSetting.d.ts +86 -0
  372. package/dist/lib/models/licensing/v4/config/PortalSetting.js +359 -0
  373. package/dist/lib/models/licensing/v4/config/PostPaidCategory.d.ts +19 -0
  374. package/dist/lib/models/licensing/v4/config/PostPaidCategory.js +85 -0
  375. package/dist/lib/models/licensing/v4/config/PostPaidConfig.d.ts +61 -38
  376. package/dist/lib/models/licensing/v4/config/PostPaidConfig.js +141 -42
  377. package/dist/lib/models/licensing/v4/config/ProductName.d.ts +19 -0
  378. package/dist/lib/models/licensing/v4/config/ProductName.js +115 -0
  379. package/dist/lib/models/licensing/v4/config/Recommendation.d.ts +47 -0
  380. package/dist/lib/models/licensing/v4/config/Recommendation.js +287 -0
  381. package/dist/lib/models/licensing/v4/config/RecommendationDetail.d.ts +98 -0
  382. package/dist/lib/models/licensing/v4/config/RecommendationDetail.js +429 -0
  383. package/dist/lib/models/licensing/v4/config/{LicenseCategoryEnum.d.ts → RecommendationScope.d.ts} +6 -6
  384. package/dist/lib/models/licensing/v4/config/RecommendationScope.js +85 -0
  385. package/dist/{es/models/licensing/v4/config/StatusEnum.d.ts → lib/models/licensing/v4/config/ResetScope.d.ts} +6 -6
  386. package/dist/{es/models/licensing/v4/config/ResetScopeEnum.js → lib/models/licensing/v4/config/ResetScope.js} +27 -27
  387. package/dist/lib/models/licensing/v4/config/Scope.d.ts +19 -0
  388. package/dist/{es/models/licensing/v4/config/ScopeEnum.js → lib/models/licensing/v4/config/Scope.js} +29 -35
  389. package/dist/lib/models/licensing/v4/config/Service.d.ts +65 -52
  390. package/dist/lib/models/licensing/v4/config/Service.js +79 -41
  391. package/dist/lib/models/licensing/v4/config/ServiceProjection.d.ts +2 -1
  392. package/dist/lib/models/licensing/v4/config/ServiceProjection.js +42 -21
  393. package/dist/lib/models/licensing/v4/config/ServiceViolation.d.ts +28 -25
  394. package/dist/lib/models/licensing/v4/config/ServiceViolation.js +59 -26
  395. package/dist/{es/models/licensing/v4/config/ServiceViolationEnum.d.ts → lib/models/licensing/v4/config/ServiceViolationType.d.ts} +6 -6
  396. package/dist/{es/models/licensing/v4/config/ServiceViolationEnum.js → lib/models/licensing/v4/config/ServiceViolationType.js} +29 -29
  397. package/dist/lib/models/licensing/v4/config/Setting.d.ts +97 -85
  398. package/dist/lib/models/licensing/v4/config/Setting.js +137 -124
  399. package/dist/lib/models/licensing/v4/config/Status.d.ts +19 -0
  400. package/dist/lib/models/licensing/v4/config/Status.js +85 -0
  401. package/dist/lib/models/licensing/v4/config/SubCategory.d.ts +19 -0
  402. package/dist/lib/models/licensing/v4/config/{SubCategoryEnum.js → SubCategory.js} +27 -27
  403. package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +99 -0
  404. package/dist/{es/models/licensing/v4/config/GetClusterEntitlementApiResponse.js → lib/models/licensing/v4/config/SyncLicenseStateApiResponse.js} +90 -58
  405. package/dist/lib/models/licensing/v4/config/SyncOperationType.d.ts +19 -0
  406. package/dist/lib/models/licensing/v4/config/SyncOperationType.js +121 -0
  407. package/dist/{es/models/licensing/v4/config/MeterEnum.d.ts → lib/models/licensing/v4/config/ValueType.d.ts} +6 -6
  408. package/dist/lib/models/licensing/v4/config/{TypeEnum.js → ValueType.js} +27 -27
  409. package/dist/lib/models/licensing/v4/config/Violation.d.ts +102 -0
  410. package/dist/lib/models/licensing/v4/config/{ClusterViolation.js → Violation.js} +112 -60
  411. package/dist/lib/models/licensing/v4/error/AppMessage.d.ts +59 -50
  412. package/dist/lib/models/licensing/v4/error/AppMessage.js +65 -33
  413. package/dist/lib/models/licensing/v4/error/ErrorResponse.d.ts +23 -19
  414. package/dist/lib/models/licensing/v4/error/ErrorResponse.js +64 -32
  415. package/dist/lib/models/licensing/v4/error/SchemaValidationError.d.ts +53 -43
  416. package/dist/lib/models/licensing/v4/error/SchemaValidationError.js +63 -30
  417. package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
  418. package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.js +56 -24
  419. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +52 -0
  420. package/dist/lib/models/prism/v4/config/TaskReference.js +279 -0
  421. package/dist/lib/models/validation/ValidationError.js +6 -6
  422. package/dist/lib/utils/ValidationUtils.js +6 -6
  423. package/package.json +4 -4
  424. package/dist/es/apis/enduserlicenseagreements-endpoints.d.ts +0 -51
  425. package/dist/es/models/licensing/v4/agreements/EulaUser.d.ts +0 -103
  426. package/dist/es/models/licensing/v4/agreements/UpdateEulaApiResponse.d.ts +0 -59
  427. package/dist/es/models/licensing/v4/agreements/UpdateEulaApiResponse.js +0 -311
  428. package/dist/es/models/licensing/v4/config/ClusterAllowance.d.ts +0 -55
  429. package/dist/es/models/licensing/v4/config/ClusterAllowanceProjection.d.ts +0 -34
  430. package/dist/es/models/licensing/v4/config/ClusterAllowanceProjection.js +0 -241
  431. package/dist/es/models/licensing/v4/config/ClusterEntitlement.d.ts +0 -79
  432. package/dist/es/models/licensing/v4/config/ClusterEntitlementProjection.d.ts +0 -36
  433. package/dist/es/models/licensing/v4/config/ClusterTypeEnum.js +0 -91
  434. package/dist/es/models/licensing/v4/config/ClusterViolation.d.ts +0 -57
  435. package/dist/es/models/licensing/v4/config/EnforcementActionsEnum.d.ts +0 -19
  436. package/dist/es/models/licensing/v4/config/EnforcementActionsEnum.js +0 -139
  437. package/dist/es/models/licensing/v4/config/EnforcementLevelEnum.d.ts +0 -19
  438. package/dist/es/models/licensing/v4/config/EnforcementPolicyEnum.js +0 -85
  439. package/dist/es/models/licensing/v4/config/GetClusterAllowanceApiResponse.d.ts +0 -59
  440. package/dist/es/models/licensing/v4/config/GetClusterEntitlementApiResponse.d.ts +0 -59
  441. package/dist/es/models/licensing/v4/config/GetClusterViolationApiResponse.d.ts +0 -59
  442. package/dist/es/models/licensing/v4/config/GetClusterViolationApiResponse.js +0 -311
  443. package/dist/es/models/licensing/v4/config/GetComplianceApiResponse.d.ts +0 -59
  444. package/dist/es/models/licensing/v4/config/GetLicenseApiResponse.d.ts +0 -59
  445. package/dist/es/models/licensing/v4/config/GetLicenseApiResponse.js +0 -311
  446. package/dist/es/models/licensing/v4/config/GetSettingApiResponse.d.ts +0 -59
  447. package/dist/es/models/licensing/v4/config/GetSettingApiResponse.js +0 -311
  448. package/dist/es/models/licensing/v4/config/LicenseCategoryEnum.js +0 -271
  449. package/dist/es/models/licensing/v4/config/LicenseTypeEnum.js +0 -235
  450. package/dist/es/models/licensing/v4/config/ListClusterAllowancesApiResponse.d.ts +0 -59
  451. package/dist/es/models/licensing/v4/config/ListClusterEntitlementsApiResponse.d.ts +0 -59
  452. package/dist/es/models/licensing/v4/config/ListClusterViolationsApiResponse.d.ts +0 -59
  453. package/dist/es/models/licensing/v4/config/MeterEnum.js +0 -121
  454. package/dist/es/models/licensing/v4/config/NutanixClusterConfig.d.ts +0 -98
  455. package/dist/es/models/licensing/v4/config/NutanixClusterConfig.js +0 -406
  456. package/dist/es/models/licensing/v4/config/PostPaidCategoryEnum.js +0 -85
  457. package/dist/es/models/licensing/v4/config/ProductNameEnum.js +0 -115
  458. package/dist/es/models/licensing/v4/config/ResetScopeEnum.d.ts +0 -19
  459. package/dist/es/models/licensing/v4/config/StatusEnum.js +0 -85
  460. package/dist/lib/apis/enduserlicenseagreements-endpoints.d.ts +0 -51
  461. package/dist/lib/models/licensing/v4/agreements/EulaUser.d.ts +0 -103
  462. package/dist/lib/models/licensing/v4/agreements/UpdateEulaApiResponse.d.ts +0 -59
  463. package/dist/lib/models/licensing/v4/agreements/UpdateEulaApiResponse.js +0 -311
  464. package/dist/lib/models/licensing/v4/config/ClusterAllowance.d.ts +0 -55
  465. package/dist/lib/models/licensing/v4/config/ClusterAllowanceProjection.d.ts +0 -34
  466. package/dist/lib/models/licensing/v4/config/ClusterAllowanceProjection.js +0 -241
  467. package/dist/lib/models/licensing/v4/config/ClusterEntitlement.d.ts +0 -79
  468. package/dist/lib/models/licensing/v4/config/ClusterEntitlementProjection.d.ts +0 -36
  469. package/dist/lib/models/licensing/v4/config/ClusterTypeEnum.d.ts +0 -19
  470. package/dist/lib/models/licensing/v4/config/ClusterTypeEnum.js +0 -91
  471. package/dist/lib/models/licensing/v4/config/ClusterViolation.d.ts +0 -57
  472. package/dist/lib/models/licensing/v4/config/EnforcementActionsEnum.d.ts +0 -19
  473. package/dist/lib/models/licensing/v4/config/EnforcementActionsEnum.js +0 -139
  474. package/dist/lib/models/licensing/v4/config/EnforcementLevelEnum.d.ts +0 -19
  475. package/dist/lib/models/licensing/v4/config/EnforcementPolicyEnum.js +0 -85
  476. package/dist/lib/models/licensing/v4/config/GetClusterAllowanceApiResponse.d.ts +0 -59
  477. package/dist/lib/models/licensing/v4/config/GetClusterEntitlementApiResponse.d.ts +0 -59
  478. package/dist/lib/models/licensing/v4/config/GetClusterViolationApiResponse.d.ts +0 -59
  479. package/dist/lib/models/licensing/v4/config/GetClusterViolationApiResponse.js +0 -311
  480. package/dist/lib/models/licensing/v4/config/GetComplianceApiResponse.d.ts +0 -59
  481. package/dist/lib/models/licensing/v4/config/GetLicenseApiResponse.d.ts +0 -59
  482. package/dist/lib/models/licensing/v4/config/GetLicenseApiResponse.js +0 -311
  483. package/dist/lib/models/licensing/v4/config/GetSettingApiResponse.d.ts +0 -59
  484. package/dist/lib/models/licensing/v4/config/GetSettingApiResponse.js +0 -311
  485. package/dist/lib/models/licensing/v4/config/LicenseCategoryEnum.js +0 -271
  486. package/dist/lib/models/licensing/v4/config/LicenseTypeEnum.d.ts +0 -19
  487. package/dist/lib/models/licensing/v4/config/LicenseTypeEnum.js +0 -235
  488. package/dist/lib/models/licensing/v4/config/ListClusterAllowancesApiResponse.d.ts +0 -59
  489. package/dist/lib/models/licensing/v4/config/ListClusterEntitlementsApiResponse.d.ts +0 -59
  490. package/dist/lib/models/licensing/v4/config/ListClusterViolationsApiResponse.d.ts +0 -59
  491. package/dist/lib/models/licensing/v4/config/MeterEnum.js +0 -121
  492. package/dist/lib/models/licensing/v4/config/NutanixClusterConfig.d.ts +0 -98
  493. package/dist/lib/models/licensing/v4/config/NutanixClusterConfig.js +0 -406
  494. package/dist/lib/models/licensing/v4/config/PostPaidCategoryEnum.d.ts +0 -19
  495. package/dist/lib/models/licensing/v4/config/PostPaidCategoryEnum.js +0 -85
  496. package/dist/lib/models/licensing/v4/config/ProductNameEnum.d.ts +0 -19
  497. package/dist/lib/models/licensing/v4/config/ProductNameEnum.js +0 -115
  498. package/dist/lib/models/licensing/v4/config/ResetScopeEnum.d.ts +0 -19
  499. package/dist/lib/models/licensing/v4/config/ServiceViolationEnum.d.ts +0 -19
  500. package/dist/lib/models/licensing/v4/config/StatusEnum.js +0 -85
  501. package/dist/lib/models/licensing/v4/config/SubCategoryEnum.d.ts +0 -19
@@ -0,0 +1,623 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
8
+ var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
9
+ var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
10
+ var _ClusterLicenseKeyMapping = _interopRequireDefault(require("./ClusterLicenseKeyMapping"));
11
+ var _LicenseCategory = _interopRequireDefault(require("./LicenseCategory"));
12
+ var _LicenseKeySubCategory = _interopRequireDefault(require("./LicenseKeySubCategory"));
13
+ var _LicenseType = _interopRequireDefault(require("./LicenseType"));
14
+ var _Meter = _interopRequireDefault(require("./Meter"));
15
+ var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
16
+ var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
17
+ var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
18
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
19
+ 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); }
20
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
21
+ 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."); }
22
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
23
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
24
+ 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; } }
25
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
26
+ 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; }
27
+ 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; }
28
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
29
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
30
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
31
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
32
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
33
+ 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); }
34
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
35
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
36
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
37
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
38
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
39
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
40
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
41
+ function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
42
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
43
+ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
44
+ * Nutanix Licensing APIs
45
+ *
46
+ * OpenAPI spec version: 4.1.1
47
+ *
48
+ * NOTE: This class is auto generated by the Open API Dev Platform.
49
+ *
50
+ * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
51
+ *
52
+ * Do not edit the class manually.
53
+ *
54
+ */
55
+ /**
56
+ * The LicenseKey model module.
57
+ * @module Ntnx/LicenseKey
58
+ * @version 4.1.1
59
+ * @class LicenseKey
60
+ * @extends ExternalizableAbstractModel
61
+ */
62
+ var _LicenseKey_brand = /*#__PURE__*/new WeakSet();
63
+ var LicenseKey = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
64
+ /**
65
+ * Constructs a new <code>LicenseKey</code>.
66
+ * Model for capturing license key detail attributes.
67
+ * @alias module:Ntnx/LicenseKey
68
+ * @extends module:Ntnx/ExternalizableAbstractModel
69
+ */
70
+ function LicenseKey() {
71
+ var _this;
72
+ _classCallCheck(this, LicenseKey);
73
+ _this = _callSuper(this, LicenseKey);
74
+ /*
75
+ * toJson method for a map type which supports map with primitive keys and values of object types
76
+ * @param {Object} obj
77
+ * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
78
+ * Otherwise, just returns the input object.
79
+ */
80
+ _classPrivateMethodInitSpec(_this, _LicenseKey_brand);
81
+ _this.$objectType = "licensing.v4.config.LicenseKey";
82
+ /** @type {object<string, any>} */
83
+ _this.$reserved = {
84
+ '$fv': "v4.r1"
85
+ };
86
+ /** @type {object<string, any>} */
87
+ _this.$unknownFields = {};
88
+ return _this;
89
+ }
90
+
91
+ /**
92
+ * Constructs a <code>LicenseKey</code> from a plain JavaScript object, optionally creating a new instance.
93
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
94
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
95
+ * @param {module:Ntnx/LicenseKey} obj Optional instance to populate.
96
+ * @param callFromChild {Boolean} Flag to recognise calling instance
97
+ * @return {module:Ntnx/LicenseKey} The populated <code>LicenseKey</code> instance.
98
+ */
99
+ _inherits(LicenseKey, _ExternalizableAbstra);
100
+ return _createClass(LicenseKey, [{
101
+ key: "getKey",
102
+ value:
103
+ /**
104
+ * Returns Attribute for capturing license key.
105
+ * @return {string}
106
+ */
107
+ function getKey() {
108
+ return this.key;
109
+ }
110
+
111
+ /**
112
+ * Sets Attribute for capturing license key.
113
+ * @param {string} key Attribute for capturing license key.
114
+ */
115
+ }, {
116
+ key: "setKey",
117
+ value: function setKey(key) {
118
+ this.key = key;
119
+ }
120
+
121
+ /**
122
+ * Returns Attribute for capturing validation data.
123
+ * @return {string}
124
+ */
125
+ }, {
126
+ key: "getValidationDetail",
127
+ value: function getValidationDetail() {
128
+ return this.validationDetail;
129
+ }
130
+
131
+ /**
132
+ * Sets Attribute for capturing validation data.
133
+ * @param {string} validationDetail Attribute for capturing validation data.
134
+ */
135
+ }, {
136
+ key: "setValidationDetail",
137
+ value: function setValidationDetail(validationDetail) {
138
+ this.validationDetail = validationDetail;
139
+ }
140
+
141
+ /**
142
+ * @return {LicenseType}
143
+ */
144
+ }, {
145
+ key: "getType",
146
+ value: function getType() {
147
+ return this.type;
148
+ }
149
+
150
+ /**
151
+ * @param {LicenseType} type
152
+ */
153
+ }, {
154
+ key: "setType",
155
+ value: function setType(type) {
156
+ this.type = type;
157
+ }
158
+
159
+ /**
160
+ * @return {LicenseCategory}
161
+ */
162
+ }, {
163
+ key: "getCategory",
164
+ value: function getCategory() {
165
+ return this.category;
166
+ }
167
+
168
+ /**
169
+ * @param {LicenseCategory} category
170
+ */
171
+ }, {
172
+ key: "setCategory",
173
+ value: function setCategory(category) {
174
+ this.category = category;
175
+ }
176
+
177
+ /**
178
+ * @return {LicenseKeySubCategory}
179
+ */
180
+ }, {
181
+ key: "getSubCategory",
182
+ value: function getSubCategory() {
183
+ return this.subCategory;
184
+ }
185
+
186
+ /**
187
+ * @param {LicenseKeySubCategory} subCategory
188
+ */
189
+ }, {
190
+ key: "setSubCategory",
191
+ value: function setSubCategory(subCategory) {
192
+ this.subCategory = subCategory;
193
+ }
194
+
195
+ /**
196
+ * Returns Attribute for capturing expiry date of the entitlement encoded in license key.
197
+ * @return {Date}
198
+ */
199
+ }, {
200
+ key: "getEntitlementExpiryDate",
201
+ value: function getEntitlementExpiryDate() {
202
+ return this.entitlementExpiryDate;
203
+ }
204
+
205
+ /**
206
+ * Sets Attribute for capturing expiry date of the entitlement encoded in license key.
207
+ * @param {Date} entitlementExpiryDate Attribute for capturing expiry date of the entitlement encoded in license key.
208
+ */
209
+ }, {
210
+ key: "setEntitlementExpiryDate",
211
+ value: function setEntitlementExpiryDate(entitlementExpiryDate) {
212
+ this.entitlementExpiryDate = entitlementExpiryDate;
213
+ }
214
+
215
+ /**
216
+ * @return {Meter}
217
+ */
218
+ }, {
219
+ key: "getMeter",
220
+ value: function getMeter() {
221
+ return this.meter;
222
+ }
223
+
224
+ /**
225
+ * @param {Meter} meter
226
+ */
227
+ }, {
228
+ key: "setMeter",
229
+ value: function setMeter(meter) {
230
+ this.meter = meter;
231
+ }
232
+
233
+ /**
234
+ * Returns Attribute for capturing license key quantity.
235
+ * @return {Number}
236
+ */
237
+ }, {
238
+ key: "getQuantity",
239
+ value: function getQuantity() {
240
+ return this.quantity;
241
+ }
242
+
243
+ /**
244
+ * Sets Attribute for capturing license key quantity.
245
+ * @param {Number} quantity Attribute for capturing license key quantity.
246
+ */
247
+ }, {
248
+ key: "setQuantity",
249
+ value: function setQuantity(quantity) {
250
+ this.quantity = quantity;
251
+ }
252
+
253
+ /**
254
+ * Returns Attribute for capturing groupId associated with this license key.
255
+ * @return {string}
256
+ */
257
+ }, {
258
+ key: "getGroupId",
259
+ value: function getGroupId() {
260
+ return this.groupId;
261
+ }
262
+
263
+ /**
264
+ * Sets Attribute for capturing groupId associated with this license key.
265
+ * @param {string} groupId Attribute for capturing groupId associated with this license key.
266
+ */
267
+ }, {
268
+ key: "setGroupId",
269
+ value: function setGroupId(groupId) {
270
+ this.groupId = groupId;
271
+ }
272
+
273
+ /**
274
+ * Returns Expansion attribute used for fetching the license key assignment details.
275
+ * @return {ClusterLicenseKeyMapping[]}
276
+ */
277
+ }, {
278
+ key: "getAssignmentDetails",
279
+ value: function getAssignmentDetails() {
280
+ return this.assignmentDetails;
281
+ }
282
+
283
+ /**
284
+ * Sets Expansion attribute used for fetching the license key assignment details.
285
+ * @param {ClusterLicenseKeyMapping[]} assignmentDetails Expansion attribute used for fetching the license key assignment details.
286
+ */
287
+ }, {
288
+ key: "setAssignmentDetails",
289
+ value: function setAssignmentDetails(assignmentDetails) {
290
+ this.assignmentDetails = assignmentDetails;
291
+ }
292
+ }, {
293
+ key: "toJson",
294
+ value: function toJson(forMutation) {
295
+ if (forMutation === false) {
296
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getKey() !== 'undefined' && this.getKey() !== null ? {
297
+ 'key': this.getKey()
298
+ } : {}), typeof this.getValidationDetail() !== 'undefined' && this.getValidationDetail() !== null ? {
299
+ 'validationDetail': this.getValidationDetail()
300
+ } : {}), typeof this.getType() !== 'undefined' && this.getType() !== null ? {
301
+ 'type': this.getType()
302
+ } : {}), typeof this.getCategory() !== 'undefined' && this.getCategory() !== null ? {
303
+ 'category': this.getCategory()
304
+ } : {}), typeof this.getSubCategory() !== 'undefined' && this.getSubCategory() !== null ? {
305
+ 'subCategory': this.getSubCategory()
306
+ } : {}), typeof this.getEntitlementExpiryDate() !== 'undefined' && this.getEntitlementExpiryDate() !== null ? {
307
+ 'entitlementExpiryDate': _assertClassBrand(_LicenseKey_brand, this, _handleDateType).call(this, this.getEntitlementExpiryDate(), true)
308
+ } : {}), typeof this.getMeter() !== 'undefined' && this.getMeter() !== null ? {
309
+ 'meter': this.getMeter()
310
+ } : {}), typeof this.getQuantity() !== 'undefined' && this.getQuantity() !== null ? {
311
+ 'quantity': this.getQuantity()
312
+ } : {}), typeof this.getGroupId() !== 'undefined' && this.getGroupId() !== null ? {
313
+ 'groupId': this.getGroupId()
314
+ } : {}), typeof this.getAssignmentDetails() !== 'undefined' && this.getAssignmentDetails() !== null ? {
315
+ 'assignmentDetails': this.getAssignmentDetails().map(function (item) {
316
+ return item.toJson(false);
317
+ })
318
+ } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
319
+ 'extId': this.getExtId()
320
+ } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
321
+ 'links': this.getLinks().map(function (item) {
322
+ return item.toJson(false);
323
+ })
324
+ } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
325
+ 'tenantId': this.getTenantId()
326
+ } : {}), {}, {
327
+ '$reserved': this.get$Reserved(),
328
+ '$objectType': this.get$ObjectType(),
329
+ '$unknownFields': this.get$UnknownFields()
330
+ });
331
+ }
332
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getKey() !== 'undefined' && this.getKey() !== null ? {
333
+ 'key': this.getKey()
334
+ } : {}), typeof this.getValidationDetail() !== 'undefined' && this.getValidationDetail() !== null ? {
335
+ 'validationDetail': this.getValidationDetail()
336
+ } : {}), typeof this.getType() !== 'undefined' && this.getType() !== null ? {
337
+ 'type': this.getType()
338
+ } : {}), typeof this.getCategory() !== 'undefined' && this.getCategory() !== null ? {
339
+ 'category': this.getCategory()
340
+ } : {}), typeof this.getSubCategory() !== 'undefined' && this.getSubCategory() !== null ? {
341
+ 'subCategory': this.getSubCategory()
342
+ } : {}), typeof this.getMeter() !== 'undefined' && this.getMeter() !== null ? {
343
+ 'meter': this.getMeter()
344
+ } : {}), {}, {
345
+ '$reserved': this.get$Reserved(),
346
+ '$objectType': this.get$ObjectType(),
347
+ '$unknownFields': this.get$UnknownFields()
348
+ });
349
+ }
350
+ }, {
351
+ key: "validate",
352
+ value: function validate(scope, properties) {
353
+ var _this2 = this;
354
+ var propList = [];
355
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
356
+ //cases validate() and validate(scope)
357
+ propList = [];
358
+ } else if (arguments.length === 1) {
359
+ //case validate(properties)
360
+ propList = arguments[0];
361
+ scope = null;
362
+ } else {
363
+ //case validate(scope, properties)
364
+ propList = arguments[1];
365
+ }
366
+ var res = [];
367
+ var err = null;
368
+ propList.forEach(function (property) {
369
+ err = _this2.validateProperty(property, scope);
370
+ if (err) {
371
+ res.push(err);
372
+ }
373
+ });
374
+ return new Promise(function (resolve, reject) {
375
+ if (res.length !== 0) {
376
+ reject(err);
377
+ } else {
378
+ resolve();
379
+ }
380
+ });
381
+ }
382
+ }, {
383
+ key: "validateProperty",
384
+ value: function validateProperty(scope, property) {
385
+ if (property === "key") {
386
+ if (typeof this.key === 'undefined' || this.key === null) {
387
+ return new _ValidationError["default"]("key", "undefined or null");
388
+ }
389
+ if (!_ValidationUtils["default"].validateMaxLength(this.key, 100)) {
390
+ return new _ValidationError["default"]("key", "does not satisfy required maxLength constraint: 100");
391
+ }
392
+ }
393
+ if (property === "validationDetail") {
394
+ if (typeof this.validationDetail === 'undefined' || this.validationDetail === null) {
395
+ return new _ValidationError["default"]("validationDetail", "undefined or null");
396
+ }
397
+ if (!_ValidationUtils["default"].validateMaxLength(this.validationDetail, 100)) {
398
+ return new _ValidationError["default"]("validationDetail", "does not satisfy required maxLength constraint: 100");
399
+ }
400
+ }
401
+ if (property === "type") {
402
+ if (typeof this.type === 'undefined' || this.type === null) {
403
+ return new _ValidationError["default"]("type", "undefined or null");
404
+ }
405
+ }
406
+ if (property === "category") {
407
+ if (typeof this.category === 'undefined' || this.category === null) {
408
+ return new _ValidationError["default"]("category", "undefined or null");
409
+ }
410
+ }
411
+ if (property === "subCategory") {
412
+ if (typeof this.subCategory === 'undefined' || this.subCategory === null) {
413
+ return new _ValidationError["default"]("subCategory", "undefined or null");
414
+ }
415
+ }
416
+ if (property === "entitlementExpiryDate") {
417
+ if (typeof this.entitlementExpiryDate === 'undefined' || this.entitlementExpiryDate === null) {
418
+ return new _ValidationError["default"]("entitlementExpiryDate", "undefined or null");
419
+ }
420
+ }
421
+ if (property === "meter") {
422
+ if (typeof this.meter === 'undefined' || this.meter === null) {
423
+ return new _ValidationError["default"]("meter", "undefined or null");
424
+ }
425
+ }
426
+ if (property === "quantity") {
427
+ if (typeof this.quantity === 'undefined' || this.quantity === null) {
428
+ return new _ValidationError["default"]("quantity", "undefined or null");
429
+ }
430
+ }
431
+ if (property === "groupId") {
432
+ if (typeof this.groupId === 'undefined' || this.groupId === null) {
433
+ return new _ValidationError["default"]("groupId", "undefined or null");
434
+ }
435
+ if (!_ValidationUtils["default"].validateMaxLength(this.groupId, 10)) {
436
+ return new _ValidationError["default"]("groupId", "does not satisfy required maxLength constraint: 10");
437
+ }
438
+ }
439
+ if (property === "assignmentDetails") {
440
+ if (typeof this.assignmentDetails === 'undefined' || this.assignmentDetails === null) {
441
+ return new _ValidationError["default"]("assignmentDetails", "undefined or null");
442
+ }
443
+ if (!_ValidationUtils["default"].validateMaxItems(this.assignmentDetails, 100)) {
444
+ return new _ValidationError["default"]("assignmentDetails", "does not satisfy required maxItems constraint: 100");
445
+ }
446
+ }
447
+ return new _ValidationError["default"](property, "no such property exists");
448
+ }
449
+ }], [{
450
+ key: "constructFromObject",
451
+ value: function constructFromObject(data) {
452
+ var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
453
+ var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
454
+ var items, item, i, itemArr, discriminator;
455
+ if (data) {
456
+ obj = obj || new LicenseKey();
457
+ _ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
458
+ if (data.hasOwnProperty('key') && data.key !== null && data.key !== undefined) {
459
+ obj.setKey(data['key']);
460
+ }
461
+ if (data.hasOwnProperty('validationDetail') && data.validationDetail !== null && data.validationDetail !== undefined) {
462
+ obj.setValidationDetail(data['validationDetail']);
463
+ }
464
+ if (data.hasOwnProperty('type') && data.type !== null && data.type !== undefined) {
465
+ obj.setType(_LicenseType["default"].constructFromObject(data['type']));
466
+ }
467
+ if (data.hasOwnProperty('category') && data.category !== null && data.category !== undefined) {
468
+ obj.setCategory(_LicenseCategory["default"].constructFromObject(data['category']));
469
+ }
470
+ if (data.hasOwnProperty('subCategory') && data.subCategory !== null && data.subCategory !== undefined) {
471
+ obj.setSubCategory(_LicenseKeySubCategory["default"].constructFromObject(data['subCategory']));
472
+ }
473
+ if (data.hasOwnProperty('entitlementExpiryDate') && data.entitlementExpiryDate !== null && data.entitlementExpiryDate !== undefined) {
474
+ obj.setEntitlementExpiryDate(data['entitlementExpiryDate']);
475
+ }
476
+ if (data.hasOwnProperty('meter') && data.meter !== null && data.meter !== undefined) {
477
+ obj.setMeter(_Meter["default"].constructFromObject(data['meter']));
478
+ }
479
+ if (data.hasOwnProperty('quantity') && data.quantity !== null && data.quantity !== undefined) {
480
+ obj.setQuantity(data['quantity']);
481
+ }
482
+ if (data.hasOwnProperty('groupId') && data.groupId !== null && data.groupId !== undefined) {
483
+ obj.setGroupId(data['groupId']);
484
+ }
485
+ if (data.hasOwnProperty('assignmentDetails') && data.assignmentDetails !== null && data.assignmentDetails !== undefined) {
486
+ itemArr = [];
487
+ items = data.assignmentDetails;
488
+ for (i = 0; i < items.length; i++) {
489
+ item = _ClusterLicenseKeyMapping["default"].constructFromObject(items[i], undefined);
490
+ itemArr.push(item);
491
+ }
492
+ obj.setAssignmentDetails(itemArr);
493
+ }
494
+ if (!callFromChild) {
495
+ obj.$unknownFields = _objectSpread({}, data.$unknownFields);
496
+ for (var property in data) {
497
+ // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
498
+ // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
499
+ // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
500
+ // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
501
+ if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
502
+ obj.$unknownFields[property] = data[property];
503
+ }
504
+ }
505
+ }
506
+ }
507
+ return obj;
508
+ }
509
+
510
+ /**
511
+ * Converts a given snake_case string to camelCase.
512
+ * @param {string} snakeStr - The input string in snake_case format.
513
+ * @returns {string} - The converted string in camelCase format.
514
+ */
515
+ }, {
516
+ key: "snakeToCamel",
517
+ value: function snakeToCamel(snakeStr) {
518
+ return snakeStr.replace(/(_\w)/g, function (match) {
519
+ return match[1].toUpperCase();
520
+ });
521
+ }
522
+ }]);
523
+ }(_ExternalizableAbstractModel["default"]);
524
+ /**
525
+ * Attribute for capturing license key.
526
+ * @memberof LicenseKey
527
+ */
528
+ function _toJsonMapType(obj, forMutation) {
529
+ if (obj instanceof Map) {
530
+ return Object.fromEntries(Array.from(obj, function (_ref) {
531
+ var _ref2 = _slicedToArray(_ref, 2),
532
+ k = _ref2[0],
533
+ v = _ref2[1];
534
+ return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
535
+ }));
536
+ } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
537
+ return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
538
+ return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
539
+ }));
540
+ }
541
+ return obj;
542
+ }
543
+ /*
544
+ * toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
545
+ * @param {Object} obj Object to serialize
546
+ * @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
547
+ * @returns {Object|string} Returns serialized date object or original input object
548
+ */
549
+ function _handleDateType(obj, isDateOnly) {
550
+ if (obj instanceof Date && isDateOnly !== undefined) {
551
+ return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
552
+ }
553
+ return obj;
554
+ }
555
+ LicenseKey.prototype.key = undefined;
556
+
557
+ /**
558
+ * Attribute for capturing validation data.
559
+ * @memberof LicenseKey
560
+ */
561
+ LicenseKey.prototype.validationDetail = undefined;
562
+
563
+ /**
564
+ * @memberof LicenseKey
565
+ */
566
+ LicenseKey.prototype.type = undefined;
567
+
568
+ /**
569
+ * @memberof LicenseKey
570
+ */
571
+ LicenseKey.prototype.category = undefined;
572
+
573
+ /**
574
+ * @memberof LicenseKey
575
+ */
576
+ LicenseKey.prototype.subCategory = undefined;
577
+
578
+ /**
579
+ * Attribute for capturing expiry date of the entitlement encoded in license key.
580
+ * @memberof LicenseKey
581
+ */
582
+ LicenseKey.prototype.entitlementExpiryDate = undefined;
583
+
584
+ /**
585
+ * @memberof LicenseKey
586
+ */
587
+ LicenseKey.prototype.meter = undefined;
588
+
589
+ /**
590
+ * Attribute for capturing license key quantity.
591
+ * @memberof LicenseKey
592
+ */
593
+ LicenseKey.prototype.quantity = undefined;
594
+
595
+ /**
596
+ * Attribute for capturing groupId associated with this license key.
597
+ * @memberof LicenseKey
598
+ */
599
+ LicenseKey.prototype.groupId = undefined;
600
+
601
+ /**
602
+ * Expansion attribute used for fetching the license key assignment details.
603
+ * @memberof LicenseKey
604
+ */
605
+ LicenseKey.prototype.assignmentDetails = undefined;
606
+
607
+ /**
608
+ * A globally unique identifier of an instance that is suitable for external consumption.
609
+ * @memberof LicenseKey
610
+ */
611
+ _ExternalizableAbstractModel["default"].prototype.extId = undefined;
612
+ /**
613
+ * A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
614
+ * @memberof LicenseKey
615
+ */
616
+ _ExternalizableAbstractModel["default"].prototype.links = undefined;
617
+ /**
618
+ * A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it 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).
619
+ * @memberof LicenseKey
620
+ */
621
+ _TenantAwareModel["default"].prototype.tenantId = undefined;
622
+ // Implement OneOflicensing.v4.config.GetLicenseKeyApiResponsedata interface:
623
+ // Implement OneOflicensing.v4.config.AddLicenseKeyApiResponsedata interface: