@nutanix-scratch/licensing-js-client 4.1.1 → 4.2.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/README.md +4 -4
- package/dist/Ntnx-Licensing-js-client-prod.js +1 -1
- package/dist/Ntnx-Licensing-js-client.js +252 -131
- package/dist/es/ApiClient.d.ts +1 -1
- package/dist/es/ApiClient.js +3 -3
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +2 -2
- package/dist/es/apis/enduserlicenseagreement-endpoints.d.ts +1 -1
- package/dist/es/apis/enduserlicenseagreement-endpoints.js +4 -4
- package/dist/es/apis/licensekeys-endpoints.d.ts +4 -3
- package/dist/es/apis/licensekeys-endpoints.js +10 -10
- package/dist/es/apis/licenses-endpoints.d.ts +1 -1
- package/dist/es/apis/licenses-endpoints.js +11 -11
- package/dist/es/index.d.ts +25 -3
- package/dist/es/index.js +92 -4
- package/dist/es/models/common/v1/config/Flag.d.ts +1 -1
- package/dist/es/models/common/v1/config/Flag.js +2 -2
- package/dist/es/models/common/v1/config/KVPair.d.ts +1 -1
- package/dist/es/models/common/v1/config/KVPair.js +2 -2
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +1 -1
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +2 -2
- package/dist/es/models/common/v1/config/Message.d.ts +1 -1
- package/dist/es/models/common/v1/config/Message.js +2 -2
- package/dist/es/models/common/v1/config/MessageSeverity.js +1 -1
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +1 -1
- package/dist/es/models/common/v1/config/TenantAwareModel.js +2 -2
- package/dist/es/models/common/v1/response/ApiLink.d.ts +1 -1
- package/dist/es/models/common/v1/response/ApiLink.js +2 -2
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +1 -1
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +2 -2
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -1
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +2 -2
- package/dist/es/models/licensing/v4/agreements/Acceptance.d.ts +1 -1
- package/dist/es/models/licensing/v4/agreements/Acceptance.js +3 -3
- package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.js +4 -4
- package/dist/es/models/licensing/v4/agreements/EndUser.d.ts +1 -1
- package/dist/es/models/licensing/v4/agreements/EndUser.js +3 -3
- package/dist/es/models/licensing/v4/agreements/Eula.d.ts +1 -1
- package/dist/es/models/licensing/v4/agreements/Eula.js +3 -3
- package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.js +4 -4
- package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.js +4 -4
- package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +11 -1
- package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +3 -3
- package/dist/es/models/licensing/v4/config/Allowance.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/Allowance.js +3 -3
- package/dist/es/models/licensing/v4/config/AllowanceDetail.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/AllowanceDetail.js +3 -3
- package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.js +3 -3
- package/dist/es/models/licensing/v4/config/AllowanceProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/AllowanceProjection.js +3 -3
- package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +4 -4
- 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 +1 -1
- package/dist/es/models/licensing/v4/config/BaseClusterInfo.js +3 -3
- package/dist/es/models/licensing/v4/config/BaseLicenseInfo.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/BaseLicenseInfo.js +3 -3
- package/dist/es/models/licensing/v4/config/BillingPlan.js +1 -1
- package/dist/es/models/licensing/v4/config/CapacityViolation.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/CapacityViolation.js +3 -3
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.js +3 -3
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +3 -3
- package/dist/es/models/licensing/v4/config/ClusterType.js +1 -1
- package/dist/es/models/licensing/v4/config/Compliance.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/Compliance.js +3 -3
- package/dist/es/models/licensing/v4/config/ComplianceProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ComplianceProjection.js +3 -3
- package/dist/es/models/licensing/v4/config/Consumption.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/Consumption.js +3 -3
- package/dist/es/models/licensing/v4/config/ConsumptionProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ConsumptionProjection.js +3 -3
- package/dist/es/models/licensing/v4/config/ConsumptionType.js +1 -1
- package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +4 -4
- package/dist/es/models/licensing/v4/config/DryRunCheck.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/DryRunCheck.js +3 -3
- package/dist/es/models/licensing/v4/config/DryRunStatus.js +1 -1
- package/dist/es/models/licensing/v4/config/DryRunValidationResult.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/DryRunValidationResult.js +3 -3
- package/dist/es/models/licensing/v4/config/EnforcementActions.js +1 -1
- package/dist/es/models/licensing/v4/config/EnforcementLevel.js +1 -1
- package/dist/es/models/licensing/v4/config/EnforcementPolicy.js +1 -1
- package/dist/es/models/licensing/v4/config/Entitlement.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/Entitlement.js +3 -3
- package/dist/es/models/licensing/v4/config/EntitlementDetail.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/EntitlementDetail.js +3 -3
- package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.js +3 -3
- package/dist/es/models/licensing/v4/config/EntitlementProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/EntitlementProjection.js +3 -3
- package/dist/es/models/licensing/v4/config/ExpiredLicense.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ExpiredLicense.js +3 -3
- package/dist/es/models/licensing/v4/config/Feature.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/Feature.js +3 -3
- package/dist/es/models/licensing/v4/config/FeatureDetail.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/FeatureDetail.js +3 -3
- package/dist/es/models/licensing/v4/config/FeatureProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/FeatureProjection.js +3 -3
- package/dist/es/models/licensing/v4/config/FeatureViolation.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/FeatureViolation.js +3 -3
- package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.js +4 -4
- package/dist/es/models/licensing/v4/config/License.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/License.js +3 -3
- package/dist/es/models/licensing/v4/config/LicenseCategory.js +21 -3
- package/dist/es/models/licensing/v4/config/LicenseClass.js +1 -1
- package/dist/es/models/licensing/v4/config/LicenseKey.d.ts +33 -1
- package/dist/es/models/licensing/v4/config/LicenseKey.js +89 -5
- package/dist/es/models/licensing/v4/config/{LicenseKeyAssignSpec.d.ts → LicenseKeyAssignment.d.ts} +8 -8
- package/dist/es/models/licensing/v4/config/{LicenseKeyAssignSpec.js → LicenseKeyAssignment.js} +26 -26
- 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 +1 -1
- package/dist/es/models/licensing/v4/config/LicenseKeyMapping.js +3 -3
- package/dist/es/models/licensing/v4/config/LicenseKeyProjection.d.ts +33 -2
- package/dist/es/models/licensing/v4/config/LicenseKeyProjection.js +70 -5
- package/dist/es/models/licensing/v4/config/LicenseKeySubCategory.js +1 -1
- package/dist/es/models/licensing/v4/config/LicenseProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/LicenseProjection.js +3 -3
- package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.js +3 -3
- package/dist/es/models/licensing/v4/config/LicenseType.js +15 -3
- package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.js +4 -4
- package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.js +4 -4
- package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.js +4 -4
- package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.js +4 -4
- package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.js +4 -4
- package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.js +4 -4
- package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.js +4 -4
- package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.js +4 -4
- package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.js +4 -4
- package/dist/es/models/licensing/v4/config/LogicalVersion.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/LogicalVersion.js +3 -3
- package/dist/es/models/licensing/v4/config/Meter.js +1 -1
- package/dist/es/models/licensing/v4/config/OperationType.js +1 -1
- package/dist/es/models/licensing/v4/config/PortalSetting.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/PortalSetting.js +3 -3
- package/dist/es/models/licensing/v4/config/PostPaidCategory.js +1 -1
- package/dist/es/models/licensing/v4/config/PostPaidConfig.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/PostPaidConfig.js +3 -3
- package/dist/es/models/licensing/v4/config/ProductName.js +1 -1
- 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 +1 -1
- package/dist/es/models/licensing/v4/config/Recommendation.js +3 -3
- package/dist/es/models/licensing/v4/config/RecommendationDetail.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/RecommendationDetail.js +3 -3
- package/dist/es/models/licensing/v4/config/RecommendationScope.js +1 -1
- package/dist/es/models/licensing/v4/config/ResetScope.js +1 -1
- package/dist/es/models/licensing/v4/config/Scope.js +1 -1
- package/dist/es/models/licensing/v4/config/Service.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/Service.js +3 -3
- package/dist/es/models/licensing/v4/config/ServiceProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ServiceProjection.js +3 -3
- package/dist/es/models/licensing/v4/config/ServiceViolation.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ServiceViolation.js +3 -3
- package/dist/es/models/licensing/v4/config/ServiceViolationType.js +1 -1
- package/dist/es/models/licensing/v4/config/Setting.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/Setting.js +3 -3
- package/dist/es/models/licensing/v4/config/Status.js +1 -1
- package/dist/es/models/licensing/v4/config/SubCategory.js +1 -1
- package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.js +4 -4
- package/dist/es/models/licensing/v4/config/SyncOperationType.js +1 -1
- 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.js +1 -1
- package/dist/es/models/licensing/v4/config/Violation.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/Violation.js +3 -3
- package/dist/es/models/licensing/v4/error/AppMessage.d.ts +1 -1
- package/dist/es/models/licensing/v4/error/AppMessage.js +3 -3
- package/dist/es/models/licensing/v4/error/ErrorResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/error/ErrorResponse.js +3 -3
- package/dist/es/models/licensing/v4/error/SchemaValidationError.d.ts +1 -1
- package/dist/es/models/licensing/v4/error/SchemaValidationError.js +3 -3
- package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +1 -1
- package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.js +3 -3
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +1 -1
- package/dist/es/models/prism/v4/config/TaskReference.js +2 -2
- package/dist/es/models/validation/ValidationError.js +1 -1
- package/dist/es/utils/ValidationUtils.js +1 -1
- package/dist/lib/ApiClient.d.ts +1 -1
- package/dist/lib/ApiClient.js +3 -3
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +2 -2
- package/dist/lib/apis/enduserlicenseagreement-endpoints.d.ts +1 -1
- package/dist/lib/apis/enduserlicenseagreement-endpoints.js +4 -4
- package/dist/lib/apis/licensekeys-endpoints.d.ts +4 -3
- package/dist/lib/apis/licensekeys-endpoints.js +10 -10
- package/dist/lib/apis/licenses-endpoints.d.ts +1 -1
- package/dist/lib/apis/licenses-endpoints.js +11 -11
- package/dist/lib/index.d.ts +25 -3
- package/dist/lib/index.js +92 -4
- package/dist/lib/models/common/v1/config/Flag.d.ts +1 -1
- package/dist/lib/models/common/v1/config/Flag.js +2 -2
- package/dist/lib/models/common/v1/config/KVPair.d.ts +1 -1
- package/dist/lib/models/common/v1/config/KVPair.js +2 -2
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +1 -1
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +2 -2
- package/dist/lib/models/common/v1/config/Message.d.ts +1 -1
- package/dist/lib/models/common/v1/config/Message.js +2 -2
- package/dist/lib/models/common/v1/config/MessageSeverity.js +1 -1
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +1 -1
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +2 -2
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +1 -1
- package/dist/lib/models/common/v1/response/ApiLink.js +2 -2
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +1 -1
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +2 -2
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -1
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +2 -2
- package/dist/lib/models/licensing/v4/agreements/Acceptance.d.ts +1 -1
- package/dist/lib/models/licensing/v4/agreements/Acceptance.js +3 -3
- package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.js +4 -4
- package/dist/lib/models/licensing/v4/agreements/EndUser.d.ts +1 -1
- package/dist/lib/models/licensing/v4/agreements/EndUser.js +3 -3
- package/dist/lib/models/licensing/v4/agreements/Eula.d.ts +1 -1
- package/dist/lib/models/licensing/v4/agreements/Eula.js +3 -3
- package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.js +4 -4
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.js +4 -4
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +11 -1
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +3 -3
- package/dist/lib/models/licensing/v4/config/Allowance.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/Allowance.js +3 -3
- package/dist/lib/models/licensing/v4/config/AllowanceDetail.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/AllowanceDetail.js +3 -3
- package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.js +3 -3
- package/dist/lib/models/licensing/v4/config/AllowanceProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/AllowanceProjection.js +3 -3
- package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +4 -4
- 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 +1 -1
- package/dist/lib/models/licensing/v4/config/BaseClusterInfo.js +3 -3
- package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.js +3 -3
- package/dist/lib/models/licensing/v4/config/BillingPlan.js +1 -1
- package/dist/lib/models/licensing/v4/config/CapacityViolation.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/CapacityViolation.js +3 -3
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.js +3 -3
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +3 -3
- package/dist/lib/models/licensing/v4/config/ClusterType.js +1 -1
- package/dist/lib/models/licensing/v4/config/Compliance.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/Compliance.js +3 -3
- package/dist/lib/models/licensing/v4/config/ComplianceProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ComplianceProjection.js +3 -3
- package/dist/lib/models/licensing/v4/config/Consumption.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/Consumption.js +3 -3
- package/dist/lib/models/licensing/v4/config/ConsumptionProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ConsumptionProjection.js +3 -3
- package/dist/lib/models/licensing/v4/config/ConsumptionType.js +1 -1
- package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +4 -4
- package/dist/lib/models/licensing/v4/config/DryRunCheck.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/DryRunCheck.js +3 -3
- package/dist/lib/models/licensing/v4/config/DryRunStatus.js +1 -1
- package/dist/lib/models/licensing/v4/config/DryRunValidationResult.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/DryRunValidationResult.js +3 -3
- package/dist/lib/models/licensing/v4/config/EnforcementActions.js +1 -1
- package/dist/lib/models/licensing/v4/config/EnforcementLevel.js +1 -1
- package/dist/lib/models/licensing/v4/config/EnforcementPolicy.js +1 -1
- package/dist/lib/models/licensing/v4/config/Entitlement.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/Entitlement.js +3 -3
- package/dist/lib/models/licensing/v4/config/EntitlementDetail.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/EntitlementDetail.js +3 -3
- package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.js +3 -3
- package/dist/lib/models/licensing/v4/config/EntitlementProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/EntitlementProjection.js +3 -3
- package/dist/lib/models/licensing/v4/config/ExpiredLicense.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ExpiredLicense.js +3 -3
- package/dist/lib/models/licensing/v4/config/Feature.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/Feature.js +3 -3
- package/dist/lib/models/licensing/v4/config/FeatureDetail.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/FeatureDetail.js +3 -3
- package/dist/lib/models/licensing/v4/config/FeatureProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/FeatureProjection.js +3 -3
- package/dist/lib/models/licensing/v4/config/FeatureViolation.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/FeatureViolation.js +3 -3
- package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.js +4 -4
- package/dist/lib/models/licensing/v4/config/License.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/License.js +3 -3
- package/dist/lib/models/licensing/v4/config/LicenseCategory.js +21 -3
- package/dist/lib/models/licensing/v4/config/LicenseClass.js +1 -1
- package/dist/lib/models/licensing/v4/config/LicenseKey.d.ts +33 -1
- package/dist/lib/models/licensing/v4/config/LicenseKey.js +89 -5
- package/dist/lib/models/licensing/v4/config/{LicenseKeyAssignSpec.d.ts → LicenseKeyAssignment.d.ts} +8 -8
- package/dist/lib/models/licensing/v4/config/{LicenseKeyAssignSpec.js → LicenseKeyAssignment.js} +26 -26
- 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 +1 -1
- package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.js +3 -3
- package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.d.ts +33 -2
- package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.js +70 -5
- package/dist/lib/models/licensing/v4/config/LicenseKeySubCategory.js +1 -1
- package/dist/lib/models/licensing/v4/config/LicenseProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/LicenseProjection.js +3 -3
- package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.js +3 -3
- package/dist/lib/models/licensing/v4/config/LicenseType.js +15 -3
- package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.js +4 -4
- package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.js +4 -4
- package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.js +4 -4
- package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.js +4 -4
- package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.js +4 -4
- package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.js +4 -4
- package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.js +4 -4
- package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.js +4 -4
- package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.js +4 -4
- package/dist/lib/models/licensing/v4/config/LogicalVersion.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/LogicalVersion.js +3 -3
- package/dist/lib/models/licensing/v4/config/Meter.js +1 -1
- package/dist/lib/models/licensing/v4/config/OperationType.js +1 -1
- package/dist/lib/models/licensing/v4/config/PortalSetting.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/PortalSetting.js +3 -3
- package/dist/lib/models/licensing/v4/config/PostPaidCategory.js +1 -1
- package/dist/lib/models/licensing/v4/config/PostPaidConfig.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/PostPaidConfig.js +3 -3
- package/dist/lib/models/licensing/v4/config/ProductName.js +1 -1
- 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 +1 -1
- package/dist/lib/models/licensing/v4/config/Recommendation.js +3 -3
- package/dist/lib/models/licensing/v4/config/RecommendationDetail.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/RecommendationDetail.js +3 -3
- package/dist/lib/models/licensing/v4/config/RecommendationScope.js +1 -1
- package/dist/lib/models/licensing/v4/config/ResetScope.js +1 -1
- package/dist/lib/models/licensing/v4/config/Scope.js +1 -1
- package/dist/lib/models/licensing/v4/config/Service.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/Service.js +3 -3
- package/dist/lib/models/licensing/v4/config/ServiceProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ServiceProjection.js +3 -3
- package/dist/lib/models/licensing/v4/config/ServiceViolation.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ServiceViolation.js +3 -3
- package/dist/lib/models/licensing/v4/config/ServiceViolationType.js +1 -1
- package/dist/lib/models/licensing/v4/config/Setting.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/Setting.js +3 -3
- package/dist/lib/models/licensing/v4/config/Status.js +1 -1
- package/dist/lib/models/licensing/v4/config/SubCategory.js +1 -1
- package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.js +4 -4
- package/dist/lib/models/licensing/v4/config/SyncOperationType.js +1 -1
- 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.js +1 -1
- package/dist/lib/models/licensing/v4/config/Violation.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/Violation.js +3 -3
- package/dist/lib/models/licensing/v4/error/AppMessage.d.ts +1 -1
- package/dist/lib/models/licensing/v4/error/AppMessage.js +3 -3
- package/dist/lib/models/licensing/v4/error/ErrorResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/error/ErrorResponse.js +3 -3
- package/dist/lib/models/licensing/v4/error/SchemaValidationError.d.ts +1 -1
- package/dist/lib/models/licensing/v4/error/SchemaValidationError.js +3 -3
- package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +1 -1
- package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.js +3 -3
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +1 -1
- package/dist/lib/models/prism/v4/config/TaskReference.js +2 -2
- package/dist/lib/models/validation/ValidationError.js +1 -1
- package/dist/lib/utils/ValidationUtils.js +1 -1
- package/package.json +2 -2
|
@@ -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: 4.2.1
|
|
36
|
+
*
|
|
37
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
38
|
+
*
|
|
39
|
+
* Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
|
|
40
|
+
*
|
|
41
|
+
* Do not edit the class manually.
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
45
|
+
* The TrialProjection model module.
|
|
46
|
+
* @module Ntnx/TrialProjection
|
|
47
|
+
* @version 4.2.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: 4.2.1
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
17
|
+
*
|
|
18
|
+
* Open API Dev Platform Codegen version: 17.4.0.8851-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: 4.2.1
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
17
|
+
*
|
|
18
|
+
* Open API Dev Platform Codegen version: 17.4.0.8851-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;
|
|
@@ -11,7 +11,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
|
|
|
11
11
|
/*
|
|
12
12
|
* Nutanix Licensing APIs
|
|
13
13
|
*
|
|
14
|
-
* OpenAPI spec version: 4.
|
|
14
|
+
* OpenAPI spec version: 4.2.1
|
|
15
15
|
*
|
|
16
16
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
17
17
|
*
|
|
@@ -40,7 +40,7 @@ function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a
|
|
|
40
40
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
41
41
|
* Nutanix Licensing APIs
|
|
42
42
|
*
|
|
43
|
-
* OpenAPI spec version: 4.
|
|
43
|
+
* OpenAPI spec version: 4.2.1
|
|
44
44
|
*
|
|
45
45
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
46
46
|
*
|
|
@@ -52,7 +52,7 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
52
52
|
/**
|
|
53
53
|
* The Violation model module.
|
|
54
54
|
* @module Ntnx/Violation
|
|
55
|
-
* @version 4.
|
|
55
|
+
* @version 4.2.1
|
|
56
56
|
* @class Violation
|
|
57
57
|
* @extends BaseClusterInfo
|
|
58
58
|
*/
|
|
@@ -78,7 +78,7 @@ var Violation = exports["default"] = /*#__PURE__*/function (_BaseClusterInfo) {
|
|
|
78
78
|
_this.$objectType = "licensing.v4.config.Violation";
|
|
79
79
|
/** @type {object<string, any>} */
|
|
80
80
|
_this.$reserved = {
|
|
81
|
-
'$fv': "v4.
|
|
81
|
+
'$fv': "v4.r2"
|
|
82
82
|
};
|
|
83
83
|
/** @type {object<string, any>} */
|
|
84
84
|
_this.$unknownFields = {};
|
|
@@ -29,7 +29,7 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
29
29
|
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"); } /*
|
|
30
30
|
* Nutanix Licensing APIs
|
|
31
31
|
*
|
|
32
|
-
* OpenAPI spec version: 4.
|
|
32
|
+
* OpenAPI spec version: 4.2.1
|
|
33
33
|
*
|
|
34
34
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
35
35
|
*
|
|
@@ -41,7 +41,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
41
41
|
/**
|
|
42
42
|
* The AppMessage model module.
|
|
43
43
|
* @module Ntnx/AppMessage
|
|
44
|
-
* @version 4.
|
|
44
|
+
* @version 4.2.1
|
|
45
45
|
* @class AppMessage
|
|
46
46
|
*/
|
|
47
47
|
var _AppMessage_brand = /*#__PURE__*/new WeakSet();
|
|
@@ -63,7 +63,7 @@ var AppMessage = exports["default"] = /*#__PURE__*/function () {
|
|
|
63
63
|
this.$objectType = "licensing.v4.error.AppMessage";
|
|
64
64
|
/** @type {object<string, any>} */
|
|
65
65
|
this.$reserved = {
|
|
66
|
-
'$fv': "v4.
|
|
66
|
+
'$fv': "v4.r2"
|
|
67
67
|
};
|
|
68
68
|
/** @type {object<string, any>} */
|
|
69
69
|
this.$unknownFields = {};
|
|
@@ -30,7 +30,7 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
30
30
|
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"); } /*
|
|
31
31
|
* Nutanix Licensing APIs
|
|
32
32
|
*
|
|
33
|
-
* OpenAPI spec version: 4.
|
|
33
|
+
* OpenAPI spec version: 4.2.1
|
|
34
34
|
*
|
|
35
35
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
36
36
|
*
|
|
@@ -42,7 +42,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
42
42
|
/**
|
|
43
43
|
* The ErrorResponse model module.
|
|
44
44
|
* @module Ntnx/ErrorResponse
|
|
45
|
-
* @version 4.
|
|
45
|
+
* @version 4.2.1
|
|
46
46
|
* @class ErrorResponse
|
|
47
47
|
*/
|
|
48
48
|
var _ErrorResponse_brand = /*#__PURE__*/new WeakSet();
|
|
@@ -64,7 +64,7 @@ var ErrorResponse = exports["default"] = /*#__PURE__*/function () {
|
|
|
64
64
|
this.$objectType = "licensing.v4.error.ErrorResponse";
|
|
65
65
|
/** @type {object<string, any>} */
|
|
66
66
|
this.$reserved = {
|
|
67
|
-
'$fv': "v4.
|
|
67
|
+
'$fv': "v4.r2"
|
|
68
68
|
};
|
|
69
69
|
/** @type {object<string, any>} */
|
|
70
70
|
this.$unknownFields = {};
|
|
@@ -29,7 +29,7 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
29
29
|
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"); } /*
|
|
30
30
|
* Nutanix Licensing APIs
|
|
31
31
|
*
|
|
32
|
-
* OpenAPI spec version: 4.
|
|
32
|
+
* OpenAPI spec version: 4.2.1
|
|
33
33
|
*
|
|
34
34
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
35
35
|
*
|
|
@@ -41,7 +41,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
41
41
|
/**
|
|
42
42
|
* The SchemaValidationError model module.
|
|
43
43
|
* @module Ntnx/SchemaValidationError
|
|
44
|
-
* @version 4.
|
|
44
|
+
* @version 4.2.1
|
|
45
45
|
* @class SchemaValidationError
|
|
46
46
|
*/
|
|
47
47
|
var _SchemaValidationError_brand = /*#__PURE__*/new WeakSet();
|
|
@@ -63,7 +63,7 @@ var SchemaValidationError = exports["default"] = /*#__PURE__*/function () {
|
|
|
63
63
|
this.$objectType = "licensing.v4.error.SchemaValidationError";
|
|
64
64
|
/** @type {object<string, any>} */
|
|
65
65
|
this.$reserved = {
|
|
66
|
-
'$fv': "v4.
|
|
66
|
+
'$fv': "v4.r2"
|
|
67
67
|
};
|
|
68
68
|
/** @type {object<string, any>} */
|
|
69
69
|
this.$unknownFields = {};
|
|
@@ -27,7 +27,7 @@ function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a
|
|
|
27
27
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
28
28
|
* Nutanix Licensing APIs
|
|
29
29
|
*
|
|
30
|
-
* OpenAPI spec version: 4.
|
|
30
|
+
* OpenAPI spec version: 4.2.1
|
|
31
31
|
*
|
|
32
32
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
33
33
|
*
|
|
@@ -39,7 +39,7 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
39
39
|
/**
|
|
40
40
|
* The SchemaValidationErrorMessage model module.
|
|
41
41
|
* @module Ntnx/SchemaValidationErrorMessage
|
|
42
|
-
* @version 4.
|
|
42
|
+
* @version 4.2.1
|
|
43
43
|
* @class SchemaValidationErrorMessage
|
|
44
44
|
*/
|
|
45
45
|
var _SchemaValidationErrorMessage_brand = /*#__PURE__*/new WeakSet();
|
|
@@ -61,7 +61,7 @@ var SchemaValidationErrorMessage = exports["default"] = /*#__PURE__*/function ()
|
|
|
61
61
|
this.$objectType = "licensing.v4.error.SchemaValidationErrorMessage";
|
|
62
62
|
/** @type {object<string, any>} */
|
|
63
63
|
this.$reserved = {
|
|
64
|
-
'$fv': "v4.
|
|
64
|
+
'$fv': "v4.r2"
|
|
65
65
|
};
|
|
66
66
|
/** @type {object<string, any>} */
|
|
67
67
|
this.$unknownFields = {};
|
|
@@ -27,7 +27,7 @@ function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a
|
|
|
27
27
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
28
28
|
* Nutanix Licensing APIs
|
|
29
29
|
*
|
|
30
|
-
* OpenAPI spec version: 4.
|
|
30
|
+
* OpenAPI spec version: 4.2.1
|
|
31
31
|
*
|
|
32
32
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
33
33
|
*
|
|
@@ -39,7 +39,7 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
39
39
|
/**
|
|
40
40
|
* The TaskReference model module.
|
|
41
41
|
* @module Ntnx/TaskReference
|
|
42
|
-
* @version 4.
|
|
42
|
+
* @version 4.2.1
|
|
43
43
|
* @class TaskReference
|
|
44
44
|
*/
|
|
45
45
|
var _TaskReference_brand = /*#__PURE__*/new WeakSet();
|
|
@@ -13,7 +13,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
13
13
|
/*
|
|
14
14
|
* Nutanix Licensing APIs
|
|
15
15
|
*
|
|
16
|
-
* OpenAPI spec version: 4.
|
|
16
|
+
* OpenAPI spec version: 4.2.1
|
|
17
17
|
*
|
|
18
18
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
19
19
|
*
|
|
@@ -13,7 +13,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
13
13
|
/*
|
|
14
14
|
* Nutanix Licensing APIs
|
|
15
15
|
*
|
|
16
|
-
* OpenAPI spec version: 4.
|
|
16
|
+
* OpenAPI spec version: 4.2.1
|
|
17
17
|
*
|
|
18
18
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
19
19
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nutanix-scratch/licensing-js-client",
|
|
3
|
-
"version": "4.
|
|
4
|
-
"description": "The Javascript client for Nutanix Licensing APIs is designed for Javascript client application developers offering them simple and flexible access to APIs that
|
|
3
|
+
"version": "4.2.1",
|
|
4
|
+
"description": "The Javascript client for Nutanix Licensing APIs is designed for Javascript client application developers offering them simple and flexible access to APIs that manage licenses for your clusters and Prism Central, get information on applied licenses, license compliance details and feature entitlements.",
|
|
5
5
|
"license": "SEE LICENSE AT LICENSE.md",
|
|
6
6
|
"main": "dist/lib/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|