@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,134 @@
|
|
|
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 _EnforcementActionsEnum = _interopRequireDefault(require("./EnforcementActionsEnum"));
|
|
9
|
+
var _EnforcementLevelEnum = _interopRequireDefault(require("./EnforcementLevelEnum"));
|
|
10
|
+
var _LicenseTypeEnum = _interopRequireDefault(require("./LicenseTypeEnum"));
|
|
11
|
+
var _ProductNameEnum = _interopRequireDefault(require("./ProductNameEnum"));
|
|
12
|
+
var _Service2 = _interopRequireDefault(require("./Service"));
|
|
13
|
+
var _ServiceViolation = _interopRequireDefault(require("./ServiceViolation"));
|
|
14
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
15
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
16
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
17
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
18
|
+
function 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; }
|
|
19
|
+
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; }
|
|
20
|
+
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; }
|
|
21
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
22
|
+
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); } }
|
|
23
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
24
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
25
|
+
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); }
|
|
26
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
27
|
+
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); }
|
|
28
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
29
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
30
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
31
|
+
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); }
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /*
|
|
33
|
+
* Nutanix Licensing Versioned APIs
|
|
34
|
+
*
|
|
35
|
+
* OpenAPI spec version: 4.0.1-alpha-1
|
|
36
|
+
*
|
|
37
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
38
|
+
*
|
|
39
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
40
|
+
*
|
|
41
|
+
* Do not edit the class manually.
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
45
|
+
* The ServiceProjection model module.
|
|
46
|
+
* @module Ntnx/ServiceProjection
|
|
47
|
+
* @version 4.0.1-alpha-1
|
|
48
|
+
* @class ServiceProjection
|
|
49
|
+
*/
|
|
50
|
+
var ServiceProjection = exports["default"] = /*#__PURE__*/function (_Service) {
|
|
51
|
+
/**
|
|
52
|
+
* Constructs a new <code>ServiceProjection</code>.
|
|
53
|
+
* @alias module:Ntnx/ServiceProjection
|
|
54
|
+
* @extends module:Ntnx/Service
|
|
55
|
+
*/
|
|
56
|
+
function ServiceProjection() {
|
|
57
|
+
var _this;
|
|
58
|
+
_classCallCheck(this, ServiceProjection);
|
|
59
|
+
_this = _callSuper(this, ServiceProjection);
|
|
60
|
+
_this.$objectType = "licensing.v4.config.ServiceProjection";
|
|
61
|
+
_this.$reserved = {
|
|
62
|
+
'$fv': "v4.r0.a1"
|
|
63
|
+
};
|
|
64
|
+
_this.$unknownFields = {};
|
|
65
|
+
return _this;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Constructs a <code>ServiceProjection</code> from a plain JavaScript object, optionally creating a new instance.
|
|
70
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
71
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
72
|
+
* @param {module:Ntnx/ServiceProjection} obj Optional instance to populate.
|
|
73
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
74
|
+
* @return {module:Ntnx/ServiceProjection} The populated <code>ServiceProjection</code> instance.
|
|
75
|
+
*/
|
|
76
|
+
_inherits(ServiceProjection, _Service);
|
|
77
|
+
return _createClass(ServiceProjection, [{
|
|
78
|
+
key: "validate",
|
|
79
|
+
value: function validate(scope, properties) {
|
|
80
|
+
var _this2 = this;
|
|
81
|
+
var propList = [];
|
|
82
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
83
|
+
//cases validate() and validate(scope)
|
|
84
|
+
propList = [];
|
|
85
|
+
} else if (arguments.length === 1) {
|
|
86
|
+
//case validate(properties)
|
|
87
|
+
propList = arguments[0];
|
|
88
|
+
scope = null;
|
|
89
|
+
} else {
|
|
90
|
+
//case validate(scope, properties)
|
|
91
|
+
propList = arguments[1];
|
|
92
|
+
}
|
|
93
|
+
var res = [];
|
|
94
|
+
var err = null;
|
|
95
|
+
propList.forEach(function (property) {
|
|
96
|
+
err = _this2.validateProperty(property, scope);
|
|
97
|
+
if (err) {
|
|
98
|
+
res.push(err);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
return new Promise(function (resolve, reject) {
|
|
102
|
+
if (res.length !== 0) {
|
|
103
|
+
reject(err);
|
|
104
|
+
} else {
|
|
105
|
+
resolve();
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}, {
|
|
110
|
+
key: "validateProperty",
|
|
111
|
+
value: function validateProperty(scope, property) {
|
|
112
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
113
|
+
}
|
|
114
|
+
}], [{
|
|
115
|
+
key: "constructFromObject",
|
|
116
|
+
value: function constructFromObject(data, obj) {
|
|
117
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
118
|
+
var items, item, i, itemArr, discriminator;
|
|
119
|
+
if (data) {
|
|
120
|
+
obj = obj || new ServiceProjection();
|
|
121
|
+
_Service2["default"].constructFromObject(data, obj, true);
|
|
122
|
+
if (!callFromChild) {
|
|
123
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
124
|
+
for (var property in data) {
|
|
125
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
126
|
+
obj.$unknownFields[property] = data[property];
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return obj;
|
|
132
|
+
}
|
|
133
|
+
}]);
|
|
134
|
+
}(_Service2["default"]);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ServiceViolation model module.
|
|
3
|
+
* @module Ntnx/ServiceViolation
|
|
4
|
+
* @version 4.0.1-alpha-1
|
|
5
|
+
* @class ServiceViolation
|
|
6
|
+
*/
|
|
7
|
+
export default class ServiceViolation {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a <code>ServiceViolation</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/ServiceViolation} obj Optional instance to populate.
|
|
13
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
|
+
* @return {module:Ntnx/ServiceViolation} The populated <code>ServiceViolation</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
|
+
getType(): any;
|
|
26
|
+
/**
|
|
27
|
+
* @param {} type
|
|
28
|
+
*/
|
|
29
|
+
setType(type: any): void;
|
|
30
|
+
type: any;
|
|
31
|
+
/**
|
|
32
|
+
* Returns Attribute for capturing the start date of violation.
|
|
33
|
+
* @return {}
|
|
34
|
+
*/
|
|
35
|
+
getStartDate(): any;
|
|
36
|
+
/**
|
|
37
|
+
* Sets Attribute for capturing the start date of violation.
|
|
38
|
+
* @param {} startDate Attribute for capturing the start date of violation.
|
|
39
|
+
*/
|
|
40
|
+
setStartDate(startDate: any): void;
|
|
41
|
+
startDate: any;
|
|
42
|
+
get$Reserved(): {
|
|
43
|
+
$fv: string;
|
|
44
|
+
};
|
|
45
|
+
get$ObjectType(): string;
|
|
46
|
+
get$UnknownFields(): {};
|
|
47
|
+
toJson(forMutation: any): {
|
|
48
|
+
$reserved: {
|
|
49
|
+
$fv: string;
|
|
50
|
+
};
|
|
51
|
+
$objectType: string;
|
|
52
|
+
$unknownFields: {};
|
|
53
|
+
startDate?: any;
|
|
54
|
+
type?: any;
|
|
55
|
+
};
|
|
56
|
+
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
57
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
58
|
+
#private;
|
|
59
|
+
}
|
|
60
|
+
import ValidationError from "../../../validation/ValidationError";
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ServiceViolationEnum = _interopRequireDefault(require("./ServiceViolationEnum"));
|
|
8
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
9
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
10
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
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); }
|
|
13
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
14
|
+
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."); }
|
|
15
|
+
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); }
|
|
16
|
+
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; }
|
|
17
|
+
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; } }
|
|
18
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
19
|
+
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; }
|
|
20
|
+
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; }
|
|
21
|
+
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; }
|
|
22
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
+
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); } }
|
|
24
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
26
|
+
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); }
|
|
27
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
28
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
29
|
+
* Nutanix Licensing Versioned APIs
|
|
30
|
+
*
|
|
31
|
+
* OpenAPI spec version: 4.0.1-alpha-1
|
|
32
|
+
*
|
|
33
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
34
|
+
*
|
|
35
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
36
|
+
*
|
|
37
|
+
* Do not edit the class manually.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* The ServiceViolation model module.
|
|
42
|
+
* @module Ntnx/ServiceViolation
|
|
43
|
+
* @version 4.0.1-alpha-1
|
|
44
|
+
* @class ServiceViolation
|
|
45
|
+
*/
|
|
46
|
+
var _ServiceViolation_brand = /*#__PURE__*/new WeakSet();
|
|
47
|
+
var ServiceViolation = exports["default"] = /*#__PURE__*/function () {
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a new <code>ServiceViolation</code>.
|
|
50
|
+
* Model for capturing Violation details for compliance.
|
|
51
|
+
* @alias module:Ntnx/ServiceViolation
|
|
52
|
+
*/
|
|
53
|
+
function ServiceViolation() {
|
|
54
|
+
_classCallCheck(this, ServiceViolation);
|
|
55
|
+
/*
|
|
56
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
57
|
+
* @param {Object} obj
|
|
58
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
59
|
+
* Otherwise, just returns the input object.
|
|
60
|
+
*/
|
|
61
|
+
_classPrivateMethodInitSpec(this, _ServiceViolation_brand);
|
|
62
|
+
this.$objectType = "licensing.v4.config.ServiceViolation";
|
|
63
|
+
this.$reserved = {
|
|
64
|
+
'$fv': "v4.r0.a1"
|
|
65
|
+
};
|
|
66
|
+
this.$unknownFields = {};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Constructs a <code>ServiceViolation</code> from a plain JavaScript object, optionally creating a new instance.
|
|
71
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
72
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
73
|
+
* @param {module:Ntnx/ServiceViolation} obj Optional instance to populate.
|
|
74
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
75
|
+
* @return {module:Ntnx/ServiceViolation} The populated <code>ServiceViolation</code> instance.
|
|
76
|
+
*/
|
|
77
|
+
return _createClass(ServiceViolation, [{
|
|
78
|
+
key: "getType",
|
|
79
|
+
value:
|
|
80
|
+
/**
|
|
81
|
+
* @return {}
|
|
82
|
+
*/
|
|
83
|
+
function getType() {
|
|
84
|
+
return this.type;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @param {} type
|
|
89
|
+
*/
|
|
90
|
+
}, {
|
|
91
|
+
key: "setType",
|
|
92
|
+
value: function setType(type) {
|
|
93
|
+
this.type = type;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Returns Attribute for capturing the start date of violation.
|
|
98
|
+
* @return {}
|
|
99
|
+
*/
|
|
100
|
+
}, {
|
|
101
|
+
key: "getStartDate",
|
|
102
|
+
value: function getStartDate() {
|
|
103
|
+
return this.startDate;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Sets Attribute for capturing the start date of violation.
|
|
108
|
+
* @param {} startDate Attribute for capturing the start date of violation.
|
|
109
|
+
*/
|
|
110
|
+
}, {
|
|
111
|
+
key: "setStartDate",
|
|
112
|
+
value: function setStartDate(startDate) {
|
|
113
|
+
this.startDate = startDate;
|
|
114
|
+
}
|
|
115
|
+
}, {
|
|
116
|
+
key: "get$Reserved",
|
|
117
|
+
value: function get$Reserved() {
|
|
118
|
+
return this.$reserved;
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
121
|
+
key: "get$ObjectType",
|
|
122
|
+
value: function get$ObjectType() {
|
|
123
|
+
return this.$objectType;
|
|
124
|
+
}
|
|
125
|
+
}, {
|
|
126
|
+
key: "get$UnknownFields",
|
|
127
|
+
value: function get$UnknownFields() {
|
|
128
|
+
return this.$unknownFields;
|
|
129
|
+
}
|
|
130
|
+
}, {
|
|
131
|
+
key: "toJson",
|
|
132
|
+
value: function toJson(forMutation) {
|
|
133
|
+
if (forMutation === false) {
|
|
134
|
+
return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getType() !== 'undefined' && this.getType() !== null ? {
|
|
135
|
+
'type': this.getType()
|
|
136
|
+
} : {}), typeof this.getStartDate() !== 'undefined' && this.getStartDate() !== null ? {
|
|
137
|
+
'startDate': this.getStartDate()
|
|
138
|
+
} : {}), {}, {
|
|
139
|
+
'$reserved': this.get$Reserved(),
|
|
140
|
+
'$objectType': this.get$ObjectType(),
|
|
141
|
+
'$unknownFields': this.get$UnknownFields()
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getType() !== 'undefined' && this.getType() !== null ? {
|
|
145
|
+
'type': this.getType()
|
|
146
|
+
} : {}), typeof this.getStartDate() !== 'undefined' && this.getStartDate() !== null ? {
|
|
147
|
+
'startDate': this.getStartDate()
|
|
148
|
+
} : {}), {}, {
|
|
149
|
+
'$reserved': this.get$Reserved(),
|
|
150
|
+
'$objectType': this.get$ObjectType(),
|
|
151
|
+
'$unknownFields': this.get$UnknownFields()
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}, {
|
|
155
|
+
key: "validate",
|
|
156
|
+
value: function validate(scope, properties) {
|
|
157
|
+
var _this = this;
|
|
158
|
+
var propList = [];
|
|
159
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
160
|
+
//cases validate() and validate(scope)
|
|
161
|
+
propList = [];
|
|
162
|
+
} else if (arguments.length === 1) {
|
|
163
|
+
//case validate(properties)
|
|
164
|
+
propList = arguments[0];
|
|
165
|
+
scope = null;
|
|
166
|
+
} else {
|
|
167
|
+
//case validate(scope, properties)
|
|
168
|
+
propList = arguments[1];
|
|
169
|
+
}
|
|
170
|
+
var res = [];
|
|
171
|
+
var err = null;
|
|
172
|
+
propList.forEach(function (property) {
|
|
173
|
+
err = _this.validateProperty(property, scope);
|
|
174
|
+
if (err) {
|
|
175
|
+
res.push(err);
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
return new Promise(function (resolve, reject) {
|
|
179
|
+
if (res.length !== 0) {
|
|
180
|
+
reject(err);
|
|
181
|
+
} else {
|
|
182
|
+
resolve();
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
}, {
|
|
187
|
+
key: "validateProperty",
|
|
188
|
+
value: function validateProperty(scope, property) {
|
|
189
|
+
if (property === "type") {
|
|
190
|
+
if (typeof this.type === 'undefined' || this.type === null) {
|
|
191
|
+
return new _ValidationError["default"]("type", "undefined or null");
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
if (property === "startDate") {
|
|
195
|
+
if (typeof this.startDate === 'undefined' || this.startDate === null) {
|
|
196
|
+
return new _ValidationError["default"]("startDate", "undefined or null");
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
if (property === "$reserved") {
|
|
200
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
201
|
+
return new _ValidationError["default"]("$reserved", "undefined or null");
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
if (property === "$objectType") {
|
|
205
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
206
|
+
return new _ValidationError["default"]("$objectType", "undefined or null");
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
if (property === "$unknownFields") {
|
|
210
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
211
|
+
return new _ValidationError["default"]("$unknownFields", "undefined or null");
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
215
|
+
}
|
|
216
|
+
}], [{
|
|
217
|
+
key: "constructFromObject",
|
|
218
|
+
value: function constructFromObject(data, obj) {
|
|
219
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
220
|
+
var items, item, i, itemArr, discriminator;
|
|
221
|
+
if (data) {
|
|
222
|
+
obj = obj || new ServiceViolation();
|
|
223
|
+
if (data.hasOwnProperty('type') && data.type !== null && data.type !== undefined) {
|
|
224
|
+
obj.setType(_ServiceViolationEnum["default"].constructFromObject(data['type']));
|
|
225
|
+
}
|
|
226
|
+
if (data.hasOwnProperty('startDate') && data.startDate !== null && data.startDate !== undefined) {
|
|
227
|
+
obj.setStartDate(data['startDate']);
|
|
228
|
+
}
|
|
229
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
230
|
+
obj.$reserved = data['$reserved'];
|
|
231
|
+
}
|
|
232
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
233
|
+
obj.$objectType = data['$objectType'];
|
|
234
|
+
}
|
|
235
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
236
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
237
|
+
}
|
|
238
|
+
if (!callFromChild) {
|
|
239
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
240
|
+
for (var property in data) {
|
|
241
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
242
|
+
obj.$unknownFields[property] = data[property];
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return obj;
|
|
248
|
+
}
|
|
249
|
+
}]);
|
|
250
|
+
}();
|
|
251
|
+
/**
|
|
252
|
+
* @memberof ServiceViolation
|
|
253
|
+
*/
|
|
254
|
+
function _toJsonMapType(obj, forMutation) {
|
|
255
|
+
if (obj instanceof Map) {
|
|
256
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
257
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
258
|
+
k = _ref2[0],
|
|
259
|
+
v = _ref2[1];
|
|
260
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
261
|
+
}));
|
|
262
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
263
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
264
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
265
|
+
}));
|
|
266
|
+
}
|
|
267
|
+
return obj;
|
|
268
|
+
}
|
|
269
|
+
ServiceViolation.prototype.type = undefined;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Attribute for capturing the start date of violation.
|
|
273
|
+
* @memberof ServiceViolation
|
|
274
|
+
*/
|
|
275
|
+
ServiceViolation.prototype.startDate = undefined;
|
|
276
|
+
ServiceViolation.prototype.$reserved = undefined;
|
|
277
|
+
ServiceViolation.prototype.$objectType = undefined;
|
|
278
|
+
ServiceViolation.prototype.$unknownFields = undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default ServiceViolationEnum;
|
|
2
|
+
/**
|
|
3
|
+
* *
|
|
4
|
+
*/
|
|
5
|
+
type ServiceViolationEnum = string;
|
|
6
|
+
declare namespace ServiceViolationEnum {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a <code>ServiceViolationEnum</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 {ServiceViolationEnum} The enum <code>ServiceViolationEnum</code> value.
|
|
11
|
+
*/
|
|
12
|
+
function constructFromObject(obj: any): string;
|
|
13
|
+
/**
|
|
14
|
+
* Validates <code>ServiceViolationEnum</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,91 @@
|
|
|
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 ServiceViolationEnum.
|
|
26
|
+
* @enum {string}
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
var ServiceViolationEnum = {
|
|
30
|
+
/**
|
|
31
|
+
* value: "$UNKNOWN"
|
|
32
|
+
* @const
|
|
33
|
+
*/
|
|
34
|
+
$UNKNOWN: "$UNKNOWN",
|
|
35
|
+
/**
|
|
36
|
+
* value: "$REDACTED"
|
|
37
|
+
* @const
|
|
38
|
+
*/
|
|
39
|
+
$REDACTED: "$REDACTED",
|
|
40
|
+
/**
|
|
41
|
+
* License(s) have expired
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
LICENSE_EXPIRED: "LICENSE_EXPIRED",
|
|
45
|
+
/**
|
|
46
|
+
* Features being used are not available as per current licensing
|
|
47
|
+
* @const
|
|
48
|
+
*/
|
|
49
|
+
FEATURE_VIOLATION: "FEATURE_VIOLATION",
|
|
50
|
+
/**
|
|
51
|
+
* Capacity used is beyond currently licensed capacity
|
|
52
|
+
* @const
|
|
53
|
+
*/
|
|
54
|
+
CAPACITY_VIOLATION: "CAPACITY_VIOLATION"
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Returns a <code>ServiceViolationEnum</code> enum value from a JavaScript object name.
|
|
59
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
60
|
+
* @return {ServiceViolationEnum} The enum <code>ServiceViolationEnum</code> value.
|
|
61
|
+
*/
|
|
62
|
+
ServiceViolationEnum.constructFromObject = function (obj) {
|
|
63
|
+
if (typeof obj === 'string' || obj instanceof String) {
|
|
64
|
+
var enumVal = Object.keys(ServiceViolationEnum).find(function (key) {
|
|
65
|
+
return ServiceViolationEnum[key] === obj;
|
|
66
|
+
});
|
|
67
|
+
return enumVal === undefined || enumVal === null ? ServiceViolationEnum.$UNKNOWN : ServiceViolationEnum[enumVal];
|
|
68
|
+
} else {
|
|
69
|
+
throw new Error("Received object name is not an instance of String");
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Validates <code>ServiceViolationEnum</code> enum value.
|
|
75
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
76
|
+
* @return {null} Throws error for invalid value.
|
|
77
|
+
*/
|
|
78
|
+
ServiceViolationEnum.validate = function (obj) {
|
|
79
|
+
switch (obj) {
|
|
80
|
+
case ServiceViolationEnum.$UNKNOWN:
|
|
81
|
+
case ServiceViolationEnum.$REDACTED:
|
|
82
|
+
case ServiceViolationEnum.LICENSE_EXPIRED:
|
|
83
|
+
case ServiceViolationEnum.FEATURE_VIOLATION:
|
|
84
|
+
case ServiceViolationEnum.CAPACITY_VIOLATION:
|
|
85
|
+
return;
|
|
86
|
+
default:
|
|
87
|
+
throw new Error("Invalid : must be ServiceViolationEnum.{ $UNKNOWN|$REDACTED|LICENSE_EXPIRED|FEATURE_VIOLATION|CAPACITY_VIOLATION }");
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
Object.freeze(ServiceViolationEnum);
|
|
91
|
+
var _default = exports["default"] = ServiceViolationEnum;
|