@nutanix-scratch/licensing-js-client 4.2.1 → 4.3.2

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 (438) hide show
  1. package/README.md +15 -3
  2. package/dist/Ntnx-Licensing-js-client-prod.js +1 -1
  3. package/dist/Ntnx-Licensing-js-client.js +633 -561
  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 +47 -2
  11. package/dist/es/apis/licensekeys-endpoints.js +360 -222
  12. package/dist/es/apis/licenses-endpoints.d.ts +6 -6
  13. package/dist/es/apis/licenses-endpoints.js +401 -381
  14. package/dist/es/index.d.ts +15 -3
  15. package/dist/es/index.js +387 -339
  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 -72
  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/{LicenseKeyAssociationSpec.d.ts → AssociateLicenseKeySpec.d.ts} +11 -24
  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.js +7 -9
  62. package/dist/es/models/licensing/v4/config/BaseClusterInfo.d.ts +1 -16
  63. package/dist/es/models/licensing/v4/config/BaseClusterInfo.js +123 -166
  64. package/dist/es/models/licensing/v4/config/BaseLicenseInfo.d.ts +1 -20
  65. package/dist/es/models/licensing/v4/config/BaseLicenseInfo.js +223 -273
  66. package/dist/es/models/licensing/v4/config/BillingPlan.js +7 -9
  67. package/dist/es/models/licensing/v4/config/CapacityViolation.d.ts +2 -10
  68. package/dist/es/models/licensing/v4/config/CapacityViolation.js +210 -255
  69. package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +1 -9
  70. package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.js +131 -170
  71. package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +1 -1
  72. package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +73 -102
  73. package/dist/es/models/licensing/v4/config/ClusterType.js +14 -10
  74. package/dist/es/models/licensing/v4/config/Compliance.d.ts +1 -35
  75. package/dist/es/models/licensing/v4/config/Compliance.js +192 -241
  76. package/dist/es/models/licensing/v4/config/ComplianceProjection.d.ts +1 -52
  77. package/dist/es/models/licensing/v4/config/ComplianceProjection.js +155 -198
  78. package/dist/es/models/licensing/v4/config/Consumption.d.ts +2 -8
  79. package/dist/es/models/licensing/v4/config/Consumption.js +168 -209
  80. package/dist/es/models/licensing/v4/config/ConsumptionProjection.d.ts +1 -1
  81. package/dist/es/models/licensing/v4/config/ConsumptionProjection.js +74 -103
  82. package/dist/es/models/licensing/v4/config/ConsumptionType.js +7 -9
  83. package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +2 -43
  84. package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +190 -245
  85. package/dist/es/models/licensing/v4/config/DryRunCheck.d.ts +2 -18
  86. package/dist/es/models/licensing/v4/config/DryRunCheck.js +173 -224
  87. package/dist/es/models/licensing/v4/config/DryRunStatus.js +7 -9
  88. package/dist/es/models/licensing/v4/config/DryRunValidationResult.d.ts +2 -23
  89. package/dist/es/models/licensing/v4/config/DryRunValidationResult.js +154 -207
  90. package/dist/es/models/licensing/v4/config/EnforcementActions.js +7 -9
  91. package/dist/es/models/licensing/v4/config/EnforcementLevel.js +7 -9
  92. package/dist/es/models/licensing/v4/config/EnforcementPolicy.js +7 -9
  93. package/dist/es/models/licensing/v4/config/Entitlement.d.ts +1 -33
  94. package/dist/es/models/licensing/v4/config/Entitlement.js +245 -298
  95. package/dist/es/models/licensing/v4/config/EntitlementDetail.d.ts +2 -14
  96. package/dist/es/models/licensing/v4/config/EntitlementDetail.js +308 -361
  97. package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.d.ts +1 -1
  98. package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.js +74 -103
  99. package/dist/es/models/licensing/v4/config/EntitlementProjection.d.ts +1 -46
  100. package/dist/es/models/licensing/v4/config/EntitlementProjection.js +165 -204
  101. package/dist/es/models/licensing/v4/config/ExpiredLicense.d.ts +1 -23
  102. package/dist/es/models/licensing/v4/config/ExpiredLicense.js +203 -239
  103. package/dist/es/models/licensing/v4/config/Feature.d.ts +1 -22
  104. package/dist/es/models/licensing/v4/config/Feature.js +285 -343
  105. package/dist/es/models/licensing/v4/config/FeatureDetail.d.ts +2 -9
  106. package/dist/es/models/licensing/v4/config/FeatureDetail.js +198 -241
  107. package/dist/es/models/licensing/v4/config/FeatureProjection.d.ts +1 -1
  108. package/dist/es/models/licensing/v4/config/FeatureProjection.js +74 -103
  109. package/dist/es/models/licensing/v4/config/FeatureViolation.d.ts +1 -10
  110. package/dist/es/models/licensing/v4/config/FeatureViolation.js +136 -173
  111. package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +2 -43
  112. package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.js +187 -242
  113. package/dist/es/models/licensing/v4/config/License.d.ts +1 -31
  114. package/dist/es/models/licensing/v4/config/License.js +262 -306
  115. package/dist/es/models/licensing/v4/config/LicenseCategory.js +14 -10
  116. package/dist/es/models/licensing/v4/config/LicenseClass.js +7 -9
  117. package/dist/es/models/licensing/v4/config/LicenseKey.d.ts +1 -42
  118. package/dist/es/models/licensing/v4/config/LicenseKey.js +410 -483
  119. package/dist/es/models/licensing/v4/config/LicenseKeyAssignment.d.ts +2 -14
  120. package/dist/es/models/licensing/v4/config/LicenseKeyAssignment.js +178 -223
  121. package/dist/es/models/licensing/v4/config/LicenseKeyAssignmentSpec.d.ts +2 -19
  122. package/dist/es/models/licensing/v4/config/LicenseKeyAssignmentSpec.js +152 -195
  123. package/dist/es/models/licensing/v4/config/LicenseKeyAssociation.d.ts +2 -10
  124. package/dist/es/models/licensing/v4/config/LicenseKeyAssociation.js +215 -261
  125. package/dist/es/models/licensing/v4/config/LicenseKeyAssociationProjection.d.ts +1 -1
  126. package/dist/es/models/licensing/v4/config/LicenseKeyAssociationProjection.js +73 -102
  127. package/dist/es/models/licensing/v4/config/LicenseKeyMapping.d.ts +2 -8
  128. package/dist/es/models/licensing/v4/config/LicenseKeyMapping.js +168 -209
  129. package/dist/es/models/licensing/v4/config/LicenseKeyProjection.d.ts +1 -61
  130. package/dist/es/models/licensing/v4/config/LicenseKeyProjection.js +217 -254
  131. package/dist/es/models/licensing/v4/config/LicenseKeySubCategory.js +7 -9
  132. package/dist/es/models/licensing/v4/config/LicenseProjection.d.ts +1 -38
  133. package/dist/es/models/licensing/v4/config/LicenseProjection.js +187 -217
  134. package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +2 -9
  135. package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.js +203 -246
  136. package/dist/es/models/licensing/v4/config/LicenseType.js +7 -9
  137. package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +2 -43
  138. package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.js +213 -268
  139. package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +2 -43
  140. package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.js +213 -268
  141. package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +2 -43
  142. package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.js +213 -268
  143. package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +2 -43
  144. package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.js +213 -268
  145. package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +2 -43
  146. package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.js +213 -268
  147. package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.d.ts +2 -43
  148. package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.js +213 -268
  149. package/dist/es/models/licensing/v4/config/ListReclaimLicenseTokensApiResponse.d.ts +59 -0
  150. package/dist/es/models/licensing/v4/config/ListReclaimLicenseTokensApiResponse.js +315 -0
  151. package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +2 -43
  152. package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.js +209 -264
  153. package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.d.ts +2 -43
  154. package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.js +209 -264
  155. package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.d.ts +2 -43
  156. package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.js +209 -264
  157. package/dist/es/models/licensing/v4/config/LogicalVersion.d.ts +2 -8
  158. package/dist/es/models/licensing/v4/config/LogicalVersion.js +166 -207
  159. package/dist/es/models/licensing/v4/config/Meter.js +7 -9
  160. package/dist/es/models/licensing/v4/config/OperationType.js +7 -9
  161. package/dist/es/models/licensing/v4/config/PortalSetting.d.ts +2 -9
  162. package/dist/es/models/licensing/v4/config/PortalSetting.js +194 -238
  163. package/dist/es/models/licensing/v4/config/PostPaidCategory.js +7 -9
  164. package/dist/es/models/licensing/v4/config/PostPaidConfig.d.ts +2 -11
  165. package/dist/es/models/licensing/v4/config/PostPaidConfig.js +237 -284
  166. package/dist/es/models/licensing/v4/config/ProductName.js +15 -11
  167. package/dist/es/models/licensing/v4/config/ReclaimLicenseKeyApiResponse.d.ts +58 -0
  168. package/dist/es/models/licensing/v4/config/ReclaimLicenseKeyApiResponse.js +310 -0
  169. package/dist/es/models/licensing/v4/config/ReclaimLicenseKeySpec.d.ts +59 -0
  170. package/dist/es/models/licensing/v4/config/ReclaimLicenseKeySpec.js +248 -0
  171. package/dist/es/models/licensing/v4/config/ReclaimLicenseToken.d.ts +57 -0
  172. package/dist/es/models/licensing/v4/config/ReclaimLicenseToken.js +342 -0
  173. package/dist/es/models/licensing/v4/config/ReclaimLicenseTokenProjection.d.ts +10 -0
  174. package/dist/es/models/licensing/v4/config/ReclaimLicenseTokenProjection.js +123 -0
  175. package/dist/es/models/licensing/v4/config/ReclaimType.js +7 -9
  176. package/dist/es/models/licensing/v4/config/Recommendation.d.ts +1 -25
  177. package/dist/es/models/licensing/v4/config/Recommendation.js +136 -182
  178. package/dist/es/models/licensing/v4/config/RecommendationDetail.d.ts +2 -11
  179. package/dist/es/models/licensing/v4/config/RecommendationDetail.js +241 -288
  180. package/dist/es/models/licensing/v4/config/RecommendationScope.js +7 -9
  181. package/dist/es/models/licensing/v4/config/ResetScope.js +7 -9
  182. package/dist/es/models/licensing/v4/config/Scope.js +7 -9
  183. package/dist/es/models/licensing/v4/config/Service.d.ts +2 -18
  184. package/dist/es/models/licensing/v4/config/Service.js +278 -331
  185. package/dist/es/models/licensing/v4/config/ServiceProjection.d.ts +1 -1
  186. package/dist/es/models/licensing/v4/config/ServiceProjection.js +74 -103
  187. package/dist/es/models/licensing/v4/config/ServiceViolation.d.ts +2 -8
  188. package/dist/es/models/licensing/v4/config/ServiceViolation.js +164 -205
  189. package/dist/es/models/licensing/v4/config/ServiceViolationType.js +7 -9
  190. package/dist/es/models/licensing/v4/config/Setting.d.ts +1 -40
  191. package/dist/es/models/licensing/v4/config/Setting.js +325 -382
  192. package/dist/es/models/licensing/v4/config/Status.js +7 -9
  193. package/dist/es/models/licensing/v4/config/SubCategory.js +7 -9
  194. package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +2 -43
  195. package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.js +187 -242
  196. package/dist/es/models/licensing/v4/config/SyncOperationType.js +7 -9
  197. package/dist/es/models/licensing/v4/config/Trial.d.ts +1 -20
  198. package/dist/es/models/licensing/v4/config/Trial.js +218 -270
  199. package/dist/es/models/licensing/v4/config/TrialCategory.js +7 -9
  200. package/dist/es/models/licensing/v4/config/TrialProjection.d.ts +1 -1
  201. package/dist/es/models/licensing/v4/config/TrialProjection.js +74 -103
  202. package/dist/es/models/licensing/v4/config/TrialStatus.js +7 -9
  203. package/dist/es/models/licensing/v4/config/TrialType.js +7 -9
  204. package/dist/es/models/licensing/v4/config/ValueType.js +7 -9
  205. package/dist/es/models/licensing/v4/config/Violation.d.ts +1 -56
  206. package/dist/es/models/licensing/v4/config/Violation.js +211 -268
  207. package/dist/es/models/licensing/v4/error/AppMessage.d.ts +2 -12
  208. package/dist/es/models/licensing/v4/error/AppMessage.js +264 -313
  209. package/dist/es/models/licensing/v4/error/ErrorResponse.d.ts +2 -7
  210. package/dist/es/models/licensing/v4/error/ErrorResponse.js +178 -218
  211. package/dist/es/models/licensing/v4/error/SchemaValidationError.d.ts +2 -18
  212. package/dist/es/models/licensing/v4/error/SchemaValidationError.js +249 -300
  213. package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  214. package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.js +191 -234
  215. package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
  216. package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
  217. package/dist/es/models/validation/ValidationError.js +26 -42
  218. package/dist/es/models/validation/ValidationScopes.js +3 -3
  219. package/dist/es/utils/ValidationUtils.js +39 -69
  220. package/dist/lib/ApiClient.d.ts +29 -7
  221. package/dist/lib/ApiClient.js +854 -667
  222. package/dist/lib/Paginable.d.ts +1 -1
  223. package/dist/lib/Paginable.js +144 -183
  224. package/dist/lib/apis/enduserlicenseagreement-endpoints.d.ts +1 -1
  225. package/dist/lib/apis/enduserlicenseagreement-endpoints.js +82 -99
  226. package/dist/lib/apis/licensekeys-endpoints.d.ts +47 -2
  227. package/dist/lib/apis/licensekeys-endpoints.js +360 -222
  228. package/dist/lib/apis/licenses-endpoints.d.ts +6 -6
  229. package/dist/lib/apis/licenses-endpoints.js +401 -381
  230. package/dist/lib/index.d.ts +15 -3
  231. package/dist/lib/index.js +387 -339
  232. package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
  233. package/dist/lib/models/common/v1/config/Flag.js +170 -211
  234. package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
  235. package/dist/lib/models/common/v1/config/KVPair.js +225 -270
  236. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  237. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
  238. package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
  239. package/dist/lib/models/common/v1/config/Message.js +213 -258
  240. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
  241. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  242. package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
  243. package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
  244. package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
  245. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  246. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
  247. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  248. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  249. package/dist/lib/models/licensing/v4/agreements/Acceptance.d.ts +2 -16
  250. package/dist/lib/models/licensing/v4/agreements/Acceptance.js +161 -203
  251. package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.d.ts +2 -43
  252. package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.js +209 -264
  253. package/dist/lib/models/licensing/v4/agreements/EndUser.d.ts +2 -10
  254. package/dist/lib/models/licensing/v4/agreements/EndUser.js +226 -271
  255. package/dist/lib/models/licensing/v4/agreements/Eula.d.ts +1 -34
  256. package/dist/lib/models/licensing/v4/agreements/Eula.js +230 -286
  257. package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +2 -43
  258. package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.js +187 -242
  259. package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +2 -46
  260. package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.js +190 -245
  261. package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +2 -72
  262. package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +194 -247
  263. package/dist/lib/models/licensing/v4/config/Allowance.d.ts +1 -27
  264. package/dist/lib/models/licensing/v4/config/Allowance.js +192 -241
  265. package/dist/lib/models/licensing/v4/config/AllowanceDetail.d.ts +2 -10
  266. package/dist/lib/models/licensing/v4/config/AllowanceDetail.js +217 -262
  267. package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.d.ts +1 -1
  268. package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.js +74 -103
  269. package/dist/lib/models/licensing/v4/config/AllowanceProjection.d.ts +1 -36
  270. package/dist/lib/models/licensing/v4/config/AllowanceProjection.js +155 -198
  271. package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +2 -46
  272. package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +209 -264
  273. package/dist/lib/models/licensing/v4/config/{LicenseKeyAssociationSpec.d.ts → AssociateLicenseKeySpec.d.ts} +11 -24
  274. package/dist/lib/models/licensing/v4/config/AssociateLicenseKeySpec.js +253 -0
  275. package/dist/lib/models/licensing/v4/config/AssociateLicenseKeysApiResponse.d.ts +58 -0
  276. package/dist/lib/models/licensing/v4/config/AssociateLicenseKeysApiResponse.js +310 -0
  277. package/dist/lib/models/licensing/v4/config/AssociationType.js +7 -9
  278. package/dist/lib/models/licensing/v4/config/BaseClusterInfo.d.ts +1 -16
  279. package/dist/lib/models/licensing/v4/config/BaseClusterInfo.js +123 -166
  280. package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.d.ts +1 -20
  281. package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.js +223 -273
  282. package/dist/lib/models/licensing/v4/config/BillingPlan.js +7 -9
  283. package/dist/lib/models/licensing/v4/config/CapacityViolation.d.ts +2 -10
  284. package/dist/lib/models/licensing/v4/config/CapacityViolation.js +210 -255
  285. package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +1 -9
  286. package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.js +131 -170
  287. package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +1 -1
  288. package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +73 -102
  289. package/dist/lib/models/licensing/v4/config/ClusterType.js +14 -10
  290. package/dist/lib/models/licensing/v4/config/Compliance.d.ts +1 -35
  291. package/dist/lib/models/licensing/v4/config/Compliance.js +192 -241
  292. package/dist/lib/models/licensing/v4/config/ComplianceProjection.d.ts +1 -52
  293. package/dist/lib/models/licensing/v4/config/ComplianceProjection.js +155 -198
  294. package/dist/lib/models/licensing/v4/config/Consumption.d.ts +2 -8
  295. package/dist/lib/models/licensing/v4/config/Consumption.js +168 -209
  296. package/dist/lib/models/licensing/v4/config/ConsumptionProjection.d.ts +1 -1
  297. package/dist/lib/models/licensing/v4/config/ConsumptionProjection.js +74 -103
  298. package/dist/lib/models/licensing/v4/config/ConsumptionType.js +7 -9
  299. package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +2 -43
  300. package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +190 -245
  301. package/dist/lib/models/licensing/v4/config/DryRunCheck.d.ts +2 -18
  302. package/dist/lib/models/licensing/v4/config/DryRunCheck.js +173 -224
  303. package/dist/lib/models/licensing/v4/config/DryRunStatus.js +7 -9
  304. package/dist/lib/models/licensing/v4/config/DryRunValidationResult.d.ts +2 -23
  305. package/dist/lib/models/licensing/v4/config/DryRunValidationResult.js +154 -207
  306. package/dist/lib/models/licensing/v4/config/EnforcementActions.js +7 -9
  307. package/dist/lib/models/licensing/v4/config/EnforcementLevel.js +7 -9
  308. package/dist/lib/models/licensing/v4/config/EnforcementPolicy.js +7 -9
  309. package/dist/lib/models/licensing/v4/config/Entitlement.d.ts +1 -33
  310. package/dist/lib/models/licensing/v4/config/Entitlement.js +245 -298
  311. package/dist/lib/models/licensing/v4/config/EntitlementDetail.d.ts +2 -14
  312. package/dist/lib/models/licensing/v4/config/EntitlementDetail.js +308 -361
  313. package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.d.ts +1 -1
  314. package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.js +74 -103
  315. package/dist/lib/models/licensing/v4/config/EntitlementProjection.d.ts +1 -46
  316. package/dist/lib/models/licensing/v4/config/EntitlementProjection.js +165 -204
  317. package/dist/lib/models/licensing/v4/config/ExpiredLicense.d.ts +1 -23
  318. package/dist/lib/models/licensing/v4/config/ExpiredLicense.js +203 -239
  319. package/dist/lib/models/licensing/v4/config/Feature.d.ts +1 -22
  320. package/dist/lib/models/licensing/v4/config/Feature.js +285 -343
  321. package/dist/lib/models/licensing/v4/config/FeatureDetail.d.ts +2 -9
  322. package/dist/lib/models/licensing/v4/config/FeatureDetail.js +198 -241
  323. package/dist/lib/models/licensing/v4/config/FeatureProjection.d.ts +1 -1
  324. package/dist/lib/models/licensing/v4/config/FeatureProjection.js +74 -103
  325. package/dist/lib/models/licensing/v4/config/FeatureViolation.d.ts +1 -10
  326. package/dist/lib/models/licensing/v4/config/FeatureViolation.js +136 -173
  327. package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +2 -43
  328. package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.js +187 -242
  329. package/dist/lib/models/licensing/v4/config/License.d.ts +1 -31
  330. package/dist/lib/models/licensing/v4/config/License.js +262 -306
  331. package/dist/lib/models/licensing/v4/config/LicenseCategory.js +14 -10
  332. package/dist/lib/models/licensing/v4/config/LicenseClass.js +7 -9
  333. package/dist/lib/models/licensing/v4/config/LicenseKey.d.ts +1 -42
  334. package/dist/lib/models/licensing/v4/config/LicenseKey.js +410 -483
  335. package/dist/lib/models/licensing/v4/config/LicenseKeyAssignment.d.ts +2 -14
  336. package/dist/lib/models/licensing/v4/config/LicenseKeyAssignment.js +178 -223
  337. package/dist/lib/models/licensing/v4/config/LicenseKeyAssignmentSpec.d.ts +2 -19
  338. package/dist/lib/models/licensing/v4/config/LicenseKeyAssignmentSpec.js +152 -195
  339. package/dist/lib/models/licensing/v4/config/LicenseKeyAssociation.d.ts +2 -10
  340. package/dist/lib/models/licensing/v4/config/LicenseKeyAssociation.js +215 -261
  341. package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationProjection.d.ts +1 -1
  342. package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationProjection.js +73 -102
  343. package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.d.ts +2 -8
  344. package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.js +168 -209
  345. package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.d.ts +1 -61
  346. package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.js +217 -254
  347. package/dist/lib/models/licensing/v4/config/LicenseKeySubCategory.js +7 -9
  348. package/dist/lib/models/licensing/v4/config/LicenseProjection.d.ts +1 -38
  349. package/dist/lib/models/licensing/v4/config/LicenseProjection.js +187 -217
  350. package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +2 -9
  351. package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.js +203 -246
  352. package/dist/lib/models/licensing/v4/config/LicenseType.js +7 -9
  353. package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +2 -43
  354. package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.js +213 -268
  355. package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +2 -43
  356. package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.js +213 -268
  357. package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +2 -43
  358. package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.js +213 -268
  359. package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +2 -43
  360. package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.js +213 -268
  361. package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +2 -43
  362. package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.js +213 -268
  363. package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.d.ts +2 -43
  364. package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.js +213 -268
  365. package/dist/lib/models/licensing/v4/config/ListReclaimLicenseTokensApiResponse.d.ts +59 -0
  366. package/dist/lib/models/licensing/v4/config/ListReclaimLicenseTokensApiResponse.js +315 -0
  367. package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +2 -43
  368. package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.js +209 -264
  369. package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.d.ts +2 -43
  370. package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.js +209 -264
  371. package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.d.ts +2 -43
  372. package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.js +209 -264
  373. package/dist/lib/models/licensing/v4/config/LogicalVersion.d.ts +2 -8
  374. package/dist/lib/models/licensing/v4/config/LogicalVersion.js +166 -207
  375. package/dist/lib/models/licensing/v4/config/Meter.js +7 -9
  376. package/dist/lib/models/licensing/v4/config/OperationType.js +7 -9
  377. package/dist/lib/models/licensing/v4/config/PortalSetting.d.ts +2 -9
  378. package/dist/lib/models/licensing/v4/config/PortalSetting.js +194 -238
  379. package/dist/lib/models/licensing/v4/config/PostPaidCategory.js +7 -9
  380. package/dist/lib/models/licensing/v4/config/PostPaidConfig.d.ts +2 -11
  381. package/dist/lib/models/licensing/v4/config/PostPaidConfig.js +237 -284
  382. package/dist/lib/models/licensing/v4/config/ProductName.js +15 -11
  383. package/dist/lib/models/licensing/v4/config/ReclaimLicenseKeyApiResponse.d.ts +58 -0
  384. package/dist/lib/models/licensing/v4/config/ReclaimLicenseKeyApiResponse.js +310 -0
  385. package/dist/lib/models/licensing/v4/config/ReclaimLicenseKeySpec.d.ts +59 -0
  386. package/dist/lib/models/licensing/v4/config/ReclaimLicenseKeySpec.js +248 -0
  387. package/dist/lib/models/licensing/v4/config/ReclaimLicenseToken.d.ts +57 -0
  388. package/dist/lib/models/licensing/v4/config/ReclaimLicenseToken.js +342 -0
  389. package/dist/lib/models/licensing/v4/config/ReclaimLicenseTokenProjection.d.ts +10 -0
  390. package/dist/lib/models/licensing/v4/config/ReclaimLicenseTokenProjection.js +123 -0
  391. package/dist/lib/models/licensing/v4/config/ReclaimType.js +7 -9
  392. package/dist/lib/models/licensing/v4/config/Recommendation.d.ts +1 -25
  393. package/dist/lib/models/licensing/v4/config/Recommendation.js +136 -182
  394. package/dist/lib/models/licensing/v4/config/RecommendationDetail.d.ts +2 -11
  395. package/dist/lib/models/licensing/v4/config/RecommendationDetail.js +241 -288
  396. package/dist/lib/models/licensing/v4/config/RecommendationScope.js +7 -9
  397. package/dist/lib/models/licensing/v4/config/ResetScope.js +7 -9
  398. package/dist/lib/models/licensing/v4/config/Scope.js +7 -9
  399. package/dist/lib/models/licensing/v4/config/Service.d.ts +2 -18
  400. package/dist/lib/models/licensing/v4/config/Service.js +278 -331
  401. package/dist/lib/models/licensing/v4/config/ServiceProjection.d.ts +1 -1
  402. package/dist/lib/models/licensing/v4/config/ServiceProjection.js +74 -103
  403. package/dist/lib/models/licensing/v4/config/ServiceViolation.d.ts +2 -8
  404. package/dist/lib/models/licensing/v4/config/ServiceViolation.js +164 -205
  405. package/dist/lib/models/licensing/v4/config/ServiceViolationType.js +7 -9
  406. package/dist/lib/models/licensing/v4/config/Setting.d.ts +1 -40
  407. package/dist/lib/models/licensing/v4/config/Setting.js +325 -382
  408. package/dist/lib/models/licensing/v4/config/Status.js +7 -9
  409. package/dist/lib/models/licensing/v4/config/SubCategory.js +7 -9
  410. package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +2 -43
  411. package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.js +187 -242
  412. package/dist/lib/models/licensing/v4/config/SyncOperationType.js +7 -9
  413. package/dist/lib/models/licensing/v4/config/Trial.d.ts +1 -20
  414. package/dist/lib/models/licensing/v4/config/Trial.js +218 -270
  415. package/dist/lib/models/licensing/v4/config/TrialCategory.js +7 -9
  416. package/dist/lib/models/licensing/v4/config/TrialProjection.d.ts +1 -1
  417. package/dist/lib/models/licensing/v4/config/TrialProjection.js +74 -103
  418. package/dist/lib/models/licensing/v4/config/TrialStatus.js +7 -9
  419. package/dist/lib/models/licensing/v4/config/TrialType.js +7 -9
  420. package/dist/lib/models/licensing/v4/config/ValueType.js +7 -9
  421. package/dist/lib/models/licensing/v4/config/Violation.d.ts +1 -56
  422. package/dist/lib/models/licensing/v4/config/Violation.js +211 -268
  423. package/dist/lib/models/licensing/v4/error/AppMessage.d.ts +2 -12
  424. package/dist/lib/models/licensing/v4/error/AppMessage.js +264 -313
  425. package/dist/lib/models/licensing/v4/error/ErrorResponse.d.ts +2 -7
  426. package/dist/lib/models/licensing/v4/error/ErrorResponse.js +178 -218
  427. package/dist/lib/models/licensing/v4/error/SchemaValidationError.d.ts +2 -18
  428. package/dist/lib/models/licensing/v4/error/SchemaValidationError.js +249 -300
  429. package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  430. package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.js +191 -234
  431. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
  432. package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
  433. package/dist/lib/models/validation/ValidationError.js +26 -42
  434. package/dist/lib/models/validation/ValidationScopes.js +3 -3
  435. package/dist/lib/utils/ValidationUtils.js +39 -69
  436. package/package.json +1 -1
  437. package/dist/es/models/licensing/v4/config/LicenseKeyAssociationSpec.js +0 -296
  438. package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationSpec.js +0 -296
