@nutanix-scratch/licensing-js-client 4.0.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 +20 -19
- package/dist/Ntnx-Licensing-js-client-prod.js +1 -1
- package/dist/Ntnx-Licensing-js-client.js +265 -166
- package/dist/es/ApiClient.d.ts +7 -1
- package/dist/es/ApiClient.js +16 -25
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +3 -3
- package/dist/es/apis/enduserlicenseagreement-endpoints.d.ts +1 -1
- package/dist/es/apis/enduserlicenseagreement-endpoints.js +5 -5
- package/dist/es/apis/licensekeys-endpoints.d.ts +7 -22
- package/dist/es/apis/licensekeys-endpoints.js +16 -30
- package/dist/es/apis/licenses-endpoints.d.ts +15 -101
- package/dist/es/apis/licenses-endpoints.js +36 -112
- package/dist/es/index.d.ts +27 -9
- package/dist/es/index.js +92 -20
- package/dist/es/models/common/v1/config/Flag.d.ts +1 -1
- package/dist/es/models/common/v1/config/Flag.js +3 -3
- package/dist/es/models/common/v1/config/KVPair.d.ts +1 -1
- package/dist/es/models/common/v1/config/KVPair.js +3 -3
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +1 -1
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +3 -3
- package/dist/es/models/common/v1/config/Message.d.ts +1 -1
- package/dist/es/models/common/v1/config/Message.js +3 -3
- package/dist/es/models/common/v1/config/MessageSeverity.js +2 -2
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +4 -4
- package/dist/es/models/common/v1/config/TenantAwareModel.js +7 -7
- package/dist/es/models/common/v1/response/ApiLink.d.ts +1 -1
- package/dist/es/models/common/v1/response/ApiLink.js +3 -3
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +1 -1
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +3 -3
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -1
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +4 -4
- package/dist/es/models/licensing/v4/agreements/Acceptance.d.ts +1 -1
- package/dist/es/models/licensing/v4/agreements/Acceptance.js +4 -4
- package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.js +5 -5
- package/dist/es/models/licensing/v4/agreements/EndUser.d.ts +1 -1
- package/dist/es/models/licensing/v4/agreements/EndUser.js +4 -4
- package/dist/es/models/licensing/v4/agreements/Eula.d.ts +1 -1
- package/dist/es/models/licensing/v4/agreements/Eula.js +5 -5
- package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.js +5 -5
- package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.js +5 -5
- package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +14 -3
- package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +4 -4
- package/dist/es/models/licensing/v4/config/Allowance.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/Allowance.js +5 -5
- package/dist/es/models/licensing/v4/config/AllowanceDetail.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/AllowanceDetail.js +4 -4
- package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.js +4 -4
- package/dist/es/models/licensing/v4/config/AllowanceProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/AllowanceProjection.js +5 -5
- package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +5 -5
- 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 +5 -5
- package/dist/es/models/licensing/v4/config/BaseLicenseInfo.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/BaseLicenseInfo.js +5 -5
- package/dist/es/models/licensing/v4/config/BillingPlan.js +2 -2
- package/dist/es/models/licensing/v4/config/CapacityViolation.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/CapacityViolation.js +4 -4
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.js +4 -4
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +4 -4
- package/dist/es/models/licensing/v4/config/ClusterType.js +2 -2
- package/dist/es/models/licensing/v4/config/Compliance.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/Compliance.js +5 -5
- package/dist/es/models/licensing/v4/config/ComplianceProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ComplianceProjection.js +5 -5
- package/dist/es/models/licensing/v4/config/Consumption.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/Consumption.js +4 -4
- package/dist/es/models/licensing/v4/config/ConsumptionProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ConsumptionProjection.js +4 -4
- package/dist/es/models/licensing/v4/config/ConsumptionType.js +2 -2
- package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +5 -5
- package/dist/es/models/licensing/v4/config/DryRunCheck.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/DryRunCheck.js +7 -4
- package/dist/es/models/licensing/v4/config/DryRunStatus.js +2 -2
- package/dist/es/models/licensing/v4/config/DryRunValidationResult.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/DryRunValidationResult.js +4 -4
- package/dist/es/models/licensing/v4/config/EnforcementActions.js +2 -2
- package/dist/es/models/licensing/v4/config/EnforcementLevel.js +2 -2
- package/dist/es/models/licensing/v4/config/EnforcementPolicy.js +2 -2
- package/dist/es/models/licensing/v4/config/Entitlement.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/Entitlement.js +5 -5
- package/dist/es/models/licensing/v4/config/EntitlementDetail.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/EntitlementDetail.js +4 -4
- package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.js +4 -4
- package/dist/es/models/licensing/v4/config/EntitlementProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/EntitlementProjection.js +5 -5
- package/dist/es/models/licensing/v4/config/ExpiredLicense.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ExpiredLicense.js +5 -5
- package/dist/es/models/licensing/v4/config/Feature.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/Feature.js +5 -5
- package/dist/es/models/licensing/v4/config/FeatureDetail.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/FeatureDetail.js +4 -4
- package/dist/es/models/licensing/v4/config/FeatureProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/FeatureProjection.js +4 -4
- package/dist/es/models/licensing/v4/config/FeatureViolation.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/FeatureViolation.js +4 -4
- package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.js +5 -5
- package/dist/es/models/licensing/v4/config/License.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/License.js +5 -5
- package/dist/es/models/licensing/v4/config/LicenseCategory.js +22 -4
- package/dist/es/models/licensing/v4/config/LicenseClass.js +2 -2
- package/dist/es/models/licensing/v4/config/LicenseKey.d.ts +59 -16
- package/dist/es/models/licensing/v4/config/LicenseKey.js +166 -52
- package/dist/{lib/models/licensing/v4/config/LicenseKeyAssignSpec.d.ts → es/models/licensing/v4/config/LicenseKeyAssignment.d.ts} +8 -8
- package/dist/{lib/models/licensing/v4/config/LicenseKeyAssignSpec.js → es/models/licensing/v4/config/LicenseKeyAssignment.js} +27 -27
- 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/{agreements/UpdateEulaApiResponse.js → config/LicenseKeyAssociation.js} +166 -128
- 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 +4 -4
- package/dist/es/models/licensing/v4/config/LicenseKeyProjection.d.ts +36 -4
- package/dist/es/models/licensing/v4/config/LicenseKeyProjection.js +89 -15
- 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 +1 -1
- package/dist/es/models/licensing/v4/config/LicenseProjection.js +5 -5
- package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.js +4 -4
- package/dist/es/models/licensing/v4/config/LicenseType.js +22 -4
- package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.js +5 -5
- package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.js +5 -5
- package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.js +5 -5
- package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.js +5 -5
- package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.js +5 -5
- package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.js +5 -5
- package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.js +5 -5
- package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.js +5 -5
- package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.js +5 -5
- package/dist/es/models/licensing/v4/config/LogicalVersion.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/LogicalVersion.js +4 -4
- package/dist/es/models/licensing/v4/config/Meter.js +10 -4
- package/dist/es/models/licensing/v4/config/OperationType.js +2 -2
- package/dist/es/models/licensing/v4/config/PortalSetting.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/PortalSetting.js +4 -4
- package/dist/es/models/licensing/v4/config/PostPaidCategory.js +2 -2
- package/dist/es/models/licensing/v4/config/PostPaidConfig.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/PostPaidConfig.js +4 -4
- package/dist/es/models/licensing/v4/config/ProductName.js +2 -2
- 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 +5 -5
- package/dist/es/models/licensing/v4/config/RecommendationDetail.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/RecommendationDetail.js +4 -4
- package/dist/es/models/licensing/v4/config/RecommendationScope.js +2 -2
- package/dist/es/models/licensing/v4/config/ResetScope.js +2 -2
- package/dist/es/models/licensing/v4/config/Scope.js +2 -2
- package/dist/es/models/licensing/v4/config/Service.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/Service.js +4 -4
- package/dist/es/models/licensing/v4/config/ServiceProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ServiceProjection.js +4 -4
- package/dist/es/models/licensing/v4/config/ServiceViolation.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ServiceViolation.js +4 -4
- package/dist/es/models/licensing/v4/config/ServiceViolationType.js +2 -2
- package/dist/es/models/licensing/v4/config/Setting.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/Setting.js +5 -5
- package/dist/es/models/licensing/v4/config/Status.js +2 -2
- package/dist/es/models/licensing/v4/config/SubCategory.js +2 -2
- package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.js +5 -5
- package/dist/es/models/licensing/v4/config/SyncOperationType.js +2 -2
- package/dist/es/models/licensing/v4/config/Trial.d.ts +93 -0
- package/dist/es/models/licensing/v4/config/{ResetLicenseStateApiResponse.js → Trial.js} +194 -138
- 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 +2 -2
- package/dist/es/models/licensing/v4/config/Violation.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/Violation.js +5 -5
- package/dist/es/models/licensing/v4/error/AppMessage.d.ts +4 -4
- package/dist/es/models/licensing/v4/error/AppMessage.js +8 -8
- package/dist/es/models/licensing/v4/error/ErrorResponse.d.ts +1 -1
- package/dist/es/models/licensing/v4/error/ErrorResponse.js +5 -8
- package/dist/es/models/licensing/v4/error/SchemaValidationError.d.ts +1 -1
- package/dist/es/models/licensing/v4/error/SchemaValidationError.js +4 -4
- package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +1 -1
- package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.js +4 -4
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +4 -4
- package/dist/es/models/prism/v4/config/TaskReference.js +8 -8
- package/dist/es/models/validation/ValidationError.js +2 -2
- package/dist/es/utils/ValidationUtils.js +2 -2
- package/dist/lib/ApiClient.d.ts +7 -1
- package/dist/lib/ApiClient.js +16 -25
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +3 -3
- package/dist/lib/apis/enduserlicenseagreement-endpoints.d.ts +1 -1
- package/dist/lib/apis/enduserlicenseagreement-endpoints.js +5 -5
- package/dist/lib/apis/licensekeys-endpoints.d.ts +7 -22
- package/dist/lib/apis/licensekeys-endpoints.js +16 -30
- package/dist/lib/apis/licenses-endpoints.d.ts +15 -101
- package/dist/lib/apis/licenses-endpoints.js +36 -112
- package/dist/lib/index.d.ts +27 -9
- package/dist/lib/index.js +92 -20
- package/dist/lib/models/common/v1/config/Flag.d.ts +1 -1
- package/dist/lib/models/common/v1/config/Flag.js +3 -3
- package/dist/lib/models/common/v1/config/KVPair.d.ts +1 -1
- package/dist/lib/models/common/v1/config/KVPair.js +3 -3
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +1 -1
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +3 -3
- package/dist/lib/models/common/v1/config/Message.d.ts +1 -1
- package/dist/lib/models/common/v1/config/Message.js +3 -3
- package/dist/lib/models/common/v1/config/MessageSeverity.js +2 -2
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +4 -4
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +7 -7
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +1 -1
- package/dist/lib/models/common/v1/response/ApiLink.js +3 -3
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +1 -1
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +3 -3
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -1
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +4 -4
- package/dist/lib/models/licensing/v4/agreements/Acceptance.d.ts +1 -1
- package/dist/lib/models/licensing/v4/agreements/Acceptance.js +4 -4
- package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.js +5 -5
- package/dist/lib/models/licensing/v4/agreements/EndUser.d.ts +1 -1
- package/dist/lib/models/licensing/v4/agreements/EndUser.js +4 -4
- package/dist/lib/models/licensing/v4/agreements/Eula.d.ts +1 -1
- package/dist/lib/models/licensing/v4/agreements/Eula.js +5 -5
- package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.js +5 -5
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.js +5 -5
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +14 -3
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +4 -4
- package/dist/lib/models/licensing/v4/config/Allowance.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/Allowance.js +5 -5
- package/dist/lib/models/licensing/v4/config/AllowanceDetail.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/AllowanceDetail.js +4 -4
- package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.js +4 -4
- package/dist/lib/models/licensing/v4/config/AllowanceProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/AllowanceProjection.js +5 -5
- package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +5 -5
- 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 +5 -5
- package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.js +5 -5
- package/dist/lib/models/licensing/v4/config/BillingPlan.js +2 -2
- package/dist/lib/models/licensing/v4/config/CapacityViolation.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/CapacityViolation.js +4 -4
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.js +4 -4
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +4 -4
- package/dist/lib/models/licensing/v4/config/ClusterType.js +2 -2
- package/dist/lib/models/licensing/v4/config/Compliance.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/Compliance.js +5 -5
- package/dist/lib/models/licensing/v4/config/ComplianceProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ComplianceProjection.js +5 -5
- package/dist/lib/models/licensing/v4/config/Consumption.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/Consumption.js +4 -4
- package/dist/lib/models/licensing/v4/config/ConsumptionProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ConsumptionProjection.js +4 -4
- package/dist/lib/models/licensing/v4/config/ConsumptionType.js +2 -2
- package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +5 -5
- package/dist/lib/models/licensing/v4/config/DryRunCheck.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/DryRunCheck.js +7 -4
- package/dist/lib/models/licensing/v4/config/DryRunStatus.js +2 -2
- package/dist/lib/models/licensing/v4/config/DryRunValidationResult.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/DryRunValidationResult.js +4 -4
- package/dist/lib/models/licensing/v4/config/EnforcementActions.js +2 -2
- package/dist/lib/models/licensing/v4/config/EnforcementLevel.js +2 -2
- package/dist/lib/models/licensing/v4/config/EnforcementPolicy.js +2 -2
- package/dist/lib/models/licensing/v4/config/Entitlement.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/Entitlement.js +5 -5
- package/dist/lib/models/licensing/v4/config/EntitlementDetail.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/EntitlementDetail.js +4 -4
- package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.js +4 -4
- package/dist/lib/models/licensing/v4/config/EntitlementProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/EntitlementProjection.js +5 -5
- package/dist/lib/models/licensing/v4/config/ExpiredLicense.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ExpiredLicense.js +5 -5
- package/dist/lib/models/licensing/v4/config/Feature.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/Feature.js +5 -5
- package/dist/lib/models/licensing/v4/config/FeatureDetail.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/FeatureDetail.js +4 -4
- package/dist/lib/models/licensing/v4/config/FeatureProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/FeatureProjection.js +4 -4
- package/dist/lib/models/licensing/v4/config/FeatureViolation.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/FeatureViolation.js +4 -4
- package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.js +5 -5
- package/dist/lib/models/licensing/v4/config/License.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/License.js +5 -5
- package/dist/lib/models/licensing/v4/config/LicenseCategory.js +22 -4
- package/dist/lib/models/licensing/v4/config/LicenseClass.js +2 -2
- package/dist/lib/models/licensing/v4/config/LicenseKey.d.ts +59 -16
- package/dist/lib/models/licensing/v4/config/LicenseKey.js +166 -52
- package/dist/{es/models/licensing/v4/config/LicenseKeyAssignSpec.d.ts → lib/models/licensing/v4/config/LicenseKeyAssignment.d.ts} +8 -8
- package/dist/{es/models/licensing/v4/config/LicenseKeyAssignSpec.js → lib/models/licensing/v4/config/LicenseKeyAssignment.js} +27 -27
- 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/{agreements/UpdateEulaApiResponse.js → config/LicenseKeyAssociation.js} +166 -128
- 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 +4 -4
- package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.d.ts +36 -4
- package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.js +89 -15
- 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 +1 -1
- package/dist/lib/models/licensing/v4/config/LicenseProjection.js +5 -5
- package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.js +4 -4
- package/dist/lib/models/licensing/v4/config/LicenseType.js +22 -4
- package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.js +5 -5
- package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.js +5 -5
- package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.js +5 -5
- package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.js +5 -5
- package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.js +5 -5
- package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.js +5 -5
- package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.js +5 -5
- package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.js +5 -5
- package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.js +5 -5
- package/dist/lib/models/licensing/v4/config/LogicalVersion.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/LogicalVersion.js +4 -4
- package/dist/lib/models/licensing/v4/config/Meter.js +10 -4
- package/dist/lib/models/licensing/v4/config/OperationType.js +2 -2
- package/dist/lib/models/licensing/v4/config/PortalSetting.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/PortalSetting.js +4 -4
- package/dist/lib/models/licensing/v4/config/PostPaidCategory.js +2 -2
- package/dist/lib/models/licensing/v4/config/PostPaidConfig.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/PostPaidConfig.js +4 -4
- package/dist/lib/models/licensing/v4/config/ProductName.js +2 -2
- 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 +5 -5
- package/dist/lib/models/licensing/v4/config/RecommendationDetail.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/RecommendationDetail.js +4 -4
- package/dist/lib/models/licensing/v4/config/RecommendationScope.js +2 -2
- package/dist/lib/models/licensing/v4/config/ResetScope.js +2 -2
- package/dist/lib/models/licensing/v4/config/Scope.js +2 -2
- package/dist/lib/models/licensing/v4/config/Service.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/Service.js +4 -4
- package/dist/lib/models/licensing/v4/config/ServiceProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ServiceProjection.js +4 -4
- package/dist/lib/models/licensing/v4/config/ServiceViolation.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ServiceViolation.js +4 -4
- package/dist/lib/models/licensing/v4/config/ServiceViolationType.js +2 -2
- package/dist/lib/models/licensing/v4/config/Setting.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/Setting.js +5 -5
- package/dist/lib/models/licensing/v4/config/Status.js +2 -2
- package/dist/lib/models/licensing/v4/config/SubCategory.js +2 -2
- package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.js +5 -5
- package/dist/lib/models/licensing/v4/config/SyncOperationType.js +2 -2
- package/dist/lib/models/licensing/v4/config/Trial.d.ts +93 -0
- package/dist/lib/models/licensing/v4/config/{ResetLicenseStateApiResponse.js → Trial.js} +194 -138
- 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 +2 -2
- package/dist/lib/models/licensing/v4/config/Violation.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/Violation.js +5 -5
- package/dist/lib/models/licensing/v4/error/AppMessage.d.ts +4 -4
- package/dist/lib/models/licensing/v4/error/AppMessage.js +8 -8
- package/dist/lib/models/licensing/v4/error/ErrorResponse.d.ts +1 -1
- package/dist/lib/models/licensing/v4/error/ErrorResponse.js +5 -8
- package/dist/lib/models/licensing/v4/error/SchemaValidationError.d.ts +1 -1
- package/dist/lib/models/licensing/v4/error/SchemaValidationError.js +4 -4
- package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +1 -1
- package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.js +4 -4
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +4 -4
- package/dist/lib/models/prism/v4/config/TaskReference.js +8 -8
- package/dist/lib/models/validation/ValidationError.js +2 -2
- package/dist/lib/utils/ValidationUtils.js +2 -2
- package/package.json +3 -3
- package/dist/es/models/licensing/v4/agreements/UpdateEulaApiResponse.d.ts +0 -101
- package/dist/es/models/licensing/v4/config/ResetLicenseStateApiResponse.d.ts +0 -102
- package/dist/es/models/licensing/v4/config/UpdatePortalSettingApiResponse.d.ts +0 -99
- package/dist/es/models/licensing/v4/config/UpdatePortalSettingApiResponse.js +0 -365
- package/dist/lib/models/licensing/v4/agreements/UpdateEulaApiResponse.d.ts +0 -101
- package/dist/lib/models/licensing/v4/config/ResetLicenseStateApiResponse.d.ts +0 -102
- package/dist/lib/models/licensing/v4/config/UpdatePortalSettingApiResponse.d.ts +0 -99
- package/dist/lib/models/licensing/v4/config/UpdatePortalSettingApiResponse.js +0 -365
package/dist/es/ApiClient.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
4
4
|
* contents of this file should be regarded as internal but are documented for completeness.
|
|
5
5
|
* @module ApiClient
|
|
6
|
-
* @version 4.
|
|
6
|
+
* @version 4.2.1
|
|
7
7
|
*/
|
|
8
8
|
export class ApiClient {
|
|
9
9
|
/**
|
|
@@ -102,6 +102,12 @@ export class ApiClient {
|
|
|
102
102
|
* @default 3000
|
|
103
103
|
*/
|
|
104
104
|
retryInterval: number;
|
|
105
|
+
/**
|
|
106
|
+
* A boolean value that indicates whether cross-site Access-Control requests should be made using auth credentials.
|
|
107
|
+
* @type {Boolean}
|
|
108
|
+
* @default false
|
|
109
|
+
*/
|
|
110
|
+
withCredentials: boolean;
|
|
105
111
|
agent: any;
|
|
106
112
|
/**
|
|
107
113
|
* Allow user to override superagent agent
|
package/dist/es/ApiClient.js
CHANGED
|
@@ -16,7 +16,7 @@ var _ApiResponseMetadata = _interopRequireDefault(require("./models/common/v1/re
|
|
|
16
16
|
var _Flag = _interopRequireDefault(require("./models/common/v1/config/Flag"));
|
|
17
17
|
var _ApiClient;
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
19
|
-
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)
|
|
19
|
+
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)(>|$)/g, function (e, r, t) { if ("" === t) return e; var p = o[r]; return Array.isArray(p) ? "$" + p.join("$") : "number" == typeof p ? "$" + p : ""; })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }
|
|
20
20
|
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); }
|
|
21
21
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
22
22
|
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; }
|
|
@@ -39,11 +39,11 @@ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a),
|
|
|
39
39
|
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"); } /*
|
|
40
40
|
* Nutanix Licensing APIs
|
|
41
41
|
*
|
|
42
|
-
* OpenAPI spec version: 4.
|
|
42
|
+
* OpenAPI spec version: 4.2.1
|
|
43
43
|
*
|
|
44
44
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
45
45
|
*
|
|
46
|
-
* Open API Dev Platform Codegen version:
|
|
46
|
+
* Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
|
|
47
47
|
*
|
|
48
48
|
* Do not edit the class manually.
|
|
49
49
|
*
|
|
@@ -54,7 +54,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
54
54
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
55
55
|
* contents of this file should be regarded as internal but are documented for completeness.
|
|
56
56
|
* @module ApiClient
|
|
57
|
-
* @version 4.
|
|
57
|
+
* @version 4.2.1
|
|
58
58
|
*/
|
|
59
59
|
var _protocol = /*#__PURE__*/new WeakMap();
|
|
60
60
|
var _cookie = /*#__PURE__*/new WeakMap();
|
|
@@ -207,6 +207,13 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
|
|
|
207
207
|
* @default 3000
|
|
208
208
|
*/
|
|
209
209
|
this.retryInterval = 3000;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* A boolean value that indicates whether cross-site Access-Control requests should be made using auth credentials.
|
|
213
|
+
* @type {Boolean}
|
|
214
|
+
* @default false
|
|
215
|
+
*/
|
|
216
|
+
this.withCredentials = false;
|
|
210
217
|
if (typeof self === 'undefined') {
|
|
211
218
|
this.agent = new _superagent["default"].agent();
|
|
212
219
|
}
|
|
@@ -501,7 +508,7 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
|
|
|
501
508
|
if (!isBrowser) {
|
|
502
509
|
this.downloadDestination = '.';
|
|
503
510
|
request.set(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, {
|
|
504
|
-
'User-Agent': 'Nutanix-licensing-js-client/4.
|
|
511
|
+
'User-Agent': 'Nutanix-licensing-js-client/4.2.1'
|
|
505
512
|
}));
|
|
506
513
|
}
|
|
507
514
|
|
|
@@ -595,7 +602,7 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
|
|
|
595
602
|
request.accept(accept);
|
|
596
603
|
}
|
|
597
604
|
return new Promise(function (resolve, reject) {
|
|
598
|
-
request.buffer(false).redirects(0).retry(_this2.maxRetryAttempts, _this2.retryInterval, []).on('error', function (err) {
|
|
605
|
+
request.buffer(false).redirects(0).retry(_this2.maxRetryAttempts, _this2.retryInterval, []).withCredentials(_this2.withCredentials).on('error', function (err) {
|
|
599
606
|
_assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, null, "Caught the following error :", err);
|
|
600
607
|
}).end(function (error, response) {
|
|
601
608
|
if (error) {
|
|
@@ -614,9 +621,7 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
|
|
|
614
621
|
if (response.headers.hasOwnProperty('content-type')) {
|
|
615
622
|
_contentType = response.headers["content-type"];
|
|
616
623
|
}
|
|
617
|
-
var fetchStream = binaryMediaTypes.
|
|
618
|
-
return _contentType.includes(binaryMediaType);
|
|
619
|
-
});
|
|
624
|
+
var fetchStream = binaryMediaTypes.includes(_contentType);
|
|
620
625
|
if (fetchStream) {
|
|
621
626
|
/*
|
|
622
627
|
* Browser environment :
|
|
@@ -699,6 +704,7 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
|
|
|
699
704
|
redirectRequest.set("Cookie", response.headers["x-redirect-token"]);
|
|
700
705
|
}
|
|
701
706
|
redirectRequest.redirects(0);
|
|
707
|
+
redirectRequest.withCredentials(_this2.withCredentials);
|
|
702
708
|
redirectRequest.buffer(false);
|
|
703
709
|
var redirectedStream = _fs2["default"].createWriteStream(_tempFilename);
|
|
704
710
|
redirectRequest.pipe(redirectedStream);
|
|
@@ -1140,7 +1146,7 @@ function _log(level, mapper) {
|
|
|
1140
1146
|
return typeof message === "string" ? message : mapper ? mapper(message) : JSON.stringify(message);
|
|
1141
1147
|
});
|
|
1142
1148
|
var message = messages.join(' ');
|
|
1143
|
-
message =
|
|
1149
|
+
message = new Date().toISOString() + ' ' + level.key + ' - ' + message;
|
|
1144
1150
|
if (typeof _classPrivateFieldGet(_logger, this) !== "undefined" && _classPrivateFieldGet(_logger, this) !== null && typeof _classPrivateFieldGet(_logger, this).log === 'function') {
|
|
1145
1151
|
_classPrivateFieldGet(_logger, this).log(message);
|
|
1146
1152
|
} else {
|
|
@@ -1152,21 +1158,6 @@ function _skipLogging(level) {
|
|
|
1152
1158
|
// Skip logging if log level is DEBUG but debug is not enabled.
|
|
1153
1159
|
return !this.debug && level === _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG;
|
|
1154
1160
|
}
|
|
1155
|
-
function _getLocalDateTime() {
|
|
1156
|
-
// Current epoch UTC time in milliseconds
|
|
1157
|
-
var epochTime = Date.now();
|
|
1158
|
-
|
|
1159
|
-
// "getTimezoneOffset" returns the difference, in minutes, between a date as evaluated in the UTC time zone,
|
|
1160
|
-
// and the same date as evaluated in the local time zone.
|
|
1161
|
-
// if you are in timezone UTC-1, outputs 60
|
|
1162
|
-
// if you are in timezone UTC+3, outputs -180
|
|
1163
|
-
var timezoneOffsetInMinutes = new Date().getTimezoneOffset();
|
|
1164
|
-
var timezoneOffsetInMilliseconds = timezoneOffsetInMinutes * 60 * 1000;
|
|
1165
|
-
|
|
1166
|
-
// Create a new date with adjusted epoch time based on timezone offset
|
|
1167
|
-
var date = new Date(epochTime - timezoneOffsetInMilliseconds);
|
|
1168
|
-
return date.toISOString().slice(0, 23);
|
|
1169
|
-
}
|
|
1170
1161
|
// A mapper function to flatten a simple non-nested (key:value) object to string
|
|
1171
1162
|
function _flatten(obj) {
|
|
1172
1163
|
if (_typeof(obj) !== "object") {
|
package/dist/es/Paginable.d.ts
CHANGED
package/dist/es/Paginable.js
CHANGED
|
@@ -16,11 +16,11 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
16
16
|
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); } /*
|
|
17
17
|
* Nutanix Licensing APIs
|
|
18
18
|
*
|
|
19
|
-
* OpenAPI spec version: 4.
|
|
19
|
+
* OpenAPI spec version: 4.2.1
|
|
20
20
|
*
|
|
21
21
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
22
22
|
*
|
|
23
|
-
* Open API Dev Platform Codegen version:
|
|
23
|
+
* Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
|
|
24
24
|
*
|
|
25
25
|
* Do not edit the class manually.
|
|
26
26
|
*
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* A model that represents a paginable response from a list endpoint.
|
|
30
30
|
* @module Paginable
|
|
31
|
-
* @version 4.
|
|
31
|
+
* @version 4.2.1
|
|
32
32
|
*/
|
|
33
33
|
var Paginable = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -25,18 +25,18 @@ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a),
|
|
|
25
25
|
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"); } /*
|
|
26
26
|
* Nutanix Licensing APIs
|
|
27
27
|
*
|
|
28
|
-
* OpenAPI spec version: 4.
|
|
28
|
+
* OpenAPI spec version: 4.2.1
|
|
29
29
|
*
|
|
30
30
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
31
31
|
*
|
|
32
|
-
* Open API Dev Platform Codegen version:
|
|
32
|
+
* Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
|
|
33
33
|
*
|
|
34
34
|
* Do not edit the class manually.
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
37
|
/**
|
|
38
38
|
* EndUserLicenseAgreement service.
|
|
39
|
-
* @version 4.
|
|
39
|
+
* @version 4.2.1
|
|
40
40
|
* @class EndUserLicenseAgreementApi
|
|
41
41
|
*/
|
|
42
42
|
var _headersToSkip = /*#__PURE__*/new WeakMap();
|
|
@@ -96,7 +96,7 @@ var EndUserLicenseAgreementApi = exports.EndUserLicenseAgreementApi = /*#__PURE_
|
|
|
96
96
|
var contentTypes = ['application/json'];
|
|
97
97
|
var accepts = ['application/json'];
|
|
98
98
|
var returnType = _AddUserApiResponse["default"];
|
|
99
|
-
return this.apiClient.callApi('/api/licensing/v4.
|
|
99
|
+
return this.apiClient.callApi('/api/licensing/v4.2/agreements/eula/$actions/add-user', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
/**
|
|
@@ -125,7 +125,7 @@ var EndUserLicenseAgreementApi = exports.EndUserLicenseAgreementApi = /*#__PURE_
|
|
|
125
125
|
var contentTypes = [];
|
|
126
126
|
var accepts = ['application/json'];
|
|
127
127
|
var returnType = _GetEulaApiResponse["default"];
|
|
128
|
-
return this.apiClient.callApi('/api/licensing/v4.
|
|
128
|
+
return this.apiClient.callApi('/api/licensing/v4.2/agreements/eula', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
129
129
|
}
|
|
130
130
|
}], [{
|
|
131
131
|
key: "ApiClient",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* LicenseKeys service.
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.2.1
|
|
4
4
|
* @class LicenseKeysApi
|
|
5
5
|
*/
|
|
6
6
|
export class LicenseKeysApi {
|
|
@@ -34,11 +34,11 @@ export class LicenseKeysApi {
|
|
|
34
34
|
/**
|
|
35
35
|
* Assign license keys to cluster
|
|
36
36
|
* Assign the license keys to a cluster.
|
|
37
|
-
* @param { Partial<
|
|
37
|
+
* @param { Required<Pick<LicenseKeyAssignmentSpec, 'licenseKeyAssignments'>> & Partial<LicenseKeyAssignmentSpec> } body specification
|
|
38
38
|
* @param {Object} args Additional Arguments
|
|
39
39
|
* @return {Promise<AssignLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AssignLicenseKeysApiResponse } and HTTP response
|
|
40
40
|
*/
|
|
41
|
-
assignLicenseKeys(body: Partial<
|
|
41
|
+
assignLicenseKeys(body: Required<Pick<LicenseKeyAssignmentSpec, 'licenseKeyAssignments'>> & Partial<LicenseKeyAssignmentSpec>, ...args: any): Promise<AssignLicenseKeysApiResponse>;
|
|
42
42
|
/**
|
|
43
43
|
* Delete license key
|
|
44
44
|
* Deletes the license key based on the provided external identifier.
|
|
@@ -64,26 +64,10 @@ export class LicenseKeysApi {
|
|
|
64
64
|
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
65
65
|
|
|
66
66
|
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
67
|
-
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'
|
|
68
|
-
*
|
|
69
|
-
* -
|
|
70
|
-
* - isDeleted<br>
|
|
71
|
-
* - key
|
|
72
|
-
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
73
|
-
* The orderby can be applied to the following fields:<br>
|
|
74
|
-
* - key<br>
|
|
75
|
-
* - type
|
|
76
|
-
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.
|
|
77
|
-
- assignmentDetails
|
|
78
|
-
|
|
67
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
|
|
68
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
|
|
69
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby.
|
|
79
70
|
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
80
|
-
- addons
|
|
81
|
-
- category
|
|
82
|
-
- key
|
|
83
|
-
- meter
|
|
84
|
-
- quantity
|
|
85
|
-
- type
|
|
86
|
-
|
|
87
71
|
* @param {Object} args Additional Arguments
|
|
88
72
|
* @return {Promise<ListLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListLicenseKeysApiResponse } and HTTP response
|
|
89
73
|
*/
|
|
@@ -99,6 +83,7 @@ export class LicenseKeysApi {
|
|
|
99
83
|
}
|
|
100
84
|
import LicenseKey from "../models/licensing/v4/config/LicenseKey";
|
|
101
85
|
import AddLicenseKeyApiResponse from "../models/licensing/v4/config/AddLicenseKeyApiResponse";
|
|
86
|
+
import LicenseKeyAssignmentSpec from "../models/licensing/v4/config/LicenseKeyAssignmentSpec";
|
|
102
87
|
import AssignLicenseKeysApiResponse from "../models/licensing/v4/config/AssignLicenseKeysApiResponse";
|
|
103
88
|
import DeleteLicenseKeyApiResponse from "../models/licensing/v4/config/DeleteLicenseKeyApiResponse";
|
|
104
89
|
import GetLicenseKeyApiResponse from "../models/licensing/v4/config/GetLicenseKeyApiResponse";
|
|
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.LicenseKeysApi = void 0;
|
|
8
8
|
var _ApiClient = require("../ApiClient");
|
|
9
9
|
var _AssignLicenseKeysApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/AssignLicenseKeysApiResponse"));
|
|
10
|
-
var _LicenseKeyAssignSpec = _interopRequireDefault(require("../models/licensing/v4/config/LicenseKeyAssignSpec"));
|
|
11
10
|
var _DeleteLicenseKeyApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/DeleteLicenseKeyApiResponse"));
|
|
12
11
|
var _ListLicenseKeysApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListLicenseKeysApiResponse"));
|
|
13
12
|
var _LicenseKey = _interopRequireDefault(require("../models/licensing/v4/config/LicenseKey"));
|
|
14
13
|
var _AddLicenseKeyApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/AddLicenseKeyApiResponse"));
|
|
15
14
|
var _GetLicenseKeyApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/GetLicenseKeyApiResponse"));
|
|
15
|
+
var _LicenseKeyAssignmentSpec = _interopRequireDefault(require("../models/licensing/v4/config/LicenseKeyAssignmentSpec"));
|
|
16
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
17
|
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; }
|
|
18
18
|
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; }
|
|
@@ -29,18 +29,18 @@ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a),
|
|
|
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
|
*
|
|
36
|
-
* Open API Dev Platform Codegen version:
|
|
36
|
+
* Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
|
|
37
37
|
*
|
|
38
38
|
* Do not edit the class manually.
|
|
39
39
|
*
|
|
40
40
|
*/
|
|
41
41
|
/**
|
|
42
42
|
* LicenseKeys service.
|
|
43
|
-
* @version 4.
|
|
43
|
+
* @version 4.2.1
|
|
44
44
|
* @class LicenseKeysApi
|
|
45
45
|
*/
|
|
46
46
|
var _headersToSkip = /*#__PURE__*/new WeakMap();
|
|
@@ -105,13 +105,13 @@ var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
|
|
|
105
105
|
var contentTypes = ['application/json'];
|
|
106
106
|
var accepts = ['application/json'];
|
|
107
107
|
var returnType = _AddLicenseKeyApiResponse["default"];
|
|
108
|
-
return this.apiClient.callApi('/api/licensing/v4.
|
|
108
|
+
return this.apiClient.callApi('/api/licensing/v4.2/config/license-keys', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
112
|
* Assign license keys to cluster
|
|
113
113
|
* Assign the license keys to a cluster.
|
|
114
|
-
* @param { Partial<
|
|
114
|
+
* @param { Required<Pick<LicenseKeyAssignmentSpec, 'licenseKeyAssignments'>> & Partial<LicenseKeyAssignmentSpec> } body specification
|
|
115
115
|
* @param {Object} args Additional Arguments
|
|
116
116
|
* @return {Promise<AssignLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AssignLicenseKeysApiResponse } and HTTP response
|
|
117
117
|
*/
|
|
@@ -121,7 +121,7 @@ var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
|
|
|
121
121
|
var _this2 = this;
|
|
122
122
|
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
123
123
|
var postBody = null;
|
|
124
|
-
if (body instanceof
|
|
124
|
+
if (body instanceof _LicenseKeyAssignmentSpec["default"] && typeof body.toJson === 'function') {
|
|
125
125
|
postBody = body.toJson();
|
|
126
126
|
} else {
|
|
127
127
|
postBody = body;
|
|
@@ -145,7 +145,7 @@ var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
|
|
|
145
145
|
var contentTypes = ['application/json'];
|
|
146
146
|
var accepts = ['application/json'];
|
|
147
147
|
var returnType = _AssignLicenseKeysApiResponse["default"];
|
|
148
|
-
return this.apiClient.callApi('/api/licensing/v4.
|
|
148
|
+
return this.apiClient.callApi('/api/licensing/v4.2/config/$actions/assign-license-keys', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
/**
|
|
@@ -181,7 +181,7 @@ var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
|
|
|
181
181
|
var contentTypes = [];
|
|
182
182
|
var accepts = ['application/json'];
|
|
183
183
|
var returnType = _DeleteLicenseKeyApiResponse["default"];
|
|
184
|
-
return this.apiClient.callApi('/api/licensing/v4.
|
|
184
|
+
return this.apiClient.callApi('/api/licensing/v4.2/config/license-keys/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
/**
|
|
@@ -217,7 +217,7 @@ var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
|
|
|
217
217
|
var contentTypes = [];
|
|
218
218
|
var accepts = ['application/json'];
|
|
219
219
|
var returnType = _GetLicenseKeyApiResponse["default"];
|
|
220
|
-
return this.apiClient.callApi('/api/licensing/v4.
|
|
220
|
+
return this.apiClient.callApi('/api/licensing/v4.2/config/license-keys/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
/**
|
|
@@ -227,25 +227,11 @@ var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
|
|
|
227
227
|
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
228
228
|
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
229
229
|
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
230
|
-
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'
|
|
231
|
-
*
|
|
232
|
-
* -
|
|
233
|
-
* -
|
|
234
|
-
*
|
|
235
|
-
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
236
|
-
* The orderby can be applied to the following fields:<br>
|
|
237
|
-
* - key<br>
|
|
238
|
-
* - type
|
|
239
|
-
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.
|
|
240
|
-
- assignmentDetails
|
|
241
|
-
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
242
|
-
- addons
|
|
243
|
-
- category
|
|
244
|
-
- key
|
|
245
|
-
- meter
|
|
246
|
-
- quantity
|
|
247
|
-
- type
|
|
248
|
-
* @param {Object} args Additional Arguments
|
|
230
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
|
|
231
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
|
|
232
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby.
|
|
233
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
234
|
+
* @param {Object} args Additional Arguments
|
|
249
235
|
* @return {Promise<ListLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListLicenseKeysApiResponse } and HTTP response
|
|
250
236
|
*/
|
|
251
237
|
}, {
|
|
@@ -281,7 +267,7 @@ var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
|
|
|
281
267
|
var contentTypes = [];
|
|
282
268
|
var accepts = ['application/json'];
|
|
283
269
|
var returnType = _ListLicenseKeysApiResponse["default"];
|
|
284
|
-
return this.apiClient.callApi('/api/licensing/v4.
|
|
270
|
+
return this.apiClient.callApi('/api/licensing/v4.2/config/license-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
285
271
|
}
|
|
286
272
|
}], [{
|
|
287
273
|
key: "ApiClient",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Licenses service.
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.2.1
|
|
4
4
|
* @class LicensesApi
|
|
5
5
|
*/
|
|
6
6
|
export class LicensesApi {
|
|
@@ -27,25 +27,10 @@ export class LicensesApi {
|
|
|
27
27
|
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
28
28
|
|
|
29
29
|
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
30
|
-
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'
|
|
31
|
-
*
|
|
32
|
-
* -
|
|
33
|
-
* - extId<br>
|
|
34
|
-
* - isDeleted<br>
|
|
35
|
-
* - name<br>
|
|
36
|
-
* - type
|
|
37
|
-
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
38
|
-
* The orderby can be applied to the following fields:<br>
|
|
39
|
-
* - clusterExtId
|
|
40
|
-
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.
|
|
41
|
-
- details
|
|
42
|
-
|
|
30
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
|
|
31
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
|
|
32
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby.
|
|
43
33
|
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
44
|
-
- clusterExtId
|
|
45
|
-
- extId
|
|
46
|
-
- name
|
|
47
|
-
- type
|
|
48
|
-
|
|
49
34
|
* @param {Object} args Additional Arguments
|
|
50
35
|
* @return {Promise<ListAllowancesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListAllowancesApiResponse } and HTTP response
|
|
51
36
|
*/
|
|
@@ -66,22 +51,10 @@ export class LicensesApi {
|
|
|
66
51
|
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
67
52
|
|
|
68
53
|
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
69
|
-
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'
|
|
70
|
-
*
|
|
71
|
-
* -
|
|
72
|
-
* - isDeleted<br>
|
|
73
|
-
* - type
|
|
74
|
-
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
75
|
-
* The orderby can be applied to the following fields:<br>
|
|
76
|
-
* - clusterExtId<br>
|
|
77
|
-
* - type
|
|
78
|
-
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.
|
|
79
|
-
- compliance
|
|
80
|
-
|
|
54
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
|
|
55
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
|
|
56
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby.
|
|
81
57
|
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
82
|
-
- clusterExtId
|
|
83
|
-
- type
|
|
84
|
-
|
|
85
58
|
* @param {Object} args Additional Arguments
|
|
86
59
|
* @return {Promise<ListCompliancesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListCompliancesApiResponse } and HTTP response
|
|
87
60
|
*/
|
|
@@ -102,26 +75,10 @@ export class LicensesApi {
|
|
|
102
75
|
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
103
76
|
|
|
104
77
|
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
105
|
-
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'
|
|
106
|
-
*
|
|
107
|
-
* -
|
|
108
|
-
* - extId<br>
|
|
109
|
-
* - isDeleted<br>
|
|
110
|
-
* - name<br>
|
|
111
|
-
* - type
|
|
112
|
-
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
113
|
-
* The orderby can be applied to the following fields:<br>
|
|
114
|
-
* - clusterExtId<br>
|
|
115
|
-
* - name
|
|
116
|
-
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.
|
|
117
|
-
- details
|
|
118
|
-
|
|
78
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
|
|
79
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
|
|
80
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby.
|
|
119
81
|
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
120
|
-
- clusterExtId
|
|
121
|
-
- extId
|
|
122
|
-
- name
|
|
123
|
-
- type
|
|
124
|
-
|
|
125
82
|
* @param {Object} args Additional Arguments
|
|
126
83
|
* @return {Promise<ListEntitlementsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListEntitlementsApiResponse } and HTTP response
|
|
127
84
|
*/
|
|
@@ -142,28 +99,9 @@ export class LicensesApi {
|
|
|
142
99
|
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
143
100
|
|
|
144
101
|
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
145
|
-
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'
|
|
146
|
-
*
|
|
147
|
-
* - licenseCategory<br>
|
|
148
|
-
* - licenseSubCategory<br>
|
|
149
|
-
* - licenseType<br>
|
|
150
|
-
* - name<br>
|
|
151
|
-
* - scope<br>
|
|
152
|
-
* - value<br>
|
|
153
|
-
* - valueType
|
|
154
|
-
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
155
|
-
* The orderby can be applied to the following fields:<br>
|
|
156
|
-
* - licenseCategory<br>
|
|
157
|
-
* - licenseType<br>
|
|
158
|
-
* - name
|
|
102
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
|
|
103
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
|
|
159
104
|
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
160
|
-
- licenseCategory
|
|
161
|
-
- licenseSubCategory
|
|
162
|
-
- licenseType
|
|
163
|
-
- name
|
|
164
|
-
- value
|
|
165
|
-
- valueType
|
|
166
|
-
|
|
167
105
|
* @param {Object} args Additional Arguments
|
|
168
106
|
* @return {Promise<ListFeaturesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListFeaturesApiResponse } and HTTP response
|
|
169
107
|
*/
|
|
@@ -183,29 +121,10 @@ export class LicensesApi {
|
|
|
183
121
|
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
184
122
|
|
|
185
123
|
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
186
|
-
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'
|
|
187
|
-
*
|
|
188
|
-
* -
|
|
189
|
-
* - extId<br>
|
|
190
|
-
* - isDeleted<br>
|
|
191
|
-
* - meter<br>
|
|
192
|
-
* - salesforceLicenseId<br>
|
|
193
|
-
* - subCategory<br>
|
|
194
|
-
* - type
|
|
195
|
-
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
196
|
-
* The orderby can be applied to the following fields:<br>
|
|
197
|
-
* - category<br>
|
|
198
|
-
* - type
|
|
199
|
-
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.
|
|
200
|
-
- consumptionDetails
|
|
201
|
-
|
|
124
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
|
|
125
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
|
|
126
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby.
|
|
202
127
|
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
203
|
-
- category
|
|
204
|
-
- meter
|
|
205
|
-
- salesforceLicenseId
|
|
206
|
-
- subCategory
|
|
207
|
-
- type
|
|
208
|
-
|
|
209
128
|
* @param {Object} args Additional Arguments
|
|
210
129
|
* @return {Promise<ListLicensesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListLicensesApiResponse } and HTTP response
|
|
211
130
|
*/
|
|
@@ -226,11 +145,6 @@ export class LicensesApi {
|
|
|
226
145
|
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
227
146
|
|
|
228
147
|
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
229
|
-
- details
|
|
230
|
-
- extId
|
|
231
|
-
- links
|
|
232
|
-
- tenantId
|
|
233
|
-
|
|
234
148
|
* @param {Object} args Additional Arguments
|
|
235
149
|
* @return {Promise<ListRecommendationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListRecommendationsApiResponse } and HTTP response
|
|
236
150
|
*/
|