@nutanix-scratch/licensing-js-client 4.0.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +49 -0
- package/README.md +197 -0
- package/dist/Ntnx-Licensing-js-client-prod.js +1 -0
- package/dist/Ntnx-Licensing-js-client.js +1257 -0
- package/dist/es/ApiClient.d.ts +159 -0
- package/dist/es/ApiClient.js +1211 -0
- package/dist/es/Paginable.d.ts +95 -0
- package/dist/es/Paginable.js +287 -0
- package/dist/es/apis/enduserlicenseagreements-endpoints.d.ts +51 -0
- package/dist/es/apis/enduserlicenseagreements-endpoints.js +183 -0
- package/dist/es/apis/licenses-endpoints.d.ts +292 -0
- package/dist/es/apis/licenses-endpoints.js +666 -0
- package/dist/es/index.d.ts +160 -0
- package/dist/es/index.js +636 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/es/models/common/v1/config/Flag.js +275 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +62 -0
- package/dist/es/models/common/v1/config/KVPair.js +332 -0
- package/dist/es/models/common/v1/config/Message.d.ts +84 -0
- package/dist/es/models/common/v1/config/Message.js +354 -0
- package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/es/models/common/v1/config/MessageSeverity.js +91 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +50 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.js +243 -0
- package/dist/es/models/common/v1/response/ApiLink.d.ts +62 -0
- package/dist/es/models/common/v1/response/ApiLink.js +280 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +438 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
- package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.js +311 -0
- package/dist/es/models/licensing/v4/agreements/Eula.d.ts +95 -0
- package/dist/es/models/licensing/v4/agreements/Eula.js +404 -0
- package/dist/es/models/licensing/v4/agreements/EulaUser.d.ts +103 -0
- package/dist/es/models/licensing/v4/agreements/EulaUser.js +409 -0
- package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.js +311 -0
- package/dist/es/models/licensing/v4/agreements/UpdateEulaApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/agreements/UpdateEulaApiResponse.js +311 -0
- package/dist/es/models/licensing/v4/config/AllowanceDetail.d.ts +82 -0
- package/dist/es/models/licensing/v4/config/AllowanceDetail.js +358 -0
- package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.d.ts +9 -0
- package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.js +131 -0
- package/dist/es/models/licensing/v4/config/BaseClusterInfo.d.ts +32 -0
- package/dist/es/models/licensing/v4/config/BaseClusterInfo.js +223 -0
- package/dist/es/models/licensing/v4/config/BaseLicenseInfo.d.ts +74 -0
- package/dist/es/models/licensing/v4/config/BaseLicenseInfo.js +374 -0
- package/dist/es/models/licensing/v4/config/CapacityViolation.d.ts +80 -0
- package/dist/es/models/licensing/v4/config/CapacityViolation.js +350 -0
- package/dist/es/models/licensing/v4/config/ClusterAllowance.d.ts +55 -0
- package/dist/es/models/licensing/v4/config/ClusterAllowance.js +319 -0
- package/dist/es/models/licensing/v4/config/ClusterAllowanceProjection.d.ts +34 -0
- package/dist/es/models/licensing/v4/config/ClusterAllowanceProjection.js +241 -0
- package/dist/es/models/licensing/v4/config/ClusterEntitlement.d.ts +79 -0
- package/dist/es/models/licensing/v4/config/ClusterEntitlement.js +398 -0
- package/dist/es/models/licensing/v4/config/ClusterEntitlementProjection.d.ts +36 -0
- package/dist/es/models/licensing/v4/config/ClusterEntitlementProjection.js +249 -0
- package/dist/es/models/licensing/v4/config/ClusterTypeEnum.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ClusterTypeEnum.js +91 -0
- package/dist/es/models/licensing/v4/config/ClusterViolation.d.ts +57 -0
- package/dist/es/models/licensing/v4/config/ClusterViolation.js +346 -0
- package/dist/es/models/licensing/v4/config/Compliance.d.ts +55 -0
- package/dist/es/models/licensing/v4/config/Compliance.js +319 -0
- package/dist/es/models/licensing/v4/config/ComplianceProjection.d.ts +34 -0
- package/dist/es/models/licensing/v4/config/ComplianceProjection.js +241 -0
- package/dist/es/models/licensing/v4/config/Consumption.d.ts +44 -0
- package/dist/es/models/licensing/v4/config/Consumption.js +266 -0
- package/dist/es/models/licensing/v4/config/ConsumptionProjection.d.ts +9 -0
- package/dist/es/models/licensing/v4/config/ConsumptionProjection.js +129 -0
- package/dist/es/models/licensing/v4/config/EnforcementActionsEnum.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/EnforcementActionsEnum.js +139 -0
- package/dist/es/models/licensing/v4/config/EnforcementLevelEnum.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/EnforcementLevelEnum.js +85 -0
- package/dist/es/models/licensing/v4/config/EnforcementPolicyEnum.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/EnforcementPolicyEnum.js +85 -0
- package/dist/es/models/licensing/v4/config/EntitlementDetail.d.ts +124 -0
- package/dist/es/models/licensing/v4/config/EntitlementDetail.js +501 -0
- package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.d.ts +9 -0
- package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.js +134 -0
- package/dist/es/models/licensing/v4/config/ExpiredLicense.d.ts +59 -0
- package/dist/es/models/licensing/v4/config/ExpiredLicense.js +324 -0
- package/dist/es/models/licensing/v4/config/Feature.d.ts +94 -0
- package/dist/es/models/licensing/v4/config/Feature.js +449 -0
- package/dist/es/models/licensing/v4/config/FeatureDetail.d.ts +74 -0
- package/dist/es/models/licensing/v4/config/FeatureDetail.js +327 -0
- package/dist/es/models/licensing/v4/config/FeatureProjection.d.ts +9 -0
- package/dist/es/models/licensing/v4/config/FeatureProjection.js +134 -0
- package/dist/es/models/licensing/v4/config/FeatureViolation.d.ts +32 -0
- package/dist/es/models/licensing/v4/config/FeatureViolation.js +229 -0
- package/dist/es/models/licensing/v4/config/GetClusterAllowanceApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/config/GetClusterAllowanceApiResponse.js +311 -0
- package/dist/es/models/licensing/v4/config/GetClusterEntitlementApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/config/GetClusterEntitlementApiResponse.js +311 -0
- package/dist/es/models/licensing/v4/config/GetClusterViolationApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/config/GetClusterViolationApiResponse.js +311 -0
- package/dist/es/models/licensing/v4/config/GetComplianceApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/config/GetComplianceApiResponse.js +311 -0
- package/dist/es/models/licensing/v4/config/GetLicenseApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/config/GetLicenseApiResponse.js +311 -0
- package/dist/es/models/licensing/v4/config/GetSettingApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/config/GetSettingApiResponse.js +311 -0
- package/dist/es/models/licensing/v4/config/License.d.ts +69 -0
- package/dist/es/models/licensing/v4/config/License.js +376 -0
- package/dist/es/models/licensing/v4/config/LicenseCategoryEnum.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/LicenseCategoryEnum.js +271 -0
- package/dist/es/models/licensing/v4/config/LicenseProjection.d.ts +39 -0
- package/dist/es/models/licensing/v4/config/LicenseProjection.js +264 -0
- package/dist/es/models/licensing/v4/config/LicenseTypeEnum.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/LicenseTypeEnum.js +235 -0
- package/dist/es/models/licensing/v4/config/ListClusterAllowancesApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/config/ListClusterAllowancesApiResponse.js +338 -0
- package/dist/es/models/licensing/v4/config/ListClusterEntitlementsApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/config/ListClusterEntitlementsApiResponse.js +338 -0
- package/dist/es/models/licensing/v4/config/ListClusterViolationsApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/config/ListClusterViolationsApiResponse.js +333 -0
- package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.js +338 -0
- package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.js +338 -0
- package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.js +338 -0
- package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.js +333 -0
- package/dist/es/models/licensing/v4/config/LogicalVersion.d.ts +62 -0
- package/dist/es/models/licensing/v4/config/LogicalVersion.js +280 -0
- package/dist/es/models/licensing/v4/config/MeterEnum.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/MeterEnum.js +121 -0
- package/dist/es/models/licensing/v4/config/NutanixClusterConfig.d.ts +98 -0
- package/dist/es/models/licensing/v4/config/NutanixClusterConfig.js +406 -0
- package/dist/es/models/licensing/v4/config/PostPaidCategoryEnum.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/PostPaidCategoryEnum.js +85 -0
- package/dist/es/models/licensing/v4/config/PostPaidConfig.d.ts +74 -0
- package/dist/es/models/licensing/v4/config/PostPaidConfig.js +324 -0
- package/dist/es/models/licensing/v4/config/ProductNameEnum.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ProductNameEnum.js +115 -0
- package/dist/es/models/licensing/v4/config/ResetScopeEnum.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ResetScopeEnum.js +85 -0
- package/dist/es/models/licensing/v4/config/ScopeEnum.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ScopeEnum.js +97 -0
- package/dist/es/models/licensing/v4/config/Service.d.ts +104 -0
- package/dist/es/models/licensing/v4/config/Service.js +444 -0
- package/dist/es/models/licensing/v4/config/ServiceProjection.d.ts +9 -0
- package/dist/es/models/licensing/v4/config/ServiceProjection.js +134 -0
- package/dist/es/models/licensing/v4/config/ServiceViolation.d.ts +60 -0
- package/dist/es/models/licensing/v4/config/ServiceViolation.js +278 -0
- package/dist/es/models/licensing/v4/config/ServiceViolationEnum.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ServiceViolationEnum.js +91 -0
- package/dist/es/models/licensing/v4/config/Setting.d.ts +133 -0
- package/dist/es/models/licensing/v4/config/Setting.js +568 -0
- package/dist/es/models/licensing/v4/config/StatusEnum.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/StatusEnum.js +85 -0
- package/dist/es/models/licensing/v4/config/SubCategoryEnum.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/SubCategoryEnum.js +85 -0
- package/dist/es/models/licensing/v4/config/TypeEnum.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/TypeEnum.js +85 -0
- package/dist/es/models/licensing/v4/error/AppMessage.d.ts +108 -0
- package/dist/es/models/licensing/v4/error/AppMessage.js +432 -0
- package/dist/es/models/licensing/v4/error/ErrorResponse.d.ts +48 -0
- package/dist/es/models/licensing/v4/error/ErrorResponse.js +299 -0
- package/dist/es/models/licensing/v4/error/SchemaValidationError.d.ts +98 -0
- package/dist/es/models/licensing/v4/error/SchemaValidationError.js +407 -0
- package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
- package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.js +318 -0
- package/dist/es/models/validation/ValidationError.d.ts +13 -0
- package/dist/es/models/validation/ValidationError.js +60 -0
- package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/es/models/validation/ValidationScopes.js +38 -0
- package/dist/es/utils/ValidationUtils.d.ts +13 -0
- package/dist/es/utils/ValidationUtils.js +85 -0
- package/dist/lib/ApiClient.d.ts +159 -0
- package/dist/lib/ApiClient.js +1211 -0
- package/dist/lib/Paginable.d.ts +95 -0
- package/dist/lib/Paginable.js +287 -0
- package/dist/lib/apis/enduserlicenseagreements-endpoints.d.ts +51 -0
- package/dist/lib/apis/enduserlicenseagreements-endpoints.js +183 -0
- package/dist/lib/apis/licenses-endpoints.d.ts +292 -0
- package/dist/lib/apis/licenses-endpoints.js +666 -0
- package/dist/lib/index.d.ts +160 -0
- package/dist/lib/index.js +636 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/lib/models/common/v1/config/Flag.js +275 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +62 -0
- package/dist/lib/models/common/v1/config/KVPair.js +332 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +84 -0
- package/dist/lib/models/common/v1/config/Message.js +354 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.js +91 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +50 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +243 -0
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +62 -0
- package/dist/lib/models/common/v1/response/ApiLink.js +280 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +438 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
- package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.js +311 -0
- package/dist/lib/models/licensing/v4/agreements/Eula.d.ts +95 -0
- package/dist/lib/models/licensing/v4/agreements/Eula.js +404 -0
- package/dist/lib/models/licensing/v4/agreements/EulaUser.d.ts +103 -0
- package/dist/lib/models/licensing/v4/agreements/EulaUser.js +409 -0
- package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.js +311 -0
- package/dist/lib/models/licensing/v4/agreements/UpdateEulaApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/agreements/UpdateEulaApiResponse.js +311 -0
- package/dist/lib/models/licensing/v4/config/AllowanceDetail.d.ts +82 -0
- package/dist/lib/models/licensing/v4/config/AllowanceDetail.js +358 -0
- package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.d.ts +9 -0
- package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.js +131 -0
- package/dist/lib/models/licensing/v4/config/BaseClusterInfo.d.ts +32 -0
- package/dist/lib/models/licensing/v4/config/BaseClusterInfo.js +223 -0
- package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.d.ts +74 -0
- package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.js +374 -0
- package/dist/lib/models/licensing/v4/config/CapacityViolation.d.ts +80 -0
- package/dist/lib/models/licensing/v4/config/CapacityViolation.js +350 -0
- package/dist/lib/models/licensing/v4/config/ClusterAllowance.d.ts +55 -0
- package/dist/lib/models/licensing/v4/config/ClusterAllowance.js +319 -0
- package/dist/lib/models/licensing/v4/config/ClusterAllowanceProjection.d.ts +34 -0
- package/dist/lib/models/licensing/v4/config/ClusterAllowanceProjection.js +241 -0
- package/dist/lib/models/licensing/v4/config/ClusterEntitlement.d.ts +79 -0
- package/dist/lib/models/licensing/v4/config/ClusterEntitlement.js +398 -0
- package/dist/lib/models/licensing/v4/config/ClusterEntitlementProjection.d.ts +36 -0
- package/dist/lib/models/licensing/v4/config/ClusterEntitlementProjection.js +249 -0
- package/dist/lib/models/licensing/v4/config/ClusterTypeEnum.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ClusterTypeEnum.js +91 -0
- package/dist/lib/models/licensing/v4/config/ClusterViolation.d.ts +57 -0
- package/dist/lib/models/licensing/v4/config/ClusterViolation.js +346 -0
- package/dist/lib/models/licensing/v4/config/Compliance.d.ts +55 -0
- package/dist/lib/models/licensing/v4/config/Compliance.js +319 -0
- package/dist/lib/models/licensing/v4/config/ComplianceProjection.d.ts +34 -0
- package/dist/lib/models/licensing/v4/config/ComplianceProjection.js +241 -0
- package/dist/lib/models/licensing/v4/config/Consumption.d.ts +44 -0
- package/dist/lib/models/licensing/v4/config/Consumption.js +266 -0
- package/dist/lib/models/licensing/v4/config/ConsumptionProjection.d.ts +9 -0
- package/dist/lib/models/licensing/v4/config/ConsumptionProjection.js +129 -0
- package/dist/lib/models/licensing/v4/config/EnforcementActionsEnum.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/EnforcementActionsEnum.js +139 -0
- package/dist/lib/models/licensing/v4/config/EnforcementLevelEnum.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/EnforcementLevelEnum.js +85 -0
- package/dist/lib/models/licensing/v4/config/EnforcementPolicyEnum.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/EnforcementPolicyEnum.js +85 -0
- package/dist/lib/models/licensing/v4/config/EntitlementDetail.d.ts +124 -0
- package/dist/lib/models/licensing/v4/config/EntitlementDetail.js +501 -0
- package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.d.ts +9 -0
- package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.js +134 -0
- package/dist/lib/models/licensing/v4/config/ExpiredLicense.d.ts +59 -0
- package/dist/lib/models/licensing/v4/config/ExpiredLicense.js +324 -0
- package/dist/lib/models/licensing/v4/config/Feature.d.ts +94 -0
- package/dist/lib/models/licensing/v4/config/Feature.js +449 -0
- package/dist/lib/models/licensing/v4/config/FeatureDetail.d.ts +74 -0
- package/dist/lib/models/licensing/v4/config/FeatureDetail.js +327 -0
- package/dist/lib/models/licensing/v4/config/FeatureProjection.d.ts +9 -0
- package/dist/lib/models/licensing/v4/config/FeatureProjection.js +134 -0
- package/dist/lib/models/licensing/v4/config/FeatureViolation.d.ts +32 -0
- package/dist/lib/models/licensing/v4/config/FeatureViolation.js +229 -0
- package/dist/lib/models/licensing/v4/config/GetClusterAllowanceApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/config/GetClusterAllowanceApiResponse.js +311 -0
- package/dist/lib/models/licensing/v4/config/GetClusterEntitlementApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/config/GetClusterEntitlementApiResponse.js +311 -0
- package/dist/lib/models/licensing/v4/config/GetClusterViolationApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/config/GetClusterViolationApiResponse.js +311 -0
- package/dist/lib/models/licensing/v4/config/GetComplianceApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/config/GetComplianceApiResponse.js +311 -0
- package/dist/lib/models/licensing/v4/config/GetLicenseApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/config/GetLicenseApiResponse.js +311 -0
- package/dist/lib/models/licensing/v4/config/GetSettingApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/config/GetSettingApiResponse.js +311 -0
- package/dist/lib/models/licensing/v4/config/License.d.ts +69 -0
- package/dist/lib/models/licensing/v4/config/License.js +376 -0
- package/dist/lib/models/licensing/v4/config/LicenseCategoryEnum.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/LicenseCategoryEnum.js +271 -0
- package/dist/lib/models/licensing/v4/config/LicenseProjection.d.ts +39 -0
- package/dist/lib/models/licensing/v4/config/LicenseProjection.js +264 -0
- package/dist/lib/models/licensing/v4/config/LicenseTypeEnum.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/LicenseTypeEnum.js +235 -0
- package/dist/lib/models/licensing/v4/config/ListClusterAllowancesApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/config/ListClusterAllowancesApiResponse.js +338 -0
- package/dist/lib/models/licensing/v4/config/ListClusterEntitlementsApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/config/ListClusterEntitlementsApiResponse.js +338 -0
- package/dist/lib/models/licensing/v4/config/ListClusterViolationsApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/config/ListClusterViolationsApiResponse.js +333 -0
- package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.js +338 -0
- package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.js +338 -0
- package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.js +338 -0
- package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.js +333 -0
- package/dist/lib/models/licensing/v4/config/LogicalVersion.d.ts +62 -0
- package/dist/lib/models/licensing/v4/config/LogicalVersion.js +280 -0
- package/dist/lib/models/licensing/v4/config/MeterEnum.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/MeterEnum.js +121 -0
- package/dist/lib/models/licensing/v4/config/NutanixClusterConfig.d.ts +98 -0
- package/dist/lib/models/licensing/v4/config/NutanixClusterConfig.js +406 -0
- package/dist/lib/models/licensing/v4/config/PostPaidCategoryEnum.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/PostPaidCategoryEnum.js +85 -0
- package/dist/lib/models/licensing/v4/config/PostPaidConfig.d.ts +74 -0
- package/dist/lib/models/licensing/v4/config/PostPaidConfig.js +324 -0
- package/dist/lib/models/licensing/v4/config/ProductNameEnum.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ProductNameEnum.js +115 -0
- package/dist/lib/models/licensing/v4/config/ResetScopeEnum.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ResetScopeEnum.js +85 -0
- package/dist/lib/models/licensing/v4/config/ScopeEnum.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ScopeEnum.js +97 -0
- package/dist/lib/models/licensing/v4/config/Service.d.ts +104 -0
- package/dist/lib/models/licensing/v4/config/Service.js +444 -0
- package/dist/lib/models/licensing/v4/config/ServiceProjection.d.ts +9 -0
- package/dist/lib/models/licensing/v4/config/ServiceProjection.js +134 -0
- package/dist/lib/models/licensing/v4/config/ServiceViolation.d.ts +60 -0
- package/dist/lib/models/licensing/v4/config/ServiceViolation.js +278 -0
- package/dist/lib/models/licensing/v4/config/ServiceViolationEnum.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ServiceViolationEnum.js +91 -0
- package/dist/lib/models/licensing/v4/config/Setting.d.ts +133 -0
- package/dist/lib/models/licensing/v4/config/Setting.js +568 -0
- package/dist/lib/models/licensing/v4/config/StatusEnum.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/StatusEnum.js +85 -0
- package/dist/lib/models/licensing/v4/config/SubCategoryEnum.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/SubCategoryEnum.js +85 -0
- package/dist/lib/models/licensing/v4/config/TypeEnum.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/TypeEnum.js +85 -0
- package/dist/lib/models/licensing/v4/error/AppMessage.d.ts +108 -0
- package/dist/lib/models/licensing/v4/error/AppMessage.js +432 -0
- package/dist/lib/models/licensing/v4/error/ErrorResponse.d.ts +48 -0
- package/dist/lib/models/licensing/v4/error/ErrorResponse.js +299 -0
- package/dist/lib/models/licensing/v4/error/SchemaValidationError.d.ts +98 -0
- package/dist/lib/models/licensing/v4/error/SchemaValidationError.js +407 -0
- package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
- package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.js +318 -0
- package/dist/lib/models/validation/ValidationError.d.ts +13 -0
- package/dist/lib/models/validation/ValidationError.js +60 -0
- package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/lib/models/validation/ValidationScopes.js +38 -0
- package/dist/lib/utils/ValidationUtils.d.ts +13 -0
- package/dist/lib/utils/ValidationUtils.js +85 -0
- package/package.json +53 -0
|
@@ -0,0 +1,666 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.LicensesApi = void 0;
|
|
8
|
+
var _ApiClient = require("../ApiClient");
|
|
9
|
+
var _ListClusterAllowancesApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListClusterAllowancesApiResponse"));
|
|
10
|
+
var _GetSettingApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/GetSettingApiResponse"));
|
|
11
|
+
var _ListClusterViolationsApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListClusterViolationsApiResponse"));
|
|
12
|
+
var _ListSettingsApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListSettingsApiResponse"));
|
|
13
|
+
var _ListCompliancesApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListCompliancesApiResponse"));
|
|
14
|
+
var _GetClusterEntitlementApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/GetClusterEntitlementApiResponse"));
|
|
15
|
+
var _ListFeaturesApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListFeaturesApiResponse"));
|
|
16
|
+
var _GetComplianceApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/GetComplianceApiResponse"));
|
|
17
|
+
var _ListClusterEntitlementsApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListClusterEntitlementsApiResponse"));
|
|
18
|
+
var _GetLicenseApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/GetLicenseApiResponse"));
|
|
19
|
+
var _ListLicensesApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListLicensesApiResponse"));
|
|
20
|
+
var _GetClusterAllowanceApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/GetClusterAllowanceApiResponse"));
|
|
21
|
+
var _GetClusterViolationApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/GetClusterViolationApiResponse"));
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
|
+
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; }
|
|
25
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
26
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
30
|
+
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); }
|
|
31
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
32
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
33
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
34
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
35
|
+
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"); } /*
|
|
36
|
+
* Nutanix Licensing Versioned APIs
|
|
37
|
+
*
|
|
38
|
+
* OpenAPI spec version: 4.0.1-alpha-1
|
|
39
|
+
*
|
|
40
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
41
|
+
*
|
|
42
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
43
|
+
*
|
|
44
|
+
* Do not edit the class manually.
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
/**
|
|
48
|
+
* Licenses service.
|
|
49
|
+
* @version 4.0.1-alpha-1
|
|
50
|
+
* @class LicensesApi
|
|
51
|
+
*/
|
|
52
|
+
var _headersToSkip = /*#__PURE__*/new WeakMap();
|
|
53
|
+
var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a new LicensesApi.
|
|
56
|
+
* @alias module:api/LicensesApi
|
|
57
|
+
* @class
|
|
58
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
59
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
60
|
+
*/
|
|
61
|
+
function LicensesApi(apiClient) {
|
|
62
|
+
_classCallCheck(this, LicensesApi);
|
|
63
|
+
_classPrivateFieldInitSpec(this, _headersToSkip, void 0);
|
|
64
|
+
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
65
|
+
_classPrivateFieldSet(_headersToSkip, this, new Set());
|
|
66
|
+
_classPrivateFieldGet(_headersToSkip, this).add('authorization');
|
|
67
|
+
_classPrivateFieldGet(_headersToSkip, this).add('cookie');
|
|
68
|
+
_classPrivateFieldGet(_headersToSkip, this).add('host');
|
|
69
|
+
_classPrivateFieldGet(_headersToSkip, this).add('user-agent');
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Get allowances for a cluster
|
|
74
|
+
* API to fetch allowances for a particular cluster.
|
|
75
|
+
* @param { String } extId Prism Central or Prism Element UUID.
|
|
76
|
+
* @param {Object} args Additional Arguments
|
|
77
|
+
* @return {Promise<GetClusterAllowanceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetClusterAllowanceApiResponse } and HTTP response
|
|
78
|
+
*/
|
|
79
|
+
return _createClass(LicensesApi, [{
|
|
80
|
+
key: "getClusterAllowanceByClusterId",
|
|
81
|
+
value: function getClusterAllowanceByClusterId(extId) {
|
|
82
|
+
var _this = this;
|
|
83
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
84
|
+
var postBody = null;
|
|
85
|
+
// verify the required parameter 'extId' is set
|
|
86
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
87
|
+
throw new Error("Missing the required parameter 'extId' when calling getClusterAllowanceByClusterId");
|
|
88
|
+
}
|
|
89
|
+
var pathParams = {
|
|
90
|
+
'extId': extId
|
|
91
|
+
};
|
|
92
|
+
var queryParams = {};
|
|
93
|
+
var headersToInclude = {};
|
|
94
|
+
Object.keys(argMap).forEach(function (header) {
|
|
95
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
|
|
96
|
+
headersToInclude[header] = argMap[header];
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
100
|
+
var formParams = {};
|
|
101
|
+
var authNames = ['basicAuthScheme'];
|
|
102
|
+
var contentTypes = [];
|
|
103
|
+
var accepts = ['application/json'];
|
|
104
|
+
var returnType = _GetClusterAllowanceApiResponse["default"];
|
|
105
|
+
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/clusters/{extId}/allowances', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* List license entitlements for a cluster
|
|
110
|
+
* API to fetch entitlements for a particular cluster.
|
|
111
|
+
* @param { String } extId Prism Central or Prism Element UUID.
|
|
112
|
+
* @param {Object} args Additional Arguments
|
|
113
|
+
* @return {Promise<GetClusterEntitlementApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetClusterEntitlementApiResponse } and HTTP response
|
|
114
|
+
*/
|
|
115
|
+
}, {
|
|
116
|
+
key: "getClusterEntitlementByClusterId",
|
|
117
|
+
value: function getClusterEntitlementByClusterId(extId) {
|
|
118
|
+
var _this2 = this;
|
|
119
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
120
|
+
var postBody = null;
|
|
121
|
+
// verify the required parameter 'extId' is set
|
|
122
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
123
|
+
throw new Error("Missing the required parameter 'extId' when calling getClusterEntitlementByClusterId");
|
|
124
|
+
}
|
|
125
|
+
var pathParams = {
|
|
126
|
+
'extId': extId
|
|
127
|
+
};
|
|
128
|
+
var queryParams = {};
|
|
129
|
+
var headersToInclude = {};
|
|
130
|
+
Object.keys(argMap).forEach(function (header) {
|
|
131
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
|
|
132
|
+
headersToInclude[header] = argMap[header];
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
136
|
+
var formParams = {};
|
|
137
|
+
var authNames = ['basicAuthScheme'];
|
|
138
|
+
var contentTypes = [];
|
|
139
|
+
var accepts = ['application/json'];
|
|
140
|
+
var returnType = _GetClusterEntitlementApiResponse["default"];
|
|
141
|
+
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/clusters/{extId}/entitlements', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Get license violation for a cluster
|
|
146
|
+
* API to fetch violations for a particular cluster.
|
|
147
|
+
* @param { String } extId Prism Central or Prism Element UUID.
|
|
148
|
+
* @param {Object} args Additional Arguments
|
|
149
|
+
* @return {Promise<GetClusterViolationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetClusterViolationApiResponse } and HTTP response
|
|
150
|
+
*/
|
|
151
|
+
}, {
|
|
152
|
+
key: "getClusterViolationByClusterId",
|
|
153
|
+
value: function getClusterViolationByClusterId(extId) {
|
|
154
|
+
var _this3 = this;
|
|
155
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
156
|
+
var postBody = null;
|
|
157
|
+
// verify the required parameter 'extId' is set
|
|
158
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
159
|
+
throw new Error("Missing the required parameter 'extId' when calling getClusterViolationByClusterId");
|
|
160
|
+
}
|
|
161
|
+
var pathParams = {
|
|
162
|
+
'extId': extId
|
|
163
|
+
};
|
|
164
|
+
var queryParams = {};
|
|
165
|
+
var headersToInclude = {};
|
|
166
|
+
Object.keys(argMap).forEach(function (header) {
|
|
167
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this3).has(header.toLowerCase())) {
|
|
168
|
+
headersToInclude[header] = argMap[header];
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
172
|
+
var formParams = {};
|
|
173
|
+
var authNames = ['basicAuthScheme'];
|
|
174
|
+
var contentTypes = [];
|
|
175
|
+
var accepts = ['application/json'];
|
|
176
|
+
var returnType = _GetClusterViolationApiResponse["default"];
|
|
177
|
+
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/clusters/{extId}/violations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* List license compliances for a cluster
|
|
182
|
+
* API to fetch compliances for a particular cluster.
|
|
183
|
+
* @param { String } extId Prism Central or Prism Element UUID.
|
|
184
|
+
* @param {Object} args Additional Arguments
|
|
185
|
+
* @return {Promise<GetComplianceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetComplianceApiResponse } and HTTP response
|
|
186
|
+
*/
|
|
187
|
+
}, {
|
|
188
|
+
key: "getComplianceByClusterId",
|
|
189
|
+
value: function getComplianceByClusterId(extId) {
|
|
190
|
+
var _this4 = this;
|
|
191
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
192
|
+
var postBody = null;
|
|
193
|
+
// verify the required parameter 'extId' is set
|
|
194
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
195
|
+
throw new Error("Missing the required parameter 'extId' when calling getComplianceByClusterId");
|
|
196
|
+
}
|
|
197
|
+
var pathParams = {
|
|
198
|
+
'extId': extId
|
|
199
|
+
};
|
|
200
|
+
var queryParams = {};
|
|
201
|
+
var headersToInclude = {};
|
|
202
|
+
Object.keys(argMap).forEach(function (header) {
|
|
203
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this4).has(header.toLowerCase())) {
|
|
204
|
+
headersToInclude[header] = argMap[header];
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
208
|
+
var formParams = {};
|
|
209
|
+
var authNames = ['basicAuthScheme'];
|
|
210
|
+
var contentTypes = [];
|
|
211
|
+
var accepts = ['application/json'];
|
|
212
|
+
var returnType = _GetComplianceApiResponse["default"];
|
|
213
|
+
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/clusters/{extId}/compliance', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Get applied license inventory by license ID
|
|
218
|
+
* API to fetch license details for a particular license identifier.
|
|
219
|
+
* @param { String } extId License ID to be fetched, Example: LIC-01485985
|
|
220
|
+
* @param {Object} args Additional Arguments
|
|
221
|
+
* @return {Promise<GetLicenseApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetLicenseApiResponse } and HTTP response
|
|
222
|
+
*/
|
|
223
|
+
}, {
|
|
224
|
+
key: "getLicenseById",
|
|
225
|
+
value: function getLicenseById(extId) {
|
|
226
|
+
var _this5 = this;
|
|
227
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
228
|
+
var postBody = null;
|
|
229
|
+
// verify the required parameter 'extId' is set
|
|
230
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
231
|
+
throw new Error("Missing the required parameter 'extId' when calling getLicenseById");
|
|
232
|
+
}
|
|
233
|
+
var pathParams = {
|
|
234
|
+
'extId': extId
|
|
235
|
+
};
|
|
236
|
+
var queryParams = {};
|
|
237
|
+
var headersToInclude = {};
|
|
238
|
+
Object.keys(argMap).forEach(function (header) {
|
|
239
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {
|
|
240
|
+
headersToInclude[header] = argMap[header];
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
244
|
+
var formParams = {};
|
|
245
|
+
var authNames = ['basicAuthScheme'];
|
|
246
|
+
var contentTypes = [];
|
|
247
|
+
var accepts = ['application/json'];
|
|
248
|
+
var returnType = _GetLicenseApiResponse["default"];
|
|
249
|
+
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/licenses/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Get license configurations for a cluster
|
|
254
|
+
* API to fetch setting details for a particular cluster.
|
|
255
|
+
* @param { String } extId Prism Central or Prism Element UUID.
|
|
256
|
+
* @param {Object} args Additional Arguments
|
|
257
|
+
* @return {Promise<GetSettingApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetSettingApiResponse } and HTTP response
|
|
258
|
+
*/
|
|
259
|
+
}, {
|
|
260
|
+
key: "getSettingByClusterId",
|
|
261
|
+
value: function getSettingByClusterId(extId) {
|
|
262
|
+
var _this6 = this;
|
|
263
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
264
|
+
var postBody = null;
|
|
265
|
+
// verify the required parameter 'extId' is set
|
|
266
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
267
|
+
throw new Error("Missing the required parameter 'extId' when calling getSettingByClusterId");
|
|
268
|
+
}
|
|
269
|
+
var pathParams = {
|
|
270
|
+
'extId': extId
|
|
271
|
+
};
|
|
272
|
+
var queryParams = {};
|
|
273
|
+
var headersToInclude = {};
|
|
274
|
+
Object.keys(argMap).forEach(function (header) {
|
|
275
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this6).has(header.toLowerCase())) {
|
|
276
|
+
headersToInclude[header] = argMap[header];
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
280
|
+
var formParams = {};
|
|
281
|
+
var authNames = ['basicAuthScheme'];
|
|
282
|
+
var contentTypes = [];
|
|
283
|
+
var accepts = ['application/json'];
|
|
284
|
+
var returnType = _GetSettingApiResponse["default"];
|
|
285
|
+
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/clusters/{extId}/settings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* List allowances
|
|
290
|
+
* API to fetch allowances.
|
|
291
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
292
|
+
* @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.
|
|
293
|
+
* @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.
|
|
294
|
+
* @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>
|
|
295
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
296
|
+
* The filter can be applied to the following fields:<br>
|
|
297
|
+
* - clusterExtId<br>
|
|
298
|
+
* - extId<br>
|
|
299
|
+
* - isDeleted<br>
|
|
300
|
+
* - name<br>
|
|
301
|
+
* - type
|
|
302
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.
|
|
303
|
+
- allowanceDetails
|
|
304
|
+
* @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.
|
|
305
|
+
- clusterExtId
|
|
306
|
+
- extId
|
|
307
|
+
- name
|
|
308
|
+
- type
|
|
309
|
+
* @param {Object} args Additional Arguments
|
|
310
|
+
* @return {Promise<ListClusterAllowancesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListClusterAllowancesApiResponse } and HTTP response
|
|
311
|
+
*/
|
|
312
|
+
}, {
|
|
313
|
+
key: "listAllowances",
|
|
314
|
+
value: function listAllowances(opts) {
|
|
315
|
+
var _this7 = this;
|
|
316
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
317
|
+
opts = opts || {};
|
|
318
|
+
var postBody = null;
|
|
319
|
+
var pathParams = {};
|
|
320
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
321
|
+
'$page': opts['$page']
|
|
322
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
323
|
+
'$limit': opts['$limit']
|
|
324
|
+
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
325
|
+
'$filter': opts['$filter']
|
|
326
|
+
} : {}), opts.hasOwnProperty('$expand') ? {
|
|
327
|
+
'$expand': opts['$expand']
|
|
328
|
+
} : {}), opts.hasOwnProperty('$select') ? {
|
|
329
|
+
'$select': opts['$select']
|
|
330
|
+
} : {});
|
|
331
|
+
var headersToInclude = {};
|
|
332
|
+
Object.keys(argMap).forEach(function (header) {
|
|
333
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this7).has(header.toLowerCase())) {
|
|
334
|
+
headersToInclude[header] = argMap[header];
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
338
|
+
var formParams = {};
|
|
339
|
+
var authNames = ['basicAuthScheme'];
|
|
340
|
+
var contentTypes = [];
|
|
341
|
+
var accepts = ['application/json'];
|
|
342
|
+
var returnType = _ListClusterAllowancesApiResponse["default"];
|
|
343
|
+
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/allowances', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* List license compliances
|
|
348
|
+
* API to fetch list of compliances across clusters.
|
|
349
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
350
|
+
* @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.
|
|
351
|
+
* @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.
|
|
352
|
+
* @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>
|
|
353
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
354
|
+
* The filter can be applied to the following fields:<br>
|
|
355
|
+
* - clusterExtId<br>
|
|
356
|
+
* - isDeleted<br>
|
|
357
|
+
* - type
|
|
358
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.
|
|
359
|
+
- compliance
|
|
360
|
+
* @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.
|
|
361
|
+
- clusterExtId
|
|
362
|
+
- type
|
|
363
|
+
* @param {Object} args Additional Arguments
|
|
364
|
+
* @return {Promise<ListCompliancesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListCompliancesApiResponse } and HTTP response
|
|
365
|
+
*/
|
|
366
|
+
}, {
|
|
367
|
+
key: "listCompliances",
|
|
368
|
+
value: function listCompliances(opts) {
|
|
369
|
+
var _this8 = this;
|
|
370
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
371
|
+
opts = opts || {};
|
|
372
|
+
var postBody = null;
|
|
373
|
+
var pathParams = {};
|
|
374
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
375
|
+
'$page': opts['$page']
|
|
376
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
377
|
+
'$limit': opts['$limit']
|
|
378
|
+
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
379
|
+
'$filter': opts['$filter']
|
|
380
|
+
} : {}), opts.hasOwnProperty('$expand') ? {
|
|
381
|
+
'$expand': opts['$expand']
|
|
382
|
+
} : {}), opts.hasOwnProperty('$select') ? {
|
|
383
|
+
'$select': opts['$select']
|
|
384
|
+
} : {});
|
|
385
|
+
var headersToInclude = {};
|
|
386
|
+
Object.keys(argMap).forEach(function (header) {
|
|
387
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this8).has(header.toLowerCase())) {
|
|
388
|
+
headersToInclude[header] = argMap[header];
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
392
|
+
var formParams = {};
|
|
393
|
+
var authNames = ['basicAuthScheme'];
|
|
394
|
+
var contentTypes = [];
|
|
395
|
+
var accepts = ['application/json'];
|
|
396
|
+
var returnType = _ListCompliancesApiResponse["default"];
|
|
397
|
+
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/compliances', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* List license entitlements
|
|
402
|
+
* API to fetch entitlements list.
|
|
403
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
404
|
+
* @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.
|
|
405
|
+
* @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.
|
|
406
|
+
* @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>
|
|
407
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
408
|
+
* The filter can be applied to the following fields:<br>
|
|
409
|
+
* - clusterExtId<br>
|
|
410
|
+
* - extId<br>
|
|
411
|
+
* - isDeleted<br>
|
|
412
|
+
* - name<br>
|
|
413
|
+
* - type
|
|
414
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.
|
|
415
|
+
- entitlementDetails
|
|
416
|
+
* @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.
|
|
417
|
+
- clusterExtId
|
|
418
|
+
- extId
|
|
419
|
+
- name
|
|
420
|
+
- type
|
|
421
|
+
* @param {Object} args Additional Arguments
|
|
422
|
+
* @return {Promise<ListClusterEntitlementsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListClusterEntitlementsApiResponse } and HTTP response
|
|
423
|
+
*/
|
|
424
|
+
}, {
|
|
425
|
+
key: "listEntitlements",
|
|
426
|
+
value: function listEntitlements(opts) {
|
|
427
|
+
var _this9 = this;
|
|
428
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
429
|
+
opts = opts || {};
|
|
430
|
+
var postBody = null;
|
|
431
|
+
var pathParams = {};
|
|
432
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
433
|
+
'$page': opts['$page']
|
|
434
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
435
|
+
'$limit': opts['$limit']
|
|
436
|
+
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
437
|
+
'$filter': opts['$filter']
|
|
438
|
+
} : {}), opts.hasOwnProperty('$expand') ? {
|
|
439
|
+
'$expand': opts['$expand']
|
|
440
|
+
} : {}), opts.hasOwnProperty('$select') ? {
|
|
441
|
+
'$select': opts['$select']
|
|
442
|
+
} : {});
|
|
443
|
+
var headersToInclude = {};
|
|
444
|
+
Object.keys(argMap).forEach(function (header) {
|
|
445
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this9).has(header.toLowerCase())) {
|
|
446
|
+
headersToInclude[header] = argMap[header];
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
450
|
+
var formParams = {};
|
|
451
|
+
var authNames = ['basicAuthScheme'];
|
|
452
|
+
var contentTypes = [];
|
|
453
|
+
var accepts = ['application/json'];
|
|
454
|
+
var returnType = _ListClusterEntitlementsApiResponse["default"];
|
|
455
|
+
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/entitlements', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* List license features
|
|
460
|
+
* API to fetch features list.
|
|
461
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
462
|
+
* @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.
|
|
463
|
+
* @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.
|
|
464
|
+
* @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>
|
|
465
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
466
|
+
* The filter can be applied to the following fields:<br>
|
|
467
|
+
* - licenseCategory<br>
|
|
468
|
+
* - licenseSubCategory<br>
|
|
469
|
+
* - licenseType<br>
|
|
470
|
+
* - name<br>
|
|
471
|
+
* - scope<br>
|
|
472
|
+
* - type<br>
|
|
473
|
+
* - value
|
|
474
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
475
|
+
* The orderby can be applied to the following fields:<br>
|
|
476
|
+
* - licenseCategory<br>
|
|
477
|
+
* - licenseType<br>
|
|
478
|
+
* - name
|
|
479
|
+
* @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.
|
|
480
|
+
- licenseCategory
|
|
481
|
+
- licenseSubCategory
|
|
482
|
+
- licenseType
|
|
483
|
+
- name
|
|
484
|
+
- type
|
|
485
|
+
- value
|
|
486
|
+
* @param {Object} args Additional Arguments
|
|
487
|
+
* @return {Promise<ListFeaturesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListFeaturesApiResponse } and HTTP response
|
|
488
|
+
*/
|
|
489
|
+
}, {
|
|
490
|
+
key: "listFeatures",
|
|
491
|
+
value: function listFeatures(opts) {
|
|
492
|
+
var _this10 = this;
|
|
493
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
494
|
+
opts = opts || {};
|
|
495
|
+
var postBody = null;
|
|
496
|
+
var pathParams = {};
|
|
497
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
498
|
+
'$page': opts['$page']
|
|
499
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
500
|
+
'$limit': opts['$limit']
|
|
501
|
+
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
502
|
+
'$filter': opts['$filter']
|
|
503
|
+
} : {}), opts.hasOwnProperty('$orderby') ? {
|
|
504
|
+
'$orderby': opts['$orderby']
|
|
505
|
+
} : {}), opts.hasOwnProperty('$select') ? {
|
|
506
|
+
'$select': opts['$select']
|
|
507
|
+
} : {});
|
|
508
|
+
var headersToInclude = {};
|
|
509
|
+
Object.keys(argMap).forEach(function (header) {
|
|
510
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this10).has(header.toLowerCase())) {
|
|
511
|
+
headersToInclude[header] = argMap[header];
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
515
|
+
var formParams = {};
|
|
516
|
+
var authNames = ['basicAuthScheme'];
|
|
517
|
+
var contentTypes = [];
|
|
518
|
+
var accepts = ['application/json'];
|
|
519
|
+
var returnType = _ListFeaturesApiResponse["default"];
|
|
520
|
+
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/features', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* List applied license inventory
|
|
525
|
+
* API to fetch license list along with consumption details using expansion.
|
|
526
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
527
|
+
* @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.
|
|
528
|
+
* @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.
|
|
529
|
+
* @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>
|
|
530
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
531
|
+
* The filter can be applied to the following fields:<br>
|
|
532
|
+
* - category<br>
|
|
533
|
+
* - extId<br>
|
|
534
|
+
* - isDeleted<br>
|
|
535
|
+
* - meter<br>
|
|
536
|
+
* - subCategory<br>
|
|
537
|
+
* - type
|
|
538
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.
|
|
539
|
+
- consumptionDetails
|
|
540
|
+
* @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.
|
|
541
|
+
- category
|
|
542
|
+
- meter
|
|
543
|
+
- subCategory
|
|
544
|
+
- type
|
|
545
|
+
* @param {Object} args Additional Arguments
|
|
546
|
+
* @return {Promise<ListLicensesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListLicensesApiResponse } and HTTP response
|
|
547
|
+
*/
|
|
548
|
+
}, {
|
|
549
|
+
key: "listLicenses",
|
|
550
|
+
value: function listLicenses(opts) {
|
|
551
|
+
var _this11 = this;
|
|
552
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
553
|
+
opts = opts || {};
|
|
554
|
+
var postBody = null;
|
|
555
|
+
var pathParams = {};
|
|
556
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
557
|
+
'$page': opts['$page']
|
|
558
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
559
|
+
'$limit': opts['$limit']
|
|
560
|
+
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
561
|
+
'$filter': opts['$filter']
|
|
562
|
+
} : {}), opts.hasOwnProperty('$expand') ? {
|
|
563
|
+
'$expand': opts['$expand']
|
|
564
|
+
} : {}), opts.hasOwnProperty('$select') ? {
|
|
565
|
+
'$select': opts['$select']
|
|
566
|
+
} : {});
|
|
567
|
+
var headersToInclude = {};
|
|
568
|
+
Object.keys(argMap).forEach(function (header) {
|
|
569
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this11).has(header.toLowerCase())) {
|
|
570
|
+
headersToInclude[header] = argMap[header];
|
|
571
|
+
}
|
|
572
|
+
});
|
|
573
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
574
|
+
var formParams = {};
|
|
575
|
+
var authNames = ['basicAuthScheme'];
|
|
576
|
+
var contentTypes = [];
|
|
577
|
+
var accepts = ['application/json'];
|
|
578
|
+
var returnType = _ListLicensesApiResponse["default"];
|
|
579
|
+
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/licenses', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* List license configurations
|
|
584
|
+
* API to fetch settings list.
|
|
585
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
586
|
+
* @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.
|
|
587
|
+
* @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.
|
|
588
|
+
* @param {Object} args Additional Arguments
|
|
589
|
+
* @return {Promise<ListSettingsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListSettingsApiResponse } and HTTP response
|
|
590
|
+
*/
|
|
591
|
+
}, {
|
|
592
|
+
key: "listSettings",
|
|
593
|
+
value: function listSettings(opts) {
|
|
594
|
+
var _this12 = this;
|
|
595
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
596
|
+
opts = opts || {};
|
|
597
|
+
var postBody = null;
|
|
598
|
+
var pathParams = {};
|
|
599
|
+
var queryParams = _objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
600
|
+
'$page': opts['$page']
|
|
601
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
602
|
+
'$limit': opts['$limit']
|
|
603
|
+
} : {});
|
|
604
|
+
var headersToInclude = {};
|
|
605
|
+
Object.keys(argMap).forEach(function (header) {
|
|
606
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this12).has(header.toLowerCase())) {
|
|
607
|
+
headersToInclude[header] = argMap[header];
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
611
|
+
var formParams = {};
|
|
612
|
+
var authNames = ['basicAuthScheme'];
|
|
613
|
+
var contentTypes = [];
|
|
614
|
+
var accepts = ['application/json'];
|
|
615
|
+
var returnType = _ListSettingsApiResponse["default"];
|
|
616
|
+
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/settings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* List license violations
|
|
621
|
+
* API to fetch violations list.
|
|
622
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
623
|
+
* @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.
|
|
624
|
+
* @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.
|
|
625
|
+
* @param {Object} args Additional Arguments
|
|
626
|
+
* @return {Promise<ListClusterViolationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListClusterViolationsApiResponse } and HTTP response
|
|
627
|
+
*/
|
|
628
|
+
}, {
|
|
629
|
+
key: "listViolations",
|
|
630
|
+
value: function listViolations(opts) {
|
|
631
|
+
var _this13 = this;
|
|
632
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
633
|
+
opts = opts || {};
|
|
634
|
+
var postBody = null;
|
|
635
|
+
var pathParams = {};
|
|
636
|
+
var queryParams = _objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
637
|
+
'$page': opts['$page']
|
|
638
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
639
|
+
'$limit': opts['$limit']
|
|
640
|
+
} : {});
|
|
641
|
+
var headersToInclude = {};
|
|
642
|
+
Object.keys(argMap).forEach(function (header) {
|
|
643
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this13).has(header.toLowerCase())) {
|
|
644
|
+
headersToInclude[header] = argMap[header];
|
|
645
|
+
}
|
|
646
|
+
});
|
|
647
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
648
|
+
var formParams = {};
|
|
649
|
+
var authNames = ['basicAuthScheme'];
|
|
650
|
+
var contentTypes = [];
|
|
651
|
+
var accepts = ['application/json'];
|
|
652
|
+
var returnType = _ListClusterViolationsApiResponse["default"];
|
|
653
|
+
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/violations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
654
|
+
}
|
|
655
|
+
}], [{
|
|
656
|
+
key: "ApiClient",
|
|
657
|
+
get:
|
|
658
|
+
/**
|
|
659
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
660
|
+
* their own fetch methods into the SDK
|
|
661
|
+
*/
|
|
662
|
+
function get() {
|
|
663
|
+
return _ApiClient.ApiClient;
|
|
664
|
+
}
|
|
665
|
+
}]);
|
|
666
|
+
}();
|