@@ -1,6 +1,5 @@
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
  });
@@ -16,38 +15,36 @@ var _LicenseStateSyncSpec = _interopRequireDefault(require("../models/licensing/
16
15
  var _ListCompliancesApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListCompliancesApiResponse"));
17
16
  var _SyncLicenseStateApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/SyncLicenseStateApiResponse"));
18
17
  var _ListFeaturesApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListFeaturesApiResponse"));
19
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
20
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22
- function _defineProperty(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; }
23
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
24
- 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); } }
25
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
26
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
27
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
28
- function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
29
- function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
30
- function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
31
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
32
- 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"); } /*
18
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
19
+ /*
33
20
  * Nutanix Licensing APIs
34
21
  *
35
- * OpenAPI spec version: 4.2.1
22
+ * OpenAPI spec version: 4.3.2
36
23
  *
37
24
  * NOTE: This class is auto generated by the Open API Dev Platform.
38
25
  *
39
- * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
26
+ * Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
40
27
  *
41
28
  * Do not edit the class manually.
42
29
  *
43
30
  */
31
+
44
32
  /**
45
33
  * Licenses service.
46
- * @version 4.2.1
34
+ * @version 4.3.2
47
35
  * @class LicensesApi
48
36
  */
49
- var _headersToSkip = /*#__PURE__*/new WeakMap();
50
- var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
37
+ class LicensesApi {
38
+ #headersToSkip;
39
+
40
+ /**
41
+ * Make the default {@link ApiClient} class available for developers to be able to extend it and bring
42
+ * their own fetch methods into the SDK
43
+ */
44
+ static get ApiClient() {
45
+ return _ApiClient.ApiClient;
46
+ }
47
+
51
48
  /**
52
49
  * Constructs a new LicensesApi.
53
50
  * @alias module:api/LicensesApi
@@ -55,15 +52,13 @@ var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
55
52
  * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
56
53
  * default to {@link module:ApiClient#instance} if unspecified.
57
54
  */
58
- function LicensesApi(apiClient) {
59
- _classCallCheck(this, LicensesApi);
60
- _classPrivateFieldInitSpec(this, _headersToSkip, void 0);
55
+ constructor(apiClient) {
61
56
  this.apiClient = apiClient || _ApiClient.ApiClient.instance;
62
- _classPrivateFieldSet(_headersToSkip, this, new Set());
63
- _classPrivateFieldGet(_headersToSkip, this).add('authorization');
64
- _classPrivateFieldGet(_headersToSkip, this).add('cookie');
65
- _classPrivateFieldGet(_headersToSkip, this).add('host');
66
- _classPrivateFieldGet(_headersToSkip, this).add('user-agent');
57
+ this.#headersToSkip = new Set();
58
+ this.#headersToSkip.add('authorization');
59
+ this.#headersToSkip.add('cookie');
60
+ this.#headersToSkip.add('host');
61
+ this.#headersToSkip.add('user-agent');
67
62
  }
68
63
 
69
64
  /**
@@ -73,408 +68,433 @@ var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
73
68
  * @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.
74
69
  * @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.
75
70
  * @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>
76
- * 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'.
71
+ * 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'.
77
72
  * @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.
78
73
  * @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.
79
74
  * @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.
80
75
  * @param {Object} args Additional Arguments
81
76
  * @return {Promise<ListAllowancesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListAllowancesApiResponse } and HTTP response
82
77
  */
83
- return _createClass(LicensesApi, [{
84
- key: "listAllowances",
85
- value: function listAllowances(opts) {
86
- var _this = this;
87
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
88
- opts = opts || {};
89
- var postBody = null;
90
- var pathParams = {};
91
- var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
78
+ listAllowances(opts, ...args) {
79
+ let argMap = args.length > 0 ? args[0] : {};
80
+ opts = opts || {};
81
+ const postBody = null;
82
+ const pathParams = {};
83
+ const queryParams = {
84
+ ...(opts.hasOwnProperty('$page') ? {
92
85
  '$page': opts['$page']
93
- } : {}), opts.hasOwnProperty('$limit') ? {
86
+ } : {}),
87
+ ...(opts.hasOwnProperty('$limit') ? {
94
88
  '$limit': opts['$limit']
95
- } : {}), opts.hasOwnProperty('$filter') ? {
89
+ } : {}),
90
+ ...(opts.hasOwnProperty('$filter') ? {
96
91
  '$filter': opts['$filter']
97
- } : {}), opts.hasOwnProperty('$orderby') ? {
92
+ } : {}),
93
+ ...(opts.hasOwnProperty('$orderby') ? {
98
94
  '$orderby': opts['$orderby']
99
- } : {}), opts.hasOwnProperty('$expand') ? {
95
+ } : {}),
96
+ ...(opts.hasOwnProperty('$expand') ? {
100
97
  '$expand': opts['$expand']
101
- } : {}), opts.hasOwnProperty('$select') ? {
98
+ } : {}),
99
+ ...(opts.hasOwnProperty('$select') ? {
102
100
  '$select': opts['$select']
103
- } : {});
104
- var headersToInclude = {};
105
- Object.keys(argMap).forEach(function (header) {
106
- if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
107
- headersToInclude[header] = argMap[header];
108
- }
109
- });
110
- var headerParams = _objectSpread({}, headersToInclude);
111
- var formParams = {};
112
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
113
- var contentTypes = [];
114
- var accepts = ['application/json'];
115
- var returnType = _ListAllowancesApiResponse["default"];
116
- return this.apiClient.callApi('/api/licensing/v4.2/config/allowances', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
117
- }
101
+ } : {})
102
+ };
103
+ let headersToInclude = {};
104
+ Object.keys(argMap).forEach(header => {
105
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
106
+ headersToInclude[header] = argMap[header];
107
+ }
108
+ });
109
+ const headerParams = {
110
+ ...headersToInclude
111
+ };
112
+ const formParams = {};
113
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
114
+ const contentTypes = [];
115
+ const accepts = ['application/json'];
116
+ const returnType = _ListAllowancesApiResponse.default;
117
+ return this.apiClient.callApi('/api/licensing/v4.3/config/allowances', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
118
+ }
118
119
 
