@nutanix-scratch/licensing-js-client 4.1.1 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (448) hide show
  1. package/README.md +16 -4
  2. package/dist/Ntnx-Licensing-js-client-prod.js +1 -1
  3. package/dist/Ntnx-Licensing-js-client.js +711 -518
  4. package/dist/es/ApiClient.d.ts +29 -7
  5. package/dist/es/ApiClient.js +854 -667
  6. package/dist/es/Paginable.d.ts +1 -1
  7. package/dist/es/Paginable.js +144 -183
  8. package/dist/es/apis/enduserlicenseagreement-endpoints.d.ts +1 -1
  9. package/dist/es/apis/enduserlicenseagreement-endpoints.js +82 -99
  10. package/dist/es/apis/licensekeys-endpoints.d.ts +49 -3
  11. package/dist/es/apis/licensekeys-endpoints.js +361 -223
  12. package/dist/es/apis/licenses-endpoints.d.ts +1 -1
  13. package/dist/es/apis/licenses-endpoints.js +400 -380
  14. package/dist/es/index.d.ts +37 -3
  15. package/dist/es/index.js +439 -303
  16. package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
  17. package/dist/es/models/common/v1/config/Flag.js +170 -211
  18. package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
  19. package/dist/es/models/common/v1/config/KVPair.js +225 -270
  20. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  21. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
  22. package/dist/es/models/common/v1/config/Message.d.ts +2 -10
  23. package/dist/es/models/common/v1/config/Message.js +213 -258
  24. package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
  25. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  26. package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
  27. package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
  28. package/dist/es/models/common/v1/response/ApiLink.js +165 -206
  29. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  30. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
  31. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  32. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  33. package/dist/es/models/licensing/v4/agreements/Acceptance.d.ts +2 -16
  34. package/dist/es/models/licensing/v4/agreements/Acceptance.js +161 -203
  35. package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.d.ts +2 -43
  36. package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.js +209 -264
  37. package/dist/es/models/licensing/v4/agreements/EndUser.d.ts +2 -10
  38. package/dist/es/models/licensing/v4/agreements/EndUser.js +226 -271
  39. package/dist/es/models/licensing/v4/agreements/Eula.d.ts +1 -34
  40. package/dist/es/models/licensing/v4/agreements/Eula.js +230 -286
  41. package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +2 -43
  42. package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.js +187 -242
  43. package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +2 -46
  44. package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.js +190 -245
  45. package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +2 -62
  46. package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +194 -247
  47. package/dist/es/models/licensing/v4/config/Allowance.d.ts +1 -27
  48. package/dist/es/models/licensing/v4/config/Allowance.js +192 -241
  49. package/dist/es/models/licensing/v4/config/AllowanceDetail.d.ts +2 -10
  50. package/dist/es/models/licensing/v4/config/AllowanceDetail.js +217 -262
  51. package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.d.ts +1 -1
  52. package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.js +74 -103
  53. package/dist/es/models/licensing/v4/config/AllowanceProjection.d.ts +1 -36
  54. package/dist/es/models/licensing/v4/config/AllowanceProjection.js +155 -198
  55. package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +2 -46
  56. package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +209 -264
  57. package/dist/es/models/licensing/v4/config/AssociateLicenseKeySpec.d.ts +58 -0
  58. package/dist/es/models/licensing/v4/config/AssociateLicenseKeySpec.js +253 -0
  59. package/dist/es/models/licensing/v4/config/AssociateLicenseKeysApiResponse.d.ts +58 -0
  60. package/dist/es/models/licensing/v4/config/AssociateLicenseKeysApiResponse.js +310 -0
  61. package/dist/es/models/licensing/v4/config/AssociationType.d.ts +19 -0
  62. package/dist/es/models/licensing/v4/config/AssociationType.js +83 -0
  63. package/dist/es/models/licensing/v4/config/BaseClusterInfo.d.ts +1 -16
  64. package/dist/es/models/licensing/v4/config/BaseClusterInfo.js +123 -166
  65. package/dist/es/models/licensing/v4/config/BaseLicenseInfo.d.ts +1 -20
  66. package/dist/es/models/licensing/v4/config/BaseLicenseInfo.js +223 -273
  67. package/dist/es/models/licensing/v4/config/BillingPlan.js +7 -9
  68. package/dist/es/models/licensing/v4/config/CapacityViolation.d.ts +2 -10
  69. package/dist/es/models/licensing/v4/config/CapacityViolation.js +210 -255
  70. package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +1 -9
  71. package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.js +131 -170
  72. package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +1 -1
  73. package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +73 -102
  74. package/dist/es/models/licensing/v4/config/ClusterType.js +14 -10
  75. package/dist/es/models/licensing/v4/config/Compliance.d.ts +1 -35
  76. package/dist/es/models/licensing/v4/config/Compliance.js +192 -241
  77. package/dist/es/models/licensing/v4/config/ComplianceProjection.d.ts +1 -52
  78. package/dist/es/models/licensing/v4/config/ComplianceProjection.js +155 -198
  79. package/dist/es/models/licensing/v4/config/Consumption.d.ts +2 -8
  80. package/dist/es/models/licensing/v4/config/Consumption.js +168 -209
  81. package/dist/es/models/licensing/v4/config/ConsumptionProjection.d.ts +1 -1
  82. package/dist/es/models/licensing/v4/config/ConsumptionProjection.js +74 -103
  83. package/dist/es/models/licensing/v4/config/ConsumptionType.js +7 -9
  84. package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +2 -43
  85. package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +190 -245
  86. package/dist/es/models/licensing/v4/config/DryRunCheck.d.ts +2 -18
  87. package/dist/es/models/licensing/v4/config/DryRunCheck.js +173 -224
  88. package/dist/es/models/licensing/v4/config/DryRunStatus.js +7 -9
  89. package/dist/es/models/licensing/v4/config/DryRunValidationResult.d.ts +2 -23
  90. package/dist/es/models/licensing/v4/config/DryRunValidationResult.js +154 -207
  91. package/dist/es/models/licensing/v4/config/EnforcementActions.js +7 -9
  92. package/dist/es/models/licensing/v4/config/EnforcementLevel.js +7 -9
  93. package/dist/es/models/licensing/v4/config/EnforcementPolicy.js +7 -9
  94. package/dist/es/models/licensing/v4/config/Entitlement.d.ts +1 -33
  95. package/dist/es/models/licensing/v4/config/Entitlement.js +245 -298
  96. package/dist/es/models/licensing/v4/config/EntitlementDetail.d.ts +2 -14
  97. package/dist/es/models/licensing/v4/config/EntitlementDetail.js +308 -361
  98. package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.d.ts +1 -1
  99. package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.js +74 -103
  100. package/dist/es/models/licensing/v4/config/EntitlementProjection.d.ts +1 -46
  101. package/dist/es/models/licensing/v4/config/EntitlementProjection.js +165 -204
  102. package/dist/es/models/licensing/v4/config/ExpiredLicense.d.ts +1 -23
  103. package/dist/es/models/licensing/v4/config/ExpiredLicense.js +203 -239
  104. package/dist/es/models/licensing/v4/config/Feature.d.ts +1 -22
  105. package/dist/es/models/licensing/v4/config/Feature.js +285 -343
  106. package/dist/es/models/licensing/v4/config/FeatureDetail.d.ts +2 -9
  107. package/dist/es/models/licensing/v4/config/FeatureDetail.js +198 -241
  108. package/dist/es/models/licensing/v4/config/FeatureProjection.d.ts +1 -1
  109. package/dist/es/models/licensing/v4/config/FeatureProjection.js +74 -103
  110. package/dist/es/models/licensing/v4/config/FeatureViolation.d.ts +1 -10
  111. package/dist/es/models/licensing/v4/config/FeatureViolation.js +136 -173
  112. package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +2 -43
  113. package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.js +187 -242
  114. package/dist/es/models/licensing/v4/config/License.d.ts +1 -31
  115. package/dist/es/models/licensing/v4/config/License.js +262 -306
  116. package/dist/es/models/licensing/v4/config/LicenseCategory.js +33 -11
  117. package/dist/es/models/licensing/v4/config/LicenseClass.js +7 -9
  118. package/dist/es/models/licensing/v4/config/LicenseKey.d.ts +23 -32
  119. package/dist/es/models/licensing/v4/config/LicenseKey.js +431 -420
  120. package/dist/es/models/licensing/v4/config/{LicenseKeyAssignSpec.d.ts → LicenseKeyAssignment.d.ts} +9 -21
  121. package/dist/es/models/licensing/v4/config/LicenseKeyAssignment.js +284 -0
  122. package/dist/es/models/licensing/v4/config/LicenseKeyAssignmentSpec.d.ts +58 -0
  123. package/dist/es/models/licensing/v4/config/LicenseKeyAssignmentSpec.js +253 -0
  124. package/dist/es/models/licensing/v4/config/LicenseKeyAssociation.d.ts +96 -0
  125. package/dist/es/models/licensing/v4/config/LicenseKeyAssociation.js +357 -0
  126. package/dist/es/models/licensing/v4/config/LicenseKeyAssociationProjection.d.ts +16 -0
  127. package/dist/es/models/licensing/v4/config/LicenseKeyAssociationProjection.js +135 -0
  128. package/dist/es/models/licensing/v4/config/LicenseKeyMapping.d.ts +2 -8
  129. package/dist/es/models/licensing/v4/config/LicenseKeyMapping.js +168 -209
  130. package/dist/es/models/licensing/v4/config/LicenseKeyProjection.d.ts +11 -40
  131. package/dist/es/models/licensing/v4/config/LicenseKeyProjection.js +236 -208
  132. package/dist/es/models/licensing/v4/config/LicenseKeySubCategory.js +7 -9
  133. package/dist/es/models/licensing/v4/config/LicenseProjection.d.ts +1 -38
  134. package/dist/es/models/licensing/v4/config/LicenseProjection.js +187 -217
  135. package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +2 -9
  136. package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.js +203 -246
  137. package/dist/es/models/licensing/v4/config/LicenseType.js +21 -11
  138. package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +2 -43
  139. package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.js +213 -268
  140. package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +2 -43
  141. package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.js +213 -268
  142. package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +2 -43
  143. package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.js +213 -268
  144. package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +2 -43
  145. package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.js +213 -268
  146. package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +2 -43
  147. package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.js +213 -268
  148. package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.d.ts +2 -43
  149. package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.js +213 -268
  150. package/dist/es/models/licensing/v4/config/ListReclaimLicenseTokensApiResponse.d.ts +59 -0
  151. package/dist/es/models/licensing/v4/config/ListReclaimLicenseTokensApiResponse.js +315 -0
  152. package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +2 -43
  153. package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.js +209 -264
  154. package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.d.ts +2 -43
  155. package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.js +209 -264
  156. package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.d.ts +2 -43
  157. package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.js +209 -264
  158. package/dist/es/models/licensing/v4/config/LogicalVersion.d.ts +2 -8
  159. package/dist/es/models/licensing/v4/config/LogicalVersion.js +166 -207
  160. package/dist/es/models/licensing/v4/config/Meter.js +7 -9
  161. package/dist/es/models/licensing/v4/config/OperationType.js +7 -9
  162. package/dist/es/models/licensing/v4/config/PortalSetting.d.ts +2 -9
  163. package/dist/es/models/licensing/v4/config/PortalSetting.js +194 -238
  164. package/dist/es/models/licensing/v4/config/PostPaidCategory.js +7 -9
  165. package/dist/es/models/licensing/v4/config/PostPaidConfig.d.ts +2 -11
  166. package/dist/es/models/licensing/v4/config/PostPaidConfig.js +237 -284
  167. package/dist/es/models/licensing/v4/config/ProductName.js +15 -11
  168. package/dist/es/models/licensing/v4/config/ReclaimLicenseKeyApiResponse.d.ts +58 -0
  169. package/dist/es/models/licensing/v4/config/ReclaimLicenseKeyApiResponse.js +310 -0
  170. package/dist/es/models/licensing/v4/config/ReclaimLicenseKeySpec.d.ts +59 -0
  171. package/dist/es/models/licensing/v4/config/ReclaimLicenseKeySpec.js +248 -0
  172. package/dist/es/models/licensing/v4/config/ReclaimLicenseToken.d.ts +57 -0
  173. package/dist/es/models/licensing/v4/config/ReclaimLicenseToken.js +342 -0
  174. package/dist/es/models/licensing/v4/config/ReclaimLicenseTokenProjection.d.ts +10 -0
  175. package/dist/es/models/licensing/v4/config/ReclaimLicenseTokenProjection.js +123 -0
  176. package/dist/es/models/licensing/v4/config/ReclaimType.d.ts +19 -0
  177. package/dist/es/models/licensing/v4/config/ReclaimType.js +83 -0
  178. package/dist/es/models/licensing/v4/config/Recommendation.d.ts +1 -25
  179. package/dist/es/models/licensing/v4/config/Recommendation.js +136 -182
  180. package/dist/es/models/licensing/v4/config/RecommendationDetail.d.ts +2 -11
  181. package/dist/es/models/licensing/v4/config/RecommendationDetail.js +241 -288
  182. package/dist/es/models/licensing/v4/config/RecommendationScope.js +7 -9
  183. package/dist/es/models/licensing/v4/config/ResetScope.js +7 -9
  184. package/dist/es/models/licensing/v4/config/Scope.js +7 -9
  185. package/dist/es/models/licensing/v4/config/Service.d.ts +2 -18
  186. package/dist/es/models/licensing/v4/config/Service.js +278 -331
  187. package/dist/es/models/licensing/v4/config/ServiceProjection.d.ts +1 -1
  188. package/dist/es/models/licensing/v4/config/ServiceProjection.js +74 -103
  189. package/dist/es/models/licensing/v4/config/ServiceViolation.d.ts +2 -8
  190. package/dist/es/models/licensing/v4/config/ServiceViolation.js +164 -205
  191. package/dist/es/models/licensing/v4/config/ServiceViolationType.js +7 -9
  192. package/dist/es/models/licensing/v4/config/Setting.d.ts +1 -40
  193. package/dist/es/models/licensing/v4/config/Setting.js +325 -382
  194. package/dist/es/models/licensing/v4/config/Status.js +7 -9
  195. package/dist/es/models/licensing/v4/config/SubCategory.js +7 -9
  196. package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +2 -43
  197. package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.js +187 -242
  198. package/dist/es/models/licensing/v4/config/SyncOperationType.js +7 -9
  199. package/dist/es/models/licensing/v4/config/Trial.d.ts +74 -0
  200. package/dist/es/models/licensing/v4/config/Trial.js +369 -0
  201. package/dist/es/models/licensing/v4/config/TrialCategory.d.ts +19 -0
  202. package/dist/es/models/licensing/v4/config/TrialCategory.js +77 -0
  203. package/dist/es/models/licensing/v4/config/TrialProjection.d.ts +12 -0
  204. package/dist/es/models/licensing/v4/config/TrialProjection.js +130 -0
  205. package/dist/es/models/licensing/v4/config/TrialStatus.d.ts +19 -0
  206. package/dist/es/models/licensing/v4/config/TrialStatus.js +83 -0
  207. package/dist/es/models/licensing/v4/config/TrialType.d.ts +19 -0
  208. package/dist/es/models/licensing/v4/config/TrialType.js +77 -0
  209. package/dist/es/models/licensing/v4/config/ValueType.js +7 -9
  210. package/dist/es/models/licensing/v4/config/Violation.d.ts +1 -56
  211. package/dist/es/models/licensing/v4/config/Violation.js +211 -268
  212. package/dist/es/models/licensing/v4/error/AppMessage.d.ts +2 -12
  213. package/dist/es/models/licensing/v4/error/AppMessage.js +264 -313
  214. package/dist/es/models/licensing/v4/error/ErrorResponse.d.ts +2 -7
  215. package/dist/es/models/licensing/v4/error/ErrorResponse.js +178 -218
  216. package/dist/es/models/licensing/v4/error/SchemaValidationError.d.ts +2 -18
  217. package/dist/es/models/licensing/v4/error/SchemaValidationError.js +249 -300
  218. package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  219. package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.js +191 -234
  220. package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
  221. package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
  222. package/dist/es/models/validation/ValidationError.js +26 -42
  223. package/dist/es/models/validation/ValidationScopes.js +3 -3
  224. package/dist/es/utils/ValidationUtils.js +39 -69
  225. package/dist/lib/ApiClient.d.ts +29 -7
  226. package/dist/lib/ApiClient.js +854 -667
  227. package/dist/lib/Paginable.d.ts +1 -1
  228. package/dist/lib/Paginable.js +144 -183
  229. package/dist/lib/apis/enduserlicenseagreement-endpoints.d.ts +1 -1
  230. package/dist/lib/apis/enduserlicenseagreement-endpoints.js +82 -99
  231. package/dist/lib/apis/licensekeys-endpoints.d.ts +49 -3
  232. package/dist/lib/apis/licensekeys-endpoints.js +361 -223
  233. package/dist/lib/apis/licenses-endpoints.d.ts +1 -1
  234. package/dist/lib/apis/licenses-endpoints.js +400 -380
  235. package/dist/lib/index.d.ts +37 -3
  236. package/dist/lib/index.js +439 -303
  237. package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
  238. package/dist/lib/models/common/v1/config/Flag.js +170 -211
  239. package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
  240. package/dist/lib/models/common/v1/config/KVPair.js +225 -270
  241. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  242. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
  243. package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
  244. package/dist/lib/models/common/v1/config/Message.js +213 -258
  245. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
  246. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  247. package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
  248. package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
  249. package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
  250. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  251. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
  252. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  253. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  254. package/dist/lib/models/licensing/v4/agreements/Acceptance.d.ts +2 -16
  255. package/dist/lib/models/licensing/v4/agreements/Acceptance.js +161 -203
  256. package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.d.ts +2 -43
  257. package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.js +209 -264
  258. package/dist/lib/models/licensing/v4/agreements/EndUser.d.ts +2 -10
  259. package/dist/lib/models/licensing/v4/agreements/EndUser.js +226 -271
  260. package/dist/lib/models/licensing/v4/agreements/Eula.d.ts +1 -34
  261. package/dist/lib/models/licensing/v4/agreements/Eula.js +230 -286
  262. package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +2 -43
  263. package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.js +187 -242
  264. package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +2 -46
  265. package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.js +190 -245
  266. package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +2 -62
  267. package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +194 -247
  268. package/dist/lib/models/licensing/v4/config/Allowance.d.ts +1 -27
  269. package/dist/lib/models/licensing/v4/config/Allowance.js +192 -241
  270. package/dist/lib/models/licensing/v4/config/AllowanceDetail.d.ts +2 -10
  271. package/dist/lib/models/licensing/v4/config/AllowanceDetail.js +217 -262
  272. package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.d.ts +1 -1
  273. package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.js +74 -103
  274. package/dist/lib/models/licensing/v4/config/AllowanceProjection.d.ts +1 -36
  275. package/dist/lib/models/licensing/v4/config/AllowanceProjection.js +155 -198
  276. package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +2 -46
  277. package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +209 -264
  278. package/dist/lib/models/licensing/v4/config/AssociateLicenseKeySpec.d.ts +58 -0
  279. package/dist/lib/models/licensing/v4/config/AssociateLicenseKeySpec.js +253 -0
  280. package/dist/lib/models/licensing/v4/config/AssociateLicenseKeysApiResponse.d.ts +58 -0
  281. package/dist/lib/models/licensing/v4/config/AssociateLicenseKeysApiResponse.js +310 -0
  282. package/dist/lib/models/licensing/v4/config/AssociationType.d.ts +19 -0
  283. package/dist/lib/models/licensing/v4/config/AssociationType.js +83 -0
  284. package/dist/lib/models/licensing/v4/config/BaseClusterInfo.d.ts +1 -16
  285. package/dist/lib/models/licensing/v4/config/BaseClusterInfo.js +123 -166
  286. package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.d.ts +1 -20
  287. package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.js +223 -273
  288. package/dist/lib/models/licensing/v4/config/BillingPlan.js +7 -9
  289. package/dist/lib/models/licensing/v4/config/CapacityViolation.d.ts +2 -10
  290. package/dist/lib/models/licensing/v4/config/CapacityViolation.js +210 -255
  291. package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +1 -9
  292. package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.js +131 -170
  293. package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +1 -1
  294. package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +73 -102
  295. package/dist/lib/models/licensing/v4/config/ClusterType.js +14 -10
  296. package/dist/lib/models/licensing/v4/config/Compliance.d.ts +1 -35
  297. package/dist/lib/models/licensing/v4/config/Compliance.js +192 -241
  298. package/dist/lib/models/licensing/v4/config/ComplianceProjection.d.ts +1 -52
  299. package/dist/lib/models/licensing/v4/config/ComplianceProjection.js +155 -198
  300. package/dist/lib/models/licensing/v4/config/Consumption.d.ts +2 -8
  301. package/dist/lib/models/licensing/v4/config/Consumption.js +168 -209
  302. package/dist/lib/models/licensing/v4/config/ConsumptionProjection.d.ts +1 -1
  303. package/dist/lib/models/licensing/v4/config/ConsumptionProjection.js +74 -103
  304. package/dist/lib/models/licensing/v4/config/ConsumptionType.js +7 -9
  305. package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +2 -43
  306. package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +190 -245
  307. package/dist/lib/models/licensing/v4/config/DryRunCheck.d.ts +2 -18
  308. package/dist/lib/models/licensing/v4/config/DryRunCheck.js +173 -224
  309. package/dist/lib/models/licensing/v4/config/DryRunStatus.js +7 -9
  310. package/dist/lib/models/licensing/v4/config/DryRunValidationResult.d.ts +2 -23
  311. package/dist/lib/models/licensing/v4/config/DryRunValidationResult.js +154 -207
  312. package/dist/lib/models/licensing/v4/config/EnforcementActions.js +7 -9
  313. package/dist/lib/models/licensing/v4/config/EnforcementLevel.js +7 -9
  314. package/dist/lib/models/licensing/v4/config/EnforcementPolicy.js +7 -9
  315. package/dist/lib/models/licensing/v4/config/Entitlement.d.ts +1 -33
  316. package/dist/lib/models/licensing/v4/config/Entitlement.js +245 -298
  317. package/dist/lib/models/licensing/v4/config/EntitlementDetail.d.ts +2 -14
  318. package/dist/lib/models/licensing/v4/config/EntitlementDetail.js +308 -361
  319. package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.d.ts +1 -1
  320. package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.js +74 -103
  321. package/dist/lib/models/licensing/v4/config/EntitlementProjection.d.ts +1 -46
  322. package/dist/lib/models/licensing/v4/config/EntitlementProjection.js +165 -204
  323. package/dist/lib/models/licensing/v4/config/ExpiredLicense.d.ts +1 -23
  324. package/dist/lib/models/licensing/v4/config/ExpiredLicense.js +203 -239
  325. package/dist/lib/models/licensing/v4/config/Feature.d.ts +1 -22
  326. package/dist/lib/models/licensing/v4/config/Feature.js +285 -343
  327. package/dist/lib/models/licensing/v4/config/FeatureDetail.d.ts +2 -9
  328. package/dist/lib/models/licensing/v4/config/FeatureDetail.js +198 -241
  329. package/dist/lib/models/licensing/v4/config/FeatureProjection.d.ts +1 -1
  330. package/dist/lib/models/licensing/v4/config/FeatureProjection.js +74 -103
  331. package/dist/lib/models/licensing/v4/config/FeatureViolation.d.ts +1 -10
  332. package/dist/lib/models/licensing/v4/config/FeatureViolation.js +136 -173
  333. package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +2 -43
  334. package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.js +187 -242
  335. package/dist/lib/models/licensing/v4/config/License.d.ts +1 -31
  336. package/dist/lib/models/licensing/v4/config/License.js +262 -306
  337. package/dist/lib/models/licensing/v4/config/LicenseCategory.js +33 -11
  338. package/dist/lib/models/licensing/v4/config/LicenseClass.js +7 -9
  339. package/dist/lib/models/licensing/v4/config/LicenseKey.d.ts +23 -32
  340. package/dist/lib/models/licensing/v4/config/LicenseKey.js +431 -420
  341. package/dist/lib/models/licensing/v4/config/{LicenseKeyAssignSpec.d.ts → LicenseKeyAssignment.d.ts} +9 -21
  342. package/dist/lib/models/licensing/v4/config/LicenseKeyAssignment.js +284 -0
  343. package/dist/lib/models/licensing/v4/config/LicenseKeyAssignmentSpec.d.ts +58 -0
  344. package/dist/lib/models/licensing/v4/config/LicenseKeyAssignmentSpec.js +253 -0
  345. package/dist/lib/models/licensing/v4/config/LicenseKeyAssociation.d.ts +96 -0
  346. package/dist/lib/models/licensing/v4/config/LicenseKeyAssociation.js +357 -0
  347. package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationProjection.d.ts +16 -0
  348. package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationProjection.js +135 -0
  349. package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.d.ts +2 -8
  350. package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.js +168 -209
  351. package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.d.ts +11 -40
  352. package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.js +236 -208
  353. package/dist/lib/models/licensing/v4/config/LicenseKeySubCategory.js +7 -9
  354. package/dist/lib/models/licensing/v4/config/LicenseProjection.d.ts +1 -38
  355. package/dist/lib/models/licensing/v4/config/LicenseProjection.js +187 -217
  356. package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +2 -9
  357. package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.js +203 -246
  358. package/dist/lib/models/licensing/v4/config/LicenseType.js +21 -11
  359. package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +2 -43
  360. package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.js +213 -268
  361. package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +2 -43
  362. package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.js +213 -268
  363. package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +2 -43
  364. package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.js +213 -268
  365. package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +2 -43
  366. package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.js +213 -268
  367. package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +2 -43
  368. package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.js +213 -268
  369. package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.d.ts +2 -43
  370. package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.js +213 -268
  371. package/dist/lib/models/licensing/v4/config/ListReclaimLicenseTokensApiResponse.d.ts +59 -0
  372. package/dist/lib/models/licensing/v4/config/ListReclaimLicenseTokensApiResponse.js +315 -0
  373. package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +2 -43
  374. package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.js +209 -264
  375. package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.d.ts +2 -43
  376. package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.js +209 -264
  377. package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.d.ts +2 -43
  378. package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.js +209 -264
  379. package/dist/lib/models/licensing/v4/config/LogicalVersion.d.ts +2 -8
  380. package/dist/lib/models/licensing/v4/config/LogicalVersion.js +166 -207
  381. package/dist/lib/models/licensing/v4/config/Meter.js +7 -9
  382. package/dist/lib/models/licensing/v4/config/OperationType.js +7 -9
  383. package/dist/lib/models/licensing/v4/config/PortalSetting.d.ts +2 -9
  384. package/dist/lib/models/licensing/v4/config/PortalSetting.js +194 -238
  385. package/dist/lib/models/licensing/v4/config/PostPaidCategory.js +7 -9
  386. package/dist/lib/models/licensing/v4/config/PostPaidConfig.d.ts +2 -11
  387. package/dist/lib/models/licensing/v4/config/PostPaidConfig.js +237 -284
  388. package/dist/lib/models/licensing/v4/config/ProductName.js +15 -11
  389. package/dist/lib/models/licensing/v4/config/ReclaimLicenseKeyApiResponse.d.ts +58 -0
  390. package/dist/lib/models/licensing/v4/config/ReclaimLicenseKeyApiResponse.js +310 -0
  391. package/dist/lib/models/licensing/v4/config/ReclaimLicenseKeySpec.d.ts +59 -0
  392. package/dist/lib/models/licensing/v4/config/ReclaimLicenseKeySpec.js +248 -0
  393. package/dist/lib/models/licensing/v4/config/ReclaimLicenseToken.d.ts +57 -0
  394. package/dist/lib/models/licensing/v4/config/ReclaimLicenseToken.js +342 -0
  395. package/dist/lib/models/licensing/v4/config/ReclaimLicenseTokenProjection.d.ts +10 -0
  396. package/dist/lib/models/licensing/v4/config/ReclaimLicenseTokenProjection.js +123 -0
  397. package/dist/lib/models/licensing/v4/config/ReclaimType.d.ts +19 -0
  398. package/dist/lib/models/licensing/v4/config/ReclaimType.js +83 -0
  399. package/dist/lib/models/licensing/v4/config/Recommendation.d.ts +1 -25
  400. package/dist/lib/models/licensing/v4/config/Recommendation.js +136 -182
  401. package/dist/lib/models/licensing/v4/config/RecommendationDetail.d.ts +2 -11
  402. package/dist/lib/models/licensing/v4/config/RecommendationDetail.js +241 -288
  403. package/dist/lib/models/licensing/v4/config/RecommendationScope.js +7 -9
  404. package/dist/lib/models/licensing/v4/config/ResetScope.js +7 -9
  405. package/dist/lib/models/licensing/v4/config/Scope.js +7 -9
  406. package/dist/lib/models/licensing/v4/config/Service.d.ts +2 -18
  407. package/dist/lib/models/licensing/v4/config/Service.js +278 -331
  408. package/dist/lib/models/licensing/v4/config/ServiceProjection.d.ts +1 -1
  409. package/dist/lib/models/licensing/v4/config/ServiceProjection.js +74 -103
  410. package/dist/lib/models/licensing/v4/config/ServiceViolation.d.ts +2 -8
  411. package/dist/lib/models/licensing/v4/config/ServiceViolation.js +164 -205
  412. package/dist/lib/models/licensing/v4/config/ServiceViolationType.js +7 -9
  413. package/dist/lib/models/licensing/v4/config/Setting.d.ts +1 -40
  414. package/dist/lib/models/licensing/v4/config/Setting.js +325 -382
  415. package/dist/lib/models/licensing/v4/config/Status.js +7 -9
  416. package/dist/lib/models/licensing/v4/config/SubCategory.js +7 -9
  417. package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +2 -43
  418. package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.js +187 -242
  419. package/dist/lib/models/licensing/v4/config/SyncOperationType.js +7 -9
  420. package/dist/lib/models/licensing/v4/config/Trial.d.ts +74 -0
  421. package/dist/lib/models/licensing/v4/config/Trial.js +369 -0
  422. package/dist/lib/models/licensing/v4/config/TrialCategory.d.ts +19 -0
  423. package/dist/lib/models/licensing/v4/config/TrialCategory.js +77 -0
  424. package/dist/lib/models/licensing/v4/config/TrialProjection.d.ts +12 -0
  425. package/dist/lib/models/licensing/v4/config/TrialProjection.js +130 -0
  426. package/dist/lib/models/licensing/v4/config/TrialStatus.d.ts +19 -0
  427. package/dist/lib/models/licensing/v4/config/TrialStatus.js +83 -0
  428. package/dist/lib/models/licensing/v4/config/TrialType.d.ts +19 -0
  429. package/dist/lib/models/licensing/v4/config/TrialType.js +77 -0
  430. package/dist/lib/models/licensing/v4/config/ValueType.js +7 -9
  431. package/dist/lib/models/licensing/v4/config/Violation.d.ts +1 -56
  432. package/dist/lib/models/licensing/v4/config/Violation.js +211 -268
  433. package/dist/lib/models/licensing/v4/error/AppMessage.d.ts +2 -12
  434. package/dist/lib/models/licensing/v4/error/AppMessage.js +264 -313
  435. package/dist/lib/models/licensing/v4/error/ErrorResponse.d.ts +2 -7
  436. package/dist/lib/models/licensing/v4/error/ErrorResponse.js +178 -218
  437. package/dist/lib/models/licensing/v4/error/SchemaValidationError.d.ts +2 -18
  438. package/dist/lib/models/licensing/v4/error/SchemaValidationError.js +249 -300
  439. package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  440. package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.js +191 -234
  441. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
  442. package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
  443. package/dist/lib/models/validation/ValidationError.js +26 -42
  444. package/dist/lib/models/validation/ValidationScopes.js +3 -3
  445. package/dist/lib/utils/ValidationUtils.js +39 -69
  446. package/package.json +2 -2
  447. package/dist/es/models/licensing/v4/config/LicenseKeyAssignSpec.js +0 -329
  448. package/dist/lib/models/licensing/v4/config/LicenseKeyAssignSpec.js +0 -329
