@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,376 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _BaseLicenseInfo2 = _interopRequireDefault(require("./BaseLicenseInfo"));
|
|
8
|
+
var _Consumption = _interopRequireDefault(require("./Consumption"));
|
|
9
|
+
var _LicenseCategoryEnum = _interopRequireDefault(require("./LicenseCategoryEnum"));
|
|
10
|
+
var _LicenseTypeEnum = _interopRequireDefault(require("./LicenseTypeEnum"));
|
|
11
|
+
var _MeterEnum = _interopRequireDefault(require("./MeterEnum"));
|
|
12
|
+
var _ScopeEnum = _interopRequireDefault(require("./ScopeEnum"));
|
|
13
|
+
var _SubCategoryEnum = _interopRequireDefault(require("./SubCategoryEnum"));
|
|
14
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
15
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
16
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
17
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
18
|
+
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); }
|
|
19
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
20
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
21
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
22
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
23
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
24
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
25
|
+
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; }
|
|
26
|
+
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; }
|
|
27
|
+
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; }
|
|
28
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
|
+
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); } }
|
|
30
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
31
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
32
|
+
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); }
|
|
33
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
34
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
35
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
36
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
37
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
38
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
39
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
40
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
41
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
42
|
+
* Nutanix Licensing Versioned APIs
|
|
43
|
+
*
|
|
44
|
+
* OpenAPI spec version: 4.0.1-alpha-1
|
|
45
|
+
*
|
|
46
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
47
|
+
*
|
|
48
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
49
|
+
*
|
|
50
|
+
* Do not edit the class manually.
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
/**
|
|
54
|
+
* The License model module.
|
|
55
|
+
* @module Ntnx/License
|
|
56
|
+
* @version 4.0.1-alpha-1
|
|
57
|
+
* @class License
|
|
58
|
+
*/
|
|
59
|
+
var _License_brand = /*#__PURE__*/new WeakSet();
|
|
60
|
+
var License = exports["default"] = /*#__PURE__*/function (_BaseLicenseInfo) {
|
|
61
|
+
/**
|
|
62
|
+
* Constructs a new <code>License</code>.
|
|
63
|
+
* Model containing license details like id, type, category, sub-category, scope and others
|
|
64
|
+
* @alias module:Ntnx/License
|
|
65
|
+
* @extends module:Ntnx/BaseLicenseInfo
|
|
66
|
+
*/
|
|
67
|
+
function License() {
|
|
68
|
+
var _this;
|
|
69
|
+
_classCallCheck(this, License);
|
|
70
|
+
_this = _callSuper(this, License);
|
|
71
|
+
/*
|
|
72
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
73
|
+
* @param {Object} obj
|
|
74
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
75
|
+
* Otherwise, just returns the input object.
|
|
76
|
+
*/
|
|
77
|
+
_classPrivateMethodInitSpec(_this, _License_brand);
|
|
78
|
+
_this.$objectType = "licensing.v4.config.License";
|
|
79
|
+
_this.$reserved = {
|
|
80
|
+
'$fv': "v4.r0.a1"
|
|
81
|
+
};
|
|
82
|
+
_this.$unknownFields = {};
|
|
83
|
+
return _this;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Constructs a <code>License</code> from a plain JavaScript object, optionally creating a new instance.
|
|
88
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
89
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
90
|
+
* @param {module:Ntnx/License} obj Optional instance to populate.
|
|
91
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
92
|
+
* @return {module:Ntnx/License} The populated <code>License</code> instance.
|
|
93
|
+
*/
|
|
94
|
+
_inherits(License, _BaseLicenseInfo);
|
|
95
|
+
return _createClass(License, [{
|
|
96
|
+
key: "getMeter",
|
|
97
|
+
value:
|
|
98
|
+
/**
|
|
99
|
+
* @return {}
|
|
100
|
+
*/
|
|
101
|
+
function getMeter() {
|
|
102
|
+
return this.meter;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @param {} meter
|
|
107
|
+
*/
|
|
108
|
+
}, {
|
|
109
|
+
key: "setMeter",
|
|
110
|
+
value: function setMeter(meter) {
|
|
111
|
+
this.meter = meter;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @return {}
|
|
116
|
+
*/
|
|
117
|
+
}, {
|
|
118
|
+
key: "getScope",
|
|
119
|
+
value: function getScope() {
|
|
120
|
+
return this.scope;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @param {} scope
|
|
125
|
+
*/
|
|
126
|
+
}, {
|
|
127
|
+
key: "setScope",
|
|
128
|
+
value: function setScope(scope) {
|
|
129
|
+
this.scope = scope;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Returns Total quantity of license consumed
|
|
134
|
+
* @return {}
|
|
135
|
+
*/
|
|
136
|
+
}, {
|
|
137
|
+
key: "getQuantity",
|
|
138
|
+
value: function getQuantity() {
|
|
139
|
+
return this.quantity;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Sets Total quantity of license consumed
|
|
144
|
+
* @param {} quantity Total quantity of license consumed
|
|
145
|
+
*/
|
|
146
|
+
}, {
|
|
147
|
+
key: "setQuantity",
|
|
148
|
+
value: function setQuantity(quantity) {
|
|
149
|
+
this.quantity = quantity;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Returns Array containing information about the clusters where these licenses are used
|
|
154
|
+
* @return {}
|
|
155
|
+
*/
|
|
156
|
+
}, {
|
|
157
|
+
key: "getConsumptionDetails",
|
|
158
|
+
value: function getConsumptionDetails() {
|
|
159
|
+
return this.consumptionDetails;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Sets Array containing information about the clusters where these licenses are used
|
|
164
|
+
* @param {} consumptionDetails Array containing information about the clusters where these licenses are used
|
|
165
|
+
*/
|
|
166
|
+
}, {
|
|
167
|
+
key: "setConsumptionDetails",
|
|
168
|
+
value: function setConsumptionDetails(consumptionDetails) {
|
|
169
|
+
this.consumptionDetails = consumptionDetails;
|
|
170
|
+
}
|
|
171
|
+
}, {
|
|
172
|
+
key: "toJson",
|
|
173
|
+
value: function toJson(forMutation) {
|
|
174
|
+
if (forMutation === false) {
|
|
175
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMeter() !== 'undefined' && this.getMeter() !== null ? {
|
|
176
|
+
'meter': this.getMeter()
|
|
177
|
+
} : {}), typeof this.getScope() !== 'undefined' && this.getScope() !== null ? {
|
|
178
|
+
'scope': this.getScope()
|
|
179
|
+
} : {}), typeof this.getQuantity() !== 'undefined' && this.getQuantity() !== null ? {
|
|
180
|
+
'quantity': this.getQuantity()
|
|
181
|
+
} : {}), typeof this.getConsumptionDetails() !== 'undefined' && this.getConsumptionDetails() !== null ? {
|
|
182
|
+
'consumptionDetails': this.getConsumptionDetails().map(function (item) {
|
|
183
|
+
return item.toJson(false);
|
|
184
|
+
})
|
|
185
|
+
} : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
186
|
+
'name': this.getName()
|
|
187
|
+
} : {}), typeof this.getType() !== 'undefined' && this.getType() !== null ? {
|
|
188
|
+
'type': this.getType()
|
|
189
|
+
} : {}), typeof this.getCategory() !== 'undefined' && this.getCategory() !== null ? {
|
|
190
|
+
'category': this.getCategory()
|
|
191
|
+
} : {}), typeof this.getSubCategory() !== 'undefined' && this.getSubCategory() !== null ? {
|
|
192
|
+
'subCategory': this.getSubCategory()
|
|
193
|
+
} : {}), typeof this.getExpiryDate() !== 'undefined' && this.getExpiryDate() !== null ? {
|
|
194
|
+
'expiryDate': this.getExpiryDate()
|
|
195
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
196
|
+
'extId': this.getExtId()
|
|
197
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
198
|
+
'links': this.getLinks().map(function (item) {
|
|
199
|
+
return item.toJson(false);
|
|
200
|
+
})
|
|
201
|
+
} : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
202
|
+
'tenantId': this.getTenantId()
|
|
203
|
+
} : {}), {}, {
|
|
204
|
+
'$reserved': this.get$Reserved(),
|
|
205
|
+
'$objectType': this.get$ObjectType(),
|
|
206
|
+
'$unknownFields': this.get$UnknownFields()
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMeter() !== 'undefined' && this.getMeter() !== null ? {
|
|
210
|
+
'meter': this.getMeter()
|
|
211
|
+
} : {}), typeof this.getScope() !== 'undefined' && this.getScope() !== null ? {
|
|
212
|
+
'scope': this.getScope()
|
|
213
|
+
} : {}), typeof this.getQuantity() !== 'undefined' && this.getQuantity() !== null ? {
|
|
214
|
+
'quantity': this.getQuantity()
|
|
215
|
+
} : {}), typeof this.getConsumptionDetails() !== 'undefined' && this.getConsumptionDetails() !== null ? {
|
|
216
|
+
'consumptionDetails': this.getConsumptionDetails().map(function (item) {
|
|
217
|
+
return item.toJson(false);
|
|
218
|
+
})
|
|
219
|
+
} : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
220
|
+
'name': this.getName()
|
|
221
|
+
} : {}), typeof this.getType() !== 'undefined' && this.getType() !== null ? {
|
|
222
|
+
'type': this.getType()
|
|
223
|
+
} : {}), typeof this.getCategory() !== 'undefined' && this.getCategory() !== null ? {
|
|
224
|
+
'category': this.getCategory()
|
|
225
|
+
} : {}), typeof this.getSubCategory() !== 'undefined' && this.getSubCategory() !== null ? {
|
|
226
|
+
'subCategory': this.getSubCategory()
|
|
227
|
+
} : {}), typeof this.getExpiryDate() !== 'undefined' && this.getExpiryDate() !== null ? {
|
|
228
|
+
'expiryDate': this.getExpiryDate()
|
|
229
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
230
|
+
'extId': this.getExtId()
|
|
231
|
+
} : {}), {}, {
|
|
232
|
+
'$reserved': this.get$Reserved(),
|
|
233
|
+
'$objectType': this.get$ObjectType(),
|
|
234
|
+
'$unknownFields': this.get$UnknownFields()
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
}, {
|
|
238
|
+
key: "validate",
|
|
239
|
+
value: function validate(scope, properties) {
|
|
240
|
+
var _this2 = this;
|
|
241
|
+
var propList = [];
|
|
242
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
243
|
+
//cases validate() and validate(scope)
|
|
244
|
+
propList = [];
|
|
245
|
+
} else if (arguments.length === 1) {
|
|
246
|
+
//case validate(properties)
|
|
247
|
+
propList = arguments[0];
|
|
248
|
+
scope = null;
|
|
249
|
+
} else {
|
|
250
|
+
//case validate(scope, properties)
|
|
251
|
+
propList = arguments[1];
|
|
252
|
+
}
|
|
253
|
+
var res = [];
|
|
254
|
+
var err = null;
|
|
255
|
+
propList.forEach(function (property) {
|
|
256
|
+
err = _this2.validateProperty(property, scope);
|
|
257
|
+
if (err) {
|
|
258
|
+
res.push(err);
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
return new Promise(function (resolve, reject) {
|
|
262
|
+
if (res.length !== 0) {
|
|
263
|
+
reject(err);
|
|
264
|
+
} else {
|
|
265
|
+
resolve();
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
}, {
|
|
270
|
+
key: "validateProperty",
|
|
271
|
+
value: function validateProperty(scope, property) {
|
|
272
|
+
if (property === "meter") {
|
|
273
|
+
if (typeof this.meter === 'undefined' || this.meter === null) {
|
|
274
|
+
return new _ValidationError["default"]("meter", "undefined or null");
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
if (property === "scope") {
|
|
278
|
+
if (typeof this.scope === 'undefined' || this.scope === null) {
|
|
279
|
+
return new _ValidationError["default"]("scope", "undefined or null");
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
if (property === "quantity") {
|
|
283
|
+
if (typeof this.quantity === 'undefined' || this.quantity === null) {
|
|
284
|
+
return new _ValidationError["default"]("quantity", "undefined or null");
|
|
285
|
+
}
|
|
286
|
+
if (!_ValidationUtils["default"].validatePattern(this.quantity, /^(0|[1-9]\\d*)(\\.\\d+)?$/)) {
|
|
287
|
+
return new _ValidationError["default"]("quantity", "does not satisfy required pattern: /^(0|[1-9]\\d*)(\\.\\d+)?$/");
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
if (property === "consumptionDetails") {
|
|
291
|
+
if (typeof this.consumptionDetails === 'undefined' || this.consumptionDetails === null) {
|
|
292
|
+
return new _ValidationError["default"]("consumptionDetails", "undefined or null");
|
|
293
|
+
}
|
|
294
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.consumptionDetails, 100)) {
|
|
295
|
+
return new _ValidationError["default"]("consumptionDetails", "does not satisfy required maxItems constraint: 100");
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
299
|
+
}
|
|
300
|
+
}], [{
|
|
301
|
+
key: "constructFromObject",
|
|
302
|
+
value: function constructFromObject(data, obj) {
|
|
303
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
304
|
+
var items, item, i, itemArr, discriminator;
|
|
305
|
+
if (data) {
|
|
306
|
+
obj = obj || new License();
|
|
307
|
+
_BaseLicenseInfo2["default"].constructFromObject(data, obj, true);
|
|
308
|
+
if (data.hasOwnProperty('meter') && data.meter !== null && data.meter !== undefined) {
|
|
309
|
+
obj.setMeter(_MeterEnum["default"].constructFromObject(data['meter']));
|
|
310
|
+
}
|
|
311
|
+
if (data.hasOwnProperty('scope') && data.scope !== null && data.scope !== undefined) {
|
|
312
|
+
obj.setScope(_ScopeEnum["default"].constructFromObject(data['scope']));
|
|
313
|
+
}
|
|
314
|
+
if (data.hasOwnProperty('quantity') && data.quantity !== null && data.quantity !== undefined) {
|
|
315
|
+
obj.setQuantity(data['quantity']);
|
|
316
|
+
}
|
|
317
|
+
if (data.hasOwnProperty('consumptionDetails') && data.consumptionDetails !== null && data.consumptionDetails !== undefined) {
|
|
318
|
+
itemArr = [];
|
|
319
|
+
items = data.consumptionDetails;
|
|
320
|
+
for (i = 0; i < items.length; i++) {
|
|
321
|
+
item = _Consumption["default"].constructFromObject(items[i], undefined);
|
|
322
|
+
itemArr.push(item);
|
|
323
|
+
}
|
|
324
|
+
obj.setConsumptionDetails(itemArr);
|
|
325
|
+
}
|
|
326
|
+
if (!callFromChild) {
|
|
327
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
328
|
+
for (var property in data) {
|
|
329
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
330
|
+
obj.$unknownFields[property] = data[property];
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
return obj;
|
|
336
|
+
}
|
|
337
|
+
}]);
|
|
338
|
+
}(_BaseLicenseInfo2["default"]);
|
|
339
|
+
/**
|
|
340
|
+
* @memberof License
|
|
341
|
+
*/
|
|
342
|
+
function _toJsonMapType(obj, forMutation) {
|
|
343
|
+
if (obj instanceof Map) {
|
|
344
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
345
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
346
|
+
k = _ref2[0],
|
|
347
|
+
v = _ref2[1];
|
|
348
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
349
|
+
}));
|
|
350
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
351
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
352
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
353
|
+
}));
|
|
354
|
+
}
|
|
355
|
+
return obj;
|
|
356
|
+
}
|
|
357
|
+
License.prototype.meter = undefined;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* @memberof License
|
|
361
|
+
*/
|
|
362
|
+
License.prototype.scope = undefined;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Total quantity of license consumed
|
|
366
|
+
* @memberof License
|
|
367
|
+
*/
|
|
368
|
+
License.prototype.quantity = undefined;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Array containing information about the clusters where these licenses are used
|
|
372
|
+
* @memberof License
|
|
373
|
+
*/
|
|
374
|
+
License.prototype.consumptionDetails = undefined;
|
|
375
|
+
|
|
376
|
+
// Implement OneOflicensing.v4.config.GetLicenseApiResponsedata interface:
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default LicenseCategoryEnum;
|
|
2
|
+
/**
|
|
3
|
+
* *
|
|
4
|
+
*/
|
|
5
|
+
type LicenseCategoryEnum = string;
|
|
6
|
+
declare namespace LicenseCategoryEnum {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a <code>LicenseCategoryEnum</code> enum value from a JavaScript object name.
|
|
9
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
10
|
+
* @return {LicenseCategoryEnum} The enum <code>LicenseCategoryEnum</code> value.
|
|
11
|
+
*/
|
|
12
|
+
function constructFromObject(obj: any): string;
|
|
13
|
+
/**
|
|
14
|
+
* Validates <code>LicenseCategoryEnum</code> enum value.
|
|
15
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
16
|
+
* @return {null} Throws error for invalid value.
|
|
17
|
+
*/
|
|
18
|
+
function validate(obj: any): null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
8
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
9
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
/*
|
|
12
|
+
* Nutanix Licensing Versioned APIs
|
|
13
|
+
*
|
|
14
|
+
* OpenAPI spec version: 4.0.1-alpha-1
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
17
|
+
*
|
|
18
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
19
|
+
*
|
|
20
|
+
* Do not edit the class manually.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Enum class LicenseCategoryEnum.
|
|
26
|
+
* @enum {string}
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
var LicenseCategoryEnum = {
|
|
30
|
+
/**
|
|
31
|
+
* value: "$UNKNOWN"
|
|
32
|
+
* @const
|
|
33
|
+
*/
|
|
34
|
+
$UNKNOWN: "$UNKNOWN",
|
|
35
|
+
/**
|
|
36
|
+
* value: "$REDACTED"
|
|
37
|
+
* @const
|
|
38
|
+
*/
|
|
39
|
+
$REDACTED: "$REDACTED",
|
|
40
|
+
/**
|
|
41
|
+
* License category for Starter Tier
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
STARTER: "STARTER",
|
|
45
|
+
/**
|
|
46
|
+
* License category for Pro Tier
|
|
47
|
+
* @const
|
|
48
|
+
*/
|
|
49
|
+
PRO: "PRO",
|
|
50
|
+
/**
|
|
51
|
+
* License category for Ultimate Tier
|
|
52
|
+
* @const
|
|
53
|
+
*/
|
|
54
|
+
ULTIMATE: "ULTIMATE",
|
|
55
|
+
/**
|
|
56
|
+
* License category for CALM
|
|
57
|
+
* @const
|
|
58
|
+
*/
|
|
59
|
+
CALM: "CALM",
|
|
60
|
+
/**
|
|
61
|
+
* License category for Standard Tier
|
|
62
|
+
* @const
|
|
63
|
+
*/
|
|
64
|
+
STANDARD: "STANDARD",
|
|
65
|
+
/**
|
|
66
|
+
* License category for AOS_MINE
|
|
67
|
+
* @const
|
|
68
|
+
*/
|
|
69
|
+
AOS_MINE: "AOS_MINE",
|
|
70
|
+
/**
|
|
71
|
+
* License category for Software Encryption Addon
|
|
72
|
+
* @const
|
|
73
|
+
*/
|
|
74
|
+
SOFTWARE_ENCRYPTION: "SOFTWARE_ENCRYPTION",
|
|
75
|
+
/**
|
|
76
|
+
* License category for Advanced Replication Addon
|
|
77
|
+
* @const
|
|
78
|
+
*/
|
|
79
|
+
ADV_REPLICATION: "ADV_REPLICATION",
|
|
80
|
+
/**
|
|
81
|
+
* License category for Object
|
|
82
|
+
* @const
|
|
83
|
+
*/
|
|
84
|
+
OBJECT: "OBJECT",
|
|
85
|
+
/**
|
|
86
|
+
* License category for Ultimate Trial tier
|
|
87
|
+
* @const
|
|
88
|
+
*/
|
|
89
|
+
ULTIMATE_TRIAL: "ULTIMATE_TRIAL",
|
|
90
|
+
/**
|
|
91
|
+
* License category for Prism Starter tier
|
|
92
|
+
* @const
|
|
93
|
+
*/
|
|
94
|
+
PRISM_STARTER: "PRISM_STARTER",
|
|
95
|
+
/**
|
|
96
|
+
* License category for Pro Special tier
|
|
97
|
+
* @const
|
|
98
|
+
*/
|
|
99
|
+
PRO_SPECIAL: "PRO_SPECIAL",
|
|
100
|
+
/**
|
|
101
|
+
* License category for Advanced Replication Addon
|
|
102
|
+
* @const
|
|
103
|
+
*/
|
|
104
|
+
ADR: "ADR",
|
|
105
|
+
/**
|
|
106
|
+
* License category for Security Addon
|
|
107
|
+
* @const
|
|
108
|
+
*/
|
|
109
|
+
SECURITY: "SECURITY",
|
|
110
|
+
/**
|
|
111
|
+
* License category for NKS
|
|
112
|
+
* @const
|
|
113
|
+
*/
|
|
114
|
+
NKS: "NKS",
|
|
115
|
+
/**
|
|
116
|
+
* License category for app automation
|
|
117
|
+
* @const
|
|
118
|
+
*/
|
|
119
|
+
APPAUTOMATION: "APPAUTOMATION",
|
|
120
|
+
/**
|
|
121
|
+
* License category for NDA
|
|
122
|
+
* @const
|
|
123
|
+
*/
|
|
124
|
+
NDA: "NDA",
|
|
125
|
+
/**
|
|
126
|
+
* License category for Unified Storage
|
|
127
|
+
* @const
|
|
128
|
+
*/
|
|
129
|
+
UST: "UST",
|
|
130
|
+
/**
|
|
131
|
+
* License category for analytics
|
|
132
|
+
* @const
|
|
133
|
+
*/
|
|
134
|
+
ANALYTICS: "ANALYTICS",
|
|
135
|
+
/**
|
|
136
|
+
* License category for standalone tier
|
|
137
|
+
* @const
|
|
138
|
+
*/
|
|
139
|
+
STANDALONE: "STANDALONE",
|
|
140
|
+
/**
|
|
141
|
+
* License category for DRASS
|
|
142
|
+
* @const
|
|
143
|
+
*/
|
|
144
|
+
DRASS: "DRASS",
|
|
145
|
+
/**
|
|
146
|
+
* License category for Cloud Native tier
|
|
147
|
+
* @const
|
|
148
|
+
*/
|
|
149
|
+
CLOUD_NATIVE: "CLOUD_NATIVE",
|
|
150
|
+
/**
|
|
151
|
+
* License category for Data Encryption Addon
|
|
152
|
+
* @const
|
|
153
|
+
*/
|
|
154
|
+
DATA_ENCRYPTION: "DATA_ENCRYPTION",
|
|
155
|
+
/**
|
|
156
|
+
* License category for Nutanix Database Service
|
|
157
|
+
* @const
|
|
158
|
+
*/
|
|
159
|
+
NDS: "NDS",
|
|
160
|
+
/**
|
|
161
|
+
* License category for Nutanix Database
|
|
162
|
+
* @const
|
|
163
|
+
*/
|
|
164
|
+
NDB: "NDB",
|
|
165
|
+
/**
|
|
166
|
+
* License category for No License Tier
|
|
167
|
+
* @const
|
|
168
|
+
*/
|
|
169
|
+
NO_LICENSE: "NO_LICENSE",
|
|
170
|
+
/**
|
|
171
|
+
* License category for NUS Encryption Addon
|
|
172
|
+
* @const
|
|
173
|
+
*/
|
|
174
|
+
NUS_ENCRYPTION: "NUS_ENCRYPTION",
|
|
175
|
+
/**
|
|
176
|
+
* License category for NUS Advanced Replication Addon
|
|
177
|
+
* @const
|
|
178
|
+
*/
|
|
179
|
+
NUS_REPLICATION: "NUS_REPLICATION",
|
|
180
|
+
/**
|
|
181
|
+
* License category for Cloud Pro
|
|
182
|
+
* @const
|
|
183
|
+
*/
|
|
184
|
+
CLOUD_PRO: "CLOUD_PRO",
|
|
185
|
+
/**
|
|
186
|
+
* License category for Cloud Ultimate
|
|
187
|
+
* @const
|
|
188
|
+
*/
|
|
189
|
+
CLOUD_ULTIMATE: "CLOUD_ULTIMATE",
|
|
190
|
+
/**
|
|
191
|
+
* License category for Cloud
|
|
192
|
+
* @const
|
|
193
|
+
*/
|
|
194
|
+
CLOUD: "CLOUD",
|
|
195
|
+
/**
|
|
196
|
+
* License category for Public Cloud
|
|
197
|
+
* @const
|
|
198
|
+
*/
|
|
199
|
+
PUBLIC_CLOUD: "PUBLIC_CLOUD",
|
|
200
|
+
/**
|
|
201
|
+
* License category for Advanced Replication Addon
|
|
202
|
+
* @const
|
|
203
|
+
*/
|
|
204
|
+
ADVANCED_REPLICATION: "ADVANCED_REPLICATION"
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Returns a <code>LicenseCategoryEnum</code> enum value from a JavaScript object name.
|
|
209
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
210
|
+
* @return {LicenseCategoryEnum} The enum <code>LicenseCategoryEnum</code> value.
|
|
211
|
+
*/
|
|
212
|
+
LicenseCategoryEnum.constructFromObject = function (obj) {
|
|
213
|
+
if (typeof obj === 'string' || obj instanceof String) {
|
|
214
|
+
var enumVal = Object.keys(LicenseCategoryEnum).find(function (key) {
|
|
215
|
+
return LicenseCategoryEnum[key] === obj;
|
|
216
|
+
});
|
|
217
|
+
return enumVal === undefined || enumVal === null ? LicenseCategoryEnum.$UNKNOWN : LicenseCategoryEnum[enumVal];
|
|
218
|
+
} else {
|
|
219
|
+
throw new Error("Received object name is not an instance of String");
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Validates <code>LicenseCategoryEnum</code> enum value.
|
|
225
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
226
|
+
* @return {null} Throws error for invalid value.
|
|
227
|
+
*/
|
|
228
|
+
LicenseCategoryEnum.validate = function (obj) {
|
|
229
|
+
switch (obj) {
|
|
230
|
+
case LicenseCategoryEnum.$UNKNOWN:
|
|
231
|
+
case LicenseCategoryEnum.$REDACTED:
|
|
232
|
+
case LicenseCategoryEnum.STARTER:
|
|
233
|
+
case LicenseCategoryEnum.PRO:
|
|
234
|
+
case LicenseCategoryEnum.ULTIMATE:
|
|
235
|
+
case LicenseCategoryEnum.CALM:
|
|
236
|
+
case LicenseCategoryEnum.STANDARD:
|
|
237
|
+
case LicenseCategoryEnum.AOS_MINE:
|
|
238
|
+
case LicenseCategoryEnum.SOFTWARE_ENCRYPTION:
|
|
239
|
+
case LicenseCategoryEnum.ADV_REPLICATION:
|
|
240
|
+
case LicenseCategoryEnum.OBJECT:
|
|
241
|
+
case LicenseCategoryEnum.ULTIMATE_TRIAL:
|
|
242
|
+
case LicenseCategoryEnum.PRISM_STARTER:
|
|
243
|
+
case LicenseCategoryEnum.PRO_SPECIAL:
|
|
244
|
+
case LicenseCategoryEnum.ADR:
|
|
245
|
+
case LicenseCategoryEnum.SECURITY:
|
|
246
|
+
case LicenseCategoryEnum.NKS:
|
|
247
|
+
case LicenseCategoryEnum.APPAUTOMATION:
|
|
248
|
+
case LicenseCategoryEnum.NDA:
|
|
249
|
+
case LicenseCategoryEnum.UST:
|
|
250
|
+
case LicenseCategoryEnum.ANALYTICS:
|
|
251
|
+
case LicenseCategoryEnum.STANDALONE:
|
|
252
|
+
case LicenseCategoryEnum.DRASS:
|
|
253
|
+
case LicenseCategoryEnum.CLOUD_NATIVE:
|
|
254
|
+
case LicenseCategoryEnum.DATA_ENCRYPTION:
|
|
255
|
+
case LicenseCategoryEnum.NDS:
|
|
256
|
+
case LicenseCategoryEnum.NDB:
|
|
257
|
+
case LicenseCategoryEnum.NO_LICENSE:
|
|
258
|
+
case LicenseCategoryEnum.NUS_ENCRYPTION:
|
|
259
|
+
case LicenseCategoryEnum.NUS_REPLICATION:
|
|
260
|
+
case LicenseCategoryEnum.CLOUD_PRO:
|
|
261
|
+
case LicenseCategoryEnum.CLOUD_ULTIMATE:
|
|
262
|
+
case LicenseCategoryEnum.CLOUD:
|
|
263
|
+
case LicenseCategoryEnum.PUBLIC_CLOUD:
|
|
264
|
+
case LicenseCategoryEnum.ADVANCED_REPLICATION:
|
|
265
|
+
return;
|
|
266
|
+
default:
|
|
267
|
+
throw new Error("Invalid : must be LicenseCategoryEnum.{ $UNKNOWN|$REDACTED|STARTER|PRO|ULTIMATE|CALM|STANDARD|AOS_MINE|SOFTWARE_ENCRYPTION|ADV_REPLICATION|OBJECT|ULTIMATE_TRIAL|PRISM_STARTER|PRO_SPECIAL|ADR|SECURITY|NKS|APPAUTOMATION|NDA|UST|ANALYTICS|STANDALONE|DRASS|CLOUD_NATIVE|DATA_ENCRYPTION|NDS|NDB|NO_LICENSE|NUS_ENCRYPTION|NUS_REPLICATION|CLOUD_PRO|CLOUD_ULTIMATE|CLOUD|PUBLIC_CLOUD|ADVANCED_REPLICATION }");
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
Object.freeze(LicenseCategoryEnum);
|
|
271
|
+
var _default = exports["default"] = LicenseCategoryEnum;
|