119
- /**
120
- * List license compliances
121
- * API to fetch list of license compliances across clusters.
122
- * @param {Object} opts Optional parameters defined for the operation
123
- * @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.
124
- * @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.
125
- * @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>
126
- * 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'.
127
- * @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.
128
- * @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.
129
- * @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.
130
- * @param {Object} args Additional Arguments
131
- * @return {Promise<ListCompliancesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListCompliancesApiResponse } and HTTP response
132
- */
133
- }, {
134
- key: "listCompliances",
135
- value: function listCompliances(opts) {
136
- var _this2 = this;
137
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
138
- opts = opts || {};
139
- var postBody = null;
140
- var pathParams = {};
141
- var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
120
+ /**
121
+ * List license compliances
122
+ * API to fetch list of license compliances across clusters.
123
+ * @param {Object} opts Optional parameters defined for the operation
124
+ * @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.
125
+ * @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.
126
+ * @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>
127
+ * 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'.
128
+ * @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.
129
+ * @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.
130
+ * @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.
131
+ * @param {Object} args Additional Arguments
132
+ * @return {Promise<ListCompliancesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListCompliancesApiResponse } and HTTP response
133
+ */
134
+ listCompliances(opts, ...args) {
135
+ let argMap = args.length > 0 ? args[0] : {};
136
+ opts = opts || {};
137
+ const postBody = null;
138
+ const pathParams = {};
139
+ const queryParams = {
140
+ ...(opts.hasOwnProperty('$page') ? {
142
141
  '$page': opts['$page']
143
- } : {}), opts.hasOwnProperty('$limit') ? {
142
+ } : {}),
143
+ ...(opts.hasOwnProperty('$limit') ? {
144
144
  '$limit': opts['$limit']
145
- } : {}), opts.hasOwnProperty('$filter') ? {
145
+ } : {}),
146
+ ...(opts.hasOwnProperty('$filter') ? {
146
147
  '$filter': opts['$filter']
147
- } : {}), opts.hasOwnProperty('$orderby') ? {
148
+ } : {}),
149
+ ...(opts.hasOwnProperty('$orderby') ? {
148
150
  '$orderby': opts['$orderby']
149
- } : {}), opts.hasOwnProperty('$expand') ? {
151
+ } : {}),
152
+ ...(opts.hasOwnProperty('$expand') ? {
150
153
  '$expand': opts['$expand']
151
- } : {}), opts.hasOwnProperty('$select') ? {
154
+ } : {}),
155
+ ...(opts.hasOwnProperty('$select') ? {
152
156
  '$select': opts['$select']
153
- } : {});
154
- var headersToInclude = {};
155
- Object.keys(argMap).forEach(function (header) {
156
- if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
157
- headersToInclude[header] = argMap[header];
158
- }
159
- });
160
- var headerParams = _objectSpread({}, headersToInclude);
161
- var formParams = {};
162
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
163
- var contentTypes = [];
164
- var accepts = ['application/json'];
165
- var returnType = _ListCompliancesApiResponse["default"];
166
- return this.apiClient.callApi('/api/licensing/v4.2/config/compliances', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
167
- }
157
+ } : {})
158
+ };
159
+ let headersToInclude = {};
160
+ Object.keys(argMap).forEach(header => {
161
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
162
+ headersToInclude[header] = argMap[header];
163
+ }
164
+ });
165
+ const headerParams = {
166
+ ...headersToInclude
167
+ };
168
+ const formParams = {};
169
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
170
+ const contentTypes = [];
171
+ const accepts = ['application/json'];
172
+ const returnType = _ListCompliancesApiResponse.default;
173
+ return this.apiClient.callApi('/api/licensing/v4.3/config/compliances', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
174
+ }
168
175
 
