@nutanix-scratch/licensing-js-client 1.421.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +202 -0
- package/README.md +215 -0
- package/dist/Ntnx-Licensing-js-client-prod.js +1 -0
- package/dist/Ntnx-Licensing-js-client.js +1642 -0
- package/dist/es/ApiClient.d.ts +172 -0
- package/dist/es/ApiClient.js +1262 -0
- package/dist/es/Paginable.d.ts +95 -0
- package/dist/es/Paginable.js +287 -0
- package/dist/es/apis/enduserlicenseagreement-endpoints.d.ts +41 -0
- package/dist/es/apis/enduserlicenseagreement-endpoints.js +141 -0
- package/dist/es/apis/licensekeys-endpoints.d.ts +91 -0
- package/dist/es/apis/licensekeys-endpoints.js +283 -0
- package/dist/es/apis/licenses-endpoints.d.ts +206 -0
- package/dist/es/apis/licenses-endpoints.js +480 -0
- package/dist/es/index.d.ts +230 -0
- package/dist/es/index.js +916 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +64 -0
- package/dist/es/models/common/v1/config/Flag.js +319 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +71 -0
- package/dist/es/models/common/v1/config/KVPair.js +378 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/es/models/common/v1/config/Message.d.ts +87 -0
- package/dist/es/models/common/v1/config/Message.js +386 -0
- package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/es/models/common/v1/config/MessageSeverity.js +91 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +52 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.js +275 -0
- package/dist/es/models/common/v1/response/ApiLink.d.ts +64 -0
- package/dist/es/models/common/v1/response/ApiLink.js +312 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +133 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +482 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +48 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +310 -0
- package/dist/es/models/licensing/v4/agreements/Acceptance.d.ts +81 -0
- package/dist/es/models/licensing/v4/agreements/Acceptance.js +314 -0
- package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.js +365 -0
- package/dist/es/models/licensing/v4/agreements/EndUser.d.ts +110 -0
- package/dist/es/models/licensing/v4/agreements/EndUser.js +420 -0
- package/dist/es/models/licensing/v4/agreements/Eula.d.ts +115 -0
- package/dist/es/models/licensing/v4/agreements/Eula.js +441 -0
- package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.js +343 -0
- package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +103 -0
- package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.js +347 -0
- package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +137 -0
- package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +360 -0
- package/dist/es/models/licensing/v4/config/Allowance.d.ts +70 -0
- package/dist/es/models/licensing/v4/config/Allowance.js +371 -0
- package/dist/es/models/licensing/v4/config/AllowanceDetail.d.ts +86 -0
- package/dist/es/models/licensing/v4/config/AllowanceDetail.js +390 -0
- package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.js +152 -0
- package/dist/es/models/licensing/v4/config/AllowanceProjection.d.ts +56 -0
- package/dist/es/models/licensing/v4/config/AllowanceProjection.js +320 -0
- package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +102 -0
- package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +365 -0
- package/dist/es/models/licensing/v4/config/AssociationType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/AssociationType.js +85 -0
- package/dist/es/models/licensing/v4/config/BaseClusterInfo.d.ts +37 -0
- package/dist/es/models/licensing/v4/config/BaseClusterInfo.js +271 -0
- package/dist/es/models/licensing/v4/config/BaseLicenseInfo.d.ts +82 -0
- package/dist/es/models/licensing/v4/config/BaseLicenseInfo.js +423 -0
- package/dist/es/models/licensing/v4/config/BillingPlan.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/BillingPlan.js +91 -0
- package/dist/es/models/licensing/v4/config/CapacityViolation.d.ts +85 -0
- package/dist/es/models/licensing/v4/config/CapacityViolation.js +382 -0
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +30 -0
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.js +269 -0
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +151 -0
- package/dist/es/models/licensing/v4/config/ClusterType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ClusterType.js +91 -0
- package/dist/es/models/licensing/v4/config/Compliance.d.ts +78 -0
- package/dist/es/models/licensing/v4/config/Compliance.js +371 -0
- package/dist/es/models/licensing/v4/config/ComplianceProjection.d.ts +72 -0
- package/dist/es/models/licensing/v4/config/ComplianceProjection.js +320 -0
- package/dist/es/models/licensing/v4/config/Consumption.d.ts +64 -0
- package/dist/es/models/licensing/v4/config/Consumption.js +315 -0
- package/dist/es/models/licensing/v4/config/ConsumptionProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/ConsumptionProjection.js +150 -0
- package/dist/es/models/licensing/v4/config/ConsumptionType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ConsumptionType.js +85 -0
- package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +98 -0
- package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +345 -0
- package/dist/es/models/licensing/v4/config/DryRunCheck.d.ts +72 -0
- package/dist/es/models/licensing/v4/config/DryRunCheck.js +325 -0
- package/dist/es/models/licensing/v4/config/DryRunStatus.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/DryRunStatus.js +86 -0
- package/dist/es/models/licensing/v4/config/DryRunValidationResult.d.ts +68 -0
- package/dist/es/models/licensing/v4/config/DryRunValidationResult.js +297 -0
- package/dist/es/models/licensing/v4/config/EnforcementActions.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/EnforcementActions.js +139 -0
- package/dist/es/models/licensing/v4/config/EnforcementLevel.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/EnforcementLevel.js +85 -0
- package/dist/es/models/licensing/v4/config/EnforcementPolicy.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/EnforcementPolicy.js +85 -0
- package/dist/es/models/licensing/v4/config/Entitlement.d.ts +98 -0
- package/dist/es/models/licensing/v4/config/Entitlement.js +450 -0
- package/dist/es/models/licensing/v4/config/EntitlementDetail.d.ts +131 -0
- package/dist/es/models/licensing/v4/config/EntitlementDetail.js +534 -0
- package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.js +155 -0
- package/dist/es/models/licensing/v4/config/EntitlementProjection.d.ts +66 -0
- package/dist/es/models/licensing/v4/config/EntitlementProjection.js +338 -0
- package/dist/es/models/licensing/v4/config/ExpiredLicense.d.ts +65 -0
- package/dist/es/models/licensing/v4/config/ExpiredLicense.js +396 -0
- package/dist/es/models/licensing/v4/config/Feature.d.ts +104 -0
- package/dist/es/models/licensing/v4/config/Feature.js +512 -0
- package/dist/es/models/licensing/v4/config/FeatureDetail.d.ts +76 -0
- package/dist/es/models/licensing/v4/config/FeatureDetail.js +359 -0
- package/dist/es/models/licensing/v4/config/FeatureProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/FeatureProjection.js +152 -0
- package/dist/es/models/licensing/v4/config/FeatureViolation.d.ts +31 -0
- package/dist/es/models/licensing/v4/config/FeatureViolation.js +278 -0
- package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.js +343 -0
- package/dist/es/models/licensing/v4/config/License.d.ts +95 -0
- package/dist/es/models/licensing/v4/config/License.js +484 -0
- package/dist/es/models/licensing/v4/config/LicenseCategory.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/LicenseCategory.js +295 -0
- package/dist/es/models/licensing/v4/config/LicenseClass.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/LicenseClass.js +91 -0
- package/dist/es/models/licensing/v4/config/LicenseKey.d.ts +181 -0
- package/dist/es/models/licensing/v4/config/LicenseKey.js +707 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignment.d.ts +71 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignment.js +329 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignmentSpec.d.ts +75 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignmentSpec.js +296 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociation.d.ts +104 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociation.js +403 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociationProjection.d.ts +16 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociationProjection.js +164 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociationSpec.d.ts +71 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociationSpec.js +296 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyMapping.d.ts +64 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyMapping.js +315 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyProjection.d.ts +91 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyProjection.js +431 -0
- package/dist/es/models/licensing/v4/config/LicenseKeySubCategory.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/LicenseKeySubCategory.js +85 -0
- package/dist/es/models/licensing/v4/config/LicenseProjection.d.ts +58 -0
- package/dist/es/models/licensing/v4/config/LicenseProjection.js +374 -0
- package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +75 -0
- package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.js +364 -0
- package/dist/es/models/licensing/v4/config/LicenseType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/LicenseType.js +283 -0
- package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.js +365 -0
- package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.js +365 -0
- package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.js +365 -0
- package/dist/es/models/licensing/v4/config/LogicalVersion.d.ts +64 -0
- package/dist/es/models/licensing/v4/config/LogicalVersion.js +312 -0
- package/dist/es/models/licensing/v4/config/Meter.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/Meter.js +127 -0
- package/dist/es/models/licensing/v4/config/OperationType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/OperationType.js +97 -0
- package/dist/es/models/licensing/v4/config/PortalSetting.d.ts +86 -0
- package/dist/es/models/licensing/v4/config/PortalSetting.js +359 -0
- package/dist/es/models/licensing/v4/config/PostPaidCategory.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/PostPaidCategory.js +85 -0
- package/dist/es/models/licensing/v4/config/PostPaidConfig.d.ts +97 -0
- package/dist/es/models/licensing/v4/config/PostPaidConfig.js +423 -0
- package/dist/es/models/licensing/v4/config/ProductName.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ProductName.js +115 -0
- package/dist/es/models/licensing/v4/config/ReclaimType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ReclaimType.js +85 -0
- package/dist/es/models/licensing/v4/config/Recommendation.d.ts +47 -0
- package/dist/es/models/licensing/v4/config/Recommendation.js +287 -0
- package/dist/es/models/licensing/v4/config/RecommendationDetail.d.ts +98 -0
- package/dist/es/models/licensing/v4/config/RecommendationDetail.js +429 -0
- package/dist/es/models/licensing/v4/config/RecommendationScope.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/RecommendationScope.js +85 -0
- package/dist/es/models/licensing/v4/config/ResetScope.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ResetScope.js +85 -0
- package/dist/es/models/licensing/v4/config/Scope.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/Scope.js +91 -0
- package/dist/es/models/licensing/v4/config/Service.d.ts +117 -0
- package/dist/es/models/licensing/v4/config/Service.js +482 -0
- package/dist/es/models/licensing/v4/config/ServiceProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/ServiceProjection.js +155 -0
- package/dist/es/models/licensing/v4/config/ServiceViolation.d.ts +63 -0
- package/dist/es/models/licensing/v4/config/ServiceViolation.js +311 -0
- package/dist/es/models/licensing/v4/config/ServiceViolationType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ServiceViolationType.js +91 -0
- package/dist/es/models/licensing/v4/config/Setting.d.ts +145 -0
- package/dist/es/models/licensing/v4/config/Setting.js +581 -0
- package/dist/es/models/licensing/v4/config/Status.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/Status.js +85 -0
- package/dist/es/models/licensing/v4/config/SubCategory.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/SubCategory.js +85 -0
- package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.js +343 -0
- package/dist/es/models/licensing/v4/config/SyncOperationType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/SyncOperationType.js +121 -0
- package/dist/es/models/licensing/v4/config/Trial.d.ts +93 -0
- package/dist/es/models/licensing/v4/config/Trial.js +421 -0
- package/dist/es/models/licensing/v4/config/TrialCategory.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/TrialCategory.js +79 -0
- package/dist/es/models/licensing/v4/config/TrialProjection.d.ts +12 -0
- package/dist/es/models/licensing/v4/config/TrialProjection.js +159 -0
- package/dist/es/models/licensing/v4/config/TrialStatus.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/TrialStatus.js +85 -0
- package/dist/es/models/licensing/v4/config/TrialType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/TrialType.js +79 -0
- package/dist/es/models/licensing/v4/config/ValueType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ValueType.js +85 -0
- package/dist/es/models/licensing/v4/config/Violation.d.ts +102 -0
- package/dist/es/models/licensing/v4/config/Violation.js +398 -0
- package/dist/es/models/licensing/v4/error/AppMessage.d.ts +117 -0
- package/dist/es/models/licensing/v4/error/AppMessage.js +464 -0
- package/dist/es/models/licensing/v4/error/ErrorResponse.d.ts +52 -0
- package/dist/es/models/licensing/v4/error/ErrorResponse.js +331 -0
- package/dist/es/models/licensing/v4/error/SchemaValidationError.d.ts +108 -0
- package/dist/es/models/licensing/v4/error/SchemaValidationError.js +440 -0
- package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +76 -0
- package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.js +350 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +52 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +279 -0
- package/dist/es/models/validation/ValidationError.d.ts +13 -0
- package/dist/es/models/validation/ValidationError.js +60 -0
- package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/es/models/validation/ValidationScopes.js +38 -0
- package/dist/es/utils/ValidationUtils.d.ts +13 -0
- package/dist/es/utils/ValidationUtils.js +85 -0
- package/dist/lib/ApiClient.d.ts +172 -0
- package/dist/lib/ApiClient.js +1262 -0
- package/dist/lib/Paginable.d.ts +95 -0
- package/dist/lib/Paginable.js +287 -0
- package/dist/lib/apis/enduserlicenseagreement-endpoints.d.ts +41 -0
- package/dist/lib/apis/enduserlicenseagreement-endpoints.js +141 -0
- package/dist/lib/apis/licensekeys-endpoints.d.ts +91 -0
- package/dist/lib/apis/licensekeys-endpoints.js +283 -0
- package/dist/lib/apis/licenses-endpoints.d.ts +206 -0
- package/dist/lib/apis/licenses-endpoints.js +480 -0
- package/dist/lib/index.d.ts +230 -0
- package/dist/lib/index.js +916 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +64 -0
- package/dist/lib/models/common/v1/config/Flag.js +319 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +71 -0
- package/dist/lib/models/common/v1/config/KVPair.js +378 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +87 -0
- package/dist/lib/models/common/v1/config/Message.js +386 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.js +91 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +52 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +275 -0
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +64 -0
- package/dist/lib/models/common/v1/response/ApiLink.js +312 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +133 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +482 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +48 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +310 -0
- package/dist/lib/models/licensing/v4/agreements/Acceptance.d.ts +81 -0
- package/dist/lib/models/licensing/v4/agreements/Acceptance.js +314 -0
- package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.js +365 -0
- package/dist/lib/models/licensing/v4/agreements/EndUser.d.ts +110 -0
- package/dist/lib/models/licensing/v4/agreements/EndUser.js +420 -0
- package/dist/lib/models/licensing/v4/agreements/Eula.d.ts +115 -0
- package/dist/lib/models/licensing/v4/agreements/Eula.js +441 -0
- package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.js +343 -0
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +103 -0
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.js +347 -0
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +137 -0
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +360 -0
- package/dist/lib/models/licensing/v4/config/Allowance.d.ts +70 -0
- package/dist/lib/models/licensing/v4/config/Allowance.js +371 -0
- package/dist/lib/models/licensing/v4/config/AllowanceDetail.d.ts +86 -0
- package/dist/lib/models/licensing/v4/config/AllowanceDetail.js +390 -0
- package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.js +152 -0
- package/dist/lib/models/licensing/v4/config/AllowanceProjection.d.ts +56 -0
- package/dist/lib/models/licensing/v4/config/AllowanceProjection.js +320 -0
- package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +102 -0
- package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +365 -0
- package/dist/lib/models/licensing/v4/config/AssociationType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/AssociationType.js +85 -0
- package/dist/lib/models/licensing/v4/config/BaseClusterInfo.d.ts +37 -0
- package/dist/lib/models/licensing/v4/config/BaseClusterInfo.js +271 -0
- package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.d.ts +82 -0
- package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.js +423 -0
- package/dist/lib/models/licensing/v4/config/BillingPlan.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/BillingPlan.js +91 -0
- package/dist/lib/models/licensing/v4/config/CapacityViolation.d.ts +85 -0
- package/dist/lib/models/licensing/v4/config/CapacityViolation.js +382 -0
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +30 -0
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.js +269 -0
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +151 -0
- package/dist/lib/models/licensing/v4/config/ClusterType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ClusterType.js +91 -0
- package/dist/lib/models/licensing/v4/config/Compliance.d.ts +78 -0
- package/dist/lib/models/licensing/v4/config/Compliance.js +371 -0
- package/dist/lib/models/licensing/v4/config/ComplianceProjection.d.ts +72 -0
- package/dist/lib/models/licensing/v4/config/ComplianceProjection.js +320 -0
- package/dist/lib/models/licensing/v4/config/Consumption.d.ts +64 -0
- package/dist/lib/models/licensing/v4/config/Consumption.js +315 -0
- package/dist/lib/models/licensing/v4/config/ConsumptionProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/ConsumptionProjection.js +150 -0
- package/dist/lib/models/licensing/v4/config/ConsumptionType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ConsumptionType.js +85 -0
- package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +98 -0
- package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +345 -0
- package/dist/lib/models/licensing/v4/config/DryRunCheck.d.ts +72 -0
- package/dist/lib/models/licensing/v4/config/DryRunCheck.js +325 -0
- package/dist/lib/models/licensing/v4/config/DryRunStatus.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/DryRunStatus.js +86 -0
- package/dist/lib/models/licensing/v4/config/DryRunValidationResult.d.ts +68 -0
- package/dist/lib/models/licensing/v4/config/DryRunValidationResult.js +297 -0
- package/dist/lib/models/licensing/v4/config/EnforcementActions.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/EnforcementActions.js +139 -0
- package/dist/lib/models/licensing/v4/config/EnforcementLevel.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/EnforcementLevel.js +85 -0
- package/dist/lib/models/licensing/v4/config/EnforcementPolicy.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/EnforcementPolicy.js +85 -0
- package/dist/lib/models/licensing/v4/config/Entitlement.d.ts +98 -0
- package/dist/lib/models/licensing/v4/config/Entitlement.js +450 -0
- package/dist/lib/models/licensing/v4/config/EntitlementDetail.d.ts +131 -0
- package/dist/lib/models/licensing/v4/config/EntitlementDetail.js +534 -0
- package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.js +155 -0
- package/dist/lib/models/licensing/v4/config/EntitlementProjection.d.ts +66 -0
- package/dist/lib/models/licensing/v4/config/EntitlementProjection.js +338 -0
- package/dist/lib/models/licensing/v4/config/ExpiredLicense.d.ts +65 -0
- package/dist/lib/models/licensing/v4/config/ExpiredLicense.js +396 -0
- package/dist/lib/models/licensing/v4/config/Feature.d.ts +104 -0
- package/dist/lib/models/licensing/v4/config/Feature.js +512 -0
- package/dist/lib/models/licensing/v4/config/FeatureDetail.d.ts +76 -0
- package/dist/lib/models/licensing/v4/config/FeatureDetail.js +359 -0
- package/dist/lib/models/licensing/v4/config/FeatureProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/FeatureProjection.js +152 -0
- package/dist/lib/models/licensing/v4/config/FeatureViolation.d.ts +31 -0
- package/dist/lib/models/licensing/v4/config/FeatureViolation.js +278 -0
- package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.js +343 -0
- package/dist/lib/models/licensing/v4/config/License.d.ts +95 -0
- package/dist/lib/models/licensing/v4/config/License.js +484 -0
- package/dist/lib/models/licensing/v4/config/LicenseCategory.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/LicenseCategory.js +295 -0
- package/dist/lib/models/licensing/v4/config/LicenseClass.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/LicenseClass.js +91 -0
- package/dist/lib/models/licensing/v4/config/LicenseKey.d.ts +181 -0
- package/dist/lib/models/licensing/v4/config/LicenseKey.js +707 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignment.d.ts +71 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignment.js +329 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignmentSpec.d.ts +75 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignmentSpec.js +296 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociation.d.ts +104 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociation.js +403 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationProjection.d.ts +16 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationProjection.js +164 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationSpec.d.ts +71 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationSpec.js +296 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.d.ts +64 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.js +315 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.d.ts +91 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.js +431 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeySubCategory.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeySubCategory.js +85 -0
- package/dist/lib/models/licensing/v4/config/LicenseProjection.d.ts +58 -0
- package/dist/lib/models/licensing/v4/config/LicenseProjection.js +374 -0
- package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +75 -0
- package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.js +364 -0
- package/dist/lib/models/licensing/v4/config/LicenseType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/LicenseType.js +283 -0
- package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.js +365 -0
- package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.js +365 -0
- package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.js +365 -0
- package/dist/lib/models/licensing/v4/config/LogicalVersion.d.ts +64 -0
- package/dist/lib/models/licensing/v4/config/LogicalVersion.js +312 -0
- package/dist/lib/models/licensing/v4/config/Meter.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/Meter.js +127 -0
- package/dist/lib/models/licensing/v4/config/OperationType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/OperationType.js +97 -0
- package/dist/lib/models/licensing/v4/config/PortalSetting.d.ts +86 -0
- package/dist/lib/models/licensing/v4/config/PortalSetting.js +359 -0
- package/dist/lib/models/licensing/v4/config/PostPaidCategory.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/PostPaidCategory.js +85 -0
- package/dist/lib/models/licensing/v4/config/PostPaidConfig.d.ts +97 -0
- package/dist/lib/models/licensing/v4/config/PostPaidConfig.js +423 -0
- package/dist/lib/models/licensing/v4/config/ProductName.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ProductName.js +115 -0
- package/dist/lib/models/licensing/v4/config/ReclaimType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ReclaimType.js +85 -0
- package/dist/lib/models/licensing/v4/config/Recommendation.d.ts +47 -0
- package/dist/lib/models/licensing/v4/config/Recommendation.js +287 -0
- package/dist/lib/models/licensing/v4/config/RecommendationDetail.d.ts +98 -0
- package/dist/lib/models/licensing/v4/config/RecommendationDetail.js +429 -0
- package/dist/lib/models/licensing/v4/config/RecommendationScope.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/RecommendationScope.js +85 -0
- package/dist/lib/models/licensing/v4/config/ResetScope.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ResetScope.js +85 -0
- package/dist/lib/models/licensing/v4/config/Scope.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/Scope.js +91 -0
- package/dist/lib/models/licensing/v4/config/Service.d.ts +117 -0
- package/dist/lib/models/licensing/v4/config/Service.js +482 -0
- package/dist/lib/models/licensing/v4/config/ServiceProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/ServiceProjection.js +155 -0
- package/dist/lib/models/licensing/v4/config/ServiceViolation.d.ts +63 -0
- package/dist/lib/models/licensing/v4/config/ServiceViolation.js +311 -0
- package/dist/lib/models/licensing/v4/config/ServiceViolationType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ServiceViolationType.js +91 -0
- package/dist/lib/models/licensing/v4/config/Setting.d.ts +145 -0
- package/dist/lib/models/licensing/v4/config/Setting.js +581 -0
- package/dist/lib/models/licensing/v4/config/Status.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/Status.js +85 -0
- package/dist/lib/models/licensing/v4/config/SubCategory.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/SubCategory.js +85 -0
- package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.js +343 -0
- package/dist/lib/models/licensing/v4/config/SyncOperationType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/SyncOperationType.js +121 -0
- package/dist/lib/models/licensing/v4/config/Trial.d.ts +93 -0
- package/dist/lib/models/licensing/v4/config/Trial.js +421 -0
- package/dist/lib/models/licensing/v4/config/TrialCategory.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/TrialCategory.js +79 -0
- package/dist/lib/models/licensing/v4/config/TrialProjection.d.ts +12 -0
- package/dist/lib/models/licensing/v4/config/TrialProjection.js +159 -0
- package/dist/lib/models/licensing/v4/config/TrialStatus.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/TrialStatus.js +85 -0
- package/dist/lib/models/licensing/v4/config/TrialType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/TrialType.js +79 -0
- package/dist/lib/models/licensing/v4/config/ValueType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ValueType.js +85 -0
- package/dist/lib/models/licensing/v4/config/Violation.d.ts +102 -0
- package/dist/lib/models/licensing/v4/config/Violation.js +398 -0
- package/dist/lib/models/licensing/v4/error/AppMessage.d.ts +117 -0
- package/dist/lib/models/licensing/v4/error/AppMessage.js +464 -0
- package/dist/lib/models/licensing/v4/error/ErrorResponse.d.ts +52 -0
- package/dist/lib/models/licensing/v4/error/ErrorResponse.js +331 -0
- package/dist/lib/models/licensing/v4/error/SchemaValidationError.d.ts +108 -0
- package/dist/lib/models/licensing/v4/error/SchemaValidationError.js +440 -0
- package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +76 -0
- package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.js +350 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +52 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +279 -0
- package/dist/lib/models/validation/ValidationError.d.ts +13 -0
- package/dist/lib/models/validation/ValidationError.js +60 -0
- package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/lib/models/validation/ValidationScopes.js +38 -0
- package/dist/lib/utils/ValidationUtils.d.ts +13 -0
- package/dist/lib/utils/ValidationUtils.js +85 -0
- package/package.json +53 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A model that represents a paginable response from a list endpoint.
|
|
3
|
+
* @module Paginable
|
|
4
|
+
* @version 1.421.1
|
|
5
|
+
*/
|
|
6
|
+
export default class Paginable {
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a <code>Paginable</code> from a plain Javascript object, optionally creating a new instance.
|
|
9
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
10
|
+
* @param {Object} metadata The plain Javascript object bearing properties of interest.
|
|
11
|
+
* @param {module:Paginable} obj Optional instance to populate.
|
|
12
|
+
* @return {module:Paginable} The populated <code>Paginable</code> instance.
|
|
13
|
+
*/
|
|
14
|
+
static constructFromObject(metadata: any, obj: any): any;
|
|
15
|
+
/**
|
|
16
|
+
* Get the first page of the set, if any
|
|
17
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable
|
|
18
|
+
* or rejects with error message if any issue (link not available, ...)
|
|
19
|
+
*/
|
|
20
|
+
getFirstPage(): Promise<any>;
|
|
21
|
+
/**
|
|
22
|
+
* Get the previous page of the set, if any
|
|
23
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable
|
|
24
|
+
* or rejects with error message if any issue (link not available, ...)
|
|
25
|
+
*/
|
|
26
|
+
getPrevPage(): Promise<any>;
|
|
27
|
+
/**
|
|
28
|
+
* Get the next page of the set, if any
|
|
29
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable
|
|
30
|
+
* or rejects with error message if any issue (link not available, ...)
|
|
31
|
+
*/
|
|
32
|
+
getNextPage(): Promise<any>;
|
|
33
|
+
/**
|
|
34
|
+
* Get the last page of the set, if any
|
|
35
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable
|
|
36
|
+
* or rejects with error message if any issue (link not available, ...)
|
|
37
|
+
*/
|
|
38
|
+
getLastPage(): Promise<any>;
|
|
39
|
+
/**
|
|
40
|
+
* Get the current page number
|
|
41
|
+
* @return {Number} the current page number, starts at 0
|
|
42
|
+
*/
|
|
43
|
+
currentPage(): number;
|
|
44
|
+
/**
|
|
45
|
+
* Get the total number of pages
|
|
46
|
+
* @return {Number} the total number of pages available
|
|
47
|
+
*/
|
|
48
|
+
countPages(): number;
|
|
49
|
+
/**
|
|
50
|
+
* Check if current page is first page
|
|
51
|
+
* @return {Boolean} True if current page is 0, false otherwise
|
|
52
|
+
*/
|
|
53
|
+
isFirstPage(): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Check if current page is last page
|
|
56
|
+
* @return {Boolean} True if current page is countPages()-1, false otherwise
|
|
57
|
+
*/
|
|
58
|
+
isLastPage(): boolean;
|
|
59
|
+
populatePaginationMetadata(apiClient: any, page: any, resultsPerPage: any): void;
|
|
60
|
+
apiClient: ApiClient;
|
|
61
|
+
page: number;
|
|
62
|
+
resultsPerPage: number;
|
|
63
|
+
_getLink(path: any): Promise<any>;
|
|
64
|
+
/**
|
|
65
|
+
* The link to first page, if any
|
|
66
|
+
* @type {String}
|
|
67
|
+
* @memberOf Paginable
|
|
68
|
+
*/
|
|
69
|
+
linkFirst: string;
|
|
70
|
+
/**
|
|
71
|
+
* The link to previous page, if any
|
|
72
|
+
* @type {String}
|
|
73
|
+
* @memberOf Paginable
|
|
74
|
+
*/
|
|
75
|
+
linkPrev: string;
|
|
76
|
+
/**
|
|
77
|
+
* The link to next page, if any
|
|
78
|
+
* @type {String}
|
|
79
|
+
* @memberOf Paginable
|
|
80
|
+
*/
|
|
81
|
+
linkNext: string;
|
|
82
|
+
/**
|
|
83
|
+
* The link to last page, if any
|
|
84
|
+
* @type {String}
|
|
85
|
+
* @memberOf Paginable
|
|
86
|
+
*/
|
|
87
|
+
linkLast: string;
|
|
88
|
+
/**
|
|
89
|
+
* Number of total results available
|
|
90
|
+
* @type {Number}
|
|
91
|
+
* @memberOf Paginable
|
|
92
|
+
*/
|
|
93
|
+
resultsTotal: number;
|
|
94
|
+
}
|
|
95
|
+
import { ApiClient } from "./ApiClient";
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = require("./ApiClient");
|
|
8
|
+
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); }
|
|
9
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
10
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
11
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
12
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
+
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); } }
|
|
14
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
|
+
* Nutanix Licensing APIs
|
|
18
|
+
*
|
|
19
|
+
* OpenAPI spec version: 1.421.1
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
22
|
+
*
|
|
23
|
+
* Open API Dev Platform Codegen version: 17.3.1.9079-RELEASE
|
|
24
|
+
*
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* A model that represents a paginable response from a list endpoint.
|
|
30
|
+
* @module Paginable
|
|
31
|
+
* @version 1.421.1
|
|
32
|
+
*/
|
|
33
|
+
var Paginable = exports["default"] = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>Paginable</code>.
|
|
36
|
+
* @alias module:Paginable
|
|
37
|
+
* @class
|
|
38
|
+
*/
|
|
39
|
+
function Paginable() {
|
|
40
|
+
_classCallCheck(this, Paginable);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Constructs a <code>Paginable</code> from a plain Javascript object, optionally creating a new instance.
|
|
45
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
46
|
+
* @param {Object} metadata The plain Javascript object bearing properties of interest.
|
|
47
|
+
* @param {module:Paginable} obj Optional instance to populate.
|
|
48
|
+
* @return {module:Paginable} The populated <code>Paginable</code> instance.
|
|
49
|
+
*/
|
|
50
|
+
return _createClass(Paginable, [{
|
|
51
|
+
key: "getFirstPage",
|
|
52
|
+
value:
|
|
53
|
+
/**
|
|
54
|
+
* Get the first page of the set, if any
|
|
55
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable
|
|
56
|
+
* or rejects with error message if any issue (link not available, ...)
|
|
57
|
+
*/
|
|
58
|
+
function getFirstPage() {
|
|
59
|
+
if (this.isFirstPage()) {
|
|
60
|
+
return Promise.reject('Cannot navigate to first page : already on first page');
|
|
61
|
+
}
|
|
62
|
+
if (this.linkFirst === null) {
|
|
63
|
+
return Promise.reject('No link to first page provided in previous API response');
|
|
64
|
+
}
|
|
65
|
+
return this._getLink(this.linkFirst);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Get the previous page of the set, if any
|
|
70
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable
|
|
71
|
+
* or rejects with error message if any issue (link not available, ...)
|
|
72
|
+
*/
|
|
73
|
+
}, {
|
|
74
|
+
key: "getPrevPage",
|
|
75
|
+
value: function getPrevPage() {
|
|
76
|
+
if (this.isFirstPage()) {
|
|
77
|
+
return Promise.reject('Cannot navigate to previous page : already on first page');
|
|
78
|
+
}
|
|
79
|
+
if (this.linkPrev === null) {
|
|
80
|
+
return Promise.reject('No link to previous page provided in previous API response');
|
|
81
|
+
}
|
|
82
|
+
return this._getLink(this.linkPrev);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Get the next page of the set, if any
|
|
87
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable
|
|
88
|
+
* or rejects with error message if any issue (link not available, ...)
|
|
89
|
+
*/
|
|
90
|
+
}, {
|
|
91
|
+
key: "getNextPage",
|
|
92
|
+
value: function getNextPage() {
|
|
93
|
+
if (this.isLastPage()) {
|
|
94
|
+
return Promise.reject('Cannot navigate to next page : already on last page');
|
|
95
|
+
}
|
|
96
|
+
if (this.linkNext === null) {
|
|
97
|
+
return Promise.reject('No link to next page provided in previous API response');
|
|
98
|
+
}
|
|
99
|
+
return this._getLink(this.linkNext);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Get the last page of the set, if any
|
|
104
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable
|
|
105
|
+
* or rejects with error message if any issue (link not available, ...)
|
|
106
|
+
*/
|
|
107
|
+
}, {
|
|
108
|
+
key: "getLastPage",
|
|
109
|
+
value: function getLastPage() {
|
|
110
|
+
if (this.isLastPage()) {
|
|
111
|
+
return Promise.reject('Cannot navigate to last page : already on last page');
|
|
112
|
+
}
|
|
113
|
+
if (this.linkLast === null) {
|
|
114
|
+
return Promise.reject('No link to last page provided in previous API response');
|
|
115
|
+
}
|
|
116
|
+
return this._getLink(this.linkLast);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Get the current page number
|
|
121
|
+
* @return {Number} the current page number, starts at 0
|
|
122
|
+
*/
|
|
123
|
+
}, {
|
|
124
|
+
key: "currentPage",
|
|
125
|
+
value: function currentPage() {
|
|
126
|
+
if (this.page === null) {
|
|
127
|
+
return 0;
|
|
128
|
+
}
|
|
129
|
+
return this.page;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Get the total number of pages
|
|
134
|
+
* @return {Number} the total number of pages available
|
|
135
|
+
*/
|
|
136
|
+
}, {
|
|
137
|
+
key: "countPages",
|
|
138
|
+
value: function countPages() {
|
|
139
|
+
if (this.resultsPerPage === null || this.resultsTotal === null || this.resultsPerPage === 0) {
|
|
140
|
+
return 1;
|
|
141
|
+
}
|
|
142
|
+
return Math.ceil(this.resultsTotal / this.resultsPerPage);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Check if current page is first page
|
|
147
|
+
* @return {Boolean} True if current page is 0, false otherwise
|
|
148
|
+
*/
|
|
149
|
+
}, {
|
|
150
|
+
key: "isFirstPage",
|
|
151
|
+
value: function isFirstPage() {
|
|
152
|
+
return this.currentPage() === 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Check if current page is last page
|
|
157
|
+
* @return {Boolean} True if current page is countPages()-1, false otherwise
|
|
158
|
+
*/
|
|
159
|
+
}, {
|
|
160
|
+
key: "isLastPage",
|
|
161
|
+
value: function isLastPage() {
|
|
162
|
+
return this.currentPage() === this.countPages() - 1;
|
|
163
|
+
}
|
|
164
|
+
}, {
|
|
165
|
+
key: "populatePaginationMetadata",
|
|
166
|
+
value: function populatePaginationMetadata(apiClient, page, resultsPerPage) {
|
|
167
|
+
this.apiClient = apiClient;
|
|
168
|
+
this.page = page;
|
|
169
|
+
this.resultsPerPage = resultsPerPage;
|
|
170
|
+
}
|
|
171
|
+
}, {
|
|
172
|
+
key: "_getLink",
|
|
173
|
+
value: function _getLink(path) {
|
|
174
|
+
// If no ApiClient defined, instantiate default one
|
|
175
|
+
if (this.apiClient === null) {
|
|
176
|
+
this.apiClient = _ApiClient.ApiClient.instance;
|
|
177
|
+
}
|
|
178
|
+
var postBody = {};
|
|
179
|
+
var pathParams = {};
|
|
180
|
+
var queryParams = {};
|
|
181
|
+
var headerParams = {};
|
|
182
|
+
var formParams = {};
|
|
183
|
+
var authNames = [];
|
|
184
|
+
var contentTypes = [];
|
|
185
|
+
var accepts = ['application/json'];
|
|
186
|
+
var returnType = this.constructor;
|
|
187
|
+
return this.apiClient.callApi(path, 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
188
|
+
}
|
|
189
|
+
}], [{
|
|
190
|
+
key: "constructFromObject",
|
|
191
|
+
value: function constructFromObject(metadata, obj) {
|
|
192
|
+
if (metadata) {
|
|
193
|
+
obj = obj || new Paginable();
|
|
194
|
+
if (metadata.hasOwnProperty('links') && metadata['links'] !== null && metadata['links'] !== undefined) {
|
|
195
|
+
var _iterator = _createForOfIteratorHelper(metadata['links']),
|
|
196
|
+
_step;
|
|
197
|
+
try {
|
|
198
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
199
|
+
var link = _step.value;
|
|
200
|
+
if (link.hasOwnProperty('rel') && link.hasOwnProperty('href')) {
|
|
201
|
+
switch (link['rel']) {
|
|
202
|
+
case 'first':
|
|
203
|
+
obj.linkFirst = link['href'];
|
|
204
|
+
break;
|
|
205
|
+
case 'prev':
|
|
206
|
+
obj.linkPrev = link['href'];
|
|
207
|
+
break;
|
|
208
|
+
case 'next':
|
|
209
|
+
obj.linkNext = link['href'];
|
|
210
|
+
break;
|
|
211
|
+
case 'last':
|
|
212
|
+
obj.linkLast = link['href'];
|
|
213
|
+
break;
|
|
214
|
+
default:
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
} catch (err) {
|
|
220
|
+
_iterator.e(err);
|
|
221
|
+
} finally {
|
|
222
|
+
_iterator.f();
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
if (metadata.hasOwnProperty('totalAvailableResults')) {
|
|
226
|
+
obj.resultsTotal = metadata['totalAvailableResults'];
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
return obj;
|
|
230
|
+
}
|
|
231
|
+
}]);
|
|
232
|
+
}();
|
|
233
|
+
/**
|
|
234
|
+
* The link to first page, if any
|
|
235
|
+
* @type {String}
|
|
236
|
+
* @memberOf Paginable
|
|
237
|
+
*/
|
|
238
|
+
Paginable.prototype.linkFirst = null;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* The link to previous page, if any
|
|
242
|
+
* @type {String}
|
|
243
|
+
* @memberOf Paginable
|
|
244
|
+
*/
|
|
245
|
+
Paginable.prototype.linkPrev = null;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* The link to next page, if any
|
|
249
|
+
* @type {String}
|
|
250
|
+
* @memberOf Paginable
|
|
251
|
+
*/
|
|
252
|
+
Paginable.prototype.linkNext = null;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* The link to last page, if any
|
|
256
|
+
* @type {String}
|
|
257
|
+
* @memberOf Paginable
|
|
258
|
+
*/
|
|
259
|
+
Paginable.prototype.linkLast = null;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* The ApiClient instance to use for further query
|
|
263
|
+
* @type {ApiClient}
|
|
264
|
+
* @memberOf Paginable
|
|
265
|
+
*/
|
|
266
|
+
Paginable.prototype.apiClient = null;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Current page number
|
|
270
|
+
* @type {Number}
|
|
271
|
+
* @memberOf Paginable
|
|
272
|
+
*/
|
|
273
|
+
Paginable.prototype.page = null;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Number of results per page
|
|
277
|
+
* @type {Number}
|
|
278
|
+
* @memberOf Paginable
|
|
279
|
+
*/
|
|
280
|
+
Paginable.prototype.resultsPerPage = null;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Number of total results available
|
|
284
|
+
* @type {Number}
|
|
285
|
+
* @memberOf Paginable
|
|
286
|
+
*/
|
|
287
|
+
Paginable.prototype.resultsTotal = null;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EndUserLicenseAgreement service.
|
|
3
|
+
* @version 1.421.1
|
|
4
|
+
* @class EndUserLicenseAgreementApi
|
|
5
|
+
*/
|
|
6
|
+
export class EndUserLicenseAgreementApi {
|
|
7
|
+
/**
|
|
8
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
9
|
+
* their own fetch methods into the SDK
|
|
10
|
+
*/
|
|
11
|
+
static get ApiClient(): typeof ApiClient;
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new EndUserLicenseAgreementApi.
|
|
14
|
+
* @alias module:api/EndUserLicenseAgreementApi
|
|
15
|
+
* @class
|
|
16
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
17
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
18
|
+
*/
|
|
19
|
+
constructor(apiClient?: any);
|
|
20
|
+
apiClient: any;
|
|
21
|
+
/**
|
|
22
|
+
* Accept End User License Agreement
|
|
23
|
+
* API for allowing users to accept End User License Agreement.
|
|
24
|
+
* @param { Required<Pick<EndUser, 'userName' | 'loginId' | 'jobTitle' | 'companyName'>> & Partial<EndUser> } body specification
|
|
25
|
+
* @param {Object} args Additional Arguments
|
|
26
|
+
* @return {Promise<AddUserApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AddUserApiResponse } and HTTP response
|
|
27
|
+
*/
|
|
28
|
+
addUser(body: Required<Pick<EndUser, 'userName' | 'loginId' | 'jobTitle' | 'companyName'>> & Partial<EndUser>, ...args: any): Promise<AddUserApiResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Get End User License Agreement
|
|
31
|
+
* API to fetch active End User License Agreement.
|
|
32
|
+
* @param {Object} args Additional Arguments
|
|
33
|
+
* @return {Promise<GetEulaApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetEulaApiResponse } and HTTP response
|
|
34
|
+
*/
|
|
35
|
+
getEula(...args: any): Promise<GetEulaApiResponse>;
|
|
36
|
+
#private;
|
|
37
|
+
}
|
|
38
|
+
import EndUser from "../models/licensing/v4/agreements/EndUser";
|
|
39
|
+
import AddUserApiResponse from "../models/licensing/v4/agreements/AddUserApiResponse";
|
|
40
|
+
import GetEulaApiResponse from "../models/licensing/v4/agreements/GetEulaApiResponse";
|
|
41
|
+
import { ApiClient } from "../ApiClient";
|
|
@@ -0,0 +1,141 @@
|
|
|
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.EndUserLicenseAgreementApi = void 0;
|
|
8
|
+
var _ApiClient = require("../ApiClient");
|
|
9
|
+
var _EndUser = _interopRequireDefault(require("../models/licensing/v4/agreements/EndUser"));
|
|
10
|
+
var _GetEulaApiResponse = _interopRequireDefault(require("../models/licensing/v4/agreements/GetEulaApiResponse"));
|
|
11
|
+
var _AddUserApiResponse = _interopRequireDefault(require("../models/licensing/v4/agreements/AddUserApiResponse"));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
+
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; }
|
|
14
|
+
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; }
|
|
15
|
+
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; }
|
|
16
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
17
|
+
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); } }
|
|
18
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
20
|
+
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); }
|
|
21
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
22
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
23
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
24
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
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
|
+
* Nutanix Licensing APIs
|
|
27
|
+
*
|
|
28
|
+
* OpenAPI spec version: 1.421.1
|
|
29
|
+
*
|
|
30
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
31
|
+
*
|
|
32
|
+
* Open API Dev Platform Codegen version: 17.3.1.9079-RELEASE
|
|
33
|
+
*
|
|
34
|
+
* Do not edit the class manually.
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* EndUserLicenseAgreement service.
|
|
39
|
+
* @version 1.421.1
|
|
40
|
+
* @class EndUserLicenseAgreementApi
|
|
41
|
+
*/
|
|
42
|
+
var _headersToSkip = /*#__PURE__*/new WeakMap();
|
|
43
|
+
var EndUserLicenseAgreementApi = exports.EndUserLicenseAgreementApi = /*#__PURE__*/function () {
|
|
44
|
+
/**
|
|
45
|
+
* Constructs a new EndUserLicenseAgreementApi.
|
|
46
|
+
* @alias module:api/EndUserLicenseAgreementApi
|
|
47
|
+
* @class
|
|
48
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
49
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
50
|
+
*/
|
|
51
|
+
function EndUserLicenseAgreementApi(apiClient) {
|
|
52
|
+
_classCallCheck(this, EndUserLicenseAgreementApi);
|
|
53
|
+
_classPrivateFieldInitSpec(this, _headersToSkip, void 0);
|
|
54
|
+
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
55
|
+
_classPrivateFieldSet(_headersToSkip, this, new Set());
|
|
56
|
+
_classPrivateFieldGet(_headersToSkip, this).add('authorization');
|
|
57
|
+
_classPrivateFieldGet(_headersToSkip, this).add('cookie');
|
|
58
|
+
_classPrivateFieldGet(_headersToSkip, this).add('host');
|
|
59
|
+
_classPrivateFieldGet(_headersToSkip, this).add('user-agent');
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Accept End User License Agreement
|
|
64
|
+
* API for allowing users to accept End User License Agreement.
|
|
65
|
+
* @param { Required<Pick<EndUser, 'userName' | 'loginId' | 'jobTitle' | 'companyName'>> & Partial<EndUser> } body specification
|
|
66
|
+
* @param {Object} args Additional Arguments
|
|
67
|
+
* @return {Promise<AddUserApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AddUserApiResponse } and HTTP response
|
|
68
|
+
*/
|
|
69
|
+
return _createClass(EndUserLicenseAgreementApi, [{
|
|
70
|
+
key: "addUser",
|
|
71
|
+
value: function addUser(body) {
|
|
72
|
+
var _this = this;
|
|
73
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
74
|
+
var postBody = null;
|
|
75
|
+
if (body instanceof _EndUser["default"] && typeof body.toJson === 'function') {
|
|
76
|
+
postBody = body.toJson();
|
|
77
|
+
} else {
|
|
78
|
+
postBody = body;
|
|
79
|
+
}
|
|
80
|
+
// verify the required parameter 'body' is set
|
|
81
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
82
|
+
throw new Error("Invalid body when calling addUser");
|
|
83
|
+
}
|
|
84
|
+
var pathParams = {};
|
|
85
|
+
var queryParams = {};
|
|
86
|
+
var headersToInclude = {};
|
|
87
|
+
Object.keys(argMap).forEach(function (header) {
|
|
88
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
|
|
89
|
+
headersToInclude[header] = argMap[header];
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
93
|
+
var formParams = {};
|
|
94
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
95
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
96
|
+
var contentTypes = ['application/json'];
|
|
97
|
+
var accepts = ['application/json'];
|
|
98
|
+
var returnType = _AddUserApiResponse["default"];
|
|
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
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Get End User License Agreement
|
|
104
|
+
* API to fetch active End User License Agreement.
|
|
105
|
+
* @param {Object} args Additional Arguments
|
|
106
|
+
* @return {Promise<GetEulaApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetEulaApiResponse } and HTTP response
|
|
107
|
+
*/
|
|
108
|
+
}, {
|
|
109
|
+
key: "getEula",
|
|
110
|
+
value: function getEula() {
|
|
111
|
+
var _this2 = this;
|
|
112
|
+
var argMap = arguments.length > 0 ? arguments.length <= 0 ? undefined : arguments[0] : {};
|
|
113
|
+
var postBody = null;
|
|
114
|
+
var pathParams = {};
|
|
115
|
+
var queryParams = {};
|
|
116
|
+
var headersToInclude = {};
|
|
117
|
+
Object.keys(argMap).forEach(function (header) {
|
|
118
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
|
|
119
|
+
headersToInclude[header] = argMap[header];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
123
|
+
var formParams = {};
|
|
124
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
125
|
+
var contentTypes = [];
|
|
126
|
+
var accepts = ['application/json'];
|
|
127
|
+
var returnType = _GetEulaApiResponse["default"];
|
|
128
|
+
return this.apiClient.callApi('/api/licensing/v4.2/agreements/eula', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
129
|
+
}
|
|
130
|
+
}], [{
|
|
131
|
+
key: "ApiClient",
|
|
132
|
+
get:
|
|
133
|
+
/**
|
|
134
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
135
|
+
* their own fetch methods into the SDK
|
|
136
|
+
*/
|
|
137
|
+
function get() {
|
|
138
|
+
return _ApiClient.ApiClient;
|
|
139
|
+
}
|
|
140
|
+
}]);
|
|
141
|
+
}();
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LicenseKeys service.
|
|
3
|
+
* @version 1.421.1
|
|
4
|
+
* @class LicenseKeysApi
|
|
5
|
+
*/
|
|
6
|
+
export class LicenseKeysApi {
|
|
7
|
+
/**
|
|
8
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
9
|
+
* their own fetch methods into the SDK
|
|
10
|
+
*/
|
|
11
|
+
static get ApiClient(): typeof ApiClient;
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new LicenseKeysApi.
|
|
14
|
+
* @alias module:api/LicenseKeysApi
|
|
15
|
+
* @class
|
|
16
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
17
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
18
|
+
*/
|
|
19
|
+
constructor(apiClient?: any);
|
|
20
|
+
apiClient: any;
|
|
21
|
+
/**
|
|
22
|
+
* Add license key
|
|
23
|
+
* Adds the license key in the system.
|
|
24
|
+
* @param { Partial<LicenseKey> } body specification
|
|
25
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
26
|
+
* @param { Boolean } opts.$dryrun A URL query parameter that allows long running operations to execute in a dry-run mode providing ability to identify trouble spots and system failures without performing the actual operation. Additionally this mode also offers a summary snapshot of the resultant system in order to better understand how things fit together. The operation runs in dry-run mode only if the provided value is true.
|
|
27
|
+
|
|
28
|
+
* @param {Object} args Additional Arguments
|
|
29
|
+
* @return {Promise<AddLicenseKeyApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AddLicenseKeyApiResponse } and HTTP response
|
|
30
|
+
*/
|
|
31
|
+
addLicenseKey(body: Partial<LicenseKey>, opts: {
|
|
32
|
+
$dryrun: boolean;
|
|
33
|
+
}, ...args: any): Promise<AddLicenseKeyApiResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Assign license keys to cluster
|
|
36
|
+
* Assign the license keys to a cluster.
|
|
37
|
+
* @param { Required<Pick<LicenseKeyAssignmentSpec, 'licenseKeyAssignments'>> & Partial<LicenseKeyAssignmentSpec> } body specification
|
|
38
|
+
* @param {Object} args Additional Arguments
|
|
39
|
+
* @return {Promise<AssignLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AssignLicenseKeysApiResponse } and HTTP response
|
|
40
|
+
*/
|
|
41
|
+
assignLicenseKeys(body: Required<Pick<LicenseKeyAssignmentSpec, 'licenseKeyAssignments'>> & Partial<LicenseKeyAssignmentSpec>, ...args: any): Promise<AssignLicenseKeysApiResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Delete license key
|
|
44
|
+
* Deletes the license key based on the provided external identifier.
|
|
45
|
+
* @param { String } extId Path parameter for the license key ID.
|
|
46
|
+
* @param {Object} args Additional Arguments
|
|
47
|
+
* @return {Promise<DeleteLicenseKeyApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteLicenseKeyApiResponse } and HTTP response
|
|
48
|
+
*/
|
|
49
|
+
deleteLicenseKeyById(extId: string, ...args: any): Promise<DeleteLicenseKeyApiResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Get license key detail
|
|
52
|
+
* Fetches the license key details for the provided license key identifier.
|
|
53
|
+
* @param { String } extId Path parameter for the license key ID.
|
|
54
|
+
* @param {Object} args Additional Arguments
|
|
55
|
+
* @return {Promise<GetLicenseKeyApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetLicenseKeyApiResponse } and HTTP response
|
|
56
|
+
*/
|
|
57
|
+
getLicenseKeyById(extId: string, ...args: any): Promise<GetLicenseKeyApiResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Get license key
|
|
60
|
+
* Fetches the license keys.
|
|
61
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
62
|
+
* @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.
|
|
63
|
+
|
|
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
|
+
|
|
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
|
+
* @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.
|
|
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.
|
|
71
|
+
* @param {Object} args Additional Arguments
|
|
72
|
+
* @return {Promise<ListLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListLicenseKeysApiResponse } and HTTP response
|
|
73
|
+
*/
|
|
74
|
+
listLicenseKeys(opts: {
|
|
75
|
+
$page: number;
|
|
76
|
+
$limit: number;
|
|
77
|
+
$filter: string;
|
|
78
|
+
$orderby: string;
|
|
79
|
+
$expand: string;
|
|
80
|
+
$select: string;
|
|
81
|
+
}, ...args: any): Promise<ListLicenseKeysApiResponse>;
|
|
82
|
+
#private;
|
|
83
|
+
}
|
|
84
|
+
import LicenseKey from "../models/licensing/v4/config/LicenseKey";
|
|
85
|
+
import AddLicenseKeyApiResponse from "../models/licensing/v4/config/AddLicenseKeyApiResponse";
|
|
86
|
+
import LicenseKeyAssignmentSpec from "../models/licensing/v4/config/LicenseKeyAssignmentSpec";
|
|
87
|
+
import AssignLicenseKeysApiResponse from "../models/licensing/v4/config/AssignLicenseKeysApiResponse";
|
|
88
|
+
import DeleteLicenseKeyApiResponse from "../models/licensing/v4/config/DeleteLicenseKeyApiResponse";
|
|
89
|
+
import GetLicenseKeyApiResponse from "../models/licensing/v4/config/GetLicenseKeyApiResponse";
|
|
90
|
+
import ListLicenseKeysApiResponse from "../models/licensing/v4/config/ListLicenseKeysApiResponse";
|
|
91
|
+
import { ApiClient } from "../ApiClient";
|