@@ -1,50 +1,52 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.LicenseKeysApi = void 0;
8
7
  var _ApiClient = require("../ApiClient");
9
8
  var _AssignLicenseKeysApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/AssignLicenseKeysApiResponse"));
10
- var _LicenseKeyAssignSpec = _interopRequireDefault(require("../models/licensing/v4/config/LicenseKeyAssignSpec"));
11
9
  var _DeleteLicenseKeyApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/DeleteLicenseKeyApiResponse"));
12
- var _ListLicenseKeysApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListLicenseKeysApiResponse"));
13
- var _LicenseKey = _interopRequireDefault(require("../models/licensing/v4/config/LicenseKey"));
10
+ var _ReclaimLicenseKeyApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ReclaimLicenseKeyApiResponse"));
11
+ var _AssociateLicenseKeysApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/AssociateLicenseKeysApiResponse"));
14
12
  var _AddLicenseKeyApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/AddLicenseKeyApiResponse"));
13
+ var _ListReclaimLicenseTokensApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListReclaimLicenseTokensApiResponse"));
15
14
  var _GetLicenseKeyApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/GetLicenseKeyApiResponse"));
16
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
17
- 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; }
18
- 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; }
19
- 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; }
20
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
21
- 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); } }
22
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
23
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
24
- 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); }
25
- function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
26
- function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
27
- function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
28
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
29
- 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"); } /*
15
+ var _ReclaimLicenseKeySpec = _interopRequireDefault(require("../models/licensing/v4/config/ReclaimLicenseKeySpec"));
16
+ var _ListLicenseKeysApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListLicenseKeysApiResponse"));
17
+ var _AssociateLicenseKeySpec = _interopRequireDefault(require("../models/licensing/v4/config/AssociateLicenseKeySpec"));
18
+ var _LicenseKey = _interopRequireDefault(require("../models/licensing/v4/config/LicenseKey"));
19
+ var _LicenseKeyAssignmentSpec = _interopRequireDefault(require("../models/licensing/v4/config/LicenseKeyAssignmentSpec"));
20
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
21
+ /*
30
22
  * Nutanix Licensing APIs
31
23
  *
32
- * OpenAPI spec version: 4.1.1
24
+ * OpenAPI spec version: 4.3.1
33
25
  *
34
26
  * NOTE: This class is auto generated by the Open API Dev Platform.
35
27
  *
36
- * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
28
+ * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
37
29
  *
38
30
  * Do not edit the class manually.
39
31
  *
40
32
  */