169
- /**
170
- * List license entitlements
171
- * API to fetch entitlements list.
172
- * @param {Object} opts Optional parameters defined for the operation
173
- * @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.
174
- * @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.
175
- * @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>
176
- * 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'.
177
- * @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.
178
- * @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.
179
- * @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.
180
- * @param {Object} args Additional Arguments
181
- * @return {Promise<ListEntitlementsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListEntitlementsApiResponse } and HTTP response
182
- */
183
- }, {
184
- key: "listEntitlements",
185
- value: function listEntitlements(opts) {
186
- var _this3 = this;
187
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
188
- opts = opts || {};
189
- var postBody = null;
190
- var pathParams = {};
191
- var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
176
+ /**
177
+ * List license entitlements
178
+ * API to fetch entitlements list.
179
+ * @param {Object} opts Optional parameters defined for the operation
180
+ * @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.
181
+ * @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.
182
+ * @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>
183
+ * 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'.
184
+ * @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.
185
+ * @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.
186
+ * @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.
187
+ * @param {Object} args Additional Arguments
188
+ * @return {Promise<ListEntitlementsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListEntitlementsApiResponse } and HTTP response
189
+ */
190
+ listEntitlements(opts, ...args) {
191
+ let argMap = args.length > 0 ? args[0] : {};
192
+ opts = opts || {};
193
+ const postBody = null;
194
+ const pathParams = {};
195
+ const queryParams = {
196
+ ...(opts.hasOwnProperty('$page') ? {
192
197
  '$page': opts['$page']
193
- } : {}), opts.hasOwnProperty('$limit') ? {
198
+ } : {}),
199
+ ...(opts.hasOwnProperty('$limit') ? {
194
200
  '$limit': opts['$limit']
195
- } : {}), opts.hasOwnProperty('$filter') ? {
201
+ } : {}),
202
+ ...(opts.hasOwnProperty('$filter') ? {
196
203
  '$filter': opts['$filter']
197
- } : {}), opts.hasOwnProperty('$orderby') ? {
204
+ } : {}),
205
+ ...(opts.hasOwnProperty('$orderby') ? {
198
206
  '$orderby': opts['$orderby']
199
- } : {}), opts.hasOwnProperty('$expand') ? {
207
+ } : {}),
208
+ ...(opts.hasOwnProperty('$expand') ? {
200
209
  '$expand': opts['$expand']
201
- } : {}), opts.hasOwnProperty('$select') ? {
210
+ } : {}),
211
+ ...(opts.hasOwnProperty('$select') ? {
202
212
  '$select': opts['$select']
203
- } : {});
204
- var headersToInclude = {};
205
- Object.keys(argMap).forEach(function (header) {
206
- if (!_classPrivateFieldGet(_headersToSkip, _this3).has(header.toLowerCase())) {
207
- headersToInclude[header] = argMap[header];
208
- }
209
- });
210
- var headerParams = _objectSpread({}, headersToInclude);
211
- var formParams = {};
212
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
213
- var contentTypes = [];
214
- var accepts = ['application/json'];
215
- var returnType = _ListEntitlementsApiResponse["default"];
216
- return this.apiClient.callApi('/api/licensing/v4.2/config/entitlements', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
217
- }
213
+ } : {})
214
+ };
215
+ let headersToInclude = {};
216
+ Object.keys(argMap).forEach(header => {
217
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
218
+ headersToInclude[header] = argMap[header];
219
+ }
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 = _ListEntitlementsApiResponse.default;
229
+ return this.apiClient.callApi('/api/licensing/v4.3/config/entitlements', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
230
+ }
218
231
 
219
- /**
220
- * List license features
221
- * API to fetch features list.
222
- * @param {Object} opts Optional parameters defined for the operation
223
- * @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.
224
- * @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.
225
- * @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>
226
- * 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'.
227
- * @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.
228
- * @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.
229
- * @param {Object} args Additional Arguments
230
- * @return {Promise<ListFeaturesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListFeaturesApiResponse } and HTTP response
231
- */
232
- }, {
233
- key: "listFeatures",
234
- value: function listFeatures(opts) {
235
- var _this4 = this;
236
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
237
- opts = opts || {};
238
- var postBody = null;
239
- var pathParams = {};
240
- var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
232
+ /**
233
+ * List license features
234
+ * API to fetch features list.
235
+ * @param {Object} opts Optional parameters defined for the operation
236
+ * @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.
237
+ * @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.
238
+ * @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>
239
+ * 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'.
240
+ * @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.
241
+ * @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.
242
+ * @param {Object} args Additional Arguments
243
+ * @return {Promise<ListFeaturesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListFeaturesApiResponse } and HTTP response
244
+ */
245
+ listFeatures(opts, ...args) {
246
+ let argMap = args.length > 0 ? args[0] : {};
247
+ opts = opts || {};
248
+ const postBody = null;
249
+ const pathParams = {};
250
+ const queryParams = {
251
+ ...(opts.hasOwnProperty('$page') ? {
241
252
  '$page': opts['$page']
242
- } : {}), opts.hasOwnProperty('$limit') ? {
253
+ } : {}),
254
+ ...(opts.hasOwnProperty('$limit') ? {
243
255
  '$limit': opts['$limit']
244
- } : {}), opts.hasOwnProperty('$filter') ? {
256
+ } : {}),
257
+ ...(opts.hasOwnProperty('$filter') ? {
245
258
  '$filter': opts['$filter']
246
- } : {}), opts.hasOwnProperty('$orderby') ? {
259
+ } : {}),
260
+ ...(opts.hasOwnProperty('$orderby') ? {
247
261
  '$orderby': opts['$orderby']
248
- } : {}), opts.hasOwnProperty('$select') ? {
262
+ } : {}),
263
+ ...(opts.hasOwnProperty('$select') ? {
249
264
  '$select': opts['$select']
250
- } : {});
251
- var headersToInclude = {};
252
- Object.keys(argMap).forEach(function (header) {
253
- if (!_classPrivateFieldGet(_headersToSkip, _this4).has(header.toLowerCase())) {
254
- headersToInclude[header] = argMap[header];
255
- }
256
- });
257
- var headerParams = _objectSpread({}, headersToInclude);
258
- var formParams = {};
259
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
260
- var contentTypes = [];
261
- var accepts = ['application/json'];
262
- var returnType = _ListFeaturesApiResponse["default"];
263
- return this.apiClient.callApi('/api/licensing/v4.2/config/features', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
264
- }
265
+ } : {})
266
+ };
267
+ let headersToInclude = {};
268
+ Object.keys(argMap).forEach(header => {
269
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
270
+ headersToInclude[header] = argMap[header];
271
+ }
272
+ });
273
+ const headerParams = {
274
+ ...headersToInclude
275
+ };
276
+ const formParams = {};
277
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
278
+ const contentTypes = [];
279
+ const accepts = ['application/json'];
280
+ const returnType = _ListFeaturesApiResponse.default;
281
+ return this.apiClient.callApi('/api/licensing/v4.3/config/features', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
282
+ }
265
283
 
