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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (430) hide show
  1. package/README.md +20 -19
  2. package/dist/Ntnx-Licensing-js-client-prod.js +1 -1
  3. package/dist/Ntnx-Licensing-js-client.js +265 -166
  4. package/dist/es/ApiClient.d.ts +7 -1
  5. package/dist/es/ApiClient.js +16 -25
  6. package/dist/es/Paginable.d.ts +1 -1
  7. package/dist/es/Paginable.js +3 -3
  8. package/dist/es/apis/enduserlicenseagreement-endpoints.d.ts +1 -1
  9. package/dist/es/apis/enduserlicenseagreement-endpoints.js +5 -5
  10. package/dist/es/apis/licensekeys-endpoints.d.ts +7 -22
  11. package/dist/es/apis/licensekeys-endpoints.js +16 -30
  12. package/dist/es/apis/licenses-endpoints.d.ts +15 -101
  13. package/dist/es/apis/licenses-endpoints.js +36 -112
  14. package/dist/es/index.d.ts +27 -9
  15. package/dist/es/index.js +92 -20
  16. package/dist/es/models/common/v1/config/Flag.d.ts +1 -1
  17. package/dist/es/models/common/v1/config/Flag.js +3 -3
  18. package/dist/es/models/common/v1/config/KVPair.d.ts +1 -1
  19. package/dist/es/models/common/v1/config/KVPair.js +3 -3
  20. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +1 -1
  21. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +3 -3
  22. package/dist/es/models/common/v1/config/Message.d.ts +1 -1
  23. package/dist/es/models/common/v1/config/Message.js +3 -3
  24. package/dist/es/models/common/v1/config/MessageSeverity.js +2 -2
  25. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +4 -4
  26. package/dist/es/models/common/v1/config/TenantAwareModel.js +7 -7
  27. package/dist/es/models/common/v1/response/ApiLink.d.ts +1 -1
  28. package/dist/es/models/common/v1/response/ApiLink.js +3 -3
  29. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +1 -1
  30. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +3 -3
  31. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -1
  32. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +4 -4
  33. package/dist/es/models/licensing/v4/agreements/Acceptance.d.ts +1 -1
  34. package/dist/es/models/licensing/v4/agreements/Acceptance.js +4 -4
  35. package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.d.ts +1 -1
  36. package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.js +5 -5
  37. package/dist/es/models/licensing/v4/agreements/EndUser.d.ts +1 -1
  38. package/dist/es/models/licensing/v4/agreements/EndUser.js +4 -4
  39. package/dist/es/models/licensing/v4/agreements/Eula.d.ts +1 -1
  40. package/dist/es/models/licensing/v4/agreements/Eula.js +5 -5
  41. package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +1 -1
  42. package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.js +5 -5
  43. package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +1 -1
  44. package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.js +5 -5
  45. package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +14 -3
  46. package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +4 -4
  47. package/dist/es/models/licensing/v4/config/Allowance.d.ts +1 -1
  48. package/dist/es/models/licensing/v4/config/Allowance.js +5 -5
  49. package/dist/es/models/licensing/v4/config/AllowanceDetail.d.ts +1 -1
  50. package/dist/es/models/licensing/v4/config/AllowanceDetail.js +4 -4
  51. package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.d.ts +1 -1
  52. package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.js +4 -4
  53. package/dist/es/models/licensing/v4/config/AllowanceProjection.d.ts +1 -1
  54. package/dist/es/models/licensing/v4/config/AllowanceProjection.js +5 -5
  55. package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +1 -1
  56. package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +5 -5
  57. package/dist/es/models/licensing/v4/config/AssociationType.d.ts +19 -0
  58. package/dist/es/models/licensing/v4/config/AssociationType.js +85 -0
  59. package/dist/es/models/licensing/v4/config/BaseClusterInfo.d.ts +1 -1
  60. package/dist/es/models/licensing/v4/config/BaseClusterInfo.js +5 -5
  61. package/dist/es/models/licensing/v4/config/BaseLicenseInfo.d.ts +1 -1
  62. package/dist/es/models/licensing/v4/config/BaseLicenseInfo.js +5 -5
  63. package/dist/es/models/licensing/v4/config/BillingPlan.js +2 -2
  64. package/dist/es/models/licensing/v4/config/CapacityViolation.d.ts +1 -1
  65. package/dist/es/models/licensing/v4/config/CapacityViolation.js +4 -4
  66. package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +1 -1
  67. package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.js +4 -4
  68. package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +1 -1
  69. package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +4 -4
  70. package/dist/es/models/licensing/v4/config/ClusterType.js +2 -2
  71. package/dist/es/models/licensing/v4/config/Compliance.d.ts +1 -1
  72. package/dist/es/models/licensing/v4/config/Compliance.js +5 -5
  73. package/dist/es/models/licensing/v4/config/ComplianceProjection.d.ts +1 -1
  74. package/dist/es/models/licensing/v4/config/ComplianceProjection.js +5 -5
  75. package/dist/es/models/licensing/v4/config/Consumption.d.ts +1 -1
  76. package/dist/es/models/licensing/v4/config/Consumption.js +4 -4
  77. package/dist/es/models/licensing/v4/config/ConsumptionProjection.d.ts +1 -1
  78. package/dist/es/models/licensing/v4/config/ConsumptionProjection.js +4 -4
  79. package/dist/es/models/licensing/v4/config/ConsumptionType.js +2 -2
  80. package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +1 -1
  81. package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +5 -5
  82. package/dist/es/models/licensing/v4/config/DryRunCheck.d.ts +1 -1
  83. package/dist/es/models/licensing/v4/config/DryRunCheck.js +7 -4
  84. package/dist/es/models/licensing/v4/config/DryRunStatus.js +2 -2
  85. package/dist/es/models/licensing/v4/config/DryRunValidationResult.d.ts +1 -1
  86. package/dist/es/models/licensing/v4/config/DryRunValidationResult.js +4 -4
  87. package/dist/es/models/licensing/v4/config/EnforcementActions.js +2 -2
  88. package/dist/es/models/licensing/v4/config/EnforcementLevel.js +2 -2
  89. package/dist/es/models/licensing/v4/config/EnforcementPolicy.js +2 -2
  90. package/dist/es/models/licensing/v4/config/Entitlement.d.ts +1 -1
  91. package/dist/es/models/licensing/v4/config/Entitlement.js +5 -5
  92. package/dist/es/models/licensing/v4/config/EntitlementDetail.d.ts +1 -1
  93. package/dist/es/models/licensing/v4/config/EntitlementDetail.js +4 -4
  94. package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.d.ts +1 -1
  95. package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.js +4 -4
  96. package/dist/es/models/licensing/v4/config/EntitlementProjection.d.ts +1 -1
  97. package/dist/es/models/licensing/v4/config/EntitlementProjection.js +5 -5
  98. package/dist/es/models/licensing/v4/config/ExpiredLicense.d.ts +1 -1
  99. package/dist/es/models/licensing/v4/config/ExpiredLicense.js +5 -5
  100. package/dist/es/models/licensing/v4/config/Feature.d.ts +1 -1
  101. package/dist/es/models/licensing/v4/config/Feature.js +5 -5
  102. package/dist/es/models/licensing/v4/config/FeatureDetail.d.ts +1 -1
  103. package/dist/es/models/licensing/v4/config/FeatureDetail.js +4 -4
  104. package/dist/es/models/licensing/v4/config/FeatureProjection.d.ts +1 -1
  105. package/dist/es/models/licensing/v4/config/FeatureProjection.js +4 -4
  106. package/dist/es/models/licensing/v4/config/FeatureViolation.d.ts +1 -1
  107. package/dist/es/models/licensing/v4/config/FeatureViolation.js +4 -4
  108. package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +1 -1
  109. package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.js +5 -5
  110. package/dist/es/models/licensing/v4/config/License.d.ts +1 -1
  111. package/dist/es/models/licensing/v4/config/License.js +5 -5
  112. package/dist/es/models/licensing/v4/config/LicenseCategory.js +22 -4
  113. package/dist/es/models/licensing/v4/config/LicenseClass.js +2 -2
  114. package/dist/es/models/licensing/v4/config/LicenseKey.d.ts +59 -16
  115. package/dist/es/models/licensing/v4/config/LicenseKey.js +166 -52
  116. package/dist/{lib/models/licensing/v4/config/LicenseKeyAssignSpec.d.ts → es/models/licensing/v4/config/LicenseKeyAssignment.d.ts} +8 -8
  117. package/dist/{lib/models/licensing/v4/config/LicenseKeyAssignSpec.js → es/models/licensing/v4/config/LicenseKeyAssignment.js} +27 -27
  118. package/dist/es/models/licensing/v4/config/LicenseKeyAssignmentSpec.d.ts +75 -0
  119. package/dist/es/models/licensing/v4/config/LicenseKeyAssignmentSpec.js +296 -0
  120. package/dist/es/models/licensing/v4/config/LicenseKeyAssociation.d.ts +104 -0
  121. package/dist/es/models/licensing/v4/{agreements/UpdateEulaApiResponse.js → config/LicenseKeyAssociation.js} +166 -128
  122. package/dist/es/models/licensing/v4/config/LicenseKeyAssociationProjection.d.ts +16 -0
  123. package/dist/es/models/licensing/v4/config/LicenseKeyAssociationProjection.js +164 -0
  124. package/dist/es/models/licensing/v4/config/LicenseKeyAssociationSpec.d.ts +71 -0
  125. package/dist/es/models/licensing/v4/config/LicenseKeyAssociationSpec.js +296 -0
  126. package/dist/es/models/licensing/v4/config/LicenseKeyMapping.d.ts +1 -1
  127. package/dist/es/models/licensing/v4/config/LicenseKeyMapping.js +4 -4
  128. package/dist/es/models/licensing/v4/config/LicenseKeyProjection.d.ts +36 -4
  129. package/dist/es/models/licensing/v4/config/LicenseKeyProjection.js +89 -15
  130. package/dist/es/models/licensing/v4/config/LicenseKeySubCategory.d.ts +19 -0
  131. package/dist/es/models/licensing/v4/config/LicenseKeySubCategory.js +85 -0
  132. package/dist/es/models/licensing/v4/config/LicenseProjection.d.ts +1 -1
  133. package/dist/es/models/licensing/v4/config/LicenseProjection.js +5 -5
  134. package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +1 -1
  135. package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.js +4 -4
  136. package/dist/es/models/licensing/v4/config/LicenseType.js +22 -4
  137. package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +1 -1
  138. package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.js +5 -5
  139. package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +1 -1
  140. package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.js +5 -5
  141. package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +1 -1
  142. package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.js +5 -5
  143. package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +1 -1
  144. package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.js +5 -5
  145. package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +1 -1
  146. package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.js +5 -5
  147. package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.d.ts +1 -1
  148. package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.js +5 -5
  149. package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +1 -1
  150. package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.js +5 -5
  151. package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.d.ts +1 -1
  152. package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.js +5 -5
  153. package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.d.ts +1 -1
  154. package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.js +5 -5
  155. package/dist/es/models/licensing/v4/config/LogicalVersion.d.ts +1 -1
  156. package/dist/es/models/licensing/v4/config/LogicalVersion.js +4 -4
  157. package/dist/es/models/licensing/v4/config/Meter.js +10 -4
  158. package/dist/es/models/licensing/v4/config/OperationType.js +2 -2
  159. package/dist/es/models/licensing/v4/config/PortalSetting.d.ts +1 -1
  160. package/dist/es/models/licensing/v4/config/PortalSetting.js +4 -4
  161. package/dist/es/models/licensing/v4/config/PostPaidCategory.js +2 -2
  162. package/dist/es/models/licensing/v4/config/PostPaidConfig.d.ts +1 -1
  163. package/dist/es/models/licensing/v4/config/PostPaidConfig.js +4 -4
  164. package/dist/es/models/licensing/v4/config/ProductName.js +2 -2
  165. package/dist/es/models/licensing/v4/config/ReclaimType.d.ts +19 -0
  166. package/dist/es/models/licensing/v4/config/ReclaimType.js +85 -0
  167. package/dist/es/models/licensing/v4/config/Recommendation.d.ts +1 -1
  168. package/dist/es/models/licensing/v4/config/Recommendation.js +5 -5
  169. package/dist/es/models/licensing/v4/config/RecommendationDetail.d.ts +1 -1
  170. package/dist/es/models/licensing/v4/config/RecommendationDetail.js +4 -4
  171. package/dist/es/models/licensing/v4/config/RecommendationScope.js +2 -2
  172. package/dist/es/models/licensing/v4/config/ResetScope.js +2 -2
  173. package/dist/es/models/licensing/v4/config/Scope.js +2 -2
  174. package/dist/es/models/licensing/v4/config/Service.d.ts +1 -1
  175. package/dist/es/models/licensing/v4/config/Service.js +4 -4
  176. package/dist/es/models/licensing/v4/config/ServiceProjection.d.ts +1 -1
  177. package/dist/es/models/licensing/v4/config/ServiceProjection.js +4 -4
  178. package/dist/es/models/licensing/v4/config/ServiceViolation.d.ts +1 -1
  179. package/dist/es/models/licensing/v4/config/ServiceViolation.js +4 -4
  180. package/dist/es/models/licensing/v4/config/ServiceViolationType.js +2 -2
  181. package/dist/es/models/licensing/v4/config/Setting.d.ts +1 -1
  182. package/dist/es/models/licensing/v4/config/Setting.js +5 -5
  183. package/dist/es/models/licensing/v4/config/Status.js +2 -2
  184. package/dist/es/models/licensing/v4/config/SubCategory.js +2 -2
  185. package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +1 -1
  186. package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.js +5 -5
  187. package/dist/es/models/licensing/v4/config/SyncOperationType.js +2 -2
  188. package/dist/es/models/licensing/v4/config/Trial.d.ts +93 -0
  189. package/dist/es/models/licensing/v4/config/{ResetLicenseStateApiResponse.js → Trial.js} +194 -138
  190. package/dist/es/models/licensing/v4/config/TrialCategory.d.ts +19 -0
  191. package/dist/es/models/licensing/v4/config/TrialCategory.js +79 -0
  192. package/dist/es/models/licensing/v4/config/TrialProjection.d.ts +12 -0
  193. package/dist/es/models/licensing/v4/config/TrialProjection.js +159 -0
  194. package/dist/es/models/licensing/v4/config/TrialStatus.d.ts +19 -0
  195. package/dist/es/models/licensing/v4/config/TrialStatus.js +85 -0
  196. package/dist/es/models/licensing/v4/config/TrialType.d.ts +19 -0
  197. package/dist/es/models/licensing/v4/config/TrialType.js +79 -0
  198. package/dist/es/models/licensing/v4/config/ValueType.js +2 -2
  199. package/dist/es/models/licensing/v4/config/Violation.d.ts +1 -1
  200. package/dist/es/models/licensing/v4/config/Violation.js +5 -5
  201. package/dist/es/models/licensing/v4/error/AppMessage.d.ts +4 -4
  202. package/dist/es/models/licensing/v4/error/AppMessage.js +8 -8
  203. package/dist/es/models/licensing/v4/error/ErrorResponse.d.ts +1 -1
  204. package/dist/es/models/licensing/v4/error/ErrorResponse.js +5 -8
  205. package/dist/es/models/licensing/v4/error/SchemaValidationError.d.ts +1 -1
  206. package/dist/es/models/licensing/v4/error/SchemaValidationError.js +4 -4
  207. package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +1 -1
  208. package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.js +4 -4
  209. package/dist/es/models/prism/v4/config/TaskReference.d.ts +4 -4
  210. package/dist/es/models/prism/v4/config/TaskReference.js +8 -8
  211. package/dist/es/models/validation/ValidationError.js +2 -2
  212. package/dist/es/utils/ValidationUtils.js +2 -2
  213. package/dist/lib/ApiClient.d.ts +7 -1
  214. package/dist/lib/ApiClient.js +16 -25
  215. package/dist/lib/Paginable.d.ts +1 -1
  216. package/dist/lib/Paginable.js +3 -3
  217. package/dist/lib/apis/enduserlicenseagreement-endpoints.d.ts +1 -1
  218. package/dist/lib/apis/enduserlicenseagreement-endpoints.js +5 -5
  219. package/dist/lib/apis/licensekeys-endpoints.d.ts +7 -22
  220. package/dist/lib/apis/licensekeys-endpoints.js +16 -30
  221. package/dist/lib/apis/licenses-endpoints.d.ts +15 -101
  222. package/dist/lib/apis/licenses-endpoints.js +36 -112
  223. package/dist/lib/index.d.ts +27 -9
  224. package/dist/lib/index.js +92 -20
  225. package/dist/lib/models/common/v1/config/Flag.d.ts +1 -1
  226. package/dist/lib/models/common/v1/config/Flag.js +3 -3
  227. package/dist/lib/models/common/v1/config/KVPair.d.ts +1 -1
  228. package/dist/lib/models/common/v1/config/KVPair.js +3 -3
  229. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +1 -1
  230. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +3 -3
  231. package/dist/lib/models/common/v1/config/Message.d.ts +1 -1
  232. package/dist/lib/models/common/v1/config/Message.js +3 -3
  233. package/dist/lib/models/common/v1/config/MessageSeverity.js +2 -2
  234. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +4 -4
  235. package/dist/lib/models/common/v1/config/TenantAwareModel.js +7 -7
  236. package/dist/lib/models/common/v1/response/ApiLink.d.ts +1 -1
  237. package/dist/lib/models/common/v1/response/ApiLink.js +3 -3
  238. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +1 -1
  239. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +3 -3
  240. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -1
  241. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +4 -4
  242. package/dist/lib/models/licensing/v4/agreements/Acceptance.d.ts +1 -1
  243. package/dist/lib/models/licensing/v4/agreements/Acceptance.js +4 -4
  244. package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.d.ts +1 -1
  245. package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.js +5 -5
  246. package/dist/lib/models/licensing/v4/agreements/EndUser.d.ts +1 -1
  247. package/dist/lib/models/licensing/v4/agreements/EndUser.js +4 -4
  248. package/dist/lib/models/licensing/v4/agreements/Eula.d.ts +1 -1
  249. package/dist/lib/models/licensing/v4/agreements/Eula.js +5 -5
  250. package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +1 -1
  251. package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.js +5 -5
  252. package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +1 -1
  253. package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.js +5 -5
  254. package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +14 -3
  255. package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +4 -4
  256. package/dist/lib/models/licensing/v4/config/Allowance.d.ts +1 -1
  257. package/dist/lib/models/licensing/v4/config/Allowance.js +5 -5
  258. package/dist/lib/models/licensing/v4/config/AllowanceDetail.d.ts +1 -1
  259. package/dist/lib/models/licensing/v4/config/AllowanceDetail.js +4 -4
  260. package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.d.ts +1 -1
  261. package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.js +4 -4
  262. package/dist/lib/models/licensing/v4/config/AllowanceProjection.d.ts +1 -1
  263. package/dist/lib/models/licensing/v4/config/AllowanceProjection.js +5 -5
  264. package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +1 -1
  265. package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +5 -5
  266. package/dist/lib/models/licensing/v4/config/AssociationType.d.ts +19 -0
  267. package/dist/lib/models/licensing/v4/config/AssociationType.js +85 -0
  268. package/dist/lib/models/licensing/v4/config/BaseClusterInfo.d.ts +1 -1
  269. package/dist/lib/models/licensing/v4/config/BaseClusterInfo.js +5 -5
  270. package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.d.ts +1 -1
  271. package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.js +5 -5
  272. package/dist/lib/models/licensing/v4/config/BillingPlan.js +2 -2
  273. package/dist/lib/models/licensing/v4/config/CapacityViolation.d.ts +1 -1
  274. package/dist/lib/models/licensing/v4/config/CapacityViolation.js +4 -4
  275. package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +1 -1
  276. package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.js +4 -4
  277. package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +1 -1
  278. package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +4 -4
  279. package/dist/lib/models/licensing/v4/config/ClusterType.js +2 -2
  280. package/dist/lib/models/licensing/v4/config/Compliance.d.ts +1 -1
  281. package/dist/lib/models/licensing/v4/config/Compliance.js +5 -5
  282. package/dist/lib/models/licensing/v4/config/ComplianceProjection.d.ts +1 -1
  283. package/dist/lib/models/licensing/v4/config/ComplianceProjection.js +5 -5
  284. package/dist/lib/models/licensing/v4/config/Consumption.d.ts +1 -1
  285. package/dist/lib/models/licensing/v4/config/Consumption.js +4 -4
  286. package/dist/lib/models/licensing/v4/config/ConsumptionProjection.d.ts +1 -1
  287. package/dist/lib/models/licensing/v4/config/ConsumptionProjection.js +4 -4
  288. package/dist/lib/models/licensing/v4/config/ConsumptionType.js +2 -2
  289. package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +1 -1
  290. package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +5 -5
  291. package/dist/lib/models/licensing/v4/config/DryRunCheck.d.ts +1 -1
  292. package/dist/lib/models/licensing/v4/config/DryRunCheck.js +7 -4
  293. package/dist/lib/models/licensing/v4/config/DryRunStatus.js +2 -2
  294. package/dist/lib/models/licensing/v4/config/DryRunValidationResult.d.ts +1 -1
  295. package/dist/lib/models/licensing/v4/config/DryRunValidationResult.js +4 -4
  296. package/dist/lib/models/licensing/v4/config/EnforcementActions.js +2 -2
  297. package/dist/lib/models/licensing/v4/config/EnforcementLevel.js +2 -2
  298. package/dist/lib/models/licensing/v4/config/EnforcementPolicy.js +2 -2
  299. package/dist/lib/models/licensing/v4/config/Entitlement.d.ts +1 -1
  300. package/dist/lib/models/licensing/v4/config/Entitlement.js +5 -5
  301. package/dist/lib/models/licensing/v4/config/EntitlementDetail.d.ts +1 -1
  302. package/dist/lib/models/licensing/v4/config/EntitlementDetail.js +4 -4
  303. package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.d.ts +1 -1
  304. package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.js +4 -4
  305. package/dist/lib/models/licensing/v4/config/EntitlementProjection.d.ts +1 -1
  306. package/dist/lib/models/licensing/v4/config/EntitlementProjection.js +5 -5
  307. package/dist/lib/models/licensing/v4/config/ExpiredLicense.d.ts +1 -1
  308. package/dist/lib/models/licensing/v4/config/ExpiredLicense.js +5 -5
  309. package/dist/lib/models/licensing/v4/config/Feature.d.ts +1 -1
  310. package/dist/lib/models/licensing/v4/config/Feature.js +5 -5
  311. package/dist/lib/models/licensing/v4/config/FeatureDetail.d.ts +1 -1
  312. package/dist/lib/models/licensing/v4/config/FeatureDetail.js +4 -4
  313. package/dist/lib/models/licensing/v4/config/FeatureProjection.d.ts +1 -1
  314. package/dist/lib/models/licensing/v4/config/FeatureProjection.js +4 -4
  315. package/dist/lib/models/licensing/v4/config/FeatureViolation.d.ts +1 -1
  316. package/dist/lib/models/licensing/v4/config/FeatureViolation.js +4 -4
  317. package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +1 -1
  318. package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.js +5 -5
  319. package/dist/lib/models/licensing/v4/config/License.d.ts +1 -1
  320. package/dist/lib/models/licensing/v4/config/License.js +5 -5
  321. package/dist/lib/models/licensing/v4/config/LicenseCategory.js +22 -4
  322. package/dist/lib/models/licensing/v4/config/LicenseClass.js +2 -2
  323. package/dist/lib/models/licensing/v4/config/LicenseKey.d.ts +59 -16
  324. package/dist/lib/models/licensing/v4/config/LicenseKey.js +166 -52
  325. package/dist/{es/models/licensing/v4/config/LicenseKeyAssignSpec.d.ts → lib/models/licensing/v4/config/LicenseKeyAssignment.d.ts} +8 -8
  326. package/dist/{es/models/licensing/v4/config/LicenseKeyAssignSpec.js → lib/models/licensing/v4/config/LicenseKeyAssignment.js} +27 -27
  327. package/dist/lib/models/licensing/v4/config/LicenseKeyAssignmentSpec.d.ts +75 -0
  328. package/dist/lib/models/licensing/v4/config/LicenseKeyAssignmentSpec.js +296 -0
  329. package/dist/lib/models/licensing/v4/config/LicenseKeyAssociation.d.ts +104 -0
  330. package/dist/lib/models/licensing/v4/{agreements/UpdateEulaApiResponse.js → config/LicenseKeyAssociation.js} +166 -128
  331. package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationProjection.d.ts +16 -0
  332. package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationProjection.js +164 -0
  333. package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationSpec.d.ts +71 -0
  334. package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationSpec.js +296 -0
  335. package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.d.ts +1 -1
  336. package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.js +4 -4
  337. package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.d.ts +36 -4
  338. package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.js +89 -15
  339. package/dist/lib/models/licensing/v4/config/LicenseKeySubCategory.d.ts +19 -0
  340. package/dist/lib/models/licensing/v4/config/LicenseKeySubCategory.js +85 -0
  341. package/dist/lib/models/licensing/v4/config/LicenseProjection.d.ts +1 -1
  342. package/dist/lib/models/licensing/v4/config/LicenseProjection.js +5 -5
  343. package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +1 -1
  344. package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.js +4 -4
  345. package/dist/lib/models/licensing/v4/config/LicenseType.js +22 -4
  346. package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +1 -1
  347. package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.js +5 -5
  348. package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +1 -1
  349. package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.js +5 -5
  350. package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +1 -1
  351. package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.js +5 -5
  352. package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +1 -1
  353. package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.js +5 -5
  354. package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +1 -1
  355. package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.js +5 -5
  356. package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.d.ts +1 -1
  357. package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.js +5 -5
  358. package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +1 -1
  359. package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.js +5 -5
  360. package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.d.ts +1 -1
  361. package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.js +5 -5
  362. package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.d.ts +1 -1
  363. package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.js +5 -5
  364. package/dist/lib/models/licensing/v4/config/LogicalVersion.d.ts +1 -1
  365. package/dist/lib/models/licensing/v4/config/LogicalVersion.js +4 -4
  366. package/dist/lib/models/licensing/v4/config/Meter.js +10 -4
  367. package/dist/lib/models/licensing/v4/config/OperationType.js +2 -2
  368. package/dist/lib/models/licensing/v4/config/PortalSetting.d.ts +1 -1
  369. package/dist/lib/models/licensing/v4/config/PortalSetting.js +4 -4
  370. package/dist/lib/models/licensing/v4/config/PostPaidCategory.js +2 -2
  371. package/dist/lib/models/licensing/v4/config/PostPaidConfig.d.ts +1 -1
  372. package/dist/lib/models/licensing/v4/config/PostPaidConfig.js +4 -4
  373. package/dist/lib/models/licensing/v4/config/ProductName.js +2 -2
  374. package/dist/lib/models/licensing/v4/config/ReclaimType.d.ts +19 -0
  375. package/dist/lib/models/licensing/v4/config/ReclaimType.js +85 -0
  376. package/dist/lib/models/licensing/v4/config/Recommendation.d.ts +1 -1
  377. package/dist/lib/models/licensing/v4/config/Recommendation.js +5 -5
  378. package/dist/lib/models/licensing/v4/config/RecommendationDetail.d.ts +1 -1
  379. package/dist/lib/models/licensing/v4/config/RecommendationDetail.js +4 -4
  380. package/dist/lib/models/licensing/v4/config/RecommendationScope.js +2 -2
  381. package/dist/lib/models/licensing/v4/config/ResetScope.js +2 -2
  382. package/dist/lib/models/licensing/v4/config/Scope.js +2 -2
  383. package/dist/lib/models/licensing/v4/config/Service.d.ts +1 -1
  384. package/dist/lib/models/licensing/v4/config/Service.js +4 -4
  385. package/dist/lib/models/licensing/v4/config/ServiceProjection.d.ts +1 -1
  386. package/dist/lib/models/licensing/v4/config/ServiceProjection.js +4 -4
  387. package/dist/lib/models/licensing/v4/config/ServiceViolation.d.ts +1 -1
  388. package/dist/lib/models/licensing/v4/config/ServiceViolation.js +4 -4
  389. package/dist/lib/models/licensing/v4/config/ServiceViolationType.js +2 -2
  390. package/dist/lib/models/licensing/v4/config/Setting.d.ts +1 -1
  391. package/dist/lib/models/licensing/v4/config/Setting.js +5 -5
  392. package/dist/lib/models/licensing/v4/config/Status.js +2 -2
  393. package/dist/lib/models/licensing/v4/config/SubCategory.js +2 -2
  394. package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +1 -1
  395. package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.js +5 -5
  396. package/dist/lib/models/licensing/v4/config/SyncOperationType.js +2 -2
  397. package/dist/lib/models/licensing/v4/config/Trial.d.ts +93 -0
  398. package/dist/lib/models/licensing/v4/config/{ResetLicenseStateApiResponse.js → Trial.js} +194 -138
  399. package/dist/lib/models/licensing/v4/config/TrialCategory.d.ts +19 -0
  400. package/dist/lib/models/licensing/v4/config/TrialCategory.js +79 -0
  401. package/dist/lib/models/licensing/v4/config/TrialProjection.d.ts +12 -0
  402. package/dist/lib/models/licensing/v4/config/TrialProjection.js +159 -0
  403. package/dist/lib/models/licensing/v4/config/TrialStatus.d.ts +19 -0
  404. package/dist/lib/models/licensing/v4/config/TrialStatus.js +85 -0
  405. package/dist/lib/models/licensing/v4/config/TrialType.d.ts +19 -0
  406. package/dist/lib/models/licensing/v4/config/TrialType.js +79 -0
  407. package/dist/lib/models/licensing/v4/config/ValueType.js +2 -2
  408. package/dist/lib/models/licensing/v4/config/Violation.d.ts +1 -1
  409. package/dist/lib/models/licensing/v4/config/Violation.js +5 -5
  410. package/dist/lib/models/licensing/v4/error/AppMessage.d.ts +4 -4
  411. package/dist/lib/models/licensing/v4/error/AppMessage.js +8 -8
  412. package/dist/lib/models/licensing/v4/error/ErrorResponse.d.ts +1 -1
  413. package/dist/lib/models/licensing/v4/error/ErrorResponse.js +5 -8
  414. package/dist/lib/models/licensing/v4/error/SchemaValidationError.d.ts +1 -1
  415. package/dist/lib/models/licensing/v4/error/SchemaValidationError.js +4 -4
  416. package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +1 -1
  417. package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.js +4 -4
  418. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +4 -4
  419. package/dist/lib/models/prism/v4/config/TaskReference.js +8 -8
  420. package/dist/lib/models/validation/ValidationError.js +2 -2
  421. package/dist/lib/utils/ValidationUtils.js +2 -2
  422. package/package.json +3 -3
  423. package/dist/es/models/licensing/v4/agreements/UpdateEulaApiResponse.d.ts +0 -101
  424. package/dist/es/models/licensing/v4/config/ResetLicenseStateApiResponse.d.ts +0 -102
  425. package/dist/es/models/licensing/v4/config/UpdatePortalSettingApiResponse.d.ts +0 -99
  426. package/dist/es/models/licensing/v4/config/UpdatePortalSettingApiResponse.js +0 -365
  427. package/dist/lib/models/licensing/v4/agreements/UpdateEulaApiResponse.d.ts +0 -101
  428. package/dist/lib/models/licensing/v4/config/ResetLicenseStateApiResponse.d.ts +0 -102
  429. package/dist/lib/models/licensing/v4/config/UpdatePortalSettingApiResponse.d.ts +0 -99
  430. package/dist/lib/models/licensing/v4/config/UpdatePortalSettingApiResponse.js +0 -365
