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