266
- /**
267
- * List applied license inventory
268
- * API to fetch a list of licenses along with consumption details using expansion.
269
- * @param {Object} opts Optional parameters defined for the operation
270
- * @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.
271
- * @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.
272
- * @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>
273
- * 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'.
274
- * @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.
275
- * @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.
276
- * @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.
277
- * @param {Object} args Additional Arguments
278
- * @return {Promise<ListLicensesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListLicensesApiResponse } and HTTP response
279
- */
280
- }, {
281
- key: "listLicenses",
282
- value: function listLicenses(opts) {
283
- var _this5 = this;
284
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
285
- opts = opts || {};
286
- var postBody = null;
287
- var pathParams = {};
288
- var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
284
+ /**
285
+ * List applied license inventory
286
+ * API to fetch a list of licenses along with consumption details using expansion.
287
+ * @param {Object} opts Optional parameters defined for the operation
288
+ * @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.
289
+ * @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.
290
+ * @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>
291
+ * 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'.
292
+ * @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.
293
+ * @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.
294
+ * @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.
295
+ * @param {Object} args Additional Arguments
296
+ * @return {Promise<ListLicensesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListLicensesApiResponse } and HTTP response
297
+ */
298
+ listLicenses(opts, ...args) {
299
+ let argMap = args.length > 0 ? args[0] : {};
300
+ opts = opts || {};
301
+ const postBody = null;
302
+ const pathParams = {};
303
+ const queryParams = {
304
+ ...(opts.hasOwnProperty('$page') ? {
289
305
  '$page': opts['$page']
290
- } : {}), opts.hasOwnProperty('$limit') ? {
306
+ } : {}),
307
+ ...(opts.hasOwnProperty('$limit') ? {
291
308
  '$limit': opts['$limit']
292
- } : {}), opts.hasOwnProperty('$filter') ? {
309
+ } : {}),
310
+ ...(opts.hasOwnProperty('$filter') ? {
293
311
  '$filter': opts['$filter']
294
- } : {}), opts.hasOwnProperty('$orderby') ? {
312
+ } : {}),
313
+ ...(opts.hasOwnProperty('$orderby') ? {
295
314
  '$orderby': opts['$orderby']
296
- } : {}), opts.hasOwnProperty('$expand') ? {
315
+ } : {}),
316
+ ...(opts.hasOwnProperty('$expand') ? {
297
317
  '$expand': opts['$expand']
298
- } : {}), opts.hasOwnProperty('$select') ? {
318
+ } : {}),
319
+ ...(opts.hasOwnProperty('$select') ? {
299
320
  '$select': opts['$select']
300
- } : {});
301
- var headersToInclude = {};
302
- Object.keys(argMap).forEach(function (header) {
303
- if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {
304
- headersToInclude[header] = argMap[header];
305
- }
306
- });
307
- var headerParams = _objectSpread({}, headersToInclude);
308
- var formParams = {};
309
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
310
- var contentTypes = [];
311
- var accepts = ['application/json'];
312
- var returnType = _ListLicensesApiResponse["default"];
313
- return this.apiClient.callApi('/api/licensing/v4.2/config/licenses', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
314
- }
321
+ } : {})
322
+ };
323
+ let headersToInclude = {};
324
+ Object.keys(argMap).forEach(header => {
325
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
326
+ headersToInclude[header] = argMap[header];
327
+ }
328
+ });
329
+ const headerParams = {
330
+ ...headersToInclude
331
+ };
332
+ const formParams = {};
333
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
334
+ const contentTypes = [];
335
+ const accepts = ['application/json'];
336
+ const returnType = _ListLicensesApiResponse.default;
337
+ return this.apiClient.callApi('/api/licensing/v4.3/config/licenses', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
338
+ }
315
339
 
