@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,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The LicenseProjection model module.
|
|
3
|
+
* @module Ntnx/LicenseProjection
|
|
4
|
+
* @version 4.0.1-alpha-1
|
|
5
|
+
* @class LicenseProjection
|
|
6
|
+
*/
|
|
7
|
+
export default class LicenseProjection extends License {
|
|
8
|
+
/**
|
|
9
|
+
* @return {}
|
|
10
|
+
*/
|
|
11
|
+
getConsumptionProjection(): any;
|
|
12
|
+
/**
|
|
13
|
+
* @param {} consumptionProjection
|
|
14
|
+
*/
|
|
15
|
+
setConsumptionProjection(consumptionProjection: any): void;
|
|
16
|
+
consumptionProjection: any;
|
|
17
|
+
toJson(forMutation: any): {
|
|
18
|
+
$reserved: {
|
|
19
|
+
$fv: string;
|
|
20
|
+
};
|
|
21
|
+
$objectType: string;
|
|
22
|
+
$unknownFields: {};
|
|
23
|
+
tenantId?: any;
|
|
24
|
+
links?: any;
|
|
25
|
+
extId?: any;
|
|
26
|
+
expiryDate?: any;
|
|
27
|
+
subCategory?: any;
|
|
28
|
+
category?: any;
|
|
29
|
+
type?: any;
|
|
30
|
+
name?: any;
|
|
31
|
+
consumptionDetails?: any;
|
|
32
|
+
quantity?: any;
|
|
33
|
+
scope?: any;
|
|
34
|
+
meter?: any;
|
|
35
|
+
consumptionProjection?: any;
|
|
36
|
+
};
|
|
37
|
+
#private;
|
|
38
|
+
}
|
|
39
|
+
import License from "./License";
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _Consumption = _interopRequireDefault(require("./Consumption"));
|
|
8
|
+
var _ConsumptionProjection = _interopRequireDefault(require("./ConsumptionProjection"));
|
|
9
|
+
var _License2 = _interopRequireDefault(require("./License"));
|
|
10
|
+
var _MeterEnum = _interopRequireDefault(require("./MeterEnum"));
|
|
11
|
+
var _ScopeEnum = _interopRequireDefault(require("./ScopeEnum"));
|
|
12
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
13
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
14
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
|
+
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); }
|
|
17
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
|
+
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."); }
|
|
19
|
+
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); }
|
|
20
|
+
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; }
|
|
21
|
+
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; } }
|
|
22
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
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 _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
32
|
+
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); }
|
|
33
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
34
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
35
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
36
|
+
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); }
|
|
37
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
38
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
39
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
40
|
+
* Nutanix Licensing Versioned APIs
|
|
41
|
+
*
|
|
42
|
+
* OpenAPI spec version: 4.0.1-alpha-1
|
|
43
|
+
*
|
|
44
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
45
|
+
*
|
|
46
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
47
|
+
*
|
|
48
|
+
* Do not edit the class manually.
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* The LicenseProjection model module.
|
|
53
|
+
* @module Ntnx/LicenseProjection
|
|
54
|
+
* @version 4.0.1-alpha-1
|
|
55
|
+
* @class LicenseProjection
|
|
56
|
+
*/
|
|
57
|
+
var _LicenseProjection_brand = /*#__PURE__*/new WeakSet();
|
|
58
|
+
var LicenseProjection = exports["default"] = /*#__PURE__*/function (_License) {
|
|
59
|
+
/**
|
|
60
|
+
* Constructs a new <code>LicenseProjection</code>.
|
|
61
|
+
* @alias module:Ntnx/LicenseProjection
|
|
62
|
+
* @extends module:Ntnx/License
|
|
63
|
+
*/
|
|
64
|
+
function LicenseProjection() {
|
|
65
|
+
var _this;
|
|
66
|
+
_classCallCheck(this, LicenseProjection);
|
|
67
|
+
_this = _callSuper(this, LicenseProjection);
|
|
68
|
+
/*
|
|
69
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
70
|
+
* @param {Object} obj
|
|
71
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
72
|
+
* Otherwise, just returns the input object.
|
|
73
|
+
*/
|
|
74
|
+
_classPrivateMethodInitSpec(_this, _LicenseProjection_brand);
|
|
75
|
+
_this.$objectType = "licensing.v4.config.LicenseProjection";
|
|
76
|
+
_this.$reserved = {
|
|
77
|
+
'$fv': "v4.r0.a1"
|
|
78
|
+
};
|
|
79
|
+
_this.$unknownFields = {};
|
|
80
|
+
return _this;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Constructs a <code>LicenseProjection</code> from a plain JavaScript object, optionally creating a new instance.
|
|
85
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
86
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
87
|
+
* @param {module:Ntnx/LicenseProjection} obj Optional instance to populate.
|
|
88
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
89
|
+
* @return {module:Ntnx/LicenseProjection} The populated <code>LicenseProjection</code> instance.
|
|
90
|
+
*/
|
|
91
|
+
_inherits(LicenseProjection, _License);
|
|
92
|
+
return _createClass(LicenseProjection, [{
|
|
93
|
+
key: "getConsumptionProjection",
|
|
94
|
+
value:
|
|
95
|
+
/**
|
|
96
|
+
* @return {}
|
|
97
|
+
*/
|
|
98
|
+
function getConsumptionProjection() {
|
|
99
|
+
return this.consumptionProjection;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @param {} consumptionProjection
|
|
104
|
+
*/
|
|
105
|
+
}, {
|
|
106
|
+
key: "setConsumptionProjection",
|
|
107
|
+
value: function setConsumptionProjection(consumptionProjection) {
|
|
108
|
+
this.consumptionProjection = consumptionProjection;
|
|
109
|
+
}
|
|
110
|
+
}, {
|
|
111
|
+
key: "toJson",
|
|
112
|
+
value: function toJson(forMutation) {
|
|
113
|
+
if (forMutation === false) {
|
|
114
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getConsumptionProjection() !== 'undefined' && this.getConsumptionProjection() !== null ? {
|
|
115
|
+
'consumptionProjection': this.getConsumptionProjection().toJson(false)
|
|
116
|
+
} : {}), typeof this.getMeter() !== 'undefined' && this.getMeter() !== null ? {
|
|
117
|
+
'meter': this.getMeter()
|
|
118
|
+
} : {}), typeof this.getScope() !== 'undefined' && this.getScope() !== null ? {
|
|
119
|
+
'scope': this.getScope()
|
|
120
|
+
} : {}), typeof this.getQuantity() !== 'undefined' && this.getQuantity() !== null ? {
|
|
121
|
+
'quantity': this.getQuantity()
|
|
122
|
+
} : {}), typeof this.getConsumptionDetails() !== 'undefined' && this.getConsumptionDetails() !== null ? {
|
|
123
|
+
'consumptionDetails': this.getConsumptionDetails().map(function (item) {
|
|
124
|
+
return item.toJson(false);
|
|
125
|
+
})
|
|
126
|
+
} : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
127
|
+
'name': this.getName()
|
|
128
|
+
} : {}), typeof this.getType() !== 'undefined' && this.getType() !== null ? {
|
|
129
|
+
'type': this.getType()
|
|
130
|
+
} : {}), typeof this.getCategory() !== 'undefined' && this.getCategory() !== null ? {
|
|
131
|
+
'category': this.getCategory()
|
|
132
|
+
} : {}), typeof this.getSubCategory() !== 'undefined' && this.getSubCategory() !== null ? {
|
|
133
|
+
'subCategory': this.getSubCategory()
|
|
134
|
+
} : {}), typeof this.getExpiryDate() !== 'undefined' && this.getExpiryDate() !== null ? {
|
|
135
|
+
'expiryDate': this.getExpiryDate()
|
|
136
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
137
|
+
'extId': this.getExtId()
|
|
138
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
139
|
+
'links': this.getLinks().map(function (item) {
|
|
140
|
+
return item.toJson(false);
|
|
141
|
+
})
|
|
142
|
+
} : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
143
|
+
'tenantId': this.getTenantId()
|
|
144
|
+
} : {}), {}, {
|
|
145
|
+
'$reserved': this.get$Reserved(),
|
|
146
|
+
'$objectType': this.get$ObjectType(),
|
|
147
|
+
'$unknownFields': this.get$UnknownFields()
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getConsumptionProjection() !== 'undefined' && this.getConsumptionProjection() !== null ? {
|
|
151
|
+
'consumptionProjection': this.getConsumptionProjection().toJson(false)
|
|
152
|
+
} : {}), typeof this.getMeter() !== 'undefined' && this.getMeter() !== null ? {
|
|
153
|
+
'meter': this.getMeter()
|
|
154
|
+
} : {}), typeof this.getScope() !== 'undefined' && this.getScope() !== null ? {
|
|
155
|
+
'scope': this.getScope()
|
|
156
|
+
} : {}), typeof this.getQuantity() !== 'undefined' && this.getQuantity() !== null ? {
|
|
157
|
+
'quantity': this.getQuantity()
|
|
158
|
+
} : {}), typeof this.getConsumptionDetails() !== 'undefined' && this.getConsumptionDetails() !== null ? {
|
|
159
|
+
'consumptionDetails': this.getConsumptionDetails().map(function (item) {
|
|
160
|
+
return item.toJson(false);
|
|
161
|
+
})
|
|
162
|
+
} : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
163
|
+
'name': this.getName()
|
|
164
|
+
} : {}), typeof this.getType() !== 'undefined' && this.getType() !== null ? {
|
|
165
|
+
'type': this.getType()
|
|
166
|
+
} : {}), typeof this.getCategory() !== 'undefined' && this.getCategory() !== null ? {
|
|
167
|
+
'category': this.getCategory()
|
|
168
|
+
} : {}), typeof this.getSubCategory() !== 'undefined' && this.getSubCategory() !== null ? {
|
|
169
|
+
'subCategory': this.getSubCategory()
|
|
170
|
+
} : {}), typeof this.getExpiryDate() !== 'undefined' && this.getExpiryDate() !== null ? {
|
|
171
|
+
'expiryDate': this.getExpiryDate()
|
|
172
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
173
|
+
'extId': this.getExtId()
|
|
174
|
+
} : {}), {}, {
|
|
175
|
+
'$reserved': this.get$Reserved(),
|
|
176
|
+
'$objectType': this.get$ObjectType(),
|
|
177
|
+
'$unknownFields': this.get$UnknownFields()
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
}, {
|
|
181
|
+
key: "validate",
|
|
182
|
+
value: function validate(scope, properties) {
|
|
183
|
+
var _this2 = this;
|
|
184
|
+
var propList = [];
|
|
185
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
186
|
+
//cases validate() and validate(scope)
|
|
187
|
+
propList = [];
|
|
188
|
+
} else if (arguments.length === 1) {
|
|
189
|
+
//case validate(properties)
|
|
190
|
+
propList = arguments[0];
|
|
191
|
+
scope = null;
|
|
192
|
+
} else {
|
|
193
|
+
//case validate(scope, properties)
|
|
194
|
+
propList = arguments[1];
|
|
195
|
+
}
|
|
196
|
+
var res = [];
|
|
197
|
+
var err = null;
|
|
198
|
+
propList.forEach(function (property) {
|
|
199
|
+
err = _this2.validateProperty(property, scope);
|
|
200
|
+
if (err) {
|
|
201
|
+
res.push(err);
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
return new Promise(function (resolve, reject) {
|
|
205
|
+
if (res.length !== 0) {
|
|
206
|
+
reject(err);
|
|
207
|
+
} else {
|
|
208
|
+
resolve();
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}, {
|
|
213
|
+
key: "validateProperty",
|
|
214
|
+
value: function validateProperty(scope, property) {
|
|
215
|
+
if (property === "consumptionProjection") {
|
|
216
|
+
if (typeof this.consumptionProjection === 'undefined' || this.consumptionProjection === null) {
|
|
217
|
+
return new _ValidationError["default"]("consumptionProjection", "undefined or null");
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
221
|
+
}
|
|
222
|
+
}], [{
|
|
223
|
+
key: "constructFromObject",
|
|
224
|
+
value: function constructFromObject(data, obj) {
|
|
225
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
226
|
+
var items, item, i, itemArr, discriminator;
|
|
227
|
+
if (data) {
|
|
228
|
+
obj = obj || new LicenseProjection();
|
|
229
|
+
_License2["default"].constructFromObject(data, obj, true);
|
|
230
|
+
if (data.hasOwnProperty('consumptionProjection') && data.consumptionProjection !== null && data.consumptionProjection !== undefined) {
|
|
231
|
+
obj.setConsumptionProjection(_ConsumptionProjection["default"].constructFromObject(data['consumptionProjection']));
|
|
232
|
+
}
|
|
233
|
+
if (!callFromChild) {
|
|
234
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
235
|
+
for (var property in data) {
|
|
236
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
237
|
+
obj.$unknownFields[property] = data[property];
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return obj;
|
|
243
|
+
}
|
|
244
|
+
}]);
|
|
245
|
+
}(_License2["default"]);
|
|
246
|
+
/**
|
|
247
|
+
* @memberof LicenseProjection
|
|
248
|
+
*/
|
|
249
|
+
function _toJsonMapType(obj, forMutation) {
|
|
250
|
+
if (obj instanceof Map) {
|
|
251
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
252
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
253
|
+
k = _ref2[0],
|
|
254
|
+
v = _ref2[1];
|
|
255
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
256
|
+
}));
|
|
257
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
258
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
259
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
260
|
+
}));
|
|
261
|
+
}
|
|
262
|
+
return obj;
|
|
263
|
+
}
|
|
264
|
+
LicenseProjection.prototype.consumptionProjection = undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default LicenseTypeEnum;
|
|
2
|
+
/**
|
|
3
|
+
* *
|
|
4
|
+
*/
|
|
5
|
+
type LicenseTypeEnum = string;
|
|
6
|
+
declare namespace LicenseTypeEnum {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a <code>LicenseTypeEnum</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 {LicenseTypeEnum} The enum <code>LicenseTypeEnum</code> value.
|
|
11
|
+
*/
|
|
12
|
+
function constructFromObject(obj: any): string;
|
|
13
|
+
/**
|
|
14
|
+
* Validates <code>LicenseTypeEnum</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,235 @@
|
|
|
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 LicenseTypeEnum.
|
|
26
|
+
* @enum {string}
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
var LicenseTypeEnum = {
|
|
30
|
+
/**
|
|
31
|
+
* value: "$UNKNOWN"
|
|
32
|
+
* @const
|
|
33
|
+
*/
|
|
34
|
+
$UNKNOWN: "$UNKNOWN",
|
|
35
|
+
/**
|
|
36
|
+
* value: "$REDACTED"
|
|
37
|
+
* @const
|
|
38
|
+
*/
|
|
39
|
+
$REDACTED: "$REDACTED",
|
|
40
|
+
/**
|
|
41
|
+
* License type for Prism Product
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
PRISM: "PRISM",
|
|
45
|
+
/**
|
|
46
|
+
* License type for Calm Product
|
|
47
|
+
* @const
|
|
48
|
+
*/
|
|
49
|
+
CALM: "CALM",
|
|
50
|
+
/**
|
|
51
|
+
* License type for Flow Product
|
|
52
|
+
* @const
|
|
53
|
+
*/
|
|
54
|
+
FLOW: "FLOW",
|
|
55
|
+
/**
|
|
56
|
+
* License type for Object Product
|
|
57
|
+
* @const
|
|
58
|
+
*/
|
|
59
|
+
OBJECT: "OBJECT",
|
|
60
|
+
/**
|
|
61
|
+
* License type for AOS Product
|
|
62
|
+
* @const
|
|
63
|
+
*/
|
|
64
|
+
AOS: "AOS",
|
|
65
|
+
/**
|
|
66
|
+
* License type for File Product
|
|
67
|
+
* @const
|
|
68
|
+
*/
|
|
69
|
+
FILE: "FILE",
|
|
70
|
+
/**
|
|
71
|
+
* License type for Virtual Desktop Infrastructure Product
|
|
72
|
+
* @const
|
|
73
|
+
*/
|
|
74
|
+
VDI: "VDI",
|
|
75
|
+
/**
|
|
76
|
+
* License type for Robo Product
|
|
77
|
+
* @const
|
|
78
|
+
*/
|
|
79
|
+
ROBO: "ROBO",
|
|
80
|
+
/**
|
|
81
|
+
* License type for Mine Product
|
|
82
|
+
* @const
|
|
83
|
+
*/
|
|
84
|
+
MINE: "MINE",
|
|
85
|
+
/**
|
|
86
|
+
* License type for Nutanix Cloud Infrastructure Product
|
|
87
|
+
* @const
|
|
88
|
+
*/
|
|
89
|
+
NCI: "NCI",
|
|
90
|
+
/**
|
|
91
|
+
* License type for Nutanix Cloud Managed Product
|
|
92
|
+
* @const
|
|
93
|
+
*/
|
|
94
|
+
NCM: "NCM",
|
|
95
|
+
/**
|
|
96
|
+
* License type for NCI Data Product
|
|
97
|
+
* @const
|
|
98
|
+
*/
|
|
99
|
+
NCI_D: "NCI_D",
|
|
100
|
+
/**
|
|
101
|
+
* License type for Nutanix Database Platform Product
|
|
102
|
+
* @const
|
|
103
|
+
*/
|
|
104
|
+
NDA_PLATFORM: "NDA_PLATFORM",
|
|
105
|
+
/**
|
|
106
|
+
* License type for storage products including Object, Files and Volume
|
|
107
|
+
* @const
|
|
108
|
+
*/
|
|
109
|
+
UNIFIED_STORAGE: "UNIFIED_STORAGE",
|
|
110
|
+
/**
|
|
111
|
+
* License type for End User Computing Product
|
|
112
|
+
* @const
|
|
113
|
+
*/
|
|
114
|
+
EUC: "EUC",
|
|
115
|
+
/**
|
|
116
|
+
* License type for Object Product
|
|
117
|
+
* @const
|
|
118
|
+
*/
|
|
119
|
+
OBJECTS: "OBJECTS",
|
|
120
|
+
/**
|
|
121
|
+
* License type for Enterprise Cloud Recovery and Automation Product
|
|
122
|
+
* @const
|
|
123
|
+
*/
|
|
124
|
+
ERA: "ERA",
|
|
125
|
+
/**
|
|
126
|
+
* License type for Nutanix Dynamic Resource Schedule Product
|
|
127
|
+
* @const
|
|
128
|
+
*/
|
|
129
|
+
DRS: "DRS",
|
|
130
|
+
/**
|
|
131
|
+
* License type for Nutanix Database Service Product
|
|
132
|
+
* @const
|
|
133
|
+
*/
|
|
134
|
+
NDS: "NDS",
|
|
135
|
+
/**
|
|
136
|
+
* License type for Nutanix Database Product
|
|
137
|
+
* @const
|
|
138
|
+
*/
|
|
139
|
+
NDA: "NDA",
|
|
140
|
+
/**
|
|
141
|
+
* License type for Nutanix Database Service Platform Product
|
|
142
|
+
* @const
|
|
143
|
+
*/
|
|
144
|
+
NDS_PLATFORM: "NDS_PLATFORM",
|
|
145
|
+
/**
|
|
146
|
+
* License type for Nutanix Database Platform Product
|
|
147
|
+
* @const
|
|
148
|
+
*/
|
|
149
|
+
NDB_PLATFORM: "NDB_PLATFORM",
|
|
150
|
+
/**
|
|
151
|
+
* License type for Unified Storage Product
|
|
152
|
+
* @const
|
|
153
|
+
*/
|
|
154
|
+
NUS: "NUS",
|
|
155
|
+
/**
|
|
156
|
+
* License type for Nutanix Database Product
|
|
157
|
+
* @const
|
|
158
|
+
*/
|
|
159
|
+
NDB: "NDB",
|
|
160
|
+
/**
|
|
161
|
+
* License type for NCM Cloud Product
|
|
162
|
+
* @const
|
|
163
|
+
*/
|
|
164
|
+
NCM_CLOUD: "NCM_CLOUD",
|
|
165
|
+
/**
|
|
166
|
+
* License type for EDGE Product
|
|
167
|
+
* @const
|
|
168
|
+
*/
|
|
169
|
+
EDGE: "EDGE",
|
|
170
|
+
/**
|
|
171
|
+
* License type representing no license applied to cluster
|
|
172
|
+
* @const
|
|
173
|
+
*/
|
|
174
|
+
NO_LICENSE: "NO_LICENSE"
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Returns a <code>LicenseTypeEnum</code> enum value from a JavaScript object name.
|
|
179
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
180
|
+
* @return {LicenseTypeEnum} The enum <code>LicenseTypeEnum</code> value.
|
|
181
|
+
*/
|
|
182
|
+
LicenseTypeEnum.constructFromObject = function (obj) {
|
|
183
|
+
if (typeof obj === 'string' || obj instanceof String) {
|
|
184
|
+
var enumVal = Object.keys(LicenseTypeEnum).find(function (key) {
|
|
185
|
+
return LicenseTypeEnum[key] === obj;
|
|
186
|
+
});
|
|
187
|
+
return enumVal === undefined || enumVal === null ? LicenseTypeEnum.$UNKNOWN : LicenseTypeEnum[enumVal];
|
|
188
|
+
} else {
|
|
189
|
+
throw new Error("Received object name is not an instance of String");
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Validates <code>LicenseTypeEnum</code> enum value.
|
|
195
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
196
|
+
* @return {null} Throws error for invalid value.
|
|
197
|
+
*/
|
|
198
|
+
LicenseTypeEnum.validate = function (obj) {
|
|
199
|
+
switch (obj) {
|
|
200
|
+
case LicenseTypeEnum.$UNKNOWN:
|
|
201
|
+
case LicenseTypeEnum.$REDACTED:
|
|
202
|
+
case LicenseTypeEnum.PRISM:
|
|
203
|
+
case LicenseTypeEnum.CALM:
|
|
204
|
+
case LicenseTypeEnum.FLOW:
|
|
205
|
+
case LicenseTypeEnum.OBJECT:
|
|
206
|
+
case LicenseTypeEnum.AOS:
|
|
207
|
+
case LicenseTypeEnum.FILE:
|
|
208
|
+
case LicenseTypeEnum.VDI:
|
|
209
|
+
case LicenseTypeEnum.ROBO:
|
|
210
|
+
case LicenseTypeEnum.MINE:
|
|
211
|
+
case LicenseTypeEnum.NCI:
|
|
212
|
+
case LicenseTypeEnum.NCM:
|
|
213
|
+
case LicenseTypeEnum.NCI_D:
|
|
214
|
+
case LicenseTypeEnum.NDA_PLATFORM:
|
|
215
|
+
case LicenseTypeEnum.UNIFIED_STORAGE:
|
|
216
|
+
case LicenseTypeEnum.EUC:
|
|
217
|
+
case LicenseTypeEnum.OBJECTS:
|
|
218
|
+
case LicenseTypeEnum.ERA:
|
|
219
|
+
case LicenseTypeEnum.DRS:
|
|
220
|
+
case LicenseTypeEnum.NDS:
|
|
221
|
+
case LicenseTypeEnum.NDA:
|
|
222
|
+
case LicenseTypeEnum.NDS_PLATFORM:
|
|
223
|
+
case LicenseTypeEnum.NDB_PLATFORM:
|
|
224
|
+
case LicenseTypeEnum.NUS:
|
|
225
|
+
case LicenseTypeEnum.NDB:
|
|
226
|
+
case LicenseTypeEnum.NCM_CLOUD:
|
|
227
|
+
case LicenseTypeEnum.EDGE:
|
|
228
|
+
case LicenseTypeEnum.NO_LICENSE:
|
|
229
|
+
return;
|
|
230
|
+
default:
|
|
231
|
+
throw new Error("Invalid : must be LicenseTypeEnum.{ $UNKNOWN|$REDACTED|PRISM|CALM|FLOW|OBJECT|AOS|FILE|VDI|ROBO|MINE|NCI|NCM|NCI_D|NDA_PLATFORM|UNIFIED_STORAGE|EUC|OBJECTS|ERA|DRS|NDS|NDA|NDS_PLATFORM|NDB_PLATFORM|NUS|NDB|NCM_CLOUD|EDGE|NO_LICENSE }");
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
Object.freeze(LicenseTypeEnum);
|
|
235
|
+
var _default = exports["default"] = LicenseTypeEnum;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ListClusterAllowancesApiResponse model module.
|
|
3
|
+
* @module Ntnx/ListClusterAllowancesApiResponse
|
|
4
|
+
* @version 4.0.1-alpha-1
|
|
5
|
+
* @class ListClusterAllowancesApiResponse
|
|
6
|
+
*/
|
|
7
|
+
export default class ListClusterAllowancesApiResponse extends Paginable {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a <code>ListClusterAllowancesApiResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
10
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
11
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
12
|
+
* @param {module:Ntnx/ListClusterAllowancesApiResponse} obj Optional instance to populate.
|
|
13
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
|
+
* @return {module:Ntnx/ListClusterAllowancesApiResponse} The populated <code>ListClusterAllowancesApiResponse</code> instance.
|
|
15
|
+
*/
|
|
16
|
+
static constructFromObject(data: any, obj: any, callFromChild?: boolean): any;
|
|
17
|
+
$objectType: string;
|
|
18
|
+
$reserved: {
|
|
19
|
+
$fv: string;
|
|
20
|
+
};
|
|
21
|
+
$unknownFields: {};
|
|
22
|
+
/**
|
|
23
|
+
* @return {}
|
|
24
|
+
*/
|
|
25
|
+
getMetadata(): any;
|
|
26
|
+
/**
|
|
27
|
+
* @param {} metadata
|
|
28
|
+
*/
|
|
29
|
+
setMetadata(metadata: any): void;
|
|
30
|
+
metadata: any;
|
|
31
|
+
/**
|
|
32
|
+
* @return {}
|
|
33
|
+
*/
|
|
34
|
+
getData(): any;
|
|
35
|
+
/**
|
|
36
|
+
* @param {} data
|
|
37
|
+
*/
|
|
38
|
+
setData(data: any): void;
|
|
39
|
+
data: any;
|
|
40
|
+
get$Reserved(): {
|
|
41
|
+
$fv: string;
|
|
42
|
+
};
|
|
43
|
+
get$ObjectType(): string;
|
|
44
|
+
get$UnknownFields(): {};
|
|
45
|
+
toJson(forMutation: any): {
|
|
46
|
+
$reserved: {
|
|
47
|
+
$fv: string;
|
|
48
|
+
};
|
|
49
|
+
$objectType: string;
|
|
50
|
+
$unknownFields: {};
|
|
51
|
+
data?: any;
|
|
52
|
+
metadata?: any;
|
|
53
|
+
};
|
|
54
|
+
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
55
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
56
|
+
#private;
|
|
57
|
+
}
|
|
58
|
+
import Paginable from "../../../../Paginable";
|
|
59
|
+
import ValidationError from "../../../validation/ValidationError";
|