@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
|
});
|
|
@@ -16,38 +15,36 @@ var _LicenseStateSyncSpec = _interopRequireDefault(require("../models/licensing/
|
|
|
16
15
|
var _ListCompliancesApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListCompliancesApiResponse"));
|
|
17
16
|
var _SyncLicenseStateApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/SyncLicenseStateApiResponse"));
|
|
18
17
|
var _ListFeaturesApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListFeaturesApiResponse"));
|
|
19
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
20
|
-
|
|
21
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
23
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
24
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
25
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
26
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
27
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
28
|
-
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
29
|
-
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
30
|
-
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
31
|
-
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
32
|
-
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
|
|
18
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
+
/*
|
|
33
20
|
* Nutanix Licensing APIs
|
|
34
21
|
*
|
|
35
|
-
* OpenAPI spec version: 4.2
|
|
22
|
+
* OpenAPI spec version: 4.3.2
|
|
36
23
|
*
|
|
37
24
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
38
25
|
*
|
|
39
|
-
* Open API Dev Platform Codegen version: 17.
|
|
26
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
40
27
|
*
|
|
41
28
|
* Do not edit the class manually.
|
|
42
29
|
*
|
|
43
30
|
*/
|
|
31
|
+
|
|
44
32
|
/**
|
|
45
33
|
* Licenses service.
|
|
46
|
-
* @version 4.2
|
|
34
|
+
* @version 4.3.2
|
|
47
35
|
* @class LicensesApi
|
|
48
36
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
37
|
+
class LicensesApi {
|
|
38
|
+
#headersToSkip;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
42
|
+
* their own fetch methods into the SDK
|
|
43
|
+
*/
|
|
44
|
+
static get ApiClient() {
|
|
45
|
+
return _ApiClient.ApiClient;
|
|
46
|
+
}
|
|
47
|
+
|
|
51
48
|
/**
|
|
52
49
|
* Constructs a new LicensesApi.
|
|
53
50
|
* @alias module:api/LicensesApi
|
|
@@ -55,15 +52,13 @@ var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
|
|
|
55
52
|
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
56
53
|
* default to {@link module:ApiClient#instance} if unspecified.
|
|
57
54
|
*/
|
|
58
|
-
|
|
59
|
-
_classCallCheck(this, LicensesApi);
|
|
60
|
-
_classPrivateFieldInitSpec(this, _headersToSkip, void 0);
|
|
55
|
+
constructor(apiClient) {
|
|
61
56
|
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
this.#headersToSkip = new Set();
|
|
58
|
+
this.#headersToSkip.add('authorization');
|
|
59
|
+
this.#headersToSkip.add('cookie');
|
|
60
|
+
this.#headersToSkip.add('host');
|
|
61
|
+
this.#headersToSkip.add('user-agent');
|
|
67
62
|
}
|
|
68
63
|
|
|
69
64
|
/**
|
|
@@ -73,408 +68,433 @@ var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
|
|
|
73
68
|
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
74
69
|
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
75
70
|
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
76
|
-
* For example, filter
|
|
71
|
+
* For example, filter **$filter=name eq 'karbon-ntnx-1.0'** would filter the result on cluster name 'karbon-ntnx1.0', filter **$filter=startswith(name, 'C')** would filter on cluster name starting with 'C'.
|
|
77
72
|
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
|
|
78
73
|
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby.
|
|
79
74
|
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
80
75
|
* @param {Object} args Additional Arguments
|
|
81
76
|
* @return {Promise<ListAllowancesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListAllowancesApiResponse } and HTTP response
|
|
82
77
|
*/
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
var pathParams = {};
|
|
91
|
-
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
78
|
+
listAllowances(opts, ...args) {
|
|
79
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
80
|
+
opts = opts || {};
|
|
81
|
+
const postBody = null;
|
|
82
|
+
const pathParams = {};
|
|
83
|
+
const queryParams = {
|
|
84
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
92
85
|
'$page': opts['$page']
|
|
93
|
-
} : {}),
|
|
86
|
+
} : {}),
|
|
87
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
94
88
|
'$limit': opts['$limit']
|
|
95
|
-
} : {}),
|
|
89
|
+
} : {}),
|
|
90
|
+
...(opts.hasOwnProperty('$filter') ? {
|
|
96
91
|
'$filter': opts['$filter']
|
|
97
|
-
} : {}),
|
|
92
|
+
} : {}),
|
|
93
|
+
...(opts.hasOwnProperty('$orderby') ? {
|
|
98
94
|
'$orderby': opts['$orderby']
|
|
99
|
-
} : {}),
|
|
95
|
+
} : {}),
|
|
96
|
+
...(opts.hasOwnProperty('$expand') ? {
|
|
100
97
|
'$expand': opts['$expand']
|
|
101
|
-
} : {}),
|
|
98
|
+
} : {}),
|
|
99
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
102
100
|
'$select': opts['$select']
|
|
103
|
-
} : {})
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
101
|
+
} : {})
|
|
102
|
+
};
|
|
103
|
+
let headersToInclude = {};
|
|
104
|
+
Object.keys(argMap).forEach(header => {
|
|
105
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
106
|
+
headersToInclude[header] = argMap[header];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
const headerParams = {
|
|
110
|
+
...headersToInclude
|
|
111
|
+
};
|
|
112
|
+
const formParams = {};
|
|
113
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
114
|
+
const contentTypes = [];
|
|
115
|
+
const accepts = ['application/json'];
|
|
116
|
+
const returnType = _ListAllowancesApiResponse.default;
|
|
117
|
+
return this.apiClient.callApi('/api/licensing/v4.3/config/allowances', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
118
|
+
}
|
|
118
119
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
var pathParams = {};
|
|
141
|
-
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
120
|
+
/**
|
|
121
|
+
* List license compliances
|
|
122
|
+
* API to fetch list of license compliances across clusters.
|
|
123
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
124
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
125
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
126
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
127
|
+
* For example, filter **$filter=name eq 'karbon-ntnx-1.0'** would filter the result on cluster name 'karbon-ntnx1.0', filter **$filter=startswith(name, 'C')** would filter on cluster name starting with 'C'.
|
|
128
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
|
|
129
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby.
|
|
130
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
131
|
+
* @param {Object} args Additional Arguments
|
|
132
|
+
* @return {Promise<ListCompliancesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListCompliancesApiResponse } and HTTP response
|
|
133
|
+
*/
|
|
134
|
+
listCompliances(opts, ...args) {
|
|
135
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
136
|
+
opts = opts || {};
|
|
137
|
+
const postBody = null;
|
|
138
|
+
const pathParams = {};
|
|
139
|
+
const queryParams = {
|
|
140
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
142
141
|
'$page': opts['$page']
|
|
143
|
-
} : {}),
|
|
142
|
+
} : {}),
|
|
143
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
144
144
|
'$limit': opts['$limit']
|
|
145
|
-
} : {}),
|
|
145
|
+
} : {}),
|
|
146
|
+
...(opts.hasOwnProperty('$filter') ? {
|
|
146
147
|
'$filter': opts['$filter']
|
|
147
|
-
} : {}),
|
|
148
|
+
} : {}),
|
|
149
|
+
...(opts.hasOwnProperty('$orderby') ? {
|
|
148
150
|
'$orderby': opts['$orderby']
|
|
149
|
-
} : {}),
|
|
151
|
+
} : {}),
|
|
152
|
+
...(opts.hasOwnProperty('$expand') ? {
|
|
150
153
|
'$expand': opts['$expand']
|
|
151
|
-
} : {}),
|
|
154
|
+
} : {}),
|
|
155
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
152
156
|
'$select': opts['$select']
|
|
153
|
-
} : {})
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
157
|
+
} : {})
|
|
158
|
+
};
|
|
159
|
+
let headersToInclude = {};
|
|
160
|
+
Object.keys(argMap).forEach(header => {
|
|
161
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
162
|
+
headersToInclude[header] = argMap[header];
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
const headerParams = {
|
|
166
|
+
...headersToInclude
|
|
167
|
+
};
|
|
168
|
+
const formParams = {};
|
|
169
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
170
|
+
const contentTypes = [];
|
|
171
|
+
const accepts = ['application/json'];
|
|
172
|
+
const returnType = _ListCompliancesApiResponse.default;
|
|
173
|
+
return this.apiClient.callApi('/api/licensing/v4.3/config/compliances', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
174
|
+
}
|
|
168
175
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
var pathParams = {};
|
|
191
|
-
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
176
|
+
/**
|
|
177
|
+
* List license entitlements
|
|
178
|
+
* API to fetch entitlements list.
|
|
179
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
180
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
181
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
182
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
183
|
+
* For example, filter **$filter=name eq 'karbon-ntnx-1.0'** would filter the result on cluster name 'karbon-ntnx1.0', filter **$filter=startswith(name, 'C')** would filter on cluster name starting with 'C'.
|
|
184
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
|
|
185
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby.
|
|
186
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
187
|
+
* @param {Object} args Additional Arguments
|
|
188
|
+
* @return {Promise<ListEntitlementsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListEntitlementsApiResponse } and HTTP response
|
|
189
|
+
*/
|
|
190
|
+
listEntitlements(opts, ...args) {
|
|
191
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
192
|
+
opts = opts || {};
|
|
193
|
+
const postBody = null;
|
|
194
|
+
const pathParams = {};
|
|
195
|
+
const queryParams = {
|
|
196
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
192
197
|
'$page': opts['$page']
|
|
193
|
-
} : {}),
|
|
198
|
+
} : {}),
|
|
199
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
194
200
|
'$limit': opts['$limit']
|
|
195
|
-
} : {}),
|
|
201
|
+
} : {}),
|
|
202
|
+
...(opts.hasOwnProperty('$filter') ? {
|
|
196
203
|
'$filter': opts['$filter']
|
|
197
|
-
} : {}),
|
|
204
|
+
} : {}),
|
|
205
|
+
...(opts.hasOwnProperty('$orderby') ? {
|
|
198
206
|
'$orderby': opts['$orderby']
|
|
199
|
-
} : {}),
|
|
207
|
+
} : {}),
|
|
208
|
+
...(opts.hasOwnProperty('$expand') ? {
|
|
200
209
|
'$expand': opts['$expand']
|
|
201
|
-
} : {}),
|
|
210
|
+
} : {}),
|
|
211
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
202
212
|
'$select': opts['$select']
|
|
203
|
-
} : {})
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
213
|
+
} : {})
|
|
214
|
+
};
|
|
215
|
+
let headersToInclude = {};
|
|
216
|
+
Object.keys(argMap).forEach(header => {
|
|
217
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
218
|
+
headersToInclude[header] = argMap[header];
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
const headerParams = {
|
|
222
|
+
...headersToInclude
|
|
223
|
+
};
|
|
224
|
+
const formParams = {};
|
|
225
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
226
|
+
const contentTypes = [];
|
|
227
|
+
const accepts = ['application/json'];
|
|
228
|
+
const returnType = _ListEntitlementsApiResponse.default;
|
|
229
|
+
return this.apiClient.callApi('/api/licensing/v4.3/config/entitlements', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
230
|
+
}
|
|
218
231
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
var pathParams = {};
|
|
240
|
-
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
232
|
+
/**
|
|
233
|
+
* List license features
|
|
234
|
+
* API to fetch features list.
|
|
235
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
236
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
237
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
238
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
239
|
+
* For example, filter **$filter=name eq 'karbon-ntnx-1.0'** would filter the result on cluster name 'karbon-ntnx1.0', filter **$filter=startswith(name, 'C')** would filter on cluster name starting with 'C'.
|
|
240
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
|
|
241
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
242
|
+
* @param {Object} args Additional Arguments
|
|
243
|
+
* @return {Promise<ListFeaturesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListFeaturesApiResponse } and HTTP response
|
|
244
|
+
*/
|
|
245
|
+
listFeatures(opts, ...args) {
|
|
246
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
247
|
+
opts = opts || {};
|
|
248
|
+
const postBody = null;
|
|
249
|
+
const pathParams = {};
|
|
250
|
+
const queryParams = {
|
|
251
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
241
252
|
'$page': opts['$page']
|
|
242
|
-
} : {}),
|
|
253
|
+
} : {}),
|
|
254
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
243
255
|
'$limit': opts['$limit']
|
|
244
|
-
} : {}),
|
|
256
|
+
} : {}),
|
|
257
|
+
...(opts.hasOwnProperty('$filter') ? {
|
|
245
258
|
'$filter': opts['$filter']
|
|
246
|
-
} : {}),
|
|
259
|
+
} : {}),
|
|
260
|
+
...(opts.hasOwnProperty('$orderby') ? {
|
|
247
261
|
'$orderby': opts['$orderby']
|
|
248
|
-
} : {}),
|
|
262
|
+
} : {}),
|
|
263
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
249
264
|
'$select': opts['$select']
|
|
250
|
-
} : {})
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
+
} : {})
|
|
266
|
+
};
|
|
267
|
+
let headersToInclude = {};
|
|
268
|
+
Object.keys(argMap).forEach(header => {
|
|
269
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
270
|
+
headersToInclude[header] = argMap[header];
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
const headerParams = {
|
|
274
|
+
...headersToInclude
|
|
275
|
+
};
|
|
276
|
+
const formParams = {};
|
|
277
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
278
|
+
const contentTypes = [];
|
|
279
|
+
const accepts = ['application/json'];
|
|
280
|
+
const returnType = _ListFeaturesApiResponse.default;
|
|
281
|
+
return this.apiClient.callApi('/api/licensing/v4.3/config/features', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
282
|
+
}
|
|
265
283
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
var pathParams = {};
|
|
288
|
-
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
284
|
+
/**
|
|
285
|
+
* List applied license inventory
|
|
286
|
+
* API to fetch a list of licenses along with consumption details using expansion.
|
|
287
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
288
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
289
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
290
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
291
|
+
* For example, filter **$filter=name eq 'karbon-ntnx-1.0'** would filter the result on cluster name 'karbon-ntnx1.0', filter **$filter=startswith(name, 'C')** would filter on cluster name starting with 'C'.
|
|
292
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
|
|
293
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby.
|
|
294
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
295
|
+
* @param {Object} args Additional Arguments
|
|
296
|
+
* @return {Promise<ListLicensesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListLicensesApiResponse } and HTTP response
|
|
297
|
+
*/
|
|
298
|
+
listLicenses(opts, ...args) {
|
|
299
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
300
|
+
opts = opts || {};
|
|
301
|
+
const postBody = null;
|
|
302
|
+
const pathParams = {};
|
|
303
|
+
const queryParams = {
|
|
304
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
289
305
|
'$page': opts['$page']
|
|
290
|
-
} : {}),
|
|
306
|
+
} : {}),
|
|
307
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
291
308
|
'$limit': opts['$limit']
|
|
292
|
-
} : {}),
|
|
309
|
+
} : {}),
|
|
310
|
+
...(opts.hasOwnProperty('$filter') ? {
|
|
293
311
|
'$filter': opts['$filter']
|
|
294
|
-
} : {}),
|
|
312
|
+
} : {}),
|
|
313
|
+
...(opts.hasOwnProperty('$orderby') ? {
|
|
295
314
|
'$orderby': opts['$orderby']
|
|
296
|
-
} : {}),
|
|
315
|
+
} : {}),
|
|
316
|
+
...(opts.hasOwnProperty('$expand') ? {
|
|
297
317
|
'$expand': opts['$expand']
|
|
298
|
-
} : {}),
|
|
318
|
+
} : {}),
|
|
319
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
299
320
|
'$select': opts['$select']
|
|
300
|
-
} : {})
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
321
|
+
} : {})
|
|
322
|
+
};
|
|
323
|
+
let headersToInclude = {};
|
|
324
|
+
Object.keys(argMap).forEach(header => {
|
|
325
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
326
|
+
headersToInclude[header] = argMap[header];
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
const headerParams = {
|
|
330
|
+
...headersToInclude
|
|
331
|
+
};
|
|
332
|
+
const formParams = {};
|
|
333
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
334
|
+
const contentTypes = [];
|
|
335
|
+
const accepts = ['application/json'];
|
|
336
|
+
const returnType = _ListLicensesApiResponse.default;
|
|
337
|
+
return this.apiClient.callApi('/api/licensing/v4.3/config/licenses', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
338
|
+
}
|
|
315
339
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
var pathParams = {};
|
|
334
|
-
var queryParams = _objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
340
|
+
/**
|
|
341
|
+
* List cluster and license recommendations
|
|
342
|
+
* Lists all the available licensing recommendations from the license portal.
|
|
343
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
344
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
345
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
346
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
347
|
+
* @param {Object} args Additional Arguments
|
|
348
|
+
* @return {Promise<ListRecommendationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListRecommendationsApiResponse } and HTTP response
|
|
349
|
+
*/
|
|
350
|
+
listRecommendations(opts, ...args) {
|
|
351
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
352
|
+
opts = opts || {};
|
|
353
|
+
const postBody = null;
|
|
354
|
+
const pathParams = {};
|
|
355
|
+
const queryParams = {
|
|
356
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
335
357
|
'$page': opts['$page']
|
|
336
|
-
} : {}),
|
|
358
|
+
} : {}),
|
|
359
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
337
360
|
'$limit': opts['$limit']
|
|
338
|
-
} : {}),
|
|
361
|
+
} : {}),
|
|
362
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
339
363
|
'$select': opts['$select']
|
|
340
|
-
} : {})
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
364
|
+
} : {})
|
|
365
|
+
};
|
|
366
|
+
let headersToInclude = {};
|
|
367
|
+
Object.keys(argMap).forEach(header => {
|
|
368
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
369
|
+
headersToInclude[header] = argMap[header];
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
const headerParams = {
|
|
373
|
+
...headersToInclude
|
|
374
|
+
};
|
|
375
|
+
const formParams = {};
|
|
376
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
377
|
+
const contentTypes = [];
|
|
378
|
+
const accepts = ['application/json'];
|
|
379
|
+
const returnType = _ListRecommendationsApiResponse.default;
|
|
380
|
+
return this.apiClient.callApi('/api/licensing/v4.3/config/recommendations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
381
|
+
}
|
|
355
382
|
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
var pathParams = {};
|
|
373
|
-
var queryParams = _objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
383
|
+
/**
|
|
384
|
+
* List license configurations
|
|
385
|
+
* API to fetch license settings list.
|
|
386
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
387
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
388
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
389
|
+
* @param {Object} args Additional Arguments
|
|
390
|
+
* @return {Promise<ListSettingsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListSettingsApiResponse } and HTTP response
|
|
391
|
+
*/
|
|
392
|
+
listSettings(opts, ...args) {
|
|
393
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
394
|
+
opts = opts || {};
|
|
395
|
+
const postBody = null;
|
|
396
|
+
const pathParams = {};
|
|
397
|
+
const queryParams = {
|
|
398
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
374
399
|
'$page': opts['$page']
|
|
375
|
-
} : {}),
|
|
400
|
+
} : {}),
|
|
401
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
376
402
|
'$limit': opts['$limit']
|
|
377
|
-
} : {})
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
403
|
+
} : {})
|
|
404
|
+
};
|
|
405
|
+
let headersToInclude = {};
|
|
406
|
+
Object.keys(argMap).forEach(header => {
|
|
407
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
408
|
+
headersToInclude[header] = argMap[header];
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
const headerParams = {
|
|
412
|
+
...headersToInclude
|
|
413
|
+
};
|
|
414
|
+
const formParams = {};
|
|
415
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
416
|
+
const contentTypes = [];
|
|
417
|
+
const accepts = ['application/json'];
|
|
418
|
+
const returnType = _ListSettingsApiResponse.default;
|
|
419
|
+
return this.apiClient.callApi('/api/licensing/v4.3/config/settings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
420
|
+
}
|
|
392
421
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
var pathParams = {};
|
|
410
|
-
var queryParams = _objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
422
|
+
/**
|
|
423
|
+
* List license violations
|
|
424
|
+
* API to fetch license violations list.
|
|
425
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
426
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
427
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
428
|
+
* @param {Object} args Additional Arguments
|
|
429
|
+
* @return {Promise<ListViolationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListViolationsApiResponse } and HTTP response
|
|
430
|
+
*/
|
|
431
|
+
listViolations(opts, ...args) {
|
|
432
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
433
|
+
opts = opts || {};
|
|
434
|
+
const postBody = null;
|
|
435
|
+
const pathParams = {};
|
|
436
|
+
const queryParams = {
|
|
437
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
411
438
|
'$page': opts['$page']
|
|
412
|
-
} : {}),
|
|
439
|
+
} : {}),
|
|
440
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
413
441
|
'$limit': opts['$limit']
|
|
414
|
-
} : {})
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
});
|
|
421
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
422
|
-
var formParams = {};
|
|
423
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
424
|
-
var contentTypes = [];
|
|
425
|
-
var accepts = ['application/json'];
|
|
426
|
-
var returnType = _ListViolationsApiResponse["default"];
|
|
427
|
-
return this.apiClient.callApi('/api/licensing/v4.2/config/violations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* Seamless licensing action
|
|
432
|
-
* API for seamless licensing actions like post the cluster summary file, apply license file, and others.
|
|
433
|
-
* @param { Partial<LicenseStateSyncSpec> } body specification
|
|
434
|
-
* @param {Object} args Additional Arguments
|
|
435
|
-
* @return {Promise<SyncLicenseStateApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link SyncLicenseStateApiResponse } and HTTP response
|
|
436
|
-
*/
|
|
437
|
-
}, {
|
|
438
|
-
key: "syncLicenseState",
|
|
439
|
-
value: function syncLicenseState(body) {
|
|
440
|
-
var _this9 = this;
|
|
441
|
-
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
442
|
-
var postBody = null;
|
|
443
|
-
if (body instanceof _LicenseStateSyncSpec["default"] && typeof body.toJson === 'function') {
|
|
444
|
-
postBody = body.toJson();
|
|
445
|
-
} else {
|
|
446
|
-
postBody = body;
|
|
442
|
+
} : {})
|
|
443
|
+
};
|
|
444
|
+
let headersToInclude = {};
|
|
445
|
+
Object.keys(argMap).forEach(header => {
|
|
446
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
447
|
+
headersToInclude[header] = argMap[header];
|
|
447
448
|
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
449
|
+
});
|
|
450
|
+
const headerParams = {
|
|
451
|
+
...headersToInclude
|
|
452
|
+
};
|
|
453
|
+
const formParams = {};
|
|
454
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
455
|
+
const contentTypes = [];
|
|
456
|
+
const accepts = ['application/json'];
|
|
457
|
+
const returnType = _ListViolationsApiResponse.default;
|
|
458
|
+
return this.apiClient.callApi('/api/licensing/v4.3/config/violations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Seamless licensing action
|
|
463
|
+
* API for seamless licensing actions like post the cluster summary file, apply license file, and others.
|
|
464
|
+
* @param { Partial<LicenseStateSyncSpec> } body specification
|
|
465
|
+
* @param {Object} args Additional Arguments
|
|
466
|
+
* @return {Promise<SyncLicenseStateApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link SyncLicenseStateApiResponse } and HTTP response
|
|
467
|
+
*/
|
|
468
|
+
syncLicenseState(body, ...args) {
|
|
469
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
470
|
+
let postBody = null;
|
|
471
|
+
if (body instanceof _LicenseStateSyncSpec.default && typeof body.toJson === 'function') {
|
|
472
|
+
postBody = body.toJson();
|
|
473
|
+
} else {
|
|
474
|
+
postBody = body;
|
|
468
475
|
}
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
474
|
-
* their own fetch methods into the SDK
|
|
475
|
-
*/
|
|
476
|
-
function get() {
|
|
477
|
-
return _ApiClient.ApiClient;
|
|
476
|
+
// verify the required parameter 'body' is set
|
|
477
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
478
|
+
throw new Error("Invalid body when calling syncLicenseState");
|
|
478
479
|
}
|
|
479
|
-
|
|
480
|
-
}
|
|
480
|
+
const pathParams = {};
|
|
481
|
+
const queryParams = {};
|
|
482
|
+
let headersToInclude = {};
|
|
483
|
+
Object.keys(argMap).forEach(header => {
|
|
484
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
485
|
+
headersToInclude[header] = argMap[header];
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
const headerParams = {
|
|
489
|
+
...headersToInclude
|
|
490
|
+
};
|
|
491
|
+
const formParams = {};
|
|
492
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
493
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
494
|
+
const contentTypes = ['application/json'];
|
|
495
|
+
const accepts = ['application/json'];
|
|
496
|
+
const returnType = _SyncLicenseStateApiResponse.default;
|
|
497
|
+
return this.apiClient.callApi('/api/licensing/v4.3/config/$actions/sync-license-state', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
exports.LicensesApi = LicensesApi;
|