316
- /**
317
- * List cluster and license recommendations
318
- * Lists all the available licensing recommendations from the license portal.
319
- * @param {Object} opts Optional parameters defined for the operation
320
- * @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.
321
- * @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.
322
- * @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.
323
- * @param {Object} args Additional Arguments
324
- * @return {Promise<ListRecommendationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListRecommendationsApiResponse } and HTTP response
325
- */
326
- }, {
327
- key: "listRecommendations",
328
- value: function listRecommendations(opts) {
329
- var _this6 = this;
330
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
331
- opts = opts || {};
332
- var postBody = null;
333
- var pathParams = {};
334
- var queryParams = _objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
340
+ /**
341
+ * List cluster and license recommendations
342
+ * Lists all the available licensing recommendations from the license portal.
343
+ * @param {Object} opts Optional parameters defined for the operation
344
+ * @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.
345
+ * @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.
346
+ * @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.
347
+ * @param {Object} args Additional Arguments
348
+ * @return {Promise<ListRecommendationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListRecommendationsApiResponse } and HTTP response
349
+ */
350
+ listRecommendations(opts, ...args) {
351
+ let argMap = args.length > 0 ? args[0] : {};
352
+ opts = opts || {};
353
+ const postBody = null;
354
+ const pathParams = {};
355
+ const queryParams = {
356
+ ...(opts.hasOwnProperty('$page') ? {
335
357
  '$page': opts['$page']
336
- } : {}), opts.hasOwnProperty('$limit') ? {
358
+ } : {}),
359
+ ...(opts.hasOwnProperty('$limit') ? {
337
360
  '$limit': opts['$limit']
338
- } : {}), opts.hasOwnProperty('$select') ? {
361
+ } : {}),
362
+ ...(opts.hasOwnProperty('$select') ? {
339
363
  '$select': opts['$select']
340
- } : {});
341
- var headersToInclude = {};
342
- Object.keys(argMap).forEach(function (header) {
343
- if (!_classPrivateFieldGet(_headersToSkip, _this6).has(header.toLowerCase())) {
344
- headersToInclude[header] = argMap[header];
345
- }
346
- });
347
- var headerParams = _objectSpread({}, headersToInclude);
348
- var formParams = {};
349
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
350
- var contentTypes = [];
351
- var accepts = ['application/json'];
352
- var returnType = _ListRecommendationsApiResponse["default"];
353
- return this.apiClient.callApi('/api/licensing/v4.2/config/recommendations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
354
- }
364
+ } : {})
365
+ };
366
+ let headersToInclude = {};
367
+ Object.keys(argMap).forEach(header => {
368
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
369
+ headersToInclude[header] = argMap[header];
370
+ }
371
+ });
372
+ const headerParams = {
373
+ ...headersToInclude
374
+ };
375
+ const formParams = {};
376
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
377
+ const contentTypes = [];
378
+ const accepts = ['application/json'];
379
+ const returnType = _ListRecommendationsApiResponse.default;
380
+ return this.apiClient.callApi('/api/licensing/v4.3/config/recommendations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
381
+ }
355
382
 