@@ -3,7 +3,7 @@
3
3
  * application to use this class directly - the *Api and model classes provide the public API for the service. The
4
4
  * contents of this file should be regarded as internal but are documented for completeness.
5
5
  * @module ApiClient
6
- * @version 4.0.1
6
+ * @version 4.2.1
7
7
  */
8
8
  export class ApiClient {
9
9
  /**
@@ -102,6 +102,12 @@ export class ApiClient {
102
102
  * @default 3000
103
103
  */
104
104
  retryInterval: number;
105
+ /**
106
+ * A boolean value that indicates whether cross-site Access-Control requests should be made using auth credentials.
107
+ * @type {Boolean}
108
+ * @default false
109
+ */
110
+ withCredentials: boolean;
105
111
  agent: any;
106
112
  /**
107
113
  * Allow user to override superagent agent
@@ -16,7 +16,7 @@ var _ApiResponseMetadata = _interopRequireDefault(require("./models/common/v1/re
16
16
  var _Flag = _interopRequireDefault(require("./models/common/v1/config/Flag"));
17
17
  var _ApiClient;
18
18
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
19
- function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { var t = o[r]; return "$" + (Array.isArray(t) ? t.join("$") : t); })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }
19
+ function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)(>|$)/g, function (e, r, t) { if ("" === t) return e; var p = o[r]; return Array.isArray(p) ? "$" + p.join("$") : "number" == typeof p ? "$" + p : ""; })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }
20
20
  function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
21
21
  function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
22
22
  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; }
@@ -39,11 +39,11 @@ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a),
39
39
  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"); } /*
40
40
  * Nutanix Licensing APIs
41
41
  *
42
- * OpenAPI spec version: 4.0.1
42
+ * OpenAPI spec version: 4.2.1
43
43
  *
44
44
  * NOTE: This class is auto generated by the Open API Dev Platform.
45
45
  *
46
- * Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
46
+ * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
47
47
  *
48
48
  * Do not edit the class manually.
49
49
  *
@@ -54,7 +54,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
54
54
  * application to use this class directly - the *Api and model classes provide the public API for the service. The
55
55
  * contents of this file should be regarded as internal but are documented for completeness.
56
56
  * @module ApiClient
57
- * @version 4.0.1
57
+ * @version 4.2.1
58
58
  */
59
59
  var _protocol = /*#__PURE__*/new WeakMap();
60
60
  var _cookie = /*#__PURE__*/new WeakMap();
@@ -207,6 +207,13 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
207
207
  * @default 3000
208
208
  */
209
209
  this.retryInterval = 3000;
210
+
211
+ /**
212
+ * A boolean value that indicates whether cross-site Access-Control requests should be made using auth credentials.
213
+ * @type {Boolean}
214
+ * @default false
215
+ */
216
+ this.withCredentials = false;
210
217
  if (typeof self === 'undefined') {
211
218
  this.agent = new _superagent["default"].agent();
212
219
  }
@@ -501,7 +508,7 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
501
508
  if (!isBrowser) {
502
509
  this.downloadDestination = '.';
503
510
  request.set(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, {
504
- 'User-Agent': 'Nutanix-licensing-js-client/4.0.1'
511
+ 'User-Agent': 'Nutanix-licensing-js-client/4.2.1'
505
512
  }));
506
513
  }
