@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,358 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ScopeEnum = _interopRequireDefault(require("./ScopeEnum"));
|
|
8
|
+
var _TypeEnum = _interopRequireDefault(require("./TypeEnum"));
|
|
9
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
10
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
11
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
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); }
|
|
14
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15
|
+
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."); }
|
|
16
|
+
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); }
|
|
17
|
+
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; }
|
|
18
|
+
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; } }
|
|
19
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
|
+
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; }
|
|
21
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
|
+
function _defineProperty(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; }
|
|
23
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
24
|
+
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); } }
|
|
25
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
26
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
27
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
28
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
29
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
30
|
+
* Nutanix Licensing Versioned APIs
|
|
31
|
+
*
|
|
32
|
+
* OpenAPI spec version: 4.0.1-alpha-1
|
|
33
|
+
*
|
|
34
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
35
|
+
*
|
|
36
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
37
|
+
*
|
|
38
|
+
* Do not edit the class manually.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* The AllowanceDetail model module.
|
|
43
|
+
* @module Ntnx/AllowanceDetail
|
|
44
|
+
* @version 4.0.1-alpha-1
|
|
45
|
+
* @class AllowanceDetail
|
|
46
|
+
*/
|
|
47
|
+
var _AllowanceDetail_brand = /*#__PURE__*/new WeakSet();
|
|
48
|
+
var AllowanceDetail = exports["default"] = /*#__PURE__*/function () {
|
|
49
|
+
/**
|
|
50
|
+
* Constructs a new <code>AllowanceDetail</code>.
|
|
51
|
+
* Model representing allowance details
|
|
52
|
+
* @alias module:Ntnx/AllowanceDetail
|
|
53
|
+
*/
|
|
54
|
+
function AllowanceDetail() {
|
|
55
|
+
_classCallCheck(this, AllowanceDetail);
|
|
56
|
+
/*
|
|
57
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
58
|
+
* @param {Object} obj
|
|
59
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
60
|
+
* Otherwise, just returns the input object.
|
|
61
|
+
*/
|
|
62
|
+
_classPrivateMethodInitSpec(this, _AllowanceDetail_brand);
|
|
63
|
+
this.$objectType = "licensing.v4.config.AllowanceDetail";
|
|
64
|
+
this.$reserved = {
|
|
65
|
+
'$fv': "v4.r0.a1"
|
|
66
|
+
};
|
|
67
|
+
this.$unknownFields = {};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Constructs a <code>AllowanceDetail</code> from a plain JavaScript object, optionally creating a new instance.
|
|
72
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
73
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
74
|
+
* @param {module:Ntnx/AllowanceDetail} obj Optional instance to populate.
|
|
75
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
76
|
+
* @return {module:Ntnx/AllowanceDetail} The populated <code>AllowanceDetail</code> instance.
|
|
77
|
+
*/
|
|
78
|
+
return _createClass(AllowanceDetail, [{
|
|
79
|
+
key: "getFeatureId",
|
|
80
|
+
value:
|
|
81
|
+
/**
|
|
82
|
+
* Returns Indicates feature id like MAX_NODES, APP_MONITORING
|
|
83
|
+
* @return {}
|
|
84
|
+
*/
|
|
85
|
+
function getFeatureId() {
|
|
86
|
+
return this.featureId;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Sets Indicates feature id like MAX_NODES, APP_MONITORING
|
|
91
|
+
* @param {} featureId Indicates feature id like MAX_NODES, APP_MONITORING
|
|
92
|
+
*/
|
|
93
|
+
}, {
|
|
94
|
+
key: "setFeatureId",
|
|
95
|
+
value: function setFeatureId(featureId) {
|
|
96
|
+
this.featureId = featureId;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @return {}
|
|
101
|
+
*/
|
|
102
|
+
}, {
|
|
103
|
+
key: "getType",
|
|
104
|
+
value: function getType() {
|
|
105
|
+
return this.type;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @param {} type
|
|
110
|
+
*/
|
|
111
|
+
}, {
|
|
112
|
+
key: "setType",
|
|
113
|
+
value: function setType(type) {
|
|
114
|
+
this.type = type;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Returns Attribute for feature value.For boolean, it will be true/false.For integer it will be any numeric value. True value indicates feature is available to use
|
|
119
|
+
* @return {}
|
|
120
|
+
*/
|
|
121
|
+
}, {
|
|
122
|
+
key: "getValue",
|
|
123
|
+
value: function getValue() {
|
|
124
|
+
return this.value;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Sets Attribute for feature value.For boolean, it will be true/false.For integer it will be any numeric value. True value indicates feature is available to use
|
|
129
|
+
* @param {} value Attribute for feature value.For boolean, it will be true/false.For integer it will be any numeric value. True value indicates feature is available to use
|
|
130
|
+
*/
|
|
131
|
+
}, {
|
|
132
|
+
key: "setValue",
|
|
133
|
+
value: function setValue(value) {
|
|
134
|
+
this.value = value;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @return {}
|
|
139
|
+
*/
|
|
140
|
+
}, {
|
|
141
|
+
key: "getScope",
|
|
142
|
+
value: function getScope() {
|
|
143
|
+
return this.scope;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @param {} scope
|
|
148
|
+
*/
|
|
149
|
+
}, {
|
|
150
|
+
key: "setScope",
|
|
151
|
+
value: function setScope(scope) {
|
|
152
|
+
this.scope = scope;
|
|
153
|
+
}
|
|
154
|
+
}, {
|
|
155
|
+
key: "get$Reserved",
|
|
156
|
+
value: function get$Reserved() {
|
|
157
|
+
return this.$reserved;
|
|
158
|
+
}
|
|
159
|
+
}, {
|
|
160
|
+
key: "get$ObjectType",
|
|
161
|
+
value: function get$ObjectType() {
|
|
162
|
+
return this.$objectType;
|
|
163
|
+
}
|
|
164
|
+
}, {
|
|
165
|
+
key: "get$UnknownFields",
|
|
166
|
+
value: function get$UnknownFields() {
|
|
167
|
+
return this.$unknownFields;
|
|
168
|
+
}
|
|
169
|
+
}, {
|
|
170
|
+
key: "toJson",
|
|
171
|
+
value: function toJson(forMutation) {
|
|
172
|
+
if (forMutation === false) {
|
|
173
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getFeatureId() !== 'undefined' && this.getFeatureId() !== null ? {
|
|
174
|
+
'featureId': this.getFeatureId()
|
|
175
|
+
} : {}), typeof this.getType() !== 'undefined' && this.getType() !== null ? {
|
|
176
|
+
'type': this.getType()
|
|
177
|
+
} : {}), typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {
|
|
178
|
+
'value': this.getValue()
|
|
179
|
+
} : {}), typeof this.getScope() !== 'undefined' && this.getScope() !== null ? {
|
|
180
|
+
'scope': this.getScope()
|
|
181
|
+
} : {}), {}, {
|
|
182
|
+
'$reserved': this.get$Reserved(),
|
|
183
|
+
'$objectType': this.get$ObjectType(),
|
|
184
|
+
'$unknownFields': this.get$UnknownFields()
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getFeatureId() !== 'undefined' && this.getFeatureId() !== null ? {
|
|
188
|
+
'featureId': this.getFeatureId()
|
|
189
|
+
} : {}), typeof this.getType() !== 'undefined' && this.getType() !== null ? {
|
|
190
|
+
'type': this.getType()
|
|
191
|
+
} : {}), typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {
|
|
192
|
+
'value': this.getValue()
|
|
193
|
+
} : {}), typeof this.getScope() !== 'undefined' && this.getScope() !== null ? {
|
|
194
|
+
'scope': this.getScope()
|
|
195
|
+
} : {}), {}, {
|
|
196
|
+
'$reserved': this.get$Reserved(),
|
|
197
|
+
'$objectType': this.get$ObjectType(),
|
|
198
|
+
'$unknownFields': this.get$UnknownFields()
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
}, {
|
|
202
|
+
key: "validate",
|
|
203
|
+
value: function validate(scope, properties) {
|
|
204
|
+
var _this = this;
|
|
205
|
+
var propList = [];
|
|
206
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
207
|
+
//cases validate() and validate(scope)
|
|
208
|
+
propList = [];
|
|
209
|
+
} else if (arguments.length === 1) {
|
|
210
|
+
//case validate(properties)
|
|
211
|
+
propList = arguments[0];
|
|
212
|
+
scope = null;
|
|
213
|
+
} else {
|
|
214
|
+
//case validate(scope, properties)
|
|
215
|
+
propList = arguments[1];
|
|
216
|
+
}
|
|
217
|
+
var res = [];
|
|
218
|
+
var err = null;
|
|
219
|
+
propList.forEach(function (property) {
|
|
220
|
+
err = _this.validateProperty(property, scope);
|
|
221
|
+
if (err) {
|
|
222
|
+
res.push(err);
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
return new Promise(function (resolve, reject) {
|
|
226
|
+
if (res.length !== 0) {
|
|
227
|
+
reject(err);
|
|
228
|
+
} else {
|
|
229
|
+
resolve();
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
}, {
|
|
234
|
+
key: "validateProperty",
|
|
235
|
+
value: function validateProperty(scope, property) {
|
|
236
|
+
if (property === "featureId") {
|
|
237
|
+
if (typeof this.featureId === 'undefined' || this.featureId === null) {
|
|
238
|
+
return new _ValidationError["default"]("featureId", "undefined or null");
|
|
239
|
+
}
|
|
240
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.featureId, 100)) {
|
|
241
|
+
return new _ValidationError["default"]("featureId", "does not satisfy required maxLength constraint: 100");
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
if (property === "type") {
|
|
245
|
+
if (typeof this.type === 'undefined' || this.type === null) {
|
|
246
|
+
return new _ValidationError["default"]("type", "undefined or null");
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
if (property === "value") {
|
|
250
|
+
if (typeof this.value === 'undefined' || this.value === null) {
|
|
251
|
+
return new _ValidationError["default"]("value", "undefined or null");
|
|
252
|
+
}
|
|
253
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.value, 25)) {
|
|
254
|
+
return new _ValidationError["default"]("value", "does not satisfy required maxLength constraint: 25");
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
if (property === "scope") {
|
|
258
|
+
if (typeof this.scope === 'undefined' || this.scope === null) {
|
|
259
|
+
return new _ValidationError["default"]("scope", "undefined or null");
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
if (property === "$reserved") {
|
|
263
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
264
|
+
return new _ValidationError["default"]("$reserved", "undefined or null");
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
if (property === "$objectType") {
|
|
268
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
269
|
+
return new _ValidationError["default"]("$objectType", "undefined or null");
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
if (property === "$unknownFields") {
|
|
273
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
274
|
+
return new _ValidationError["default"]("$unknownFields", "undefined or null");
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
278
|
+
}
|
|
279
|
+
}], [{
|
|
280
|
+
key: "constructFromObject",
|
|
281
|
+
value: function constructFromObject(data, obj) {
|
|
282
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
283
|
+
var items, item, i, itemArr, discriminator;
|
|
284
|
+
if (data) {
|
|
285
|
+
obj = obj || new AllowanceDetail();
|
|
286
|
+
if (data.hasOwnProperty('featureId') && data.featureId !== null && data.featureId !== undefined) {
|
|
287
|
+
obj.setFeatureId(data['featureId']);
|
|
288
|
+
}
|
|
289
|
+
if (data.hasOwnProperty('type') && data.type !== null && data.type !== undefined) {
|
|
290
|
+
obj.setType(_TypeEnum["default"].constructFromObject(data['type']));
|
|
291
|
+
}
|
|
292
|
+
if (data.hasOwnProperty('value') && data.value !== null && data.value !== undefined) {
|
|
293
|
+
obj.setValue(data['value']);
|
|
294
|
+
}
|
|
295
|
+
if (data.hasOwnProperty('scope') && data.scope !== null && data.scope !== undefined) {
|
|
296
|
+
obj.setScope(_ScopeEnum["default"].constructFromObject(data['scope']));
|
|
297
|
+
}
|
|
298
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
299
|
+
obj.$reserved = data['$reserved'];
|
|
300
|
+
}
|
|
301
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
302
|
+
obj.$objectType = data['$objectType'];
|
|
303
|
+
}
|
|
304
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
305
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
306
|
+
}
|
|
307
|
+
if (!callFromChild) {
|
|
308
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
309
|
+
for (var property in data) {
|
|
310
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
311
|
+
obj.$unknownFields[property] = data[property];
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
return obj;
|
|
317
|
+
}
|
|
318
|
+
}]);
|
|
319
|
+
}();
|
|
320
|
+
/**
|
|
321
|
+
* Indicates feature id like MAX_NODES, APP_MONITORING
|
|
322
|
+
* @memberof AllowanceDetail
|
|
323
|
+
*/
|
|
324
|
+
function _toJsonMapType(obj, forMutation) {
|
|
325
|
+
if (obj instanceof Map) {
|
|
326
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
327
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
328
|
+
k = _ref2[0],
|
|
329
|
+
v = _ref2[1];
|
|
330
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
331
|
+
}));
|
|
332
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
333
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
334
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
335
|
+
}));
|
|
336
|
+
}
|
|
337
|
+
return obj;
|
|
338
|
+
}
|
|
339
|
+
AllowanceDetail.prototype.featureId = undefined;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @memberof AllowanceDetail
|
|
343
|
+
*/
|
|
344
|
+
AllowanceDetail.prototype.type = undefined;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Attribute for feature value.For boolean, it will be true/false.For integer it will be any numeric value. True value indicates feature is available to use
|
|
348
|
+
* @memberof AllowanceDetail
|
|
349
|
+
*/
|
|
350
|
+
AllowanceDetail.prototype.value = undefined;
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* @memberof AllowanceDetail
|
|
354
|
+
*/
|
|
355
|
+
AllowanceDetail.prototype.scope = undefined;
|
|
356
|
+
AllowanceDetail.prototype.$reserved = undefined;
|
|
357
|
+
AllowanceDetail.prototype.$objectType = undefined;
|
|
358
|
+
AllowanceDetail.prototype.$unknownFields = undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The AllowanceDetailProjection model module.
|
|
3
|
+
* @module Ntnx/AllowanceDetailProjection
|
|
4
|
+
* @version 4.0.1-alpha-1
|
|
5
|
+
* @class AllowanceDetailProjection
|
|
6
|
+
*/
|
|
7
|
+
export default class AllowanceDetailProjection extends AllowanceDetail {
|
|
8
|
+
}
|
|
9
|
+
import AllowanceDetail from "./AllowanceDetail";
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _AllowanceDetail2 = _interopRequireDefault(require("./AllowanceDetail"));
|
|
9
|
+
var _ScopeEnum = _interopRequireDefault(require("./ScopeEnum"));
|
|
10
|
+
var _TypeEnum = _interopRequireDefault(require("./TypeEnum"));
|
|
11
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
12
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
13
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
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; }
|
|
16
|
+
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; }
|
|
17
|
+
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; }
|
|
18
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
+
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); } }
|
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
22
|
+
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); }
|
|
23
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
24
|
+
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); }
|
|
25
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
26
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
27
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
28
|
+
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); }
|
|
29
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /*
|
|
30
|
+
* Nutanix Licensing Versioned APIs
|
|
31
|
+
*
|
|
32
|
+
* OpenAPI spec version: 4.0.1-alpha-1
|
|
33
|
+
*
|
|
34
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
35
|
+
*
|
|
36
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
37
|
+
*
|
|
38
|
+
* Do not edit the class manually.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* The AllowanceDetailProjection model module.
|
|
43
|
+
* @module Ntnx/AllowanceDetailProjection
|
|
44
|
+
* @version 4.0.1-alpha-1
|
|
45
|
+
* @class AllowanceDetailProjection
|
|
46
|
+
*/
|
|
47
|
+
var AllowanceDetailProjection = exports["default"] = /*#__PURE__*/function (_AllowanceDetail) {
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a new <code>AllowanceDetailProjection</code>.
|
|
50
|
+
* @alias module:Ntnx/AllowanceDetailProjection
|
|
51
|
+
* @extends module:Ntnx/AllowanceDetail
|
|
52
|
+
*/
|
|
53
|
+
function AllowanceDetailProjection() {
|
|
54
|
+
var _this;
|
|
55
|
+
_classCallCheck(this, AllowanceDetailProjection);
|
|
56
|
+
_this = _callSuper(this, AllowanceDetailProjection);
|
|
57
|
+
_this.$objectType = "licensing.v4.config.AllowanceDetailProjection";
|
|
58
|
+
_this.$reserved = {
|
|
59
|
+
'$fv': "v4.r0.a1"
|
|
60
|
+
};
|
|
61
|
+
_this.$unknownFields = {};
|
|
62
|
+
return _this;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Constructs a <code>AllowanceDetailProjection</code> from a plain JavaScript object, optionally creating a new instance.
|
|
67
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
68
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
69
|
+
* @param {module:Ntnx/AllowanceDetailProjection} obj Optional instance to populate.
|
|
70
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
71
|
+
* @return {module:Ntnx/AllowanceDetailProjection} The populated <code>AllowanceDetailProjection</code> instance.
|
|
72
|
+
*/
|
|
73
|
+
_inherits(AllowanceDetailProjection, _AllowanceDetail);
|
|
74
|
+
return _createClass(AllowanceDetailProjection, [{
|
|
75
|
+
key: "validate",
|
|
76
|
+
value: function validate(scope, properties) {
|
|
77
|
+
var _this2 = this;
|
|
78
|
+
var propList = [];
|
|
79
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
80
|
+
//cases validate() and validate(scope)
|
|
81
|
+
propList = [];
|
|
82
|
+
} else if (arguments.length === 1) {
|
|
83
|
+
//case validate(properties)
|
|
84
|
+
propList = arguments[0];
|
|
85
|
+
scope = null;
|
|
86
|
+
} else {
|
|
87
|
+
//case validate(scope, properties)
|
|
88
|
+
propList = arguments[1];
|
|
89
|
+
}
|
|
90
|
+
var res = [];
|
|
91
|
+
var err = null;
|
|
92
|
+
propList.forEach(function (property) {
|
|
93
|
+
err = _this2.validateProperty(property, scope);
|
|
94
|
+
if (err) {
|
|
95
|
+
res.push(err);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
return new Promise(function (resolve, reject) {
|
|
99
|
+
if (res.length !== 0) {
|
|
100
|
+
reject(err);
|
|
101
|
+
} else {
|
|
102
|
+
resolve();
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}, {
|
|
107
|
+
key: "validateProperty",
|
|
108
|
+
value: function validateProperty(scope, property) {
|
|
109
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
110
|
+
}
|
|
111
|
+
}], [{
|
|
112
|
+
key: "constructFromObject",
|
|
113
|
+
value: function constructFromObject(data, obj) {
|
|
114
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
115
|
+
var items, item, i, itemArr, discriminator;
|
|
116
|
+
if (data) {
|
|
117
|
+
obj = obj || new AllowanceDetailProjection();
|
|
118
|
+
_AllowanceDetail2["default"].constructFromObject(data, obj, true);
|
|
119
|
+
if (!callFromChild) {
|
|
120
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
121
|
+
for (var property in data) {
|
|
122
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
123
|
+
obj.$unknownFields[property] = data[property];
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return obj;
|
|
129
|
+
}
|
|
130
|
+
}]);
|
|
131
|
+
}(_AllowanceDetail2["default"]);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The BaseClusterInfo model module.
|
|
3
|
+
* @module Ntnx/BaseClusterInfo
|
|
4
|
+
* @version 4.0.1-alpha-1
|
|
5
|
+
* @class BaseClusterInfo
|
|
6
|
+
*/
|
|
7
|
+
export default class BaseClusterInfo extends ExternalizableAbstractModel {
|
|
8
|
+
/**
|
|
9
|
+
* Returns True value indicates cluster UUID represents Prism Central otherwise Prism Element
|
|
10
|
+
* @return {}
|
|
11
|
+
*/
|
|
12
|
+
getIsMulticluster(): any;
|
|
13
|
+
/**
|
|
14
|
+
* Sets True value indicates cluster UUID represents Prism Central otherwise Prism Element
|
|
15
|
+
* @param {} isMulticluster True value indicates cluster UUID represents Prism Central otherwise Prism Element
|
|
16
|
+
*/
|
|
17
|
+
setIsMulticluster(isMulticluster: any): void;
|
|
18
|
+
isMulticluster: any;
|
|
19
|
+
toJson(forMutation: any): {
|
|
20
|
+
$reserved: {
|
|
21
|
+
$fv: string;
|
|
22
|
+
};
|
|
23
|
+
$objectType: string;
|
|
24
|
+
$unknownFields: {};
|
|
25
|
+
tenantId?: any;
|
|
26
|
+
links?: any;
|
|
27
|
+
extId?: any;
|
|
28
|
+
isMulticluster?: any;
|
|
29
|
+
};
|
|
30
|
+
#private;
|
|
31
|
+
}
|
|
32
|
+
import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel";
|