356
- /**
357
- * List license configurations
358
- * API to fetch license settings list.
359
- * @param {Object} opts Optional parameters defined for the operation
360
- * @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.
361
- * @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.
362
- * @param {Object} args Additional Arguments
363
- * @return {Promise<ListSettingsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListSettingsApiResponse } and HTTP response
364
- */
365
- }, {
366
- key: "listSettings",
367
- value: function listSettings(opts) {
368
- var _this7 = this;
369
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
370
- opts = opts || {};
371
- var postBody = null;
372
- var pathParams = {};
373
- var queryParams = _objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
383
+ /**
384
+ * List license configurations
385
+ * API to fetch license settings list.
386
+ * @param {Object} opts Optional parameters defined for the operation
387
+ * @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.
388
+ * @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.
389
+ * @param {Object} args Additional Arguments
390
+ * @return {Promise<ListSettingsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListSettingsApiResponse } and HTTP response
391
+ */
392
+ listSettings(opts, ...args) {
393
+ let argMap = args.length > 0 ? args[0] : {};
394
+ opts = opts || {};
395
+ const postBody = null;
396
+ const pathParams = {};
397
+ const queryParams = {
398
+ ...(opts.hasOwnProperty('$page') ? {
374
399
  '$page': opts['$page']
375
- } : {}), opts.hasOwnProperty('$limit') ? {
400
+ } : {}),
401
+ ...(opts.hasOwnProperty('$limit') ? {
376
402
  '$limit': opts['$limit']
377
- } : {});
378
- var headersToInclude = {};
379
- Object.keys(argMap).forEach(function (header) {
380
- if (!_classPrivateFieldGet(_headersToSkip, _this7).has(header.toLowerCase())) {
381
- headersToInclude[header] = argMap[header];
382
- }
383
- });
384
- var headerParams = _objectSpread({}, headersToInclude);
385
- var formParams = {};
386
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
387
- var contentTypes = [];
388
- var accepts = ['application/json'];
389
- var returnType = _ListSettingsApiResponse["default"];
390
- return this.apiClient.callApi('/api/licensing/v4.2/config/settings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
391
- }
403
+ } : {})
404
+ };
405
+ let headersToInclude = {};
406
+ Object.keys(argMap).forEach(header => {
407
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
408
+ headersToInclude[header] = argMap[header];
409
+ }
410
+ });
411
+ const headerParams = {
412
+ ...headersToInclude
413
+ };
414
+ const formParams = {};
415
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
416
+ const contentTypes = [];
417
+ const accepts = ['application/json'];
418
+ const returnType = _ListSettingsApiResponse.default;
419
+ return this.apiClient.callApi('/api/licensing/v4.3/config/settings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
420
+ }
392
421
 
