@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,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Eula model module.
|
|
3
|
+
* @module Ntnx/Eula
|
|
4
|
+
* @version 4.0.1-alpha-1
|
|
5
|
+
* @class Eula
|
|
6
|
+
*
|
|
7
|
+
* @param { String } content Textual contents of the end user license agreement.
|
|
8
|
+
*
|
|
9
|
+
* @param { String } version Version of the EULA.
|
|
10
|
+
*/
|
|
11
|
+
export default class Eula extends ExternalizableAbstractModel {
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new <code>Eula</code>.
|
|
14
|
+
* Model containing the EULA info attributes.
|
|
15
|
+
* @alias module:Ntnx/Eula
|
|
16
|
+
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
17
|
+
*
|
|
18
|
+
* @param { String } content Textual contents of the end user license agreement.
|
|
19
|
+
*
|
|
20
|
+
* @param { String } version Version of the EULA.
|
|
21
|
+
*/
|
|
22
|
+
constructor(content: string, version: string);
|
|
23
|
+
content: string;
|
|
24
|
+
version: string;
|
|
25
|
+
/**
|
|
26
|
+
* Returns Textual contents of the end user license agreement.
|
|
27
|
+
* @return {}
|
|
28
|
+
*/
|
|
29
|
+
getContent(): any;
|
|
30
|
+
/**
|
|
31
|
+
* Sets Textual contents of the end user license agreement.
|
|
32
|
+
* @param {} content Textual contents of the end user license agreement.
|
|
33
|
+
*/
|
|
34
|
+
setContent(content: any): void;
|
|
35
|
+
/**
|
|
36
|
+
* Returns EULA update time since epoch in ISO date time.
|
|
37
|
+
* @return {}
|
|
38
|
+
*/
|
|
39
|
+
getUpdatedTime(): any;
|
|
40
|
+
/**
|
|
41
|
+
* Sets EULA update time since epoch in ISO date time.
|
|
42
|
+
* @param {} updatedTime EULA update time since epoch in ISO date time.
|
|
43
|
+
*/
|
|
44
|
+
setUpdatedTime(updatedTime: any): void;
|
|
45
|
+
updatedTime: any;
|
|
46
|
+
/**
|
|
47
|
+
* Returns Version of the EULA.
|
|
48
|
+
* @return {}
|
|
49
|
+
*/
|
|
50
|
+
getVersion(): any;
|
|
51
|
+
/**
|
|
52
|
+
* Sets Version of the EULA.
|
|
53
|
+
* @param {} version Version of the EULA.
|
|
54
|
+
*/
|
|
55
|
+
setVersion(version: any): void;
|
|
56
|
+
/**
|
|
57
|
+
* Returns Indicates whether this is the current EULA of the cluster or not.
|
|
58
|
+
* @return {}
|
|
59
|
+
*/
|
|
60
|
+
getIsEnabled(): any;
|
|
61
|
+
/**
|
|
62
|
+
* Sets Indicates whether this is the current EULA of the cluster or not.
|
|
63
|
+
* @param {} isEnabled Indicates whether this is the current EULA of the cluster or not.
|
|
64
|
+
*/
|
|
65
|
+
setIsEnabled(isEnabled: any): void;
|
|
66
|
+
isEnabled: any;
|
|
67
|
+
/**
|
|
68
|
+
* Returns List of user details accepting the EULA.
|
|
69
|
+
* @return {}
|
|
70
|
+
*/
|
|
71
|
+
getAcceptedBy(): any;
|
|
72
|
+
/**
|
|
73
|
+
* Sets List of user details accepting the EULA.
|
|
74
|
+
* @param {} acceptedBy List of user details accepting the EULA.
|
|
75
|
+
*/
|
|
76
|
+
setAcceptedBy(acceptedBy: any): void;
|
|
77
|
+
acceptedBy: any;
|
|
78
|
+
toJson(forMutation: any): {
|
|
79
|
+
$reserved: {
|
|
80
|
+
$fv: string;
|
|
81
|
+
};
|
|
82
|
+
$objectType: string;
|
|
83
|
+
$unknownFields: {};
|
|
84
|
+
tenantId?: any;
|
|
85
|
+
links?: any;
|
|
86
|
+
extId?: any;
|
|
87
|
+
acceptedBy?: any;
|
|
88
|
+
isEnabled?: any;
|
|
89
|
+
version?: any;
|
|
90
|
+
updatedTime?: any;
|
|
91
|
+
content?: any;
|
|
92
|
+
};
|
|
93
|
+
#private;
|
|
94
|
+
}
|
|
95
|
+
import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel";
|
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
8
|
+
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
9
|
+
var _EulaUser = _interopRequireDefault(require("./EulaUser"));
|
|
10
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
11
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
12
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
+
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); }
|
|
15
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
|
+
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."); }
|
|
17
|
+
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); }
|
|
18
|
+
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; }
|
|
19
|
+
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; } }
|
|
20
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
|
+
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; }
|
|
22
|
+
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; }
|
|
23
|
+
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; }
|
|
24
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
+
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); } }
|
|
26
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
28
|
+
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); }
|
|
29
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
30
|
+
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); }
|
|
31
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
32
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
33
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
34
|
+
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); }
|
|
35
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
36
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
37
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
38
|
+
* Nutanix Licensing Versioned APIs
|
|
39
|
+
*
|
|
40
|
+
* OpenAPI spec version: 4.0.1-alpha-1
|
|
41
|
+
*
|
|
42
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
43
|
+
*
|
|
44
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
45
|
+
*
|
|
46
|
+
* Do not edit the class manually.
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* The Eula model module.
|
|
51
|
+
* @module Ntnx/Eula
|
|
52
|
+
* @version 4.0.1-alpha-1
|
|
53
|
+
* @class Eula
|
|
54
|
+
*
|
|
55
|
+
* @param { String } content Textual contents of the end user license agreement.
|
|
56
|
+
*
|
|
57
|
+
* @param { String } version Version of the EULA.
|
|
58
|
+
*/
|
|
59
|
+
var _Eula_brand = /*#__PURE__*/new WeakSet();
|
|
60
|
+
var Eula = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
|
|
61
|
+
/**
|
|
62
|
+
* Constructs a new <code>Eula</code>.
|
|
63
|
+
* Model containing the EULA info attributes.
|
|
64
|
+
* @alias module:Ntnx/Eula
|
|
65
|
+
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
66
|
+
*
|
|
67
|
+
* @param { String } content Textual contents of the end user license agreement.
|
|
68
|
+
*
|
|
69
|
+
* @param { String } version Version of the EULA.
|
|
70
|
+
*/
|
|
71
|
+
function Eula(content, version) {
|
|
72
|
+
var _this;
|
|
73
|
+
_classCallCheck(this, Eula);
|
|
74
|
+
_this = _callSuper(this, Eula);
|
|
75
|
+
/*
|
|
76
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
77
|
+
* @param {Object} obj
|
|
78
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
79
|
+
* Otherwise, just returns the input object.
|
|
80
|
+
*/
|
|
81
|
+
_classPrivateMethodInitSpec(_this, _Eula_brand);
|
|
82
|
+
_this.content = content;
|
|
83
|
+
_this.version = version;
|
|
84
|
+
_this.$objectType = "licensing.v4.agreements.Eula";
|
|
85
|
+
_this.$reserved = {
|
|
86
|
+
'$fv': "v4.r0.a1"
|
|
87
|
+
};
|
|
88
|
+
_this.$unknownFields = {};
|
|
89
|
+
return _this;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Constructs a <code>Eula</code> from a plain JavaScript object, optionally creating a new instance.
|
|
94
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
95
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
96
|
+
* @param {module:Ntnx/Eula} obj Optional instance to populate.
|
|
97
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
98
|
+
* @return {module:Ntnx/Eula} The populated <code>Eula</code> instance.
|
|
99
|
+
*/
|
|
100
|
+
_inherits(Eula, _ExternalizableAbstra);
|
|
101
|
+
return _createClass(Eula, [{
|
|
102
|
+
key: "getContent",
|
|
103
|
+
value:
|
|
104
|
+
/**
|
|
105
|
+
* Returns Textual contents of the end user license agreement.
|
|
106
|
+
* @return {}
|
|
107
|
+
*/
|
|
108
|
+
function getContent() {
|
|
109
|
+
return this.content;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Sets Textual contents of the end user license agreement.
|
|
114
|
+
* @param {} content Textual contents of the end user license agreement.
|
|
115
|
+
*/
|
|
116
|
+
}, {
|
|
117
|
+
key: "setContent",
|
|
118
|
+
value: function setContent(content) {
|
|
119
|
+
this.content = content;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Returns EULA update time since epoch in ISO date time.
|
|
124
|
+
* @return {}
|
|
125
|
+
*/
|
|
126
|
+
}, {
|
|
127
|
+
key: "getUpdatedTime",
|
|
128
|
+
value: function getUpdatedTime() {
|
|
129
|
+
return this.updatedTime;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Sets EULA update time since epoch in ISO date time.
|
|
134
|
+
* @param {} updatedTime EULA update time since epoch in ISO date time.
|
|
135
|
+
*/
|
|
136
|
+
}, {
|
|
137
|
+
key: "setUpdatedTime",
|
|
138
|
+
value: function setUpdatedTime(updatedTime) {
|
|
139
|
+
this.updatedTime = updatedTime;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Returns Version of the EULA.
|
|
144
|
+
* @return {}
|
|
145
|
+
*/
|
|
146
|
+
}, {
|
|
147
|
+
key: "getVersion",
|
|
148
|
+
value: function getVersion() {
|
|
149
|
+
return this.version;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Sets Version of the EULA.
|
|
154
|
+
* @param {} version Version of the EULA.
|
|
155
|
+
*/
|
|
156
|
+
}, {
|
|
157
|
+
key: "setVersion",
|
|
158
|
+
value: function setVersion(version) {
|
|
159
|
+
this.version = version;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Returns Indicates whether this is the current EULA of the cluster or not.
|
|
164
|
+
* @return {}
|
|
165
|
+
*/
|
|
166
|
+
}, {
|
|
167
|
+
key: "getIsEnabled",
|
|
168
|
+
value: function getIsEnabled() {
|
|
169
|
+
return this.isEnabled;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Sets Indicates whether this is the current EULA of the cluster or not.
|
|
174
|
+
* @param {} isEnabled Indicates whether this is the current EULA of the cluster or not.
|
|
175
|
+
*/
|
|
176
|
+
}, {
|
|
177
|
+
key: "setIsEnabled",
|
|
178
|
+
value: function setIsEnabled(isEnabled) {
|
|
179
|
+
this.isEnabled = isEnabled;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Returns List of user details accepting the EULA.
|
|
184
|
+
* @return {}
|
|
185
|
+
*/
|
|
186
|
+
}, {
|
|
187
|
+
key: "getAcceptedBy",
|
|
188
|
+
value: function getAcceptedBy() {
|
|
189
|
+
return this.acceptedBy;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Sets List of user details accepting the EULA.
|
|
194
|
+
* @param {} acceptedBy List of user details accepting the EULA.
|
|
195
|
+
*/
|
|
196
|
+
}, {
|
|
197
|
+
key: "setAcceptedBy",
|
|
198
|
+
value: function setAcceptedBy(acceptedBy) {
|
|
199
|
+
this.acceptedBy = acceptedBy;
|
|
200
|
+
}
|
|
201
|
+
}, {
|
|
202
|
+
key: "toJson",
|
|
203
|
+
value: function toJson(forMutation) {
|
|
204
|
+
if (forMutation === false) {
|
|
205
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getContent() !== 'undefined' && this.getContent() !== null ? {
|
|
206
|
+
'content': this.getContent()
|
|
207
|
+
} : {}), typeof this.getUpdatedTime() !== 'undefined' && this.getUpdatedTime() !== null ? {
|
|
208
|
+
'updatedTime': this.getUpdatedTime()
|
|
209
|
+
} : {}), typeof this.getVersion() !== 'undefined' && this.getVersion() !== null ? {
|
|
210
|
+
'version': this.getVersion()
|
|
211
|
+
} : {}), typeof this.getIsEnabled() !== 'undefined' && this.getIsEnabled() !== null ? {
|
|
212
|
+
'isEnabled': this.getIsEnabled()
|
|
213
|
+
} : {}), typeof this.getAcceptedBy() !== 'undefined' && this.getAcceptedBy() !== null ? {
|
|
214
|
+
'acceptedBy': this.getAcceptedBy().map(function (item) {
|
|
215
|
+
return item.toJson(false);
|
|
216
|
+
})
|
|
217
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
218
|
+
'extId': this.getExtId()
|
|
219
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
220
|
+
'links': this.getLinks().map(function (item) {
|
|
221
|
+
return item.toJson(false);
|
|
222
|
+
})
|
|
223
|
+
} : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
224
|
+
'tenantId': this.getTenantId()
|
|
225
|
+
} : {}), {}, {
|
|
226
|
+
'$reserved': this.get$Reserved(),
|
|
227
|
+
'$objectType': this.get$ObjectType(),
|
|
228
|
+
'$unknownFields': this.get$UnknownFields()
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getContent() !== 'undefined' && this.getContent() !== null ? {
|
|
232
|
+
'content': this.getContent()
|
|
233
|
+
} : {}), typeof this.getUpdatedTime() !== 'undefined' && this.getUpdatedTime() !== null ? {
|
|
234
|
+
'updatedTime': this.getUpdatedTime()
|
|
235
|
+
} : {}), typeof this.getVersion() !== 'undefined' && this.getVersion() !== null ? {
|
|
236
|
+
'version': this.getVersion()
|
|
237
|
+
} : {}), typeof this.getIsEnabled() !== 'undefined' && this.getIsEnabled() !== null ? {
|
|
238
|
+
'isEnabled': this.getIsEnabled()
|
|
239
|
+
} : {}), typeof this.getAcceptedBy() !== 'undefined' && this.getAcceptedBy() !== null ? {
|
|
240
|
+
'acceptedBy': this.getAcceptedBy().map(function (item) {
|
|
241
|
+
return item.toJson(false);
|
|
242
|
+
})
|
|
243
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
244
|
+
'extId': this.getExtId()
|
|
245
|
+
} : {}), {}, {
|
|
246
|
+
'$reserved': this.get$Reserved(),
|
|
247
|
+
'$objectType': this.get$ObjectType(),
|
|
248
|
+
'$unknownFields': this.get$UnknownFields()
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
}, {
|
|
252
|
+
key: "validate",
|
|
253
|
+
value: function validate(scope, properties) {
|
|
254
|
+
var _this2 = this;
|
|
255
|
+
var propList = [];
|
|
256
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
257
|
+
//cases validate() and validate(scope)
|
|
258
|
+
propList = ["content", "version"];
|
|
259
|
+
} else if (arguments.length === 1) {
|
|
260
|
+
//case validate(properties)
|
|
261
|
+
propList = arguments[0];
|
|
262
|
+
scope = null;
|
|
263
|
+
} else {
|
|
264
|
+
//case validate(scope, properties)
|
|
265
|
+
propList = arguments[1];
|
|
266
|
+
}
|
|
267
|
+
var res = [];
|
|
268
|
+
var err = null;
|
|
269
|
+
propList.forEach(function (property) {
|
|
270
|
+
err = _this2.validateProperty(property, scope);
|
|
271
|
+
if (err) {
|
|
272
|
+
res.push(err);
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
return new Promise(function (resolve, reject) {
|
|
276
|
+
if (res.length !== 0) {
|
|
277
|
+
reject(err);
|
|
278
|
+
} else {
|
|
279
|
+
resolve();
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
}, {
|
|
284
|
+
key: "validateProperty",
|
|
285
|
+
value: function validateProperty(scope, property) {
|
|
286
|
+
if (property === "content") {
|
|
287
|
+
if (typeof this.content === 'undefined' || this.content === null) {
|
|
288
|
+
return new _ValidationError["default"]("content", "undefined or null");
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
if (property === "updatedTime") {
|
|
292
|
+
if (typeof this.updatedTime === 'undefined' || this.updatedTime === null) {
|
|
293
|
+
return new _ValidationError["default"]("updatedTime", "undefined or null");
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
if (property === "version") {
|
|
297
|
+
if (typeof this.version === 'undefined' || this.version === null) {
|
|
298
|
+
return new _ValidationError["default"]("version", "undefined or null");
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
if (property === "isEnabled") {
|
|
302
|
+
if (typeof this.isEnabled === 'undefined' || this.isEnabled === null) {
|
|
303
|
+
return new _ValidationError["default"]("isEnabled", "undefined or null");
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
if (property === "acceptedBy") {
|
|
307
|
+
if (typeof this.acceptedBy === 'undefined' || this.acceptedBy === null) {
|
|
308
|
+
return new _ValidationError["default"]("acceptedBy", "undefined or null");
|
|
309
|
+
}
|
|
310
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.acceptedBy, 100)) {
|
|
311
|
+
return new _ValidationError["default"]("acceptedBy", "does not satisfy required maxItems constraint: 100");
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
315
|
+
}
|
|
316
|
+
}], [{
|
|
317
|
+
key: "constructFromObject",
|
|
318
|
+
value: function constructFromObject(data, obj) {
|
|
319
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
320
|
+
var items, item, i, itemArr, discriminator;
|
|
321
|
+
if (data) {
|
|
322
|
+
obj = obj || new Eula();
|
|
323
|
+
_ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
|
|
324
|
+
if (data.hasOwnProperty('content') && data.content !== null && data.content !== undefined) {
|
|
325
|
+
obj.setContent(data['content']);
|
|
326
|
+
}
|
|
327
|
+
if (data.hasOwnProperty('updatedTime') && data.updatedTime !== null && data.updatedTime !== undefined) {
|
|
328
|
+
obj.setUpdatedTime(data['updatedTime']);
|
|
329
|
+
}
|
|
330
|
+
if (data.hasOwnProperty('version') && data.version !== null && data.version !== undefined) {
|
|
331
|
+
obj.setVersion(data['version']);
|
|
332
|
+
}
|
|
333
|
+
if (data.hasOwnProperty('isEnabled') && data.isEnabled !== null && data.isEnabled !== undefined) {
|
|
334
|
+
obj.setIsEnabled(data['isEnabled']);
|
|
335
|
+
}
|
|
336
|
+
if (data.hasOwnProperty('acceptedBy') && data.acceptedBy !== null && data.acceptedBy !== undefined) {
|
|
337
|
+
itemArr = [];
|
|
338
|
+
items = data.acceptedBy;
|
|
339
|
+
for (i = 0; i < items.length; i++) {
|
|
340
|
+
item = _EulaUser["default"].constructFromObject(items[i], undefined);
|
|
341
|
+
itemArr.push(item);
|
|
342
|
+
}
|
|
343
|
+
obj.setAcceptedBy(itemArr);
|
|
344
|
+
}
|
|
345
|
+
if (!callFromChild) {
|
|
346
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
347
|
+
for (var property in data) {
|
|
348
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
349
|
+
obj.$unknownFields[property] = data[property];
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
return obj;
|
|
355
|
+
}
|
|
356
|
+
}]);
|
|
357
|
+
}(_ExternalizableAbstractModel["default"]);
|
|
358
|
+
/**
|
|
359
|
+
* Textual contents of the end user license agreement.
|
|
360
|
+
* @memberof Eula
|
|
361
|
+
*/
|
|
362
|
+
function _toJsonMapType(obj, forMutation) {
|
|
363
|
+
if (obj instanceof Map) {
|
|
364
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
365
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
366
|
+
k = _ref2[0],
|
|
367
|
+
v = _ref2[1];
|
|
368
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
369
|
+
}));
|
|
370
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
371
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
372
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
373
|
+
}));
|
|
374
|
+
}
|
|
375
|
+
return obj;
|
|
376
|
+
}
|
|
377
|
+
Eula.prototype.content = undefined;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* EULA update time since epoch in ISO date time.
|
|
381
|
+
* @memberof Eula
|
|
382
|
+
*/
|
|
383
|
+
Eula.prototype.updatedTime = undefined;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Version of the EULA.
|
|
387
|
+
* @memberof Eula
|
|
388
|
+
*/
|
|
389
|
+
Eula.prototype.version = undefined;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Indicates whether this is the current EULA of the cluster or not.
|
|
393
|
+
* @memberof Eula
|
|
394
|
+
*/
|
|
395
|
+
Eula.prototype.isEnabled = undefined;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* List of user details accepting the EULA.
|
|
399
|
+
* @memberof Eula
|
|
400
|
+
*/
|
|
401
|
+
Eula.prototype.acceptedBy = undefined;
|
|
402
|
+
|
|
403
|
+
// Implement OneOflicensing.v4.agreements.GetEulaApiResponsedata interface:
|
|
404
|
+
// Implement OneOflicensing.v4.agreements.UpdateEulaApiResponsedata interface:
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The EulaUser model module.
|
|
3
|
+
* @module Ntnx/EulaUser
|
|
4
|
+
* @version 4.0.1-alpha-1
|
|
5
|
+
* @class EulaUser
|
|
6
|
+
*
|
|
7
|
+
* @param { String } userName User name of the user accepting the EULA
|
|
8
|
+
*
|
|
9
|
+
* @param { String } loginId Login ID of the user accepting the EULA
|
|
10
|
+
*
|
|
11
|
+
* @param { String } jobTitle Job title of the user accepting the EULA
|
|
12
|
+
*
|
|
13
|
+
* @param { String } companyName Company name of the user accepting the EULA
|
|
14
|
+
*/
|
|
15
|
+
export default class EulaUser extends ExternalizableAbstractModel {
|
|
16
|
+
/**
|
|
17
|
+
* Constructs a new <code>EulaUser</code>.
|
|
18
|
+
* Model containing the EULA User Details attributes.
|
|
19
|
+
* @alias module:Ntnx/EulaUser
|
|
20
|
+
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
21
|
+
*
|
|
22
|
+
* @param { String } userName User name of the user accepting the EULA
|
|
23
|
+
*
|
|
24
|
+
* @param { String } loginId Login ID of the user accepting the EULA
|
|
25
|
+
*
|
|
26
|
+
* @param { String } jobTitle Job title of the user accepting the EULA
|
|
27
|
+
*
|
|
28
|
+
* @param { String } companyName Company name of the user accepting the EULA
|
|
29
|
+
*/
|
|
30
|
+
constructor(userName: string, loginId: string, jobTitle: string, companyName: string);
|
|
31
|
+
userName: string;
|
|
32
|
+
loginId: string;
|
|
33
|
+
jobTitle: string;
|
|
34
|
+
companyName: string;
|
|
35
|
+
/**
|
|
36
|
+
* Returns User name of the user accepting the EULA
|
|
37
|
+
* @return {}
|
|
38
|
+
*/
|
|
39
|
+
getUserName(): any;
|
|
40
|
+
/**
|
|
41
|
+
* Sets User name of the user accepting the EULA
|
|
42
|
+
* @param {} userName User name of the user accepting the EULA
|
|
43
|
+
*/
|
|
44
|
+
setUserName(userName: any): void;
|
|
45
|
+
/**
|
|
46
|
+
* Returns Login ID of the user accepting the EULA
|
|
47
|
+
* @return {}
|
|
48
|
+
*/
|
|
49
|
+
getLoginId(): any;
|
|
50
|
+
/**
|
|
51
|
+
* Sets Login ID of the user accepting the EULA
|
|
52
|
+
* @param {} loginId Login ID of the user accepting the EULA
|
|
53
|
+
*/
|
|
54
|
+
setLoginId(loginId: any): void;
|
|
55
|
+
/**
|
|
56
|
+
* Returns Job title of the user accepting the EULA
|
|
57
|
+
* @return {}
|
|
58
|
+
*/
|
|
59
|
+
getJobTitle(): any;
|
|
60
|
+
/**
|
|
61
|
+
* Sets Job title of the user accepting the EULA
|
|
62
|
+
* @param {} jobTitle Job title of the user accepting the EULA
|
|
63
|
+
*/
|
|
64
|
+
setJobTitle(jobTitle: any): void;
|
|
65
|
+
/**
|
|
66
|
+
* Returns Company name of the user accepting the EULA
|
|
67
|
+
* @return {}
|
|
68
|
+
*/
|
|
69
|
+
getCompanyName(): any;
|
|
70
|
+
/**
|
|
71
|
+
* Sets Company name of the user accepting the EULA
|
|
72
|
+
* @param {} companyName Company name of the user accepting the EULA
|
|
73
|
+
*/
|
|
74
|
+
setCompanyName(companyName: any): void;
|
|
75
|
+
/**
|
|
76
|
+
* Returns Date-time at which EULA was accepted. Date-Time in epoch seconds in ISO date time
|
|
77
|
+
* @return {}
|
|
78
|
+
*/
|
|
79
|
+
getAcceptedTime(): any;
|
|
80
|
+
/**
|
|
81
|
+
* Sets Date-time at which EULA was accepted. Date-Time in epoch seconds in ISO date time
|
|
82
|
+
* @param {} acceptedTime Date-time at which EULA was accepted. Date-Time in epoch seconds in ISO date time
|
|
83
|
+
*/
|
|
84
|
+
setAcceptedTime(acceptedTime: any): void;
|
|
85
|
+
acceptedTime: any;
|
|
86
|
+
toJson(forMutation: any): {
|
|
87
|
+
$reserved: {
|
|
88
|
+
$fv: string;
|
|
89
|
+
};
|
|
90
|
+
$objectType: string;
|
|
91
|
+
$unknownFields: {};
|
|
92
|
+
tenantId?: any;
|
|
93
|
+
links?: any;
|
|
94
|
+
extId?: any;
|
|
95
|
+
acceptedTime?: any;
|
|
96
|
+
companyName?: any;
|
|
97
|
+
jobTitle?: any;
|
|
98
|
+
loginId?: any;
|
|
99
|
+
userName?: any;
|
|
100
|
+
};
|
|
101
|
+
#private;
|
|
102
|
+
}
|
|
103
|
+
import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel";
|