33
+
41
34
  /**
42
35
  * LicenseKeys service.
43
- * @version 4.1.1
36
+ * @version 4.3.1
44
37
  * @class LicenseKeysApi
45
38
  */
46
- var _headersToSkip = /*#__PURE__*/new WeakMap();
47
- var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
39
+ class LicenseKeysApi {
40
+ #headersToSkip;
41
+
42
+ /**
43
+ * Make the default {@link ApiClient} class available for developers to be able to extend it and bring
44
+ * their own fetch methods into the SDK
45
+ */
46
+ static get ApiClient() {
47
+ return _ApiClient.ApiClient;
48
+ }
49
+
48
50
  /**
49
51
  * Constructs a new LicenseKeysApi.
50
52
  * @alias module:api/LicenseKeysApi
@@ -52,15 +54,13 @@ var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
52
54
  * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
53
55
  * default to {@link module:ApiClient#instance} if unspecified.
54
56
  */
55
- function LicenseKeysApi(apiClient) {
56
- _classCallCheck(this, LicenseKeysApi);
57
- _classPrivateFieldInitSpec(this, _headersToSkip, void 0);
57
+ constructor(apiClient) {
58
58
  this.apiClient = apiClient || _ApiClient.ApiClient.instance;
59
- _classPrivateFieldSet(_headersToSkip, this, new Set());
60
- _classPrivateFieldGet(_headersToSkip, this).add('authorization');
61
- _classPrivateFieldGet(_headersToSkip, this).add('cookie');
62
- _classPrivateFieldGet(_headersToSkip, this).add('host');
63
- _classPrivateFieldGet(_headersToSkip, this).add('user-agent');
59
+ this.#headersToSkip = new Set();
60
+ this.#headersToSkip.add('authorization');
61
+ this.#headersToSkip.add('cookie');
62
+ this.#headersToSkip.add('host');
63
+ this.#headersToSkip.add('user-agent');
64
64
  }
65
65
 
66
66
  /**
@@ -72,212 +72,350 @@ var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
72
72
  * @param {Object} args Additional Arguments
73
73
  * @return {Promise<AddLicenseKeyApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AddLicenseKeyApiResponse } and HTTP response
74
74
  */
75
- return _createClass(LicenseKeysApi, [{
76
- key: "addLicenseKey",
77
- value: function addLicenseKey(body, opts) {
78
- var _this = this;
79
- var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
80
- opts = opts || {};
81
- var postBody = null;
82
- if (body instanceof _LicenseKey["default"] && typeof body.toJson === 'function') {
83
- postBody = body.toJson();
84
- } else {
85
- postBody = body;
86
- }
87
- // verify the required parameter 'body' is set
88
- if (typeof postBody === 'undefined' || postBody === null) {
89
- throw new Error("Invalid body when calling addLicenseKey");
90
- }
91
- var pathParams = {};
92
- var queryParams = _objectSpread({}, opts.hasOwnProperty('$dryrun') ? {
93
- '$dryrun': opts['$dryrun']
94
- } : {});
95
- var headersToInclude = {};
96
- Object.keys(argMap).forEach(function (header) {
97
- if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
98
- headersToInclude[header] = argMap[header];
99
- }
100
- });
101
- var headerParams = _objectSpread({}, headersToInclude);
102
- var formParams = {};
103
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
104
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
105
- var contentTypes = ['application/json'];
106
- var accepts = ['application/json'];
107
- var returnType = _AddLicenseKeyApiResponse["default"];
108
- return this.apiClient.callApi('/api/licensing/v4.1/config/license-keys', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
75
+ addLicenseKey(body, opts, ...args) {
76
+ let argMap = args.length > 0 ? args[0] : {};
77
+ opts = opts || {};
78
+ let postBody = null;
79
+ if (body instanceof _LicenseKey.default && typeof body.toJson === 'function') {
80
+ postBody = body.toJson();
81
+ } else {
82
+ postBody = body;
109
83
  }
110
-
111
- /**
112
- * Assign license keys to cluster
113
- * Assign the license keys to a cluster.
114
- * @param { Partial<Array> } body specification
115
- * @param {Object} args Additional Arguments
116
- * @return {Promise<AssignLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AssignLicenseKeysApiResponse } and HTTP response
117
- */
118
- }, {
119
- key: "assignLicenseKeys",
120
- value: function assignLicenseKeys(body) {
121
- var _this2 = this;
122
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
123
- var postBody = null;
124
- if (body instanceof Array && typeof body.toJson === 'function') {
125
- postBody = body.toJson();
126
- } else {
127
- postBody = body;
128
- }
129
- // verify the required parameter 'body' is set
130
- if (typeof postBody === 'undefined' || postBody === null) {
131
- throw new Error("Invalid body when calling assignLicenseKeys");
132
- }
133
- var pathParams = {};
134
- var queryParams = {};
135
- var headersToInclude = {};
136
- Object.keys(argMap).forEach(function (header) {
137
- if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
138
- headersToInclude[header] = argMap[header];
139
- }
140
- });
141
- var headerParams = _objectSpread({}, headersToInclude);
142
- var formParams = {};
143
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
144
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
145
- var contentTypes = ['application/json'];
146
- var accepts = ['application/json'];
147
- var returnType = _AssignLicenseKeysApiResponse["default"];
148
- return this.apiClient.callApi('/api/licensing/v4.1/config/$actions/assign-license-keys', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
84
+ // verify the required parameter 'body' is set
85
+ if (typeof postBody === 'undefined' || postBody === null) {
86
+ throw new Error("Invalid body when calling addLicenseKey");
149
87
  }
88
+ const pathParams = {};
89
+ const queryParams = {
90
+ ...(opts.hasOwnProperty('$dryrun') ? {
91
+ '$dryrun': opts['$dryrun']
92
+ } : {})
93
+ };
94
+ let headersToInclude = {};
95
+ Object.keys(argMap).forEach(header => {
96
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
97
+ headersToInclude[header] = argMap[header];
98
+ }
99
+ });
100
+ const headerParams = {
101
+ ...headersToInclude
102
+ };
103
+ const formParams = {};
104
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
105
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
106
+ const contentTypes = ['application/json'];
107
+ const accepts = ['application/json'];
108
+ const returnType = _AddLicenseKeyApiResponse.default;
109
+ return this.apiClient.callApi('/api/licensing/v4.3/config/license-keys', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
110
+ }
150
111
 
151
- /**
152
- * Delete license key
153
- * Deletes the license key based on the provided external identifier.
154
- * @param { String } extId Path parameter for the license key ID.
155
- * @param {Object} args Additional Arguments
156
- * @return {Promise<DeleteLicenseKeyApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteLicenseKeyApiResponse } and HTTP response
157
- */
158
- }, {
159
- key: "deleteLicenseKeyById",
160
- value: function deleteLicenseKeyById(extId) {
161
- var _this3 = this;
162
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
163
- var postBody = null;
164
- // verify the required parameter 'extId' is set
165
- if (typeof extId === 'undefined' || extId === null) {
166
- throw new Error("Missing the required parameter 'extId' when calling deleteLicenseKeyById");
112
+ /**
113
+ * Assign license keys to cluster
114
+ * Assign the license keys to a cluster.
115
+ * @param { Required<Pick<LicenseKeyAssignmentSpec, 'licenseKeyAssignments'>> & Partial<LicenseKeyAssignmentSpec> } body specification
116
+ * @param {Object} args Additional Arguments
117
+ * @return {Promise<AssignLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AssignLicenseKeysApiResponse } and HTTP response
118
+ */
119
+ assignLicenseKeys(body, ...args) {
120
+ let argMap = args.length > 0 ? args[0] : {};
121
+ let postBody = null;
122
+ if (body instanceof _LicenseKeyAssignmentSpec.default && typeof body.toJson === 'function') {
123
+ postBody = body.toJson();
124
+ } else {
125
+ postBody = body;
126
+ }
127
+ // verify the required parameter 'body' is set
128
+ if (typeof postBody === 'undefined' || postBody === null) {
129
+ throw new Error("Invalid body when calling assignLicenseKeys");
130
+ }
131
+ const pathParams = {};
132
+ const queryParams = {};
133
+ let headersToInclude = {};
134
+ Object.keys(argMap).forEach(header => {
135
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
136
+ headersToInclude[header] = argMap[header];
167
137
  }
168
- var pathParams = {
169
- 'extId': extId
170
- };
171
- var queryParams = {};
172
- var headersToInclude = {};
173
- Object.keys(argMap).forEach(function (header) {
174
- if (!_classPrivateFieldGet(_headersToSkip, _this3).has(header.toLowerCase())) {
175
- headersToInclude[header] = argMap[header];
176
- }
177
- });
178
- var headerParams = _objectSpread({}, headersToInclude);
179
- var formParams = {};
180
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
181
- var contentTypes = [];
182
- var accepts = ['application/json'];
183
- var returnType = _DeleteLicenseKeyApiResponse["default"];
184
- return this.apiClient.callApi('/api/licensing/v4.1/config/license-keys/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
138
+ });
139
+ const headerParams = {
140
+ ...headersToInclude
141
+ };
142
+ const formParams = {};
143
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
144
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
145
+ const contentTypes = ['application/json'];
146
+ const accepts = ['application/json'];
147
+ const returnType = _AssignLicenseKeysApiResponse.default;
148
+ return this.apiClient.callApi('/api/licensing/v4.3/config/$actions/assign-license-keys', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
149
+ }
150
+
151
+ /**
152
+ * Allows to link license keys together
153
+ * Associate parent and child license key.
154
+ * @param { Required<Pick<AssociateLicenseKeySpec, 'keyAssociations'>> & Partial<AssociateLicenseKeySpec> } body specification
155
+ * @param { String } extId Path parameter for the license key ID.
156
+ * @param {Object} args Additional Arguments
157
+ * @return {Promise<AssociateLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AssociateLicenseKeysApiResponse } and HTTP response
158
+ */
159
+ associateLicenseKeys(extId, body, ...args) {
160
+ let argMap = args.length > 0 ? args[0] : {};
161
+ let postBody = null;
162
+ if (body instanceof _AssociateLicenseKeySpec.default && typeof body.toJson === 'function') {
163
+ postBody = body.toJson();
164
+ } else {
165
+ postBody = body;
166
+ }
167
+ // verify the required parameter 'extId' is set
168
+ if (typeof extId === 'undefined' || extId === null) {
169
+ throw new Error("Missing the required parameter 'extId' when calling associateLicenseKeys");
170
+ }
171
+ // verify the required parameter 'body' is set
172
+ if (typeof postBody === 'undefined' || postBody === null) {
173
+ throw new Error("Invalid body when calling associateLicenseKeys");
185
174
  }
175
+ const pathParams = {
176
+ 'extId': extId
177
+ };
178
+ const queryParams = {};
179
+ let headersToInclude = {};
180
+ Object.keys(argMap).forEach(header => {
181
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
182
+ headersToInclude[header] = argMap[header];
183
+ }
184
+ });
185
+ const headerParams = {
186
+ ...headersToInclude
187
+ };
188
+ const formParams = {};
189
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
190
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
191
+ const contentTypes = ['application/json'];
192
+ const accepts = ['application/json'];
193
+ const returnType = _AssociateLicenseKeysApiResponse.default;
194
+ return this.apiClient.callApi('/api/licensing/v4.3/config/license-keys/{extId}/$actions/associate-license-keys', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
195
+ }
186
196
 
187
- /**
188
- * Get license key detail
189
- * Fetches the license key details for the provided license key identifier.
190
- * @param { String } extId Path parameter for the license key ID.
191
- * @param {Object} args Additional Arguments
192
- * @return {Promise<GetLicenseKeyApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetLicenseKeyApiResponse } and HTTP response
193
- */
194
- }, {
195
- key: "getLicenseKeyById",
196
- value: function getLicenseKeyById(extId) {
197
- var _this4 = this;
198
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
199
- var postBody = null;
200
- // verify the required parameter 'extId' is set
201
- if (typeof extId === 'undefined' || extId === null) {
202
- throw new Error("Missing the required parameter 'extId' when calling getLicenseKeyById");
197
+ /**
198
+ * Delete license key
199
+ * Deletes the license key based on the provided external identifier.
200
+ * @param { String } extId Path parameter for the license key ID.
201
+ * @param {Object} args Additional Arguments
202
+ * @return {Promise<DeleteLicenseKeyApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteLicenseKeyApiResponse } and HTTP response
203
+ */
204
+ deleteLicenseKeyById(extId, ...args) {
205
+ let argMap = args.length > 0 ? args[0] : {};
206
+ const postBody = null;
207
+ // verify the required parameter 'extId' is set
208
+ if (typeof extId === 'undefined' || extId === null) {
209
+ throw new Error("Missing the required parameter 'extId' when calling deleteLicenseKeyById");
210
+ }
211
+ const pathParams = {
212
+ 'extId': extId
213
+ };
214
+ const queryParams = {};
215
+ let headersToInclude = {};
216
+ Object.keys(argMap).forEach(header => {
217
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
218
+ headersToInclude[header] = argMap[header];
203
219
  }
204
- var pathParams = {
205
- 'extId': extId
206
- };
207
- var queryParams = {};
208
- var headersToInclude = {};
209
- Object.keys(argMap).forEach(function (header) {
210
- if (!_classPrivateFieldGet(_headersToSkip, _this4).has(header.toLowerCase())) {
211
- headersToInclude[header] = argMap[header];
212
- }
213
- });
214
- var headerParams = _objectSpread({}, headersToInclude);
215
- var formParams = {};
216
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
217
- var contentTypes = [];
218
- var accepts = ['application/json'];
219
- var returnType = _GetLicenseKeyApiResponse["default"];
220
- return this.apiClient.callApi('/api/licensing/v4.1/config/license-keys/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
220
+ });
221
+ const headerParams = {
222
+ ...headersToInclude
223
+ };
224
+ const formParams = {};
225
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
226
+ const contentTypes = [];
227
+ const accepts = ['application/json'];
228
+ const returnType = _DeleteLicenseKeyApiResponse.default;
229
+ return this.apiClient.callApi('/api/licensing/v4.3/config/license-keys/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
230
+ }
231
+
232
+ /**
233
+ * Get license key detail
234
+ * Fetches the license key details for the provided license key identifier.
235
+ * @param { String } extId Path parameter for the license key ID.
236
+ * @param {Object} args Additional Arguments
237
+ * @return {Promise<GetLicenseKeyApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetLicenseKeyApiResponse } and HTTP response
238
+ */
239
+ getLicenseKeyById(extId, ...args) {
240
+ let argMap = args.length > 0 ? args[0] : {};
241
+ const postBody = null;
242
+ // verify the required parameter 'extId' is set
243
+ if (typeof extId === 'undefined' || extId === null) {
244
+ throw new Error("Missing the required parameter 'extId' when calling getLicenseKeyById");
221
245
  }
246
+ const pathParams = {
247
+ 'extId': extId
248
+ };
249
+ const queryParams = {};
250
+ let headersToInclude = {};
251
+ Object.keys(argMap).forEach(header => {
252
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
253
+ headersToInclude[header] = argMap[header];
254
+ }
255
+ });
256
+ const headerParams = {
257
+ ...headersToInclude
258
+ };
259
+ const formParams = {};
260
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
261
+ const contentTypes = [];
262
+ const accepts = ['application/json'];
263
+ const returnType = _GetLicenseKeyApiResponse.default;
264
+ return this.apiClient.callApi('/api/licensing/v4.3/config/license-keys/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
265
+ }
222
266
 
223
- /**
224
- * Get license key
225
- * Fetches the license keys.
226
- * @param {Object} opts Optional parameters defined for the operation
227
- * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
228
- * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
229
- * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
230
- * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
231
- * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
232
- * @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby.
233
- * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
234
- * @param {Object} args Additional Arguments
235
- * @return {Promise<ListLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListLicenseKeysApiResponse } and HTTP response
236
- */
237
- }, {
238
- key: "listLicenseKeys",
239
- value: function listLicenseKeys(opts) {
240
- var _this5 = this;
241
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
242
- opts = opts || {};
243
- var postBody = null;
244
- var pathParams = {};
245
- var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
267
+ /**
268
+ * Get license key
269
+ * Fetches the license keys.
270
+ * @param {Object} opts Optional parameters defined for the operation
271
+ * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
272
+ * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
273
+ * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
274
+ * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
275
+ * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
276
+ * @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby.
277
+ * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
278
+ * @param {Object} args Additional Arguments
279
+ * @return {Promise<ListLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListLicenseKeysApiResponse } and HTTP response
280
+ */
281
+ listLicenseKeys(opts, ...args) {
282
+ let argMap = args.length > 0 ? args[0] : {};
283
+ opts = opts || {};
284
+ const postBody = null;
285
+ const pathParams = {};
286
+ const queryParams = {
287
+ ...(opts.hasOwnProperty('$page') ? {
246
288
  '$page': opts['$page']
247
- } : {}), opts.hasOwnProperty('$limit') ? {
289
+ } : {}),
290
+ ...(opts.hasOwnProperty('$limit') ? {
248
291
  '$limit': opts['$limit']
249
- } : {}), opts.hasOwnProperty('$filter') ? {
292
+ } : {}),
293
+ ...(opts.hasOwnProperty('$filter') ? {
250
294
  '$filter': opts['$filter']
251
- } : {}), opts.hasOwnProperty('$orderby') ? {
295
+ } : {}),
296
+ ...(opts.hasOwnProperty('$orderby') ? {
252
297
  '$orderby': opts['$orderby']
253
- } : {}), opts.hasOwnProperty('$expand') ? {
298
+ } : {}),
299
+ ...(opts.hasOwnProperty('$expand') ? {
254
300
  '$expand': opts['$expand']
255
- } : {}), opts.hasOwnProperty('$select') ? {
301
+ } : {}),
302
+ ...(opts.hasOwnProperty('$select') ? {
303
+ '$select': opts['$select']
304
+ } : {})
305
+ };
306
+ let headersToInclude = {};
307
+ Object.keys(argMap).forEach(header => {
308
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
309
+ headersToInclude[header] = argMap[header];
310
+ }
311
+ });
312
+ const headerParams = {
313
+ ...headersToInclude
314
+ };
315
+ const formParams = {};
316
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
317
+ const contentTypes = [];
318
+ const accepts = ['application/json'];
319
+ const returnType = _ListLicenseKeysApiResponse.default;
320
+ return this.apiClient.callApi('/api/licensing/v4.3/config/license-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
321
+ }
322
+
323
+ /**
324
+ * List reclaim license tokens.
325
+ * Fetches the reclaim license tokens for all reclaimed operations.
326
+ * @param {Object} opts Optional parameters defined for the operation
327
+ * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
328
+ * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
329
+ * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
330
+ * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
331
+ * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
332
+ * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
333
+ * @param {Object} args Additional Arguments
334
+ * @return {Promise<ListReclaimLicenseTokensApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListReclaimLicenseTokensApiResponse } and HTTP response
335
+ */
336
+ listReclaimLicenseTokens(opts, ...args) {
337
+ let argMap = args.length > 0 ? args[0] : {};
338
+ opts = opts || {};
339
+ const postBody = null;
340
+ const pathParams = {};
341
+ const queryParams = {
342
+ ...(opts.hasOwnProperty('$page') ? {
343
+ '$page': opts['$page']
344
+ } : {}),
345
+ ...(opts.hasOwnProperty('$limit') ? {
346
+ '$limit': opts['$limit']
347
+ } : {}),
348
+ ...(opts.hasOwnProperty('$filter') ? {
349
+ '$filter': opts['$filter']
350
+ } : {}),
351
+ ...(opts.hasOwnProperty('$orderby') ? {
352
+ '$orderby': opts['$orderby']
353
+ } : {}),
354
+ ...(opts.hasOwnProperty('$select') ? {
256
355
  '$select': opts['$select']
257
- } : {});
258
- var headersToInclude = {};
259
- Object.keys(argMap).forEach(function (header) {
260
- if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {
261
- headersToInclude[header] = argMap[header];
262
- }
263
- });
264
- var headerParams = _objectSpread({}, headersToInclude);
265
- var formParams = {};
266
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
267
- var contentTypes = [];
268
- var accepts = ['application/json'];
269
- var returnType = _ListLicenseKeysApiResponse["default"];
270
- return this.apiClient.callApi('/api/licensing/v4.1/config/license-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
356
+ } : {})
357
+ };
358
+ let headersToInclude = {};
359
+ Object.keys(argMap).forEach(header => {
360
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
361
+ headersToInclude[header] = argMap[header];
362
+ }
363
+ });
364
+ const headerParams = {
365
+ ...headersToInclude
366
+ };
367
+ const formParams = {};
368
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
369
+ const contentTypes = [];
370
+ const accepts = ['application/json'];
371
+ const returnType = _ListReclaimLicenseTokensApiResponse.default;
372
+ return this.apiClient.callApi('/api/licensing/v4.3/config/reclaim-license-tokens', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
373
+ }
374
+
375
+ /**
376
+ * Reclaim license key
377
+ * Reclaim license key from the cluster.
378
+ * @param { Required<Pick<ReclaimLicenseKeySpec, 'quantity'>> & Partial<ReclaimLicenseKeySpec> } body specification
379
+ * @param { String } extId Path parameter for the license key ID.
380
+ * @param {Object} args Additional Arguments
381
+ * @return {Promise<ReclaimLicenseKeyApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ReclaimLicenseKeyApiResponse } and HTTP response
382
+ */
383
+ reclaimLicenseKey(extId, body, ...args) {
384
+ let argMap = args.length > 0 ? args[0] : {};
385
+ let postBody = null;
386
+ if (body instanceof _ReclaimLicenseKeySpec.default && typeof body.toJson === 'function') {
387
+ postBody = body.toJson();
388
+ } else {
389
+ postBody = body;
271
390
  }
272
- }], [{
273
- key: "ApiClient",
274
- get:
275
- /**
276
- * Make the default {@link ApiClient} class available for developers to be able to extend it and bring
277
- * their own fetch methods into the SDK
278
- */
279
- function get() {
280
- return _ApiClient.ApiClient;
391
+ // verify the required parameter 'extId' is set
392
+ if (typeof extId === 'undefined' || extId === null) {
393
+ throw new Error("Missing the required parameter 'extId' when calling reclaimLicenseKey");
281
394
  }
282
- }]);
283
- }();
395
+ // verify the required parameter 'body' is set
396
+ if (typeof postBody === 'undefined' || postBody === null) {
397
+ throw new Error("Invalid body when calling reclaimLicenseKey");
398
+ }
399
+ const pathParams = {
400
+ 'extId': extId
401
+ };
402
+ const queryParams = {};
403
+ let headersToInclude = {};
404
+ Object.keys(argMap).forEach(header => {
405
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
406
+ headersToInclude[header] = argMap[header];
407
+ }
408
+ });
409
+ const headerParams = {
410
+ ...headersToInclude
411
+ };
412
+ const formParams = {};
413
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
414
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
415
+ const contentTypes = ['application/json'];
416
+ const accepts = ['application/json'];
417
+ const returnType = _ReclaimLicenseKeyApiResponse.default;
418
+ return this.apiClient.callApi('/api/licensing/v4.3/config/license-keys/{extId}/$actions/reclaim', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
419
+ }
420
+ }
421
+ exports.LicenseKeysApi = LicenseKeysApi;