507
514
 
@@ -595,7 +602,7 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
595
602
  request.accept(accept);
596
603
  }
597
604
  return new Promise(function (resolve, reject) {
598
- request.buffer(false).redirects(0).retry(_this2.maxRetryAttempts, _this2.retryInterval, []).on('error', function (err) {
605
+ request.buffer(false).redirects(0).retry(_this2.maxRetryAttempts, _this2.retryInterval, []).withCredentials(_this2.withCredentials).on('error', function (err) {
599
606
  _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, null, "Caught the following error :", err);
600
607
  }).end(function (error, response) {
601
608
  if (error) {
@@ -614,9 +621,7 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
614
621
  if (response.headers.hasOwnProperty('content-type')) {
615
622
  _contentType = response.headers["content-type"];
616
623
  }
617
- var fetchStream = binaryMediaTypes.some(function (binaryMediaType) {
618
- return _contentType.includes(binaryMediaType);
619
- });
624
+ var fetchStream = binaryMediaTypes.includes(_contentType);
620
625
  if (fetchStream) {
621
626
  /*
622
627
  * Browser environment :
@@ -699,6 +704,7 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
699
704
  redirectRequest.set("Cookie", response.headers["x-redirect-token"]);
700
705
  }
701
706
  redirectRequest.redirects(0);
707
+ redirectRequest.withCredentials(_this2.withCredentials);
702
708
  redirectRequest.buffer(false);
703
709
  var redirectedStream = _fs2["default"].createWriteStream(_tempFilename);
704
710
  redirectRequest.pipe(redirectedStream);
@@ -1140,7 +1146,7 @@ function _log(level, mapper) {
1140
1146
  return typeof message === "string" ? message : mapper ? mapper(message) : JSON.stringify(message);
1141
1147
  });
1142
1148
  var message = messages.join(' ');
1143
- message = _assertClassBrand(_ApiClient_brand, this, _getLocalDateTime).call(this) + ' ' + level.key + ' - ' + message;
1149
+ message = new Date().toISOString() + ' ' + level.key + ' - ' + message;
1144
1150
  if (typeof _classPrivateFieldGet(_logger, this) !== "undefined" && _classPrivateFieldGet(_logger, this) !== null && typeof _classPrivateFieldGet(_logger, this).log === 'function') {
1145
1151
  _classPrivateFieldGet(_logger, this).log(message);
1146
1152
  } else {
@@ -1152,21 +1158,6 @@ function _skipLogging(level) {
1152
1158
  // Skip logging if log level is DEBUG but debug is not enabled.
1153
1159
  return !this.debug && level === _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG;
1154
1160
  }
1155
- function _getLocalDateTime() {
1156
- // Current epoch UTC time in milliseconds
1157
- var epochTime = Date.now();
1158
-
1159
- // "getTimezoneOffset" returns the difference, in minutes, between a date as evaluated in the UTC time zone,
1160
- // and the same date as evaluated in the local time zone.
1161
- // if you are in timezone UTC-1, outputs 60
1162
- // if you are in timezone UTC+3, outputs -180
1163
- var timezoneOffsetInMinutes = new Date().getTimezoneOffset();
1164
- var timezoneOffsetInMilliseconds = timezoneOffsetInMinutes * 60 * 1000;
1165
-
1166
- // Create a new date with adjusted epoch time based on timezone offset
1167
- var date = new Date(epochTime - timezoneOffsetInMilliseconds);
1168
- return date.toISOString().slice(0, 23);
1169
- }
1170
1161
  // A mapper function to flatten a simple non-nested (key:value) object to string
1171
1162
  function _flatten(obj) {
1172
1163
  if (_typeof(obj) !== "object") {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * A model that represents a paginable response from a list endpoint.
3
3
  * @module Paginable
4
- * @version 4.0.1
4
+ * @version 4.2.1
5
5
  */
6
6
  export default class Paginable {
7
7
  /**
@@ -16,11 +16,11 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
16
16
  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); } /*
17
17
  * Nutanix Licensing APIs
18
18
  *
19
- * OpenAPI spec version: 4.0.1
19
+ * OpenAPI spec version: 4.2.1
20
20
  *
21
21
  * NOTE: This class is auto generated by the Open API Dev Platform.
22
22
  *
23
- * Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
23
+ * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
24
24
  *
25
25
  * Do not edit the class manually.
26
26
  *
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * A model that represents a paginable response from a list endpoint.
30
30
  * @module Paginable
31
- * @version 4.0.1
31
+ * @version 4.2.1
32
32
  */
33
33
  var Paginable = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * EndUserLicenseAgreement service.
3
- * @version 4.0.1
3
+ * @version 4.2.1
4
4
  * @class EndUserLicenseAgreementApi
5
5
  */
6
6
  export class EndUserLicenseAgreementApi {
@@ -25,18 +25,18 @@ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a),
25
25
  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"); } /*
26
26
  * Nutanix Licensing APIs
27
27
  *
28
- * OpenAPI spec version: 4.0.1
28
+ * OpenAPI spec version: 4.2.1
29
29
  *
30
30
  * NOTE: This class is auto generated by the Open API Dev Platform.
31
31
  *
32
- * Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
32
+ * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
33
33
  *
34
34
  * Do not edit the class manually.
35
35
  *
36
36
  */
37
37
  /**
38
38
  * EndUserLicenseAgreement service.
39
- * @version 4.0.1
39
+ * @version 4.2.1
40
40
  * @class EndUserLicenseAgreementApi
41
41
  */
42
42
  var _headersToSkip = /*#__PURE__*/new WeakMap();
@@ -96,7 +96,7 @@ var EndUserLicenseAgreementApi = exports.EndUserLicenseAgreementApi = /*#__PURE_
96
96
  var contentTypes = ['application/json'];
97
97
  var accepts = ['application/json'];
98
98
  var returnType = _AddUserApiResponse["default"];
99
- return this.apiClient.callApi('/api/licensing/v4.0/agreements/eula/$actions/add-user', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
99
+ return this.apiClient.callApi('/api/licensing/v4.2/agreements/eula/$actions/add-user', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
100
100
  }
101
101
 
102
102
  /**
@@ -125,7 +125,7 @@ var EndUserLicenseAgreementApi = exports.EndUserLicenseAgreementApi = /*#__PURE_
125
125
  var contentTypes = [];
126
126
  var accepts = ['application/json'];
127
127
  var returnType = _GetEulaApiResponse["default"];
128
- return this.apiClient.callApi('/api/licensing/v4.0/agreements/eula', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
128
+ return this.apiClient.callApi('/api/licensing/v4.2/agreements/eula', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
129
129
  }
130
130
  }], [{
131
131
  key: "ApiClient",
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * LicenseKeys service.
3
- * @version 4.0.1
3
+ * @version 4.2.1
4
4
  * @class LicenseKeysApi
5
5
  */
6
6
  export class LicenseKeysApi {
@@ -34,11 +34,11 @@ export class LicenseKeysApi {
34
34
  /**
35
35
  * Assign license keys to cluster
36
36
  * Assign the license keys to a cluster.
37
- * @param { Partial<Array> } body specification
37
+ * @param { Required<Pick<LicenseKeyAssignmentSpec, 'licenseKeyAssignments'>> & Partial<LicenseKeyAssignmentSpec> } body specification
38
38
  * @param {Object} args Additional Arguments
39
39
  * @return {Promise<AssignLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AssignLicenseKeysApiResponse } and HTTP response
40
40
  */
41
- assignLicenseKeys(body: Partial<any[]>, ...args: any): Promise<AssignLicenseKeysApiResponse>;
41
+ assignLicenseKeys(body: Required<Pick<LicenseKeyAssignmentSpec, 'licenseKeyAssignments'>> & Partial<LicenseKeyAssignmentSpec>, ...args: any): Promise<AssignLicenseKeysApiResponse>;
42
42
  /**
43
43
  * Delete license key
44
44
  * Deletes the license key based on the provided external identifier.
@@ -64,26 +64,10 @@ export class LicenseKeysApi {
64
64
  * @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.
65
65
 
66
66
  * @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>
67
- * 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'.<br>
68
- * The filter can be applied to the following fields:<br>
69
- * - extId<br>
70
- * - isDeleted<br>
71
- * - key
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.<br>
73
- * The orderby can be applied to the following fields:<br>
74
- * - key<br>
75
- * - type
76
- * @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. The following expansion keys are supported.
77
- - assignmentDetails
78
-
67
+ * 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'.
68
+ * @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.
69
+ * @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
70
  * @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
- - addons
81
- - category
82
- - key
83
- - meter
84
- - quantity
85
- - type
86
-
87
71
  * @param {Object} args Additional Arguments
88
72
  * @return {Promise<ListLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListLicenseKeysApiResponse } and HTTP response
89
73
  */
@@ -99,6 +83,7 @@ export class LicenseKeysApi {
99
83
  }
100
84
  import LicenseKey from "../models/licensing/v4/config/LicenseKey";
101
85
  import AddLicenseKeyApiResponse from "../models/licensing/v4/config/AddLicenseKeyApiResponse";
86
+ import LicenseKeyAssignmentSpec from "../models/licensing/v4/config/LicenseKeyAssignmentSpec";
102
87
  import AssignLicenseKeysApiResponse from "../models/licensing/v4/config/AssignLicenseKeysApiResponse";
103
88
  import DeleteLicenseKeyApiResponse from "../models/licensing/v4/config/DeleteLicenseKeyApiResponse";
104
89
  import GetLicenseKeyApiResponse from "../models/licensing/v4/config/GetLicenseKeyApiResponse";
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.LicenseKeysApi = void 0;
8
8
  var _ApiClient = require("../ApiClient");
9
9
  var _AssignLicenseKeysApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/AssignLicenseKeysApiResponse"));
10
- var _LicenseKeyAssignSpec = _interopRequireDefault(require("../models/licensing/v4/config/LicenseKeyAssignSpec"));
11
10
  var _DeleteLicenseKeyApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/DeleteLicenseKeyApiResponse"));
12
11
  var _ListLicenseKeysApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListLicenseKeysApiResponse"));
13
12
  var _LicenseKey = _interopRequireDefault(require("../models/licensing/v4/config/LicenseKey"));
14
13
  var _AddLicenseKeyApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/AddLicenseKeyApiResponse"));
15
14
  var _GetLicenseKeyApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/GetLicenseKeyApiResponse"));
15
+ var _LicenseKeyAssignmentSpec = _interopRequireDefault(require("../models/licensing/v4/config/LicenseKeyAssignmentSpec"));
16
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
17
17
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
18
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -29,18 +29,18 @@ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a),
29
29
  function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
30
30
  * Nutanix Licensing APIs
31
31
  *
32
- * OpenAPI spec version: 4.0.1
32
+ * OpenAPI spec version: 4.2.1
33
33
  *
34
34
  * NOTE: This class is auto generated by the Open API Dev Platform.
35
35
  *
36
- * Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
36
+ * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
37
37
  *
38
38
  * Do not edit the class manually.
39
39
  *
40
40
  */
41
41
  /**
42
42
  * LicenseKeys service.
43
- * @version 4.0.1
43
+ * @version 4.2.1
44
44
  * @class LicenseKeysApi
45
45
  */
46
46
  var _headersToSkip = /*#__PURE__*/new WeakMap();
@@ -105,13 +105,13 @@ var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
105
105
  var contentTypes = ['application/json'];
106
106
  var accepts = ['application/json'];
107
107
  var returnType = _AddLicenseKeyApiResponse["default"];
108
- return this.apiClient.callApi('/api/licensing/v4.0/config/license-keys', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
108
+ return this.apiClient.callApi('/api/licensing/v4.2/config/license-keys', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
109
109
  }
110
110
 
111
111
  /**
112
112
  * Assign license keys to cluster
113
113
  * Assign the license keys to a cluster.
114
- * @param { Partial<Array> } body specification
114
+ * @param { Required<Pick<LicenseKeyAssignmentSpec, 'licenseKeyAssignments'>> & Partial<LicenseKeyAssignmentSpec> } body specification
115
115
  * @param {Object} args Additional Arguments
116
116
  * @return {Promise<AssignLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AssignLicenseKeysApiResponse } and HTTP response
117
117
  */
@@ -121,7 +121,7 @@ var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
121
121
  var _this2 = this;
122
122
  var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
123
123
  var postBody = null;
124
- if (body instanceof Array && typeof body.toJson === 'function') {
124
+ if (body instanceof _LicenseKeyAssignmentSpec["default"] && typeof body.toJson === 'function') {
125
125
  postBody = body.toJson();
126
126
  } else {
127
127
  postBody = body;
@@ -145,7 +145,7 @@ var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
145
145
  var contentTypes = ['application/json'];
146
146
  var accepts = ['application/json'];
147
147
  var returnType = _AssignLicenseKeysApiResponse["default"];
148
- return this.apiClient.callApi('/api/licensing/v4.0/config/$actions/assign-license-keys', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
148
+ return this.apiClient.callApi('/api/licensing/v4.2/config/$actions/assign-license-keys', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
149
149
  }
150
150
 
151
151
  /**
@@ -181,7 +181,7 @@ var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
181
181
  var contentTypes = [];
182
182
  var accepts = ['application/json'];
183
183
  var returnType = _DeleteLicenseKeyApiResponse["default"];
184
- return this.apiClient.callApi('/api/licensing/v4.0/config/license-keys/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
184
+ return this.apiClient.callApi('/api/licensing/v4.2/config/license-keys/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
185
185
  }
186
186
 
187
187
  /**
@@ -217,7 +217,7 @@ var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
217
217
  var contentTypes = [];
218
218
  var accepts = ['application/json'];
219
219
  var returnType = _GetLicenseKeyApiResponse["default"];
220
- return this.apiClient.callApi('/api/licensing/v4.0/config/license-keys/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
220
+ return this.apiClient.callApi('/api/licensing/v4.2/config/license-keys/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
221
221
  }
222
222
 
223
223
  /**
@@ -227,25 +227,11 @@ var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
227
227
  * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
228
228
  * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
229
229
  * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
230
- * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
231
- * The filter can be applied to the following fields:<br>
232
- * - extId<br>
233
- * - isDeleted<br>
234
- * - key
235
- * @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.<br>
236
- * The orderby can be applied to the following fields:<br>
237
- * - key<br>
238
- * - type
239
- * @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. The following expansion keys are supported.
240
- - assignmentDetails
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
- - addons
243
- - category
244
- - key
245
- - meter
246
- - quantity
247
- - type
248
- * @param {Object} args Additional Arguments
230
+ * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
231
+ * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
232
+ * @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby.
233
+ * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
234
+ * @param {Object} args Additional Arguments
249
235
  * @return {Promise<ListLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListLicenseKeysApiResponse } and HTTP response
250
236
  */
251
237
  }, {
@@ -281,7 +267,7 @@ var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
281
267
  var contentTypes = [];
282
268
  var accepts = ['application/json'];
283
269
  var returnType = _ListLicenseKeysApiResponse["default"];
284
- return this.apiClient.callApi('/api/licensing/v4.0/config/license-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
270
+ return this.apiClient.callApi('/api/licensing/v4.2/config/license-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
285
271
  }
286
272
  }], [{
287
273
  key: "ApiClient",
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Licenses service.
3
- * @version 4.0.1
3
+ * @version 4.2.1
4
4
  * @class LicensesApi
5
5
  */
6
6
  export class LicensesApi {
@@ -27,25 +27,10 @@ export class LicensesApi {
27
27
  * @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.
28
28
 
29
29
  * @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>
30
- * 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'.<br>
31
- * The filter can be applied to the following fields:<br>
32
- * - clusterExtId<br>
33
- * - extId<br>
34
- * - isDeleted<br>
35
- * - name<br>
36
- * - type
37
- * @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.<br>
38
- * The orderby can be applied to the following fields:<br>
39
- * - clusterExtId
40
- * @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. The following expansion keys are supported.
41
- - details
42
-
30
+ * 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'.
31
+ * @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.
32
+ * @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.
43
33
  * @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.
44
- - clusterExtId
45
- - extId
46
- - name
47
- - type
48
-
49
34
  * @param {Object} args Additional Arguments
50
35
  * @return {Promise<ListAllowancesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListAllowancesApiResponse } and HTTP response
51
36
  */
@@ -66,22 +51,10 @@ export class LicensesApi {
66
51
  * @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.
67
52
 
68
53
  * @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>
69
- * 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'.<br>
70
- * The filter can be applied to the following fields:<br>
71
- * - clusterExtId<br>
72
- * - isDeleted<br>
73
- * - type
74
- * @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.<br>
75
- * The orderby can be applied to the following fields:<br>
76
- * - clusterExtId<br>
77
- * - type
78
- * @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. The following expansion keys are supported.
79
- - compliance
80
-
54
+ * 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'.
55
+ * @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.
56
+ * @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.
81
57
  * @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.
82
- - clusterExtId
83
- - type
84
-
85
58
  * @param {Object} args Additional Arguments
86
59
  * @return {Promise<ListCompliancesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListCompliancesApiResponse } and HTTP response
87
60
  */
@@ -102,26 +75,10 @@ export class LicensesApi {
102
75
  * @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.
103
76
 
104
77
  * @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>
105
- * 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'.<br>
106
- * The filter can be applied to the following fields:<br>
107
- * - clusterExtId<br>
108
- * - extId<br>
109
- * - isDeleted<br>
110
- * - name<br>
111
- * - type
112
- * @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.<br>
113
- * The orderby can be applied to the following fields:<br>
114
- * - clusterExtId<br>
115
- * - name
116
- * @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. The following expansion keys are supported.
117
- - details
118
-
78
+ * 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'.
79
+ * @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.
80
+ * @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.
119
81
  * @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.
120
- - clusterExtId
121
- - extId
122
- - name
123
- - type
124
-
125
82
  * @param {Object} args Additional Arguments
126
83
  * @return {Promise<ListEntitlementsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListEntitlementsApiResponse } and HTTP response
127
84
  */
@@ -142,28 +99,9 @@ export class LicensesApi {
142
99
  * @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.
143
100
 
144
101
  * @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>
145
- * 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'.<br>
146
- * The filter can be applied to the following fields:<br>
147
- * - licenseCategory<br>
148
- * - licenseSubCategory<br>
149
- * - licenseType<br>
150
- * - name<br>
151
- * - scope<br>
152
- * - value<br>
153
- * - valueType
154
- * @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.<br>
155
- * The orderby can be applied to the following fields:<br>
156
- * - licenseCategory<br>
157
- * - licenseType<br>
158
- * - name
102
+ * 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'.
103
+ * @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.
159
104
  * @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.
160
- - licenseCategory
161
- - licenseSubCategory
162
- - licenseType
163
- - name
164
- - value
165
- - valueType
166
-
167
105
  * @param {Object} args Additional Arguments
168
106
  * @return {Promise<ListFeaturesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListFeaturesApiResponse } and HTTP response
169
107
  */
@@ -183,29 +121,10 @@ export class LicensesApi {
183
121
  * @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.
184
122
 
185
123
  * @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>
186
- * 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'.<br>
187
- * The filter can be applied to the following fields:<br>
188
- * - category<br>
189
- * - extId<br>
190
- * - isDeleted<br>
191
- * - meter<br>
192
- * - salesforceLicenseId<br>
193
- * - subCategory<br>
194
- * - type
195
- * @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.<br>
196
- * The orderby can be applied to the following fields:<br>
197
- * - category<br>
198
- * - type
199
- * @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. The following expansion keys are supported.
200
- - consumptionDetails
201
-
124
+ * 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'.
125
+ * @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.
126
+ * @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.
202
127
  * @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.
203
- - category
204
- - meter
205
- - salesforceLicenseId
206
- - subCategory
207
- - type
208
-
209
128
  * @param {Object} args Additional Arguments
210
129
  * @return {Promise<ListLicensesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListLicensesApiResponse } and HTTP response
211
130
  */
@@ -226,11 +145,6 @@ export class LicensesApi {
226
145
  * @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.
227
146
 
228
147
  * @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
- - details
230
- - extId
231
- - links
232
- - tenantId
233
-
234
148
  * @param {Object} args Additional Arguments
235
149
  * @return {Promise<ListRecommendationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListRecommendationsApiResponse } and HTTP response
236
150
  */