@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,121 @@
|
|
|
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 SyncOperationType.
|
|
26
|
+
* @enum {string}
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
var SyncOperationType = {
|
|
30
|
+
/**
|
|
31
|
+
* Unknown value.
|
|
32
|
+
* @const
|
|
33
|
+
*/
|
|
34
|
+
$UNKNOWN: "$UNKNOWN",
|
|
35
|
+
/**
|
|
36
|
+
* Redacted value.
|
|
37
|
+
* @const
|
|
38
|
+
*/
|
|
39
|
+
$REDACTED: "$REDACTED",
|
|
40
|
+
/**
|
|
41
|
+
* Operation type for posting the cluster summary file to the licensing portal.
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
UPLOAD_CLUSTER_SUMMARY: "UPLOAD_CLUSTER_SUMMARY",
|
|
45
|
+
/**
|
|
46
|
+
* Operation type for fetching the license summary file from licensing portal and applying the same to the cluster.
|
|
47
|
+
* @const
|
|
48
|
+
*/
|
|
49
|
+
APPLY_LICENSE_SUMMARY: "APPLY_LICENSE_SUMMARY",
|
|
50
|
+
/**
|
|
51
|
+
* Reclaims licenses for the provided list of clusters.
|
|
52
|
+
* @const
|
|
53
|
+
*/
|
|
54
|
+
RECLAIM: "RECLAIM",
|
|
55
|
+
/**
|
|
56
|
+
* Operation type for renewing the licenses.
|
|
57
|
+
* @const
|
|
58
|
+
*/
|
|
59
|
+
RENEW: "RENEW",
|
|
60
|
+
/**
|
|
61
|
+
* Operation type for rebalance the licenses which is required when cluster has been expanded or downsized.
|
|
62
|
+
* @const
|
|
63
|
+
*/
|
|
64
|
+
REBALANCE: "REBALANCE",
|
|
65
|
+
/**
|
|
66
|
+
* Operation type for updating metadata like enforcement policy and cluster type.
|
|
67
|
+
* @const
|
|
68
|
+
*/
|
|
69
|
+
UPDATE_METADATA: "UPDATE_METADATA",
|
|
70
|
+
/**
|
|
71
|
+
* Reclaims all licenses for the destroyed cluster.
|
|
72
|
+
* @const
|
|
73
|
+
*/
|
|
74
|
+
RECLAIM_FOR_DESTROYED_CLUSTER: "RECLAIM_FOR_DESTROYED_CLUSTER",
|
|
75
|
+
/**
|
|
76
|
+
* Fetch latest license summary and metadata(like enforcement policy, cluster type) from licensing portal and apply the same to cluster.
|
|
77
|
+
* @const
|
|
78
|
+
*/
|
|
79
|
+
APPLY_LICENSE_SUMMARY_WITH_METADATA: "APPLY_LICENSE_SUMMARY_WITH_METADATA"
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Returns a <code>SyncOperationType</code> enum value from a JavaScript object name.
|
|
84
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
85
|
+
* @return {SyncOperationType} The enum <code>SyncOperationType</code> value.
|
|
86
|
+
*/
|
|
87
|
+
SyncOperationType.constructFromObject = function (obj) {
|
|
88
|
+
if (typeof obj === 'string' || obj instanceof String) {
|
|
89
|
+
var enumVal = Object.keys(SyncOperationType).find(function (key) {
|
|
90
|
+
return SyncOperationType[key] === obj;
|
|
91
|
+
});
|
|
92
|
+
return enumVal === undefined || enumVal === null ? SyncOperationType.$UNKNOWN : SyncOperationType[enumVal];
|
|
93
|
+
} else {
|
|
94
|
+
throw new Error("Received object name is not an instance of String");
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Validates <code>SyncOperationType</code> enum value.
|
|
100
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
101
|
+
* @return {null} Throws error for invalid value.
|
|
102
|
+
*/
|
|
103
|
+
SyncOperationType.validate = function (obj) {
|
|
104
|
+
switch (obj) {
|
|
105
|
+
case SyncOperationType.$UNKNOWN:
|
|
106
|
+
case SyncOperationType.$REDACTED:
|
|
107
|
+
case SyncOperationType.UPLOAD_CLUSTER_SUMMARY:
|
|
108
|
+
case SyncOperationType.APPLY_LICENSE_SUMMARY:
|
|
109
|
+
case SyncOperationType.RECLAIM:
|
|
110
|
+
case SyncOperationType.RENEW:
|
|
111
|
+
case SyncOperationType.REBALANCE:
|
|
112
|
+
case SyncOperationType.UPDATE_METADATA:
|
|
113
|
+
case SyncOperationType.RECLAIM_FOR_DESTROYED_CLUSTER:
|
|
114
|
+
case SyncOperationType.APPLY_LICENSE_SUMMARY_WITH_METADATA:
|
|
115
|
+
return;
|
|
116
|
+
default:
|
|
117
|
+
throw new Error("Invalid : must be SyncOperationType.{ $UNKNOWN|$REDACTED|UPLOAD_CLUSTER_SUMMARY|APPLY_LICENSE_SUMMARY|RECLAIM|RENEW|REBALANCE|UPDATE_METADATA|RECLAIM_FOR_DESTROYED_CLUSTER|APPLY_LICENSE_SUMMARY_WITH_METADATA }");
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
Object.freeze(SyncOperationType);
|
|
121
|
+
var _default = exports["default"] = SyncOperationType;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Trial model module.
|
|
3
|
+
* @module Ntnx/Trial
|
|
4
|
+
* @version 1.421.1
|
|
5
|
+
* @class Trial
|
|
6
|
+
* @extends ExternalizableAbstractModel
|
|
7
|
+
*
|
|
8
|
+
* @param { TrialType } type
|
|
9
|
+
*/
|
|
10
|
+
export default class Trial extends ExternalizableAbstractModel {
|
|
11
|
+
/**
|
|
12
|
+
* Constructs a new <code>Trial</code>.
|
|
13
|
+
* Model containing trial information
|
|
14
|
+
* @alias module:Ntnx/Trial
|
|
15
|
+
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
16
|
+
*
|
|
17
|
+
* @param { TrialType } type
|
|
18
|
+
*/
|
|
19
|
+
constructor(type: TrialType);
|
|
20
|
+
type: string;
|
|
21
|
+
/**
|
|
22
|
+
* @return {TrialType}
|
|
23
|
+
*/
|
|
24
|
+
getType(): TrialType;
|
|
25
|
+
/**
|
|
26
|
+
* @param {TrialType} type
|
|
27
|
+
*/
|
|
28
|
+
setType(type: TrialType): void;
|
|
29
|
+
/**
|
|
30
|
+
* @return {TrialCategory}
|
|
31
|
+
*/
|
|
32
|
+
getCategory(): TrialCategory;
|
|
33
|
+
/**
|
|
34
|
+
* @param {TrialCategory} category
|
|
35
|
+
*/
|
|
36
|
+
setCategory(category: TrialCategory): void;
|
|
37
|
+
category: string;
|
|
38
|
+
/**
|
|
39
|
+
* Returns Start date of the trial.
|
|
40
|
+
* @return {Date}
|
|
41
|
+
*/
|
|
42
|
+
getStartDate(): Date;
|
|
43
|
+
/**
|
|
44
|
+
* Sets Start date of the trial.
|
|
45
|
+
* @param {Date} startDate Start date of the trial.
|
|
46
|
+
*/
|
|
47
|
+
setStartDate(startDate: Date): void;
|
|
48
|
+
startDate: Date;
|
|
49
|
+
/**
|
|
50
|
+
* Returns End date of the trial.
|
|
51
|
+
* @return {Date}
|
|
52
|
+
*/
|
|
53
|
+
getEndDate(): Date;
|
|
54
|
+
/**
|
|
55
|
+
* Sets End date of the trial.
|
|
56
|
+
* @param {Date} endDate End date of the trial.
|
|
57
|
+
*/
|
|
58
|
+
setEndDate(endDate: Date): void;
|
|
59
|
+
endDate: Date;
|
|
60
|
+
/**
|
|
61
|
+
* @return {TrialStatus}
|
|
62
|
+
*/
|
|
63
|
+
getStatus(): TrialStatus;
|
|
64
|
+
/**
|
|
65
|
+
* @param {TrialStatus} status
|
|
66
|
+
*/
|
|
67
|
+
setStatus(status: TrialStatus): void;
|
|
68
|
+
status: string;
|
|
69
|
+
toJson(forMutation: any): {
|
|
70
|
+
$reserved: any;
|
|
71
|
+
$objectType: string;
|
|
72
|
+
$unknownFields: any;
|
|
73
|
+
tenantId?: string;
|
|
74
|
+
links?: {
|
|
75
|
+
$reserved: any;
|
|
76
|
+
$objectType: string;
|
|
77
|
+
$unknownFields: any;
|
|
78
|
+
rel?: string;
|
|
79
|
+
href?: string;
|
|
80
|
+
}[];
|
|
81
|
+
extId?: string;
|
|
82
|
+
status?: string;
|
|
83
|
+
endDate?: any;
|
|
84
|
+
startDate?: any;
|
|
85
|
+
category?: string;
|
|
86
|
+
type?: string;
|
|
87
|
+
};
|
|
88
|
+
#private;
|
|
89
|
+
}
|
|
90
|
+
import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel";
|
|
91
|
+
import TrialType from "./TrialType";
|
|
92
|
+
import TrialCategory from "./TrialCategory";
|
|
93
|
+
import TrialStatus from "./TrialStatus";
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
8
|
+
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
9
|
+
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
10
|
+
var _TrialCategory = _interopRequireDefault(require("./TrialCategory"));
|
|
11
|
+
var _TrialStatus = _interopRequireDefault(require("./TrialStatus"));
|
|
12
|
+
var _TrialType = _interopRequireDefault(require("./TrialType"));
|
|
13
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
14
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
15
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
|
+
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); }
|
|
18
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
19
|
+
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."); }
|
|
20
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
21
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
22
|
+
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; } }
|
|
23
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
24
|
+
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; }
|
|
25
|
+
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; }
|
|
26
|
+
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; }
|
|
27
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
28
|
+
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); } }
|
|
29
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
30
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
31
|
+
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); }
|
|
32
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
33
|
+
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); }
|
|
34
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
35
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
36
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
37
|
+
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); }
|
|
38
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
39
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
40
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
41
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
|
|
42
|
+
* Nutanix Licensing APIs
|
|
43
|
+
*
|
|
44
|
+
* OpenAPI spec version: 1.421.1
|
|
45
|
+
*
|
|
46
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
47
|
+
*
|
|
48
|
+
* Open API Dev Platform Codegen version: 17.3.1.9079-RELEASE
|
|
49
|
+
*
|
|
50
|
+
* Do not edit the class manually.
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
/**
|
|
54
|
+
* The Trial model module.
|
|
55
|
+
* @module Ntnx/Trial
|
|
56
|
+
* @version 1.421.1
|
|
57
|
+
* @class Trial
|
|
58
|
+
* @extends ExternalizableAbstractModel
|
|
59
|
+
*
|
|
60
|
+
* @param { TrialType } type
|
|
61
|
+
*/
|
|
62
|
+
var _Trial_brand = /*#__PURE__*/new WeakSet();
|
|
63
|
+
var Trial = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
|
|
64
|
+
/**
|
|
65
|
+
* Constructs a new <code>Trial</code>.
|
|
66
|
+
* Model containing trial information
|
|
67
|
+
* @alias module:Ntnx/Trial
|
|
68
|
+
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
69
|
+
*
|
|
70
|
+
* @param { TrialType } type
|
|
71
|
+
*/
|
|
72
|
+
function Trial(type) {
|
|
73
|
+
var _this;
|
|
74
|
+
_classCallCheck(this, Trial);
|
|
75
|
+
_this = _callSuper(this, Trial);
|
|
76
|
+
/*
|
|
77
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
78
|
+
* @param {Object} obj
|
|
79
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
80
|
+
* Otherwise, just returns the input object.
|
|
81
|
+
*/
|
|
82
|
+
_classPrivateMethodInitSpec(_this, _Trial_brand);
|
|
83
|
+
_this.type = type;
|
|
84
|
+
_this.$objectType = "licensing.v4.config.Trial";
|
|
85
|
+
/** @type {object<string, any>} */
|
|
86
|
+
_this.$reserved = {
|
|
87
|
+
'$fv': "v4.r2"
|
|
88
|
+
};
|
|
89
|
+
/** @type {object<string, any>} */
|
|
90
|
+
_this.$unknownFields = {};
|
|
91
|
+
return _this;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Constructs a <code>Trial</code> from a plain JavaScript object, optionally creating a new instance.
|
|
96
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
97
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
98
|
+
* @param {module:Ntnx/Trial} obj Optional instance to populate.
|
|
99
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
100
|
+
* @return {module:Ntnx/Trial} The populated <code>Trial</code> instance.
|
|
101
|
+
*/
|
|
102
|
+
_inherits(Trial, _ExternalizableAbstra);
|
|
103
|
+
return _createClass(Trial, [{
|
|
104
|
+
key: "getType",
|
|
105
|
+
value:
|
|
106
|
+
/**
|
|
107
|
+
* @return {TrialType}
|
|
108
|
+
*/
|
|
109
|
+
function getType() {
|
|
110
|
+
return this.type;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @param {TrialType} type
|
|
115
|
+
*/
|
|
116
|
+
}, {
|
|
117
|
+
key: "setType",
|
|
118
|
+
value: function setType(type) {
|
|
119
|
+
this.type = type;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @return {TrialCategory}
|
|
124
|
+
*/
|
|
125
|
+
}, {
|
|
126
|
+
key: "getCategory",
|
|
127
|
+
value: function getCategory() {
|
|
128
|
+
return this.category;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @param {TrialCategory} category
|
|
133
|
+
*/
|
|
134
|
+
}, {
|
|
135
|
+
key: "setCategory",
|
|
136
|
+
value: function setCategory(category) {
|
|
137
|
+
this.category = category;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Returns Start date of the trial.
|
|
142
|
+
* @return {Date}
|
|
143
|
+
*/
|
|
144
|
+
}, {
|
|
145
|
+
key: "getStartDate",
|
|
146
|
+
value: function getStartDate() {
|
|
147
|
+
return this.startDate;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Sets Start date of the trial.
|
|
152
|
+
* @param {Date} startDate Start date of the trial.
|
|
153
|
+
*/
|
|
154
|
+
}, {
|
|
155
|
+
key: "setStartDate",
|
|
156
|
+
value: function setStartDate(startDate) {
|
|
157
|
+
this.startDate = startDate;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Returns End date of the trial.
|
|
162
|
+
* @return {Date}
|
|
163
|
+
*/
|
|
164
|
+
}, {
|
|
165
|
+
key: "getEndDate",
|
|
166
|
+
value: function getEndDate() {
|
|
167
|
+
return this.endDate;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Sets End date of the trial.
|
|
172
|
+
* @param {Date} endDate End date of the trial.
|
|
173
|
+
*/
|
|
174
|
+
}, {
|
|
175
|
+
key: "setEndDate",
|
|
176
|
+
value: function setEndDate(endDate) {
|
|
177
|
+
this.endDate = endDate;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @return {TrialStatus}
|
|
182
|
+
*/
|
|
183
|
+
}, {
|
|
184
|
+
key: "getStatus",
|
|
185
|
+
value: function getStatus() {
|
|
186
|
+
return this.status;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @param {TrialStatus} status
|
|
191
|
+
*/
|
|
192
|
+
}, {
|
|
193
|
+
key: "setStatus",
|
|
194
|
+
value: function setStatus(status) {
|
|
195
|
+
this.status = status;
|
|
196
|
+
}
|
|
197
|
+
}, {
|
|
198
|
+
key: "toJson",
|
|
199
|
+
value: function toJson(forMutation) {
|
|
200
|
+
if (forMutation === false) {
|
|
201
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getType() !== 'undefined' && this.getType() !== null ? {
|
|
202
|
+
'type': this.getType()
|
|
203
|
+
} : {}), typeof this.getCategory() !== 'undefined' && this.getCategory() !== null ? {
|
|
204
|
+
'category': this.getCategory()
|
|
205
|
+
} : {}), typeof this.getStartDate() !== 'undefined' && this.getStartDate() !== null ? {
|
|
206
|
+
'startDate': _assertClassBrand(_Trial_brand, this, _handleDateType).call(this, this.getStartDate(), true)
|
|
207
|
+
} : {}), typeof this.getEndDate() !== 'undefined' && this.getEndDate() !== null ? {
|
|
208
|
+
'endDate': _assertClassBrand(_Trial_brand, this, _handleDateType).call(this, this.getEndDate(), true)
|
|
209
|
+
} : {}), typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {
|
|
210
|
+
'status': this.getStatus()
|
|
211
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
212
|
+
'extId': this.getExtId()
|
|
213
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
214
|
+
'links': this.getLinks().map(function (item) {
|
|
215
|
+
return item.toJson(false);
|
|
216
|
+
})
|
|
217
|
+
} : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
218
|
+
'tenantId': this.getTenantId()
|
|
219
|
+
} : {}), {}, {
|
|
220
|
+
'$reserved': this.get$Reserved(),
|
|
221
|
+
'$objectType': this.get$ObjectType(),
|
|
222
|
+
'$unknownFields': this.get$UnknownFields()
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getType() !== 'undefined' && this.getType() !== null ? {
|
|
226
|
+
'type': this.getType()
|
|
227
|
+
} : {}), typeof this.getCategory() !== 'undefined' && this.getCategory() !== null ? {
|
|
228
|
+
'category': this.getCategory()
|
|
229
|
+
} : {}), typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {
|
|
230
|
+
'status': this.getStatus()
|
|
231
|
+
} : {}), {}, {
|
|
232
|
+
'$reserved': this.get$Reserved(),
|
|
233
|
+
'$objectType': this.get$ObjectType(),
|
|
234
|
+
'$unknownFields': this.get$UnknownFields()
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
}, {
|
|
238
|
+
key: "validate",
|
|
239
|
+
value: function validate(scope, properties) {
|
|
240
|
+
var _this2 = this;
|
|
241
|
+
var propList = [];
|
|
242
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
243
|
+
//cases validate() and validate(scope)
|
|
244
|
+
propList = ["type"];
|
|
245
|
+
} else if (arguments.length === 1) {
|
|
246
|
+
//case validate(properties)
|
|
247
|
+
propList = arguments[0];
|
|
248
|
+
scope = null;
|
|
249
|
+
} else {
|
|
250
|
+
//case validate(scope, properties)
|
|
251
|
+
propList = arguments[1];
|
|
252
|
+
}
|
|
253
|
+
var res = [];
|
|
254
|
+
var err = null;
|
|
255
|
+
propList.forEach(function (property) {
|
|
256
|
+
err = _this2.validateProperty(property, scope);
|
|
257
|
+
if (err) {
|
|
258
|
+
res.push(err);
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
return new Promise(function (resolve, reject) {
|
|
262
|
+
if (res.length !== 0) {
|
|
263
|
+
reject(err);
|
|
264
|
+
} else {
|
|
265
|
+
resolve();
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
}, {
|
|
270
|
+
key: "validateProperty",
|
|
271
|
+
value: function validateProperty(scope, property) {
|
|
272
|
+
if (property === "type") {
|
|
273
|
+
if (typeof this.type === 'undefined' || this.type === null) {
|
|
274
|
+
return new _ValidationError["default"]("type", "undefined or null");
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
if (property === "category") {
|
|
278
|
+
if (typeof this.category === 'undefined' || this.category === null) {
|
|
279
|
+
return new _ValidationError["default"]("category", "undefined or null");
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
if (property === "startDate") {
|
|
283
|
+
if (typeof this.startDate === 'undefined' || this.startDate === null) {
|
|
284
|
+
return new _ValidationError["default"]("startDate", "undefined or null");
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
if (property === "endDate") {
|
|
288
|
+
if (typeof this.endDate === 'undefined' || this.endDate === null) {
|
|
289
|
+
return new _ValidationError["default"]("endDate", "undefined or null");
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
if (property === "status") {
|
|
293
|
+
if (typeof this.status === 'undefined' || this.status === null) {
|
|
294
|
+
return new _ValidationError["default"]("status", "undefined or null");
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
298
|
+
}
|
|
299
|
+
}], [{
|
|
300
|
+
key: "constructFromObject",
|
|
301
|
+
value: function constructFromObject(data) {
|
|
302
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
303
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
304
|
+
var items, item, i, itemArr, discriminator;
|
|
305
|
+
if (data) {
|
|
306
|
+
obj = obj || new Trial();
|
|
307
|
+
_ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
|
|
308
|
+
if (data.hasOwnProperty('type') && data.type !== null && data.type !== undefined) {
|
|
309
|
+
obj.setType(_TrialType["default"].constructFromObject(data['type']));
|
|
310
|
+
}
|
|
311
|
+
if (data.hasOwnProperty('category') && data.category !== null && data.category !== undefined) {
|
|
312
|
+
obj.setCategory(_TrialCategory["default"].constructFromObject(data['category']));
|
|
313
|
+
}
|
|
314
|
+
if (data.hasOwnProperty('startDate') && data.startDate !== null && data.startDate !== undefined) {
|
|
315
|
+
obj.setStartDate(data['startDate']);
|
|
316
|
+
}
|
|
317
|
+
if (data.hasOwnProperty('endDate') && data.endDate !== null && data.endDate !== undefined) {
|
|
318
|
+
obj.setEndDate(data['endDate']);
|
|
319
|
+
}
|
|
320
|
+
if (data.hasOwnProperty('status') && data.status !== null && data.status !== undefined) {
|
|
321
|
+
obj.setStatus(_TrialStatus["default"].constructFromObject(data['status']));
|
|
322
|
+
}
|
|
323
|
+
if (!callFromChild) {
|
|
324
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
325
|
+
for (var property in data) {
|
|
326
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
327
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
328
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
329
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
330
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
331
|
+
obj.$unknownFields[property] = data[property];
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
return obj;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Converts a given snake_case string to camelCase.
|
|
341
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
342
|
+
* @returns {string} - The converted string in camelCase format.
|
|
343
|
+
*/
|
|
344
|
+
}, {
|
|
345
|
+
key: "snakeToCamel",
|
|
346
|
+
value: function snakeToCamel(snakeStr) {
|
|
347
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
348
|
+
return match[1].toUpperCase();
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
}]);
|
|
352
|
+
}(_ExternalizableAbstractModel["default"]);
|
|
353
|
+
/**
|
|
354
|
+
* @memberof Trial
|
|
355
|
+
*/
|
|
356
|
+
function _toJsonMapType(obj, forMutation) {
|
|
357
|
+
if (obj instanceof Map) {
|
|
358
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
359
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
360
|
+
k = _ref2[0],
|
|
361
|
+
v = _ref2[1];
|
|
362
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
363
|
+
}));
|
|
364
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
365
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
366
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
367
|
+
}));
|
|
368
|
+
}
|
|
369
|
+
return obj;
|
|
370
|
+
}
|
|
371
|
+
/*
|
|
372
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
373
|
+
* @param {Object} obj Object to serialize
|
|
374
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
375
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
376
|
+
*/
|
|
377
|
+
function _handleDateType(obj, isDateOnly) {
|
|
378
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
379
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
380
|
+
}
|
|
381
|
+
return obj;
|
|
382
|
+
}
|
|
383
|
+
Trial.prototype.type = undefined;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* @memberof Trial
|
|
387
|
+
*/
|
|
388
|
+
Trial.prototype.category = undefined;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Start date of the trial.
|
|
392
|
+
* @memberof Trial
|
|
393
|
+
*/
|
|
394
|
+
Trial.prototype.startDate = undefined;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* End date of the trial.
|
|
398
|
+
* @memberof Trial
|
|
399
|
+
*/
|
|
400
|
+
Trial.prototype.endDate = undefined;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* @memberof Trial
|
|
404
|
+
*/
|
|
405
|
+
Trial.prototype.status = undefined;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
409
|
+
* @memberof Trial
|
|
410
|
+
*/
|
|
411
|
+
_ExternalizableAbstractModel["default"].prototype.extId = undefined;
|
|
412
|
+
/**
|
|
413
|
+
* A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
|
|
414
|
+
* @memberof Trial
|
|
415
|
+
*/
|
|
416
|
+
_ExternalizableAbstractModel["default"].prototype.links = undefined;
|
|
417
|
+
/**
|
|
418
|
+
* A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this ID to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
|
|
419
|
+
* @memberof Trial
|
|
420
|
+
*/
|
|
421
|
+
_TenantAwareModel["default"].prototype.tenantId = undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default TrialCategory;
|
|
2
|
+
/**
|
|
3
|
+
* *
|
|
4
|
+
*/
|
|
5
|
+
type TrialCategory = string;
|
|
6
|
+
declare namespace TrialCategory {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a <code>TrialCategory</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 {TrialCategory} The enum <code>TrialCategory</code> value.
|
|
11
|
+
*/
|
|
12
|
+
function constructFromObject(obj: any): string;
|
|
13
|
+
/**
|
|
14
|
+
* Validates <code>TrialCategory</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
|
+
}
|