@nutanix-scratch/licensing-js-client 1.421.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 +202 -0
- package/README.md +215 -0
- package/dist/Ntnx-Licensing-js-client-prod.js +1 -0
- package/dist/Ntnx-Licensing-js-client.js +1642 -0
- package/dist/es/ApiClient.d.ts +172 -0
- package/dist/es/ApiClient.js +1262 -0
- package/dist/es/Paginable.d.ts +95 -0
- package/dist/es/Paginable.js +287 -0
- package/dist/es/apis/enduserlicenseagreement-endpoints.d.ts +41 -0
- package/dist/es/apis/enduserlicenseagreement-endpoints.js +141 -0
- package/dist/es/apis/licensekeys-endpoints.d.ts +91 -0
- package/dist/es/apis/licensekeys-endpoints.js +283 -0
- package/dist/es/apis/licenses-endpoints.d.ts +206 -0
- package/dist/es/apis/licenses-endpoints.js +480 -0
- package/dist/es/index.d.ts +230 -0
- package/dist/es/index.js +916 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +64 -0
- package/dist/es/models/common/v1/config/Flag.js +319 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +71 -0
- package/dist/es/models/common/v1/config/KVPair.js +378 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/es/models/common/v1/config/Message.d.ts +87 -0
- package/dist/es/models/common/v1/config/Message.js +386 -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 +52 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.js +275 -0
- package/dist/es/models/common/v1/response/ApiLink.d.ts +64 -0
- package/dist/es/models/common/v1/response/ApiLink.js +312 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +133 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +482 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +48 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +310 -0
- package/dist/es/models/licensing/v4/agreements/Acceptance.d.ts +81 -0
- package/dist/es/models/licensing/v4/agreements/Acceptance.js +314 -0
- package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.js +365 -0
- package/dist/es/models/licensing/v4/agreements/EndUser.d.ts +110 -0
- package/dist/es/models/licensing/v4/agreements/EndUser.js +420 -0
- package/dist/es/models/licensing/v4/agreements/Eula.d.ts +115 -0
- package/dist/es/models/licensing/v4/agreements/Eula.js +441 -0
- package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.js +343 -0
- package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +103 -0
- package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.js +347 -0
- package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +137 -0
- package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +360 -0
- package/dist/es/models/licensing/v4/config/Allowance.d.ts +70 -0
- package/dist/es/models/licensing/v4/config/Allowance.js +371 -0
- package/dist/es/models/licensing/v4/config/AllowanceDetail.d.ts +86 -0
- package/dist/es/models/licensing/v4/config/AllowanceDetail.js +390 -0
- package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.js +152 -0
- package/dist/es/models/licensing/v4/config/AllowanceProjection.d.ts +56 -0
- package/dist/es/models/licensing/v4/config/AllowanceProjection.js +320 -0
- package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +102 -0
- package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +365 -0
- package/dist/es/models/licensing/v4/config/AssociationType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/AssociationType.js +85 -0
- package/dist/es/models/licensing/v4/config/BaseClusterInfo.d.ts +37 -0
- package/dist/es/models/licensing/v4/config/BaseClusterInfo.js +271 -0
- package/dist/es/models/licensing/v4/config/BaseLicenseInfo.d.ts +82 -0
- package/dist/es/models/licensing/v4/config/BaseLicenseInfo.js +423 -0
- package/dist/es/models/licensing/v4/config/BillingPlan.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/BillingPlan.js +91 -0
- package/dist/es/models/licensing/v4/config/CapacityViolation.d.ts +85 -0
- package/dist/es/models/licensing/v4/config/CapacityViolation.js +382 -0
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +30 -0
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.js +269 -0
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +151 -0
- package/dist/es/models/licensing/v4/config/ClusterType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ClusterType.js +91 -0
- package/dist/es/models/licensing/v4/config/Compliance.d.ts +78 -0
- package/dist/es/models/licensing/v4/config/Compliance.js +371 -0
- package/dist/es/models/licensing/v4/config/ComplianceProjection.d.ts +72 -0
- package/dist/es/models/licensing/v4/config/ComplianceProjection.js +320 -0
- package/dist/es/models/licensing/v4/config/Consumption.d.ts +64 -0
- package/dist/es/models/licensing/v4/config/Consumption.js +315 -0
- package/dist/es/models/licensing/v4/config/ConsumptionProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/ConsumptionProjection.js +150 -0
- package/dist/es/models/licensing/v4/config/ConsumptionType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ConsumptionType.js +85 -0
- package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +98 -0
- package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +345 -0
- package/dist/es/models/licensing/v4/config/DryRunCheck.d.ts +72 -0
- package/dist/es/models/licensing/v4/config/DryRunCheck.js +325 -0
- package/dist/es/models/licensing/v4/config/DryRunStatus.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/DryRunStatus.js +86 -0
- package/dist/es/models/licensing/v4/config/DryRunValidationResult.d.ts +68 -0
- package/dist/es/models/licensing/v4/config/DryRunValidationResult.js +297 -0
- package/dist/es/models/licensing/v4/config/EnforcementActions.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/EnforcementActions.js +139 -0
- package/dist/es/models/licensing/v4/config/EnforcementLevel.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/EnforcementLevel.js +85 -0
- package/dist/es/models/licensing/v4/config/EnforcementPolicy.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/EnforcementPolicy.js +85 -0
- package/dist/es/models/licensing/v4/config/Entitlement.d.ts +98 -0
- package/dist/es/models/licensing/v4/config/Entitlement.js +450 -0
- package/dist/es/models/licensing/v4/config/EntitlementDetail.d.ts +131 -0
- package/dist/es/models/licensing/v4/config/EntitlementDetail.js +534 -0
- package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.js +155 -0
- package/dist/es/models/licensing/v4/config/EntitlementProjection.d.ts +66 -0
- package/dist/es/models/licensing/v4/config/EntitlementProjection.js +338 -0
- package/dist/es/models/licensing/v4/config/ExpiredLicense.d.ts +65 -0
- package/dist/es/models/licensing/v4/config/ExpiredLicense.js +396 -0
- package/dist/es/models/licensing/v4/config/Feature.d.ts +104 -0
- package/dist/es/models/licensing/v4/config/Feature.js +512 -0
- package/dist/es/models/licensing/v4/config/FeatureDetail.d.ts +76 -0
- package/dist/es/models/licensing/v4/config/FeatureDetail.js +359 -0
- package/dist/es/models/licensing/v4/config/FeatureProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/FeatureProjection.js +152 -0
- package/dist/es/models/licensing/v4/config/FeatureViolation.d.ts +31 -0
- package/dist/es/models/licensing/v4/config/FeatureViolation.js +278 -0
- package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.js +343 -0
- package/dist/es/models/licensing/v4/config/License.d.ts +95 -0
- package/dist/es/models/licensing/v4/config/License.js +484 -0
- package/dist/es/models/licensing/v4/config/LicenseCategory.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/LicenseCategory.js +295 -0
- package/dist/es/models/licensing/v4/config/LicenseClass.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/LicenseClass.js +91 -0
- package/dist/es/models/licensing/v4/config/LicenseKey.d.ts +181 -0
- package/dist/es/models/licensing/v4/config/LicenseKey.js +707 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignment.d.ts +71 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignment.js +329 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignmentSpec.d.ts +75 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignmentSpec.js +296 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociation.d.ts +104 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociation.js +403 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociationProjection.d.ts +16 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociationProjection.js +164 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociationSpec.d.ts +71 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociationSpec.js +296 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyMapping.d.ts +64 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyMapping.js +315 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyProjection.d.ts +91 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyProjection.js +431 -0
- package/dist/es/models/licensing/v4/config/LicenseKeySubCategory.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/LicenseKeySubCategory.js +85 -0
- package/dist/es/models/licensing/v4/config/LicenseProjection.d.ts +58 -0
- package/dist/es/models/licensing/v4/config/LicenseProjection.js +374 -0
- package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +75 -0
- package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.js +364 -0
- package/dist/es/models/licensing/v4/config/LicenseType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/LicenseType.js +283 -0
- package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.js +365 -0
- package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.js +365 -0
- package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.js +365 -0
- package/dist/es/models/licensing/v4/config/LogicalVersion.d.ts +64 -0
- package/dist/es/models/licensing/v4/config/LogicalVersion.js +312 -0
- package/dist/es/models/licensing/v4/config/Meter.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/Meter.js +127 -0
- package/dist/es/models/licensing/v4/config/OperationType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/OperationType.js +97 -0
- package/dist/es/models/licensing/v4/config/PortalSetting.d.ts +86 -0
- package/dist/es/models/licensing/v4/config/PortalSetting.js +359 -0
- package/dist/es/models/licensing/v4/config/PostPaidCategory.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/PostPaidCategory.js +85 -0
- package/dist/es/models/licensing/v4/config/PostPaidConfig.d.ts +97 -0
- package/dist/es/models/licensing/v4/config/PostPaidConfig.js +423 -0
- package/dist/es/models/licensing/v4/config/ProductName.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ProductName.js +115 -0
- package/dist/es/models/licensing/v4/config/ReclaimType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ReclaimType.js +85 -0
- package/dist/es/models/licensing/v4/config/Recommendation.d.ts +47 -0
- package/dist/es/models/licensing/v4/config/Recommendation.js +287 -0
- package/dist/es/models/licensing/v4/config/RecommendationDetail.d.ts +98 -0
- package/dist/es/models/licensing/v4/config/RecommendationDetail.js +429 -0
- package/dist/es/models/licensing/v4/config/RecommendationScope.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/RecommendationScope.js +85 -0
- package/dist/es/models/licensing/v4/config/ResetScope.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ResetScope.js +85 -0
- package/dist/es/models/licensing/v4/config/Scope.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/Scope.js +91 -0
- package/dist/es/models/licensing/v4/config/Service.d.ts +117 -0
- package/dist/es/models/licensing/v4/config/Service.js +482 -0
- package/dist/es/models/licensing/v4/config/ServiceProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/ServiceProjection.js +155 -0
- package/dist/es/models/licensing/v4/config/ServiceViolation.d.ts +63 -0
- package/dist/es/models/licensing/v4/config/ServiceViolation.js +311 -0
- package/dist/es/models/licensing/v4/config/ServiceViolationType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ServiceViolationType.js +91 -0
- package/dist/es/models/licensing/v4/config/Setting.d.ts +145 -0
- package/dist/es/models/licensing/v4/config/Setting.js +581 -0
- package/dist/es/models/licensing/v4/config/Status.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/Status.js +85 -0
- package/dist/es/models/licensing/v4/config/SubCategory.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/SubCategory.js +85 -0
- package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.js +343 -0
- package/dist/es/models/licensing/v4/config/SyncOperationType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/SyncOperationType.js +121 -0
- package/dist/es/models/licensing/v4/config/Trial.d.ts +93 -0
- package/dist/es/models/licensing/v4/config/Trial.js +421 -0
- package/dist/es/models/licensing/v4/config/TrialCategory.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/TrialCategory.js +79 -0
- package/dist/es/models/licensing/v4/config/TrialProjection.d.ts +12 -0
- package/dist/es/models/licensing/v4/config/TrialProjection.js +159 -0
- package/dist/es/models/licensing/v4/config/TrialStatus.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/TrialStatus.js +85 -0
- package/dist/es/models/licensing/v4/config/TrialType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/TrialType.js +79 -0
- package/dist/es/models/licensing/v4/config/ValueType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ValueType.js +85 -0
- package/dist/es/models/licensing/v4/config/Violation.d.ts +102 -0
- package/dist/es/models/licensing/v4/config/Violation.js +398 -0
- package/dist/es/models/licensing/v4/error/AppMessage.d.ts +117 -0
- package/dist/es/models/licensing/v4/error/AppMessage.js +464 -0
- package/dist/es/models/licensing/v4/error/ErrorResponse.d.ts +52 -0
- package/dist/es/models/licensing/v4/error/ErrorResponse.js +331 -0
- package/dist/es/models/licensing/v4/error/SchemaValidationError.d.ts +108 -0
- package/dist/es/models/licensing/v4/error/SchemaValidationError.js +440 -0
- package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +76 -0
- package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.js +350 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +52 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +279 -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 +172 -0
- package/dist/lib/ApiClient.js +1262 -0
- package/dist/lib/Paginable.d.ts +95 -0
- package/dist/lib/Paginable.js +287 -0
- package/dist/lib/apis/enduserlicenseagreement-endpoints.d.ts +41 -0
- package/dist/lib/apis/enduserlicenseagreement-endpoints.js +141 -0
- package/dist/lib/apis/licensekeys-endpoints.d.ts +91 -0
- package/dist/lib/apis/licensekeys-endpoints.js +283 -0
- package/dist/lib/apis/licenses-endpoints.d.ts +206 -0
- package/dist/lib/apis/licenses-endpoints.js +480 -0
- package/dist/lib/index.d.ts +230 -0
- package/dist/lib/index.js +916 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +64 -0
- package/dist/lib/models/common/v1/config/Flag.js +319 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +71 -0
- package/dist/lib/models/common/v1/config/KVPair.js +378 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +87 -0
- package/dist/lib/models/common/v1/config/Message.js +386 -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 +52 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +275 -0
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +64 -0
- package/dist/lib/models/common/v1/response/ApiLink.js +312 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +133 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +482 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +48 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +310 -0
- package/dist/lib/models/licensing/v4/agreements/Acceptance.d.ts +81 -0
- package/dist/lib/models/licensing/v4/agreements/Acceptance.js +314 -0
- package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.js +365 -0
- package/dist/lib/models/licensing/v4/agreements/EndUser.d.ts +110 -0
- package/dist/lib/models/licensing/v4/agreements/EndUser.js +420 -0
- package/dist/lib/models/licensing/v4/agreements/Eula.d.ts +115 -0
- package/dist/lib/models/licensing/v4/agreements/Eula.js +441 -0
- package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.js +343 -0
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +103 -0
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.js +347 -0
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +137 -0
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +360 -0
- package/dist/lib/models/licensing/v4/config/Allowance.d.ts +70 -0
- package/dist/lib/models/licensing/v4/config/Allowance.js +371 -0
- package/dist/lib/models/licensing/v4/config/AllowanceDetail.d.ts +86 -0
- package/dist/lib/models/licensing/v4/config/AllowanceDetail.js +390 -0
- package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.js +152 -0
- package/dist/lib/models/licensing/v4/config/AllowanceProjection.d.ts +56 -0
- package/dist/lib/models/licensing/v4/config/AllowanceProjection.js +320 -0
- package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +102 -0
- package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +365 -0
- package/dist/lib/models/licensing/v4/config/AssociationType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/AssociationType.js +85 -0
- package/dist/lib/models/licensing/v4/config/BaseClusterInfo.d.ts +37 -0
- package/dist/lib/models/licensing/v4/config/BaseClusterInfo.js +271 -0
- package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.d.ts +82 -0
- package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.js +423 -0
- package/dist/lib/models/licensing/v4/config/BillingPlan.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/BillingPlan.js +91 -0
- package/dist/lib/models/licensing/v4/config/CapacityViolation.d.ts +85 -0
- package/dist/lib/models/licensing/v4/config/CapacityViolation.js +382 -0
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +30 -0
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.js +269 -0
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +151 -0
- package/dist/lib/models/licensing/v4/config/ClusterType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ClusterType.js +91 -0
- package/dist/lib/models/licensing/v4/config/Compliance.d.ts +78 -0
- package/dist/lib/models/licensing/v4/config/Compliance.js +371 -0
- package/dist/lib/models/licensing/v4/config/ComplianceProjection.d.ts +72 -0
- package/dist/lib/models/licensing/v4/config/ComplianceProjection.js +320 -0
- package/dist/lib/models/licensing/v4/config/Consumption.d.ts +64 -0
- package/dist/lib/models/licensing/v4/config/Consumption.js +315 -0
- package/dist/lib/models/licensing/v4/config/ConsumptionProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/ConsumptionProjection.js +150 -0
- package/dist/lib/models/licensing/v4/config/ConsumptionType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ConsumptionType.js +85 -0
- package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +98 -0
- package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +345 -0
- package/dist/lib/models/licensing/v4/config/DryRunCheck.d.ts +72 -0
- package/dist/lib/models/licensing/v4/config/DryRunCheck.js +325 -0
- package/dist/lib/models/licensing/v4/config/DryRunStatus.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/DryRunStatus.js +86 -0
- package/dist/lib/models/licensing/v4/config/DryRunValidationResult.d.ts +68 -0
- package/dist/lib/models/licensing/v4/config/DryRunValidationResult.js +297 -0
- package/dist/lib/models/licensing/v4/config/EnforcementActions.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/EnforcementActions.js +139 -0
- package/dist/lib/models/licensing/v4/config/EnforcementLevel.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/EnforcementLevel.js +85 -0
- package/dist/lib/models/licensing/v4/config/EnforcementPolicy.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/EnforcementPolicy.js +85 -0
- package/dist/lib/models/licensing/v4/config/Entitlement.d.ts +98 -0
- package/dist/lib/models/licensing/v4/config/Entitlement.js +450 -0
- package/dist/lib/models/licensing/v4/config/EntitlementDetail.d.ts +131 -0
- package/dist/lib/models/licensing/v4/config/EntitlementDetail.js +534 -0
- package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.js +155 -0
- package/dist/lib/models/licensing/v4/config/EntitlementProjection.d.ts +66 -0
- package/dist/lib/models/licensing/v4/config/EntitlementProjection.js +338 -0
- package/dist/lib/models/licensing/v4/config/ExpiredLicense.d.ts +65 -0
- package/dist/lib/models/licensing/v4/config/ExpiredLicense.js +396 -0
- package/dist/lib/models/licensing/v4/config/Feature.d.ts +104 -0
- package/dist/lib/models/licensing/v4/config/Feature.js +512 -0
- package/dist/lib/models/licensing/v4/config/FeatureDetail.d.ts +76 -0
- package/dist/lib/models/licensing/v4/config/FeatureDetail.js +359 -0
- package/dist/lib/models/licensing/v4/config/FeatureProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/FeatureProjection.js +152 -0
- package/dist/lib/models/licensing/v4/config/FeatureViolation.d.ts +31 -0
- package/dist/lib/models/licensing/v4/config/FeatureViolation.js +278 -0
- package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.js +343 -0
- package/dist/lib/models/licensing/v4/config/License.d.ts +95 -0
- package/dist/lib/models/licensing/v4/config/License.js +484 -0
- package/dist/lib/models/licensing/v4/config/LicenseCategory.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/LicenseCategory.js +295 -0
- package/dist/lib/models/licensing/v4/config/LicenseClass.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/LicenseClass.js +91 -0
- package/dist/lib/models/licensing/v4/config/LicenseKey.d.ts +181 -0
- package/dist/lib/models/licensing/v4/config/LicenseKey.js +707 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignment.d.ts +71 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignment.js +329 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignmentSpec.d.ts +75 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignmentSpec.js +296 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociation.d.ts +104 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociation.js +403 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationProjection.d.ts +16 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationProjection.js +164 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationSpec.d.ts +71 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationSpec.js +296 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.d.ts +64 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.js +315 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.d.ts +91 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.js +431 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeySubCategory.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeySubCategory.js +85 -0
- package/dist/lib/models/licensing/v4/config/LicenseProjection.d.ts +58 -0
- package/dist/lib/models/licensing/v4/config/LicenseProjection.js +374 -0
- package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +75 -0
- package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.js +364 -0
- package/dist/lib/models/licensing/v4/config/LicenseType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/LicenseType.js +283 -0
- package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.js +365 -0
- package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.js +365 -0
- package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.js +365 -0
- package/dist/lib/models/licensing/v4/config/LogicalVersion.d.ts +64 -0
- package/dist/lib/models/licensing/v4/config/LogicalVersion.js +312 -0
- package/dist/lib/models/licensing/v4/config/Meter.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/Meter.js +127 -0
- package/dist/lib/models/licensing/v4/config/OperationType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/OperationType.js +97 -0
- package/dist/lib/models/licensing/v4/config/PortalSetting.d.ts +86 -0
- package/dist/lib/models/licensing/v4/config/PortalSetting.js +359 -0
- package/dist/lib/models/licensing/v4/config/PostPaidCategory.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/PostPaidCategory.js +85 -0
- package/dist/lib/models/licensing/v4/config/PostPaidConfig.d.ts +97 -0
- package/dist/lib/models/licensing/v4/config/PostPaidConfig.js +423 -0
- package/dist/lib/models/licensing/v4/config/ProductName.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ProductName.js +115 -0
- package/dist/lib/models/licensing/v4/config/ReclaimType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ReclaimType.js +85 -0
- package/dist/lib/models/licensing/v4/config/Recommendation.d.ts +47 -0
- package/dist/lib/models/licensing/v4/config/Recommendation.js +287 -0
- package/dist/lib/models/licensing/v4/config/RecommendationDetail.d.ts +98 -0
- package/dist/lib/models/licensing/v4/config/RecommendationDetail.js +429 -0
- package/dist/lib/models/licensing/v4/config/RecommendationScope.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/RecommendationScope.js +85 -0
- package/dist/lib/models/licensing/v4/config/ResetScope.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ResetScope.js +85 -0
- package/dist/lib/models/licensing/v4/config/Scope.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/Scope.js +91 -0
- package/dist/lib/models/licensing/v4/config/Service.d.ts +117 -0
- package/dist/lib/models/licensing/v4/config/Service.js +482 -0
- package/dist/lib/models/licensing/v4/config/ServiceProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/ServiceProjection.js +155 -0
- package/dist/lib/models/licensing/v4/config/ServiceViolation.d.ts +63 -0
- package/dist/lib/models/licensing/v4/config/ServiceViolation.js +311 -0
- package/dist/lib/models/licensing/v4/config/ServiceViolationType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ServiceViolationType.js +91 -0
- package/dist/lib/models/licensing/v4/config/Setting.d.ts +145 -0
- package/dist/lib/models/licensing/v4/config/Setting.js +581 -0
- package/dist/lib/models/licensing/v4/config/Status.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/Status.js +85 -0
- package/dist/lib/models/licensing/v4/config/SubCategory.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/SubCategory.js +85 -0
- package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.js +343 -0
- package/dist/lib/models/licensing/v4/config/SyncOperationType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/SyncOperationType.js +121 -0
- package/dist/lib/models/licensing/v4/config/Trial.d.ts +93 -0
- package/dist/lib/models/licensing/v4/config/Trial.js +421 -0
- package/dist/lib/models/licensing/v4/config/TrialCategory.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/TrialCategory.js +79 -0
- package/dist/lib/models/licensing/v4/config/TrialProjection.d.ts +12 -0
- package/dist/lib/models/licensing/v4/config/TrialProjection.js +159 -0
- package/dist/lib/models/licensing/v4/config/TrialStatus.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/TrialStatus.js +85 -0
- package/dist/lib/models/licensing/v4/config/TrialType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/TrialType.js +79 -0
- package/dist/lib/models/licensing/v4/config/ValueType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ValueType.js +85 -0
- package/dist/lib/models/licensing/v4/config/Violation.d.ts +102 -0
- package/dist/lib/models/licensing/v4/config/Violation.js +398 -0
- package/dist/lib/models/licensing/v4/error/AppMessage.d.ts +117 -0
- package/dist/lib/models/licensing/v4/error/AppMessage.js +464 -0
- package/dist/lib/models/licensing/v4/error/ErrorResponse.d.ts +52 -0
- package/dist/lib/models/licensing/v4/error/ErrorResponse.js +331 -0
- package/dist/lib/models/licensing/v4/error/SchemaValidationError.d.ts +108 -0
- package/dist/lib/models/licensing/v4/error/SchemaValidationError.js +440 -0
- package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +76 -0
- package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.js +350 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +52 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +279 -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,79 @@
|
|
|
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(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
/*
|
|
12
|
+
* Nutanix Licensing APIs
|
|
13
|
+
*
|
|
14
|
+
* OpenAPI spec version: 1.421.1
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
17
|
+
*
|
|
18
|
+
* Open API Dev Platform Codegen version: 17.3.1.9079-RELEASE
|
|
19
|
+
*
|
|
20
|
+
* Do not edit the class manually.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Enum class TrialCategory.
|
|
26
|
+
* @enum {string}
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
var TrialCategory = {
|
|
30
|
+
/**
|
|
31
|
+
* Unknown value.
|
|
32
|
+
* @const
|
|
33
|
+
*/
|
|
34
|
+
$UNKNOWN: "$UNKNOWN",
|
|
35
|
+
/**
|
|
36
|
+
* Redacted value.
|
|
37
|
+
* @const
|
|
38
|
+
*/
|
|
39
|
+
$REDACTED: "$REDACTED",
|
|
40
|
+
/**
|
|
41
|
+
* Represents ultimate/all set of features for the given type of trial.
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
ULTIMATE: "ULTIMATE"
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Returns a <code>TrialCategory</code> enum value from a JavaScript object name.
|
|
49
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
50
|
+
* @return {TrialCategory} The enum <code>TrialCategory</code> value.
|
|
51
|
+
*/
|
|
52
|
+
TrialCategory.constructFromObject = function (obj) {
|
|
53
|
+
if (typeof obj === 'string' || obj instanceof String) {
|
|
54
|
+
var enumVal = Object.keys(TrialCategory).find(function (key) {
|
|
55
|
+
return TrialCategory[key] === obj;
|
|
56
|
+
});
|
|
57
|
+
return enumVal === undefined || enumVal === null ? TrialCategory.$UNKNOWN : TrialCategory[enumVal];
|
|
58
|
+
} else {
|
|
59
|
+
throw new Error("Received object name is not an instance of String");
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Validates <code>TrialCategory</code> enum value.
|
|
65
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
66
|
+
* @return {null} Throws error for invalid value.
|
|
67
|
+
*/
|
|
68
|
+
TrialCategory.validate = function (obj) {
|
|
69
|
+
switch (obj) {
|
|
70
|
+
case TrialCategory.$UNKNOWN:
|
|
71
|
+
case TrialCategory.$REDACTED:
|
|
72
|
+
case TrialCategory.ULTIMATE:
|
|
73
|
+
return;
|
|
74
|
+
default:
|
|
75
|
+
throw new Error("Invalid : must be TrialCategory.{ $UNKNOWN|$REDACTED|ULTIMATE }");
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
Object.freeze(TrialCategory);
|
|
79
|
+
var _default = exports["default"] = TrialCategory;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The TrialProjection model module.
|
|
3
|
+
* @module Ntnx/TrialProjection
|
|
4
|
+
* @version 1.421.1
|
|
5
|
+
* @class TrialProjection
|
|
6
|
+
* @extends Trial
|
|
7
|
+
*
|
|
8
|
+
* @param { TrialType } type
|
|
9
|
+
*/
|
|
10
|
+
export default class TrialProjection extends Trial {
|
|
11
|
+
}
|
|
12
|
+
import Trial from "./Trial";
|
|
@@ -0,0 +1,159 @@
|
|
|
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 _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
9
|
+
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
10
|
+
var _Trial2 = _interopRequireDefault(require("./Trial"));
|
|
11
|
+
var _TrialCategory = _interopRequireDefault(require("./TrialCategory"));
|
|
12
|
+
var _TrialStatus = _interopRequireDefault(require("./TrialStatus"));
|
|
13
|
+
var _TrialType = _interopRequireDefault(require("./TrialType"));
|
|
14
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
15
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
16
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
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(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
21
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
22
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
23
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
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(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
28
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
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(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
31
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
32
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /*
|
|
33
|
+
* Nutanix Licensing APIs
|
|
34
|
+
*
|
|
35
|
+
* OpenAPI spec version: 1.421.1
|
|
36
|
+
*
|
|
37
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
38
|
+
*
|
|
39
|
+
* Open API Dev Platform Codegen version: 17.3.1.9079-RELEASE
|
|
40
|
+
*
|
|
41
|
+
* Do not edit the class manually.
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
45
|
+
* The TrialProjection model module.
|
|
46
|
+
* @module Ntnx/TrialProjection
|
|
47
|
+
* @version 1.421.1
|
|
48
|
+
* @class TrialProjection
|
|
49
|
+
* @extends Trial
|
|
50
|
+
*
|
|
51
|
+
* @param { TrialType } type
|
|
52
|
+
*/
|
|
53
|
+
var TrialProjection = exports["default"] = /*#__PURE__*/function (_Trial) {
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a new <code>TrialProjection</code>.
|
|
56
|
+
* @alias module:Ntnx/TrialProjection
|
|
57
|
+
* @extends module:Ntnx/Trial
|
|
58
|
+
*
|
|
59
|
+
* @param { TrialType } type
|
|
60
|
+
*/
|
|
61
|
+
function TrialProjection(type) {
|
|
62
|
+
var _this;
|
|
63
|
+
_classCallCheck(this, TrialProjection);
|
|
64
|
+
_this = _callSuper(this, TrialProjection, [type]);
|
|
65
|
+
_this.$objectType = "licensing.v4.config.TrialProjection";
|
|
66
|
+
/** @type {object<string, any>} */
|
|
67
|
+
_this.$reserved = {
|
|
68
|
+
'$fv': "v4.r2"
|
|
69
|
+
};
|
|
70
|
+
/** @type {object<string, any>} */
|
|
71
|
+
_this.$unknownFields = {};
|
|
72
|
+
return _this;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Constructs a <code>TrialProjection</code> from a plain JavaScript object, optionally creating a new instance.
|
|
77
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
78
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
79
|
+
* @param {module:Ntnx/TrialProjection} obj Optional instance to populate.
|
|
80
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
81
|
+
* @return {module:Ntnx/TrialProjection} The populated <code>TrialProjection</code> instance.
|
|
82
|
+
*/
|
|
83
|
+
_inherits(TrialProjection, _Trial);
|
|
84
|
+
return _createClass(TrialProjection, [{
|
|
85
|
+
key: "validate",
|
|
86
|
+
value: function validate(scope, properties) {
|
|
87
|
+
var _this2 = this;
|
|
88
|
+
var propList = [];
|
|
89
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
90
|
+
//cases validate() and validate(scope)
|
|
91
|
+
propList = ["type"];
|
|
92
|
+
} else if (arguments.length === 1) {
|
|
93
|
+
//case validate(properties)
|
|
94
|
+
propList = arguments[0];
|
|
95
|
+
scope = null;
|
|
96
|
+
} else {
|
|
97
|
+
//case validate(scope, properties)
|
|
98
|
+
propList = arguments[1];
|
|
99
|
+
}
|
|
100
|
+
var res = [];
|
|
101
|
+
var err = null;
|
|
102
|
+
propList.forEach(function (property) {
|
|
103
|
+
err = _this2.validateProperty(property, scope);
|
|
104
|
+
if (err) {
|
|
105
|
+
res.push(err);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
return new Promise(function (resolve, reject) {
|
|
109
|
+
if (res.length !== 0) {
|
|
110
|
+
reject(err);
|
|
111
|
+
} else {
|
|
112
|
+
resolve();
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}, {
|
|
117
|
+
key: "validateProperty",
|
|
118
|
+
value: function validateProperty(scope, property) {
|
|
119
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
120
|
+
}
|
|
121
|
+
}], [{
|
|
122
|
+
key: "constructFromObject",
|
|
123
|
+
value: function constructFromObject(data) {
|
|
124
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
125
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
126
|
+
var items, item, i, itemArr, discriminator;
|
|
127
|
+
if (data) {
|
|
128
|
+
obj = obj || new TrialProjection();
|
|
129
|
+
_Trial2["default"].constructFromObject(data, obj, true);
|
|
130
|
+
if (!callFromChild) {
|
|
131
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
132
|
+
for (var property in data) {
|
|
133
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
134
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
135
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
136
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
137
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
138
|
+
obj.$unknownFields[property] = data[property];
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return obj;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Converts a given snake_case string to camelCase.
|
|
148
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
149
|
+
* @returns {string} - The converted string in camelCase format.
|
|
150
|
+
*/
|
|
151
|
+
}, {
|
|
152
|
+
key: "snakeToCamel",
|
|
153
|
+
value: function snakeToCamel(snakeStr) {
|
|
154
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
155
|
+
return match[1].toUpperCase();
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
}]);
|
|
159
|
+
}(_Trial2["default"]);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default TrialStatus;
|
|
2
|
+
/**
|
|
3
|
+
* *
|
|
4
|
+
*/
|
|
5
|
+
type TrialStatus = string;
|
|
6
|
+
declare namespace TrialStatus {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a <code>TrialStatus</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 {TrialStatus} The enum <code>TrialStatus</code> value.
|
|
11
|
+
*/
|
|
12
|
+
function constructFromObject(obj: any): string;
|
|
13
|
+
/**
|
|
14
|
+
* Validates <code>TrialStatus</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,85 @@
|
|
|
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(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
/*
|
|
12
|
+
* Nutanix Licensing APIs
|
|
13
|
+
*
|
|
14
|
+
* OpenAPI spec version: 1.421.1
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
17
|
+
*
|
|
18
|
+
* Open API Dev Platform Codegen version: 17.3.1.9079-RELEASE
|
|
19
|
+
*
|
|
20
|
+
* Do not edit the class manually.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Enum class TrialStatus.
|
|
26
|
+
* @enum {string}
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
var TrialStatus = {
|
|
30
|
+
/**
|
|
31
|
+
* Unknown value.
|
|
32
|
+
* @const
|
|
33
|
+
*/
|
|
34
|
+
$UNKNOWN: "$UNKNOWN",
|
|
35
|
+
/**
|
|
36
|
+
* Redacted value.
|
|
37
|
+
* @const
|
|
38
|
+
*/
|
|
39
|
+
$REDACTED: "$REDACTED",
|
|
40
|
+
/**
|
|
41
|
+
* The trial is currently active, and you are permitted to use the associated trial features.
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
ACTIVE: "ACTIVE",
|
|
45
|
+
/**
|
|
46
|
+
* The trial is currently disabled, and the associated trial features cannot be used.
|
|
47
|
+
* @const
|
|
48
|
+
*/
|
|
49
|
+
INACTIVE: "INACTIVE"
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Returns a <code>TrialStatus</code> enum value from a JavaScript object name.
|
|
54
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
55
|
+
* @return {TrialStatus} The enum <code>TrialStatus</code> value.
|
|
56
|
+
*/
|
|
57
|
+
TrialStatus.constructFromObject = function (obj) {
|
|
58
|
+
if (typeof obj === 'string' || obj instanceof String) {
|
|
59
|
+
var enumVal = Object.keys(TrialStatus).find(function (key) {
|
|
60
|
+
return TrialStatus[key] === obj;
|
|
61
|
+
});
|
|
62
|
+
return enumVal === undefined || enumVal === null ? TrialStatus.$UNKNOWN : TrialStatus[enumVal];
|
|
63
|
+
} else {
|
|
64
|
+
throw new Error("Received object name is not an instance of String");
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Validates <code>TrialStatus</code> enum value.
|
|
70
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
71
|
+
* @return {null} Throws error for invalid value.
|
|
72
|
+
*/
|
|
73
|
+
TrialStatus.validate = function (obj) {
|
|
74
|
+
switch (obj) {
|
|
75
|
+
case TrialStatus.$UNKNOWN:
|
|
76
|
+
case TrialStatus.$REDACTED:
|
|
77
|
+
case TrialStatus.ACTIVE:
|
|
78
|
+
case TrialStatus.INACTIVE:
|
|
79
|
+
return;
|
|
80
|
+
default:
|
|
81
|
+
throw new Error("Invalid : must be TrialStatus.{ $UNKNOWN|$REDACTED|ACTIVE|INACTIVE }");
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
Object.freeze(TrialStatus);
|
|
85
|
+
var _default = exports["default"] = TrialStatus;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default TrialType;
|
|
2
|
+
/**
|
|
3
|
+
* *
|
|
4
|
+
*/
|
|
5
|
+
type TrialType = string;
|
|
6
|
+
declare namespace TrialType {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a <code>TrialType</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 {TrialType} The enum <code>TrialType</code> value.
|
|
11
|
+
*/
|
|
12
|
+
function constructFromObject(obj: any): string;
|
|
13
|
+
/**
|
|
14
|
+
* Validates <code>TrialType</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,79 @@
|
|
|
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(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
/*
|
|
12
|
+
* Nutanix Licensing APIs
|
|
13
|
+
*
|
|
14
|
+
* OpenAPI spec version: 1.421.1
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
17
|
+
*
|
|
18
|
+
* Open API Dev Platform Codegen version: 17.3.1.9079-RELEASE
|
|
19
|
+
*
|
|
20
|
+
* Do not edit the class manually.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Enum class TrialType.
|
|
26
|
+
* @enum {string}
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
var TrialType = {
|
|
30
|
+
/**
|
|
31
|
+
* Unknown value.
|
|
32
|
+
* @const
|
|
33
|
+
*/
|
|
34
|
+
$UNKNOWN: "$UNKNOWN",
|
|
35
|
+
/**
|
|
36
|
+
* Redacted value.
|
|
37
|
+
* @const
|
|
38
|
+
*/
|
|
39
|
+
$REDACTED: "$REDACTED",
|
|
40
|
+
/**
|
|
41
|
+
* NCM Ultimate trial for services under NCM app suite like Intelligent Ops, Self-Service, Cost Governance, and Security Central.
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
NCM: "NCM"
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Returns a <code>TrialType</code> enum value from a JavaScript object name.
|
|
49
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
50
|
+
* @return {TrialType} The enum <code>TrialType</code> value.
|
|
51
|
+
*/
|
|
52
|
+
TrialType.constructFromObject = function (obj) {
|
|
53
|
+
if (typeof obj === 'string' || obj instanceof String) {
|
|
54
|
+
var enumVal = Object.keys(TrialType).find(function (key) {
|
|
55
|
+
return TrialType[key] === obj;
|
|
56
|
+
});
|
|
57
|
+
return enumVal === undefined || enumVal === null ? TrialType.$UNKNOWN : TrialType[enumVal];
|
|
58
|
+
} else {
|
|
59
|
+
throw new Error("Received object name is not an instance of String");
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Validates <code>TrialType</code> enum value.
|
|
65
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
66
|
+
* @return {null} Throws error for invalid value.
|
|
67
|
+
*/
|
|
68
|
+
TrialType.validate = function (obj) {
|
|
69
|
+
switch (obj) {
|
|
70
|
+
case TrialType.$UNKNOWN:
|
|
71
|
+
case TrialType.$REDACTED:
|
|
72
|
+
case TrialType.NCM:
|
|
73
|
+
return;
|
|
74
|
+
default:
|
|
75
|
+
throw new Error("Invalid : must be TrialType.{ $UNKNOWN|$REDACTED|NCM }");
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
Object.freeze(TrialType);
|
|
79
|
+
var _default = exports["default"] = TrialType;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default ValueType;
|
|
2
|
+
/**
|
|
3
|
+
* *
|
|
4
|
+
*/
|
|
5
|
+
type ValueType = string;
|
|
6
|
+
declare namespace ValueType {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a <code>ValueType</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 {ValueType} The enum <code>ValueType</code> value.
|
|
11
|
+
*/
|
|
12
|
+
function constructFromObject(obj: any): string;
|
|
13
|
+
/**
|
|
14
|
+
* Validates <code>ValueType</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,85 @@
|
|
|
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(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
/*
|
|
12
|
+
* Nutanix Licensing APIs
|
|
13
|
+
*
|
|
14
|
+
* OpenAPI spec version: 1.421.1
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
17
|
+
*
|
|
18
|
+
* Open API Dev Platform Codegen version: 17.3.1.9079-RELEASE
|
|
19
|
+
*
|
|
20
|
+
* Do not edit the class manually.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Enum class ValueType.
|
|
26
|
+
* @enum {string}
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
var ValueType = {
|
|
30
|
+
/**
|
|
31
|
+
* Unknown value.
|
|
32
|
+
* @const
|
|
33
|
+
*/
|
|
34
|
+
$UNKNOWN: "$UNKNOWN",
|
|
35
|
+
/**
|
|
36
|
+
* Redacted value.
|
|
37
|
+
* @const
|
|
38
|
+
*/
|
|
39
|
+
$REDACTED: "$REDACTED",
|
|
40
|
+
/**
|
|
41
|
+
* Value type is boolean.
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
BOOLEAN: "BOOLEAN",
|
|
45
|
+
/**
|
|
46
|
+
* Value type is integer.
|
|
47
|
+
* @const
|
|
48
|
+
*/
|
|
49
|
+
INTEGER: "INTEGER"
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Returns a <code>ValueType</code> enum value from a JavaScript object name.
|
|
54
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
55
|
+
* @return {ValueType} The enum <code>ValueType</code> value.
|
|
56
|
+
*/
|
|
57
|
+
ValueType.constructFromObject = function (obj) {
|
|
58
|
+
if (typeof obj === 'string' || obj instanceof String) {
|
|
59
|
+
var enumVal = Object.keys(ValueType).find(function (key) {
|
|
60
|
+
return ValueType[key] === obj;
|
|
61
|
+
});
|
|
62
|
+
return enumVal === undefined || enumVal === null ? ValueType.$UNKNOWN : ValueType[enumVal];
|
|
63
|
+
} else {
|
|
64
|
+
throw new Error("Received object name is not an instance of String");
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Validates <code>ValueType</code> enum value.
|
|
70
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
71
|
+
* @return {null} Throws error for invalid value.
|
|
72
|
+
*/
|
|
73
|
+
ValueType.validate = function (obj) {
|
|
74
|
+
switch (obj) {
|
|
75
|
+
case ValueType.$UNKNOWN:
|
|
76
|
+
case ValueType.$REDACTED:
|
|
77
|
+
case ValueType.BOOLEAN:
|
|
78
|
+
case ValueType.INTEGER:
|
|
79
|
+
return;
|
|
80
|
+
default:
|
|
81
|
+
throw new Error("Invalid : must be ValueType.{ $UNKNOWN|$REDACTED|BOOLEAN|INTEGER }");
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
Object.freeze(ValueType);
|
|
85
|
+
var _default = exports["default"] = ValueType;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Violation model module.
|
|
3
|
+
* @module Ntnx/Violation
|
|
4
|
+
* @version 1.421.1
|
|
5
|
+
* @class Violation
|
|
6
|
+
* @extends BaseClusterInfo
|
|
7
|
+
*/
|
|
8
|
+
export default class Violation extends BaseClusterInfo {
|
|
9
|
+
/**
|
|
10
|
+
* Returns List of features which are being used by cluster without applying necessary licenses. Feature violations can be resolved by applying necessary licenses.
|
|
11
|
+
* @return {FeatureViolation[]}
|
|
12
|
+
*/
|
|
13
|
+
getFeatureViolations(): FeatureViolation[];
|
|
14
|
+
/**
|
|
15
|
+
* Sets List of features which are being used by cluster without applying necessary licenses. Feature violations can be resolved by applying necessary licenses.
|
|
16
|
+
* @param {FeatureViolation[]} featureViolations List of features which are being used by cluster without applying necessary licenses. Feature violations can be resolved by applying necessary licenses.
|
|
17
|
+
*/
|
|
18
|
+
setFeatureViolations(featureViolations: FeatureViolation[]): void;
|
|
19
|
+
featureViolations: FeatureViolation[];
|
|
20
|
+
/**
|
|
21
|
+
* Returns List of capacity violations. Capacity violations are thrown when user has not applied licenses to extended capacity. Example: Cluster is expanded to have new nodes which are not licensed.
|
|
22
|
+
* @return {CapacityViolation[]}
|
|
23
|
+
*/
|
|
24
|
+
getCapacityViolations(): CapacityViolation[];
|
|
25
|
+
/**
|
|
26
|
+
* Sets List of capacity violations. Capacity violations are thrown when user has not applied licenses to extended capacity. Example: Cluster is expanded to have new nodes which are not licensed.
|
|
27
|
+
* @param {CapacityViolation[]} capacityViolations List of capacity violations. Capacity violations are thrown when user has not applied licenses to extended capacity. Example: Cluster is expanded to have new nodes which are not licensed.
|
|
28
|
+
*/
|
|
29
|
+
setCapacityViolations(capacityViolations: CapacityViolation[]): void;
|
|
30
|
+
capacityViolations: CapacityViolation[];
|
|
31
|
+
/**
|
|
32
|
+
* Returns List of expired licenses for a cluster. Such licenses need to be replaced in order for the cluster to function properly.
|
|
33
|
+
* @return {ExpiredLicense[]}
|
|
34
|
+
*/
|
|
35
|
+
getExpiredLicenses(): ExpiredLicense[];
|
|
36
|
+
/**
|
|
37
|
+
* Sets List of expired licenses for a cluster. Such licenses need to be replaced in order for the cluster to function properly.
|
|
38
|
+
* @param {ExpiredLicense[]} expiredLicenses List of expired licenses for a cluster. Such licenses need to be replaced in order for the cluster to function properly.
|
|
39
|
+
*/
|
|
40
|
+
setExpiredLicenses(expiredLicenses: ExpiredLicense[]): void;
|
|
41
|
+
expiredLicenses: ExpiredLicense[];
|
|
42
|
+
toJson(forMutation: any): {
|
|
43
|
+
$reserved: any;
|
|
44
|
+
$objectType: string;
|
|
45
|
+
$unknownFields: any;
|
|
46
|
+
tenantId?: string;
|
|
47
|
+
links?: {
|
|
48
|
+
$reserved: any;
|
|
49
|
+
$objectType: string;
|
|
50
|
+
$unknownFields: any;
|
|
51
|
+
rel?: string;
|
|
52
|
+
href?: string;
|
|
53
|
+
}[];
|
|
54
|
+
extId?: string;
|
|
55
|
+
isMulticluster?: boolean;
|
|
56
|
+
expiredLicenses?: {
|
|
57
|
+
$reserved: any;
|
|
58
|
+
$objectType: string;
|
|
59
|
+
$unknownFields: any;
|
|
60
|
+
tenantId?: string;
|
|
61
|
+
links?: {
|
|
62
|
+
$reserved: any;
|
|
63
|
+
$objectType: string;
|
|
64
|
+
$unknownFields: any;
|
|
65
|
+
rel?: string;
|
|
66
|
+
href?: string;
|
|
67
|
+
}[];
|
|
68
|
+
extId?: string;
|
|
69
|
+
expiryDate?: any;
|
|
70
|
+
subCategory?: string;
|
|
71
|
+
category?: string;
|
|
72
|
+
type?: string;
|
|
73
|
+
name?: string;
|
|
74
|
+
usedQuantity?: number;
|
|
75
|
+
meter?: string;
|
|
76
|
+
licenseId?: string;
|
|
77
|
+
}[];
|
|
78
|
+
capacityViolations?: {
|
|
79
|
+
$reserved: any;
|
|
80
|
+
$objectType: string;
|
|
81
|
+
$unknownFields: any;
|
|
82
|
+
shortfall?: number;
|
|
83
|
+
meter?: string;
|
|
84
|
+
category?: string;
|
|
85
|
+
type?: string;
|
|
86
|
+
}[];
|
|
87
|
+
featureViolations?: {
|
|
88
|
+
$reserved: any;
|
|
89
|
+
$objectType: string;
|
|
90
|
+
$unknownFields: any;
|
|
91
|
+
description?: string;
|
|
92
|
+
name?: string;
|
|
93
|
+
featureId?: string;
|
|
94
|
+
affectedEntity?: string;
|
|
95
|
+
}[];
|
|
96
|
+
};
|
|
97
|
+
#private;
|
|
98
|
+
}
|
|
99
|
+
import BaseClusterInfo from "./BaseClusterInfo";
|
|
100
|
+
import FeatureViolation from "./FeatureViolation";
|
|
101
|
+
import CapacityViolation from "./CapacityViolation";
|
|
102
|
+
import ExpiredLicense from "./ExpiredLicense";
|