393
- /**
394
- * List license violations
395
- * API to fetch license violations list.
396
- * @param {Object} opts Optional parameters defined for the operation
397
- * @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.
398
- * @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.
399
- * @param {Object} args Additional Arguments
400
- * @return {Promise<ListViolationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListViolationsApiResponse } and HTTP response
401
- */
402
- }, {
403
- key: "listViolations",
404
- value: function listViolations(opts) {
405
- var _this8 = this;
406
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
407
- opts = opts || {};
408
- var postBody = null;
409
- var pathParams = {};
410
- var queryParams = _objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
422
+ /**
423
+ * List license violations
424
+ * API to fetch license violations list.
425
+ * @param {Object} opts Optional parameters defined for the operation
426
+ * @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.
427
+ * @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.
428
+ * @param {Object} args Additional Arguments
429
+ * @return {Promise<ListViolationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListViolationsApiResponse } and HTTP response
430
+ */
431
+ listViolations(opts, ...args) {
432
+ let argMap = args.length > 0 ? args[0] : {};
433
+ opts = opts || {};
434
+ const postBody = null;
435
+ const pathParams = {};
436
+ const queryParams = {
437
+ ...(opts.hasOwnProperty('$page') ? {
411
438
  '$page': opts['$page']
412
- } : {}), opts.hasOwnProperty('$limit') ? {
439
+ } : {}),
440
+ ...(opts.hasOwnProperty('$limit') ? {
413
441
  '$limit': opts['$limit']
414
- } : {});
415
- var headersToInclude = {};
416
- Object.keys(argMap).forEach(function (header) {
417
- if (!_classPrivateFieldGet(_headersToSkip, _this8).has(header.toLowerCase())) {
418
- headersToInclude[header] = argMap[header];
419
- }
420
- });
421
- var headerParams = _objectSpread({}, headersToInclude);
422
- var formParams = {};
423
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
424
- var contentTypes = [];
425
- var accepts = ['application/json'];
426
- var returnType = _ListViolationsApiResponse["default"];
427
- return this.apiClient.callApi('/api/licensing/v4.2/config/violations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
428
- }
429
-
430
- /**
431
- * Seamless licensing action
432
- * API for seamless licensing actions like post the cluster summary file, apply license file, and others.
433
- * @param { Partial<LicenseStateSyncSpec> } body specification
434
- * @param {Object} args Additional Arguments
435
- * @return {Promise<SyncLicenseStateApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link SyncLicenseStateApiResponse } and HTTP response
436
- */
437
- }, {
438
- key: "syncLicenseState",
439
- value: function syncLicenseState(body) {
440
- var _this9 = this;
441
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
442
- var postBody = null;
443
- if (body instanceof _LicenseStateSyncSpec["default"] && typeof body.toJson === 'function') {
444
- postBody = body.toJson();
445
- } else {
446
- postBody = body;
442
+ } : {})
443
+ };
444
+ let headersToInclude = {};
445
+ Object.keys(argMap).forEach(header => {
446
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
447
+ headersToInclude[header] = argMap[header];
447
448
  }
448
- // verify the required parameter 'body' is set
449
- if (typeof postBody === 'undefined' || postBody === null) {
450
- throw new Error("Invalid body when calling syncLicenseState");
451
- }
452
- var pathParams = {};
453
- var queryParams = {};
454
- var headersToInclude = {};
455
- Object.keys(argMap).forEach(function (header) {
456
- if (!_classPrivateFieldGet(_headersToSkip, _this9).has(header.toLowerCase())) {
457
- headersToInclude[header] = argMap[header];
458
- }
459
- });
460
- var headerParams = _objectSpread({}, headersToInclude);
461
- var formParams = {};
462
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
463
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
464
- var contentTypes = ['application/json'];
465
- var accepts = ['application/json'];
466
- var returnType = _SyncLicenseStateApiResponse["default"];
467
- return this.apiClient.callApi('/api/licensing/v4.2/config/$actions/sync-license-state', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
449
+ });
450
+ const headerParams = {
451
+ ...headersToInclude
452
+ };
453
+ const formParams = {};
454
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
455
+ const contentTypes = [];
456
+ const accepts = ['application/json'];
457
+ const returnType = _ListViolationsApiResponse.default;
458
+ return this.apiClient.callApi('/api/licensing/v4.3/config/violations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
459
+ }
460
+
461
+ /**
462
+ * Seamless licensing action
463
+ * API for seamless licensing actions like post the cluster summary file, apply license file, and others.
464
+ * @param { Partial<LicenseStateSyncSpec> } body specification
465
+ * @param {Object} args Additional Arguments
466
+ * @return {Promise<SyncLicenseStateApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link SyncLicenseStateApiResponse } and HTTP response
467
+ */
468
+ syncLicenseState(body, ...args) {
469
+ let argMap = args.length > 0 ? args[0] : {};
470
+ let postBody = null;
471
+ if (body instanceof _LicenseStateSyncSpec.default && typeof body.toJson === 'function') {
472
+ postBody = body.toJson();
473
+ } else {
474
+ postBody = body;
468
475
  }
469
- }], [{
470
- key: "ApiClient",
471
- get:
472
- /**
473
- * Make the default {@link ApiClient} class available for developers to be able to extend it and bring
474
- * their own fetch methods into the SDK
475
- */
476
- function get() {
477
- return _ApiClient.ApiClient;
476
+ // verify the required parameter 'body' is set
477
+ if (typeof postBody === 'undefined' || postBody === null) {
478
+ throw new Error("Invalid body when calling syncLicenseState");
478
479
  }
479
- }]);
480
- }();
480
+ const pathParams = {};
481
+ const queryParams = {};
482
+ let headersToInclude = {};
483
+ Object.keys(argMap).forEach(header => {
484
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
485
+ headersToInclude[header] = argMap[header];
486
+ }
487
+ });
488
+ const headerParams = {
489
+ ...headersToInclude
490
+ };
491
+ const formParams = {};
492
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
493
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
494
+ const contentTypes = ['application/json'];
495
+ const accepts = ['application/json'];
496
+ const returnType = _SyncLicenseStateApiResponse.default;
497
+ return this.apiClient.callApi('/api/licensing/v4.3/config/$actions/sync-license-state', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
498
+ }
499
+ }
500
+ exports.LicensesApi = LicensesApi;