@nutanix-scratch/licensing-js-client 4.0.1-alpha.1 → 4.0.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 -49
- package/README.md +38 -21
- package/dist/Ntnx-Licensing-js-client-prod.js +1 -1
- package/dist/Ntnx-Licensing-js-client.js +514 -228
- package/dist/es/ApiClient.d.ts +8 -1
- package/dist/es/ApiClient.js +249 -189
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +10 -10
- package/dist/es/apis/enduserlicenseagreement-endpoints.d.ts +41 -0
- package/dist/es/apis/{enduserlicenseagreements-endpoints.js → enduserlicenseagreement-endpoints.js} +28 -70
- package/dist/es/apis/licensekeys-endpoints.d.ts +106 -0
- package/dist/es/apis/licensekeys-endpoints.js +297 -0
- package/dist/es/apis/licenses-endpoints.d.ts +73 -73
- package/dist/es/apis/licenses-endpoints.js +194 -304
- package/dist/es/index.d.ts +117 -65
- package/dist/es/index.js +362 -154
- package/dist/es/models/common/v1/config/Flag.d.ts +32 -26
- package/dist/es/models/common/v1/config/Flag.js +66 -22
- package/dist/es/models/common/v1/config/KVPair.d.ts +35 -26
- package/dist/es/models/common/v1/config/KVPair.js +71 -25
- 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 +41 -38
- package/dist/es/models/common/v1/config/Message.js +58 -26
- package/dist/es/models/common/v1/config/MessageSeverity.js +8 -8
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +22 -20
- package/dist/es/models/common/v1/config/TenantAwareModel.js +52 -20
- package/dist/es/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/es/models/common/v1/response/ApiLink.js +54 -22
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +72 -28
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
- 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 +65 -25
- package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.js +96 -42
- package/dist/es/models/licensing/v4/agreements/EndUser.d.ts +110 -0
- package/dist/{lib/models/licensing/v4/agreements/EulaUser.js → es/models/licensing/v4/agreements/EndUser.js} +148 -137
- package/dist/es/models/licensing/v4/agreements/Eula.d.ts +61 -41
- package/dist/es/models/licensing/v4/agreements/Eula.js +112 -75
- package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +65 -25
- package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.js +60 -28
- package/dist/es/models/licensing/v4/agreements/UpdateEulaApiResponse.d.ts +67 -25
- package/dist/es/models/licensing/v4/agreements/UpdateEulaApiResponse.js +96 -42
- 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 +126 -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/{ClusterAllowance.js → Allowance.js} +136 -84
- package/dist/es/models/licensing/v4/config/AllowanceDetail.d.ts +46 -42
- package/dist/es/models/licensing/v4/config/AllowanceDetail.js +84 -52
- package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.d.ts +2 -1
- package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.js +40 -19
- 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/{ListClusterAllowancesApiResponse.js → AssignLicenseKeysApiResponse.js} +90 -63
- package/dist/es/models/licensing/v4/config/BaseClusterInfo.d.ts +21 -16
- package/dist/es/models/licensing/v4/config/BaseClusterInfo.js +82 -34
- package/dist/es/models/licensing/v4/config/BaseLicenseInfo.d.ts +49 -41
- package/dist/es/models/licensing/v4/config/BaseLicenseInfo.js +101 -52
- 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 +45 -40
- package/dist/es/models/licensing/v4/config/CapacityViolation.js +84 -52
- 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 +52 -29
- package/dist/es/models/licensing/v4/config/Compliance.js +90 -38
- package/dist/es/models/licensing/v4/config/ComplianceProjection.d.ts +56 -18
- package/dist/es/models/licensing/v4/config/ComplianceProjection.js +112 -33
- package/dist/es/models/licensing/v4/config/Consumption.d.ts +46 -26
- package/dist/es/models/licensing/v4/config/Consumption.js +114 -65
- package/dist/es/models/licensing/v4/config/ConsumptionProjection.d.ts +2 -1
- package/dist/es/models/licensing/v4/config/ConsumptionProjection.js +38 -17
- package/dist/es/models/licensing/v4/config/{ProductNameEnum.d.ts → ConsumptionType.d.ts} +6 -6
- 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/{lib/models/licensing/v4/config/GetClusterAllowanceApiResponse.js → es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js} +93 -59
- package/dist/es/models/licensing/v4/config/DryRunCheck.d.ts +72 -0
- package/dist/es/models/licensing/v4/config/DryRunCheck.js +322 -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/{lib/models/licensing/v4/config/EnforcementLevelEnum.js → es/models/licensing/v4/config/EnforcementLevel.js} +27 -27
- 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/{ClusterEntitlement.js → Entitlement.js} +147 -95
- package/dist/es/models/licensing/v4/config/EntitlementDetail.d.ts +74 -67
- package/dist/es/models/licensing/v4/config/EntitlementDetail.js +89 -56
- package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.d.ts +2 -1
- package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.js +43 -22
- package/dist/es/models/licensing/v4/config/EntitlementProjection.d.ts +66 -0
- package/dist/{lib/models/licensing/v4/config/ClusterEntitlementProjection.js → es/models/licensing/v4/config/EntitlementProjection.js} +149 -60
- package/dist/es/models/licensing/v4/config/ExpiredLicense.d.ts +38 -32
- package/dist/es/models/licensing/v4/config/ExpiredLicense.js +116 -44
- package/dist/es/models/licensing/v4/config/Feature.d.ts +63 -53
- package/dist/es/models/licensing/v4/config/Feature.js +144 -81
- package/dist/es/models/licensing/v4/config/FeatureDetail.d.ts +40 -38
- package/dist/es/models/licensing/v4/config/FeatureDetail.js +68 -36
- package/dist/es/models/licensing/v4/config/FeatureProjection.d.ts +2 -1
- package/dist/es/models/licensing/v4/config/FeatureProjection.js +40 -22
- package/dist/es/models/licensing/v4/config/FeatureViolation.d.ts +15 -16
- package/dist/es/models/licensing/v4/config/FeatureViolation.js +79 -30
- package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/{GetComplianceApiResponse.js → GetLicenseKeyApiResponse.js} +90 -58
- package/dist/es/models/licensing/v4/config/License.d.ts +66 -40
- package/dist/es/models/licensing/v4/config/License.js +165 -57
- package/dist/es/models/licensing/v4/config/{LicenseTypeEnum.d.ts → LicenseCategory.d.ts} +6 -6
- package/dist/es/models/licensing/v4/config/LicenseCategory.js +277 -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 +138 -0
- package/dist/es/models/licensing/v4/config/LicenseKey.js +593 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignSpec.d.ts +71 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignSpec.js +329 -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 +59 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyProjection.js +357 -0
- package/dist/es/models/licensing/v4/config/LicenseProjection.d.ts +41 -22
- package/dist/es/models/licensing/v4/config/LicenseProjection.js +146 -36
- 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 +265 -0
- package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +100 -0
- package/dist/{lib/models/licensing/v4/config/ListClusterEntitlementsApiResponse.js → es/models/licensing/v4/config/ListAllowancesApiResponse.js} +93 -61
- package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +66 -25
- package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.js +60 -28
- 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 +66 -25
- package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.js +60 -28
- 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 +66 -25
- package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.js +60 -28
- 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 +65 -25
- package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.js +60 -28
- package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/{ListClusterViolationsApiResponse.js → ListViolationsApiResponse.js} +90 -58
- package/dist/es/models/licensing/v4/config/LogicalVersion.d.ts +32 -30
- package/dist/es/models/licensing/v4/config/LogicalVersion.js +93 -61
- package/dist/es/models/licensing/v4/config/{TypeEnum.d.ts → Meter.d.ts} +6 -6
- package/dist/es/models/licensing/v4/config/Meter.js +121 -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 +61 -38
- package/dist/es/models/licensing/v4/config/PostPaidConfig.js +141 -42
- 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/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/{LicenseCategoryEnum.d.ts → RecommendationScope.d.ts} +6 -6
- package/dist/es/models/licensing/v4/config/RecommendationScope.js +85 -0
- package/dist/es/models/licensing/v4/config/ResetLicenseStateApiResponse.d.ts +102 -0
- package/dist/es/models/licensing/v4/config/{ListClusterEntitlementsApiResponse.js → ResetLicenseStateApiResponse.js} +90 -63
- package/dist/{lib/models/licensing/v4/config/StatusEnum.d.ts → es/models/licensing/v4/config/ResetScope.d.ts} +6 -6
- package/dist/{lib/models/licensing/v4/config/ResetScopeEnum.js → es/models/licensing/v4/config/ResetScope.js} +27 -27
- package/dist/{lib/models/licensing/v4/config/TypeEnum.d.ts → es/models/licensing/v4/config/Scope.d.ts} +6 -6
- package/dist/{lib/models/licensing/v4/config/ScopeEnum.js → es/models/licensing/v4/config/Scope.js} +29 -35
- package/dist/es/models/licensing/v4/config/Service.d.ts +65 -52
- package/dist/es/models/licensing/v4/config/Service.js +79 -41
- package/dist/es/models/licensing/v4/config/ServiceProjection.d.ts +2 -1
- package/dist/es/models/licensing/v4/config/ServiceProjection.js +42 -21
- package/dist/es/models/licensing/v4/config/ServiceViolation.d.ts +28 -25
- package/dist/es/models/licensing/v4/config/ServiceViolation.js +59 -26
- package/dist/es/models/licensing/v4/config/{PostPaidCategoryEnum.d.ts → ServiceViolationType.d.ts} +6 -6
- package/dist/{lib/models/licensing/v4/config/ServiceViolationEnum.js → es/models/licensing/v4/config/ServiceViolationType.js} +29 -29
- package/dist/es/models/licensing/v4/config/Setting.d.ts +97 -85
- package/dist/es/models/licensing/v4/config/Setting.js +137 -124
- package/dist/es/models/licensing/v4/config/{ScopeEnum.d.ts → Status.d.ts} +6 -6
- 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/{SubCategoryEnum.js → SubCategory.js} +27 -27
- package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/{GetClusterEntitlementApiResponse.js → SyncLicenseStateApiResponse.js} +90 -58
- 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/UpdatePortalSettingApiResponse.d.ts +99 -0
- package/dist/{lib/models/licensing/v4/config/ListClusterViolationsApiResponse.js → es/models/licensing/v4/config/UpdatePortalSettingApiResponse.js} +90 -58
- package/dist/{lib/models/licensing/v4/config/ScopeEnum.d.ts → es/models/licensing/v4/config/ValueType.d.ts} +6 -6
- package/dist/es/models/licensing/v4/config/{TypeEnum.js → ValueType.js} +27 -27
- package/dist/es/models/licensing/v4/config/Violation.d.ts +102 -0
- package/dist/es/models/licensing/v4/config/{ClusterViolation.js → Violation.js} +112 -60
- package/dist/es/models/licensing/v4/error/AppMessage.d.ts +57 -48
- package/dist/es/models/licensing/v4/error/AppMessage.js +62 -30
- package/dist/es/models/licensing/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/es/models/licensing/v4/error/ErrorResponse.js +67 -32
- package/dist/es/models/licensing/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/es/models/licensing/v4/error/SchemaValidationError.js +63 -30
- package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.js +56 -24
- 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.js +6 -6
- package/dist/es/utils/ValidationUtils.js +6 -6
- package/dist/lib/ApiClient.d.ts +8 -1
- package/dist/lib/ApiClient.js +249 -189
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +10 -10
- package/dist/lib/apis/enduserlicenseagreement-endpoints.d.ts +41 -0
- package/dist/lib/apis/{enduserlicenseagreements-endpoints.js → enduserlicenseagreement-endpoints.js} +28 -70
- package/dist/lib/apis/licensekeys-endpoints.d.ts +106 -0
- package/dist/lib/apis/licensekeys-endpoints.js +297 -0
- package/dist/lib/apis/licenses-endpoints.d.ts +73 -73
- package/dist/lib/apis/licenses-endpoints.js +194 -304
- package/dist/lib/index.d.ts +117 -65
- package/dist/lib/index.js +362 -154
- package/dist/lib/models/common/v1/config/Flag.d.ts +32 -26
- package/dist/lib/models/common/v1/config/Flag.js +66 -22
- package/dist/lib/models/common/v1/config/KVPair.d.ts +35 -26
- package/dist/lib/models/common/v1/config/KVPair.js +71 -25
- 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 +41 -38
- package/dist/lib/models/common/v1/config/Message.js +58 -26
- package/dist/lib/models/common/v1/config/MessageSeverity.js +8 -8
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +22 -20
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +52 -20
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/lib/models/common/v1/response/ApiLink.js +54 -22
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +72 -28
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
- 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 +65 -25
- package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.js +96 -42
- package/dist/lib/models/licensing/v4/agreements/EndUser.d.ts +110 -0
- package/dist/{es/models/licensing/v4/agreements/EulaUser.js → lib/models/licensing/v4/agreements/EndUser.js} +148 -137
- package/dist/lib/models/licensing/v4/agreements/Eula.d.ts +61 -41
- package/dist/lib/models/licensing/v4/agreements/Eula.js +112 -75
- package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +65 -25
- package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.js +60 -28
- package/dist/lib/models/licensing/v4/agreements/UpdateEulaApiResponse.d.ts +67 -25
- package/dist/lib/models/licensing/v4/agreements/UpdateEulaApiResponse.js +96 -42
- 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 +126 -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/{ClusterAllowance.js → Allowance.js} +136 -84
- package/dist/lib/models/licensing/v4/config/AllowanceDetail.d.ts +46 -42
- package/dist/lib/models/licensing/v4/config/AllowanceDetail.js +84 -52
- package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.d.ts +2 -1
- package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.js +40 -19
- 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/BaseClusterInfo.d.ts +21 -16
- package/dist/lib/models/licensing/v4/config/BaseClusterInfo.js +82 -34
- package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.d.ts +49 -41
- package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.js +101 -52
- 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 +45 -40
- package/dist/lib/models/licensing/v4/config/CapacityViolation.js +84 -52
- 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 +52 -29
- package/dist/lib/models/licensing/v4/config/Compliance.js +90 -38
- package/dist/lib/models/licensing/v4/config/ComplianceProjection.d.ts +56 -18
- package/dist/lib/models/licensing/v4/config/ComplianceProjection.js +112 -33
- package/dist/lib/models/licensing/v4/config/Consumption.d.ts +46 -26
- package/dist/lib/models/licensing/v4/config/Consumption.js +114 -65
- package/dist/lib/models/licensing/v4/config/ConsumptionProjection.d.ts +2 -1
- package/dist/lib/models/licensing/v4/config/ConsumptionProjection.js +38 -17
- package/dist/{es/models/licensing/v4/config/SubCategoryEnum.d.ts → lib/models/licensing/v4/config/ConsumptionType.d.ts} +6 -6
- 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/{es/models/licensing/v4/config/GetClusterAllowanceApiResponse.js → lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js} +93 -59
- package/dist/lib/models/licensing/v4/config/DryRunCheck.d.ts +72 -0
- package/dist/lib/models/licensing/v4/config/DryRunCheck.js +322 -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/{es/models/licensing/v4/config/EnforcementLevelEnum.js → lib/models/licensing/v4/config/EnforcementLevel.js} +27 -27
- 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/{ClusterEntitlement.js → Entitlement.js} +147 -95
- package/dist/lib/models/licensing/v4/config/EntitlementDetail.d.ts +74 -67
- package/dist/lib/models/licensing/v4/config/EntitlementDetail.js +89 -56
- package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.d.ts +2 -1
- package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.js +43 -22
- package/dist/lib/models/licensing/v4/config/EntitlementProjection.d.ts +66 -0
- package/dist/{es/models/licensing/v4/config/ClusterEntitlementProjection.js → lib/models/licensing/v4/config/EntitlementProjection.js} +149 -60
- package/dist/lib/models/licensing/v4/config/ExpiredLicense.d.ts +38 -32
- package/dist/lib/models/licensing/v4/config/ExpiredLicense.js +116 -44
- package/dist/lib/models/licensing/v4/config/Feature.d.ts +63 -53
- package/dist/lib/models/licensing/v4/config/Feature.js +144 -81
- package/dist/lib/models/licensing/v4/config/FeatureDetail.d.ts +40 -38
- package/dist/lib/models/licensing/v4/config/FeatureDetail.js +68 -36
- package/dist/lib/models/licensing/v4/config/FeatureProjection.d.ts +2 -1
- package/dist/lib/models/licensing/v4/config/FeatureProjection.js +40 -22
- package/dist/lib/models/licensing/v4/config/FeatureViolation.d.ts +15 -16
- package/dist/lib/models/licensing/v4/config/FeatureViolation.js +79 -30
- package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/{GetComplianceApiResponse.js → GetLicenseKeyApiResponse.js} +90 -58
- package/dist/lib/models/licensing/v4/config/License.d.ts +66 -40
- package/dist/lib/models/licensing/v4/config/License.js +165 -57
- package/dist/{es/models/licensing/v4/config/ClusterTypeEnum.d.ts → lib/models/licensing/v4/config/LicenseCategory.d.ts} +6 -6
- package/dist/lib/models/licensing/v4/config/LicenseCategory.js +277 -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 +138 -0
- package/dist/lib/models/licensing/v4/config/LicenseKey.js +593 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignSpec.d.ts +71 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignSpec.js +329 -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 +59 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.js +357 -0
- package/dist/lib/models/licensing/v4/config/LicenseProjection.d.ts +41 -22
- package/dist/lib/models/licensing/v4/config/LicenseProjection.js +146 -36
- 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 +265 -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 +66 -25
- package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.js +60 -28
- 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 +66 -25
- package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.js +60 -28
- 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 +66 -25
- package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.js +60 -28
- 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 +65 -25
- package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.js +60 -28
- package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/{ListClusterAllowancesApiResponse.js → ListViolationsApiResponse.js} +90 -63
- package/dist/lib/models/licensing/v4/config/LogicalVersion.d.ts +32 -30
- package/dist/lib/models/licensing/v4/config/LogicalVersion.js +93 -61
- package/dist/lib/models/licensing/v4/config/{MeterEnum.d.ts → Meter.d.ts} +6 -6
- package/dist/lib/models/licensing/v4/config/Meter.js +121 -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 +61 -38
- package/dist/lib/models/licensing/v4/config/PostPaidConfig.js +141 -42
- 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/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/{LicenseCategoryEnum.d.ts → RecommendationScope.d.ts} +6 -6
- package/dist/lib/models/licensing/v4/config/RecommendationScope.js +85 -0
- package/dist/lib/models/licensing/v4/config/ResetLicenseStateApiResponse.d.ts +102 -0
- package/dist/lib/models/licensing/v4/config/ResetLicenseStateApiResponse.js +365 -0
- package/dist/{es/models/licensing/v4/config/StatusEnum.d.ts → lib/models/licensing/v4/config/ResetScope.d.ts} +6 -6
- package/dist/{es/models/licensing/v4/config/ResetScopeEnum.js → lib/models/licensing/v4/config/ResetScope.js} +27 -27
- package/dist/lib/models/licensing/v4/config/Scope.d.ts +19 -0
- package/dist/{es/models/licensing/v4/config/ScopeEnum.js → lib/models/licensing/v4/config/Scope.js} +29 -35
- package/dist/lib/models/licensing/v4/config/Service.d.ts +65 -52
- package/dist/lib/models/licensing/v4/config/Service.js +79 -41
- package/dist/lib/models/licensing/v4/config/ServiceProjection.d.ts +2 -1
- package/dist/lib/models/licensing/v4/config/ServiceProjection.js +42 -21
- package/dist/lib/models/licensing/v4/config/ServiceViolation.d.ts +28 -25
- package/dist/lib/models/licensing/v4/config/ServiceViolation.js +59 -26
- package/dist/{es/models/licensing/v4/config/ServiceViolationEnum.d.ts → lib/models/licensing/v4/config/ServiceViolationType.d.ts} +6 -6
- package/dist/{es/models/licensing/v4/config/ServiceViolationEnum.js → lib/models/licensing/v4/config/ServiceViolationType.js} +29 -29
- package/dist/lib/models/licensing/v4/config/Setting.d.ts +97 -85
- package/dist/lib/models/licensing/v4/config/Setting.js +137 -124
- 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/{SubCategoryEnum.js → SubCategory.js} +27 -27
- package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/{GetClusterEntitlementApiResponse.js → SyncLicenseStateApiResponse.js} +90 -58
- 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/UpdatePortalSettingApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/UpdatePortalSettingApiResponse.js +365 -0
- package/dist/{es/models/licensing/v4/config/MeterEnum.d.ts → lib/models/licensing/v4/config/ValueType.d.ts} +6 -6
- package/dist/lib/models/licensing/v4/config/{TypeEnum.js → ValueType.js} +27 -27
- package/dist/lib/models/licensing/v4/config/Violation.d.ts +102 -0
- package/dist/lib/models/licensing/v4/config/{ClusterViolation.js → Violation.js} +112 -60
- package/dist/lib/models/licensing/v4/error/AppMessage.d.ts +57 -48
- package/dist/lib/models/licensing/v4/error/AppMessage.js +62 -30
- package/dist/lib/models/licensing/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/lib/models/licensing/v4/error/ErrorResponse.js +67 -32
- package/dist/lib/models/licensing/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/lib/models/licensing/v4/error/SchemaValidationError.js +63 -30
- package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.js +56 -24
- 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.js +6 -6
- package/dist/lib/utils/ValidationUtils.js +6 -6
- package/package.json +3 -3
- package/dist/es/apis/enduserlicenseagreements-endpoints.d.ts +0 -51
- package/dist/es/models/licensing/v4/agreements/EulaUser.d.ts +0 -103
- package/dist/es/models/licensing/v4/config/ClusterAllowance.d.ts +0 -55
- package/dist/es/models/licensing/v4/config/ClusterAllowanceProjection.d.ts +0 -34
- package/dist/es/models/licensing/v4/config/ClusterAllowanceProjection.js +0 -241
- package/dist/es/models/licensing/v4/config/ClusterEntitlement.d.ts +0 -79
- package/dist/es/models/licensing/v4/config/ClusterEntitlementProjection.d.ts +0 -36
- package/dist/es/models/licensing/v4/config/ClusterTypeEnum.js +0 -91
- package/dist/es/models/licensing/v4/config/ClusterViolation.d.ts +0 -57
- package/dist/es/models/licensing/v4/config/EnforcementActionsEnum.d.ts +0 -19
- package/dist/es/models/licensing/v4/config/EnforcementActionsEnum.js +0 -139
- package/dist/es/models/licensing/v4/config/EnforcementLevelEnum.d.ts +0 -19
- package/dist/es/models/licensing/v4/config/EnforcementPolicyEnum.d.ts +0 -19
- package/dist/es/models/licensing/v4/config/EnforcementPolicyEnum.js +0 -85
- package/dist/es/models/licensing/v4/config/GetClusterAllowanceApiResponse.d.ts +0 -59
- package/dist/es/models/licensing/v4/config/GetClusterEntitlementApiResponse.d.ts +0 -59
- package/dist/es/models/licensing/v4/config/GetClusterViolationApiResponse.d.ts +0 -59
- package/dist/es/models/licensing/v4/config/GetClusterViolationApiResponse.js +0 -311
- package/dist/es/models/licensing/v4/config/GetComplianceApiResponse.d.ts +0 -59
- package/dist/es/models/licensing/v4/config/GetLicenseApiResponse.d.ts +0 -59
- package/dist/es/models/licensing/v4/config/GetLicenseApiResponse.js +0 -311
- package/dist/es/models/licensing/v4/config/GetSettingApiResponse.d.ts +0 -59
- package/dist/es/models/licensing/v4/config/GetSettingApiResponse.js +0 -311
- package/dist/es/models/licensing/v4/config/LicenseCategoryEnum.js +0 -271
- package/dist/es/models/licensing/v4/config/LicenseTypeEnum.js +0 -235
- package/dist/es/models/licensing/v4/config/ListClusterAllowancesApiResponse.d.ts +0 -59
- package/dist/es/models/licensing/v4/config/ListClusterEntitlementsApiResponse.d.ts +0 -59
- package/dist/es/models/licensing/v4/config/ListClusterViolationsApiResponse.d.ts +0 -59
- package/dist/es/models/licensing/v4/config/MeterEnum.js +0 -121
- package/dist/es/models/licensing/v4/config/NutanixClusterConfig.d.ts +0 -98
- package/dist/es/models/licensing/v4/config/NutanixClusterConfig.js +0 -406
- package/dist/es/models/licensing/v4/config/PostPaidCategoryEnum.js +0 -85
- package/dist/es/models/licensing/v4/config/ProductNameEnum.js +0 -115
- package/dist/es/models/licensing/v4/config/ResetScopeEnum.d.ts +0 -19
- package/dist/es/models/licensing/v4/config/StatusEnum.js +0 -85
- package/dist/lib/apis/enduserlicenseagreements-endpoints.d.ts +0 -51
- package/dist/lib/models/licensing/v4/agreements/EulaUser.d.ts +0 -103
- package/dist/lib/models/licensing/v4/config/ClusterAllowance.d.ts +0 -55
- package/dist/lib/models/licensing/v4/config/ClusterAllowanceProjection.d.ts +0 -34
- package/dist/lib/models/licensing/v4/config/ClusterAllowanceProjection.js +0 -241
- package/dist/lib/models/licensing/v4/config/ClusterEntitlement.d.ts +0 -79
- package/dist/lib/models/licensing/v4/config/ClusterEntitlementProjection.d.ts +0 -36
- package/dist/lib/models/licensing/v4/config/ClusterTypeEnum.d.ts +0 -19
- package/dist/lib/models/licensing/v4/config/ClusterTypeEnum.js +0 -91
- package/dist/lib/models/licensing/v4/config/ClusterViolation.d.ts +0 -57
- package/dist/lib/models/licensing/v4/config/EnforcementActionsEnum.d.ts +0 -19
- package/dist/lib/models/licensing/v4/config/EnforcementActionsEnum.js +0 -139
- package/dist/lib/models/licensing/v4/config/EnforcementLevelEnum.d.ts +0 -19
- package/dist/lib/models/licensing/v4/config/EnforcementPolicyEnum.d.ts +0 -19
- package/dist/lib/models/licensing/v4/config/EnforcementPolicyEnum.js +0 -85
- package/dist/lib/models/licensing/v4/config/GetClusterAllowanceApiResponse.d.ts +0 -59
- package/dist/lib/models/licensing/v4/config/GetClusterEntitlementApiResponse.d.ts +0 -59
- package/dist/lib/models/licensing/v4/config/GetClusterViolationApiResponse.d.ts +0 -59
- package/dist/lib/models/licensing/v4/config/GetClusterViolationApiResponse.js +0 -311
- package/dist/lib/models/licensing/v4/config/GetComplianceApiResponse.d.ts +0 -59
- package/dist/lib/models/licensing/v4/config/GetLicenseApiResponse.d.ts +0 -59
- package/dist/lib/models/licensing/v4/config/GetLicenseApiResponse.js +0 -311
- package/dist/lib/models/licensing/v4/config/GetSettingApiResponse.d.ts +0 -59
- package/dist/lib/models/licensing/v4/config/GetSettingApiResponse.js +0 -311
- package/dist/lib/models/licensing/v4/config/LicenseCategoryEnum.js +0 -271
- package/dist/lib/models/licensing/v4/config/LicenseTypeEnum.d.ts +0 -19
- package/dist/lib/models/licensing/v4/config/LicenseTypeEnum.js +0 -235
- package/dist/lib/models/licensing/v4/config/ListClusterAllowancesApiResponse.d.ts +0 -59
- package/dist/lib/models/licensing/v4/config/ListClusterEntitlementsApiResponse.d.ts +0 -59
- package/dist/lib/models/licensing/v4/config/ListClusterViolationsApiResponse.d.ts +0 -59
- package/dist/lib/models/licensing/v4/config/MeterEnum.js +0 -121
- package/dist/lib/models/licensing/v4/config/NutanixClusterConfig.d.ts +0 -98
- package/dist/lib/models/licensing/v4/config/NutanixClusterConfig.js +0 -406
- package/dist/lib/models/licensing/v4/config/PostPaidCategoryEnum.d.ts +0 -19
- package/dist/lib/models/licensing/v4/config/PostPaidCategoryEnum.js +0 -85
- package/dist/lib/models/licensing/v4/config/ProductNameEnum.d.ts +0 -19
- package/dist/lib/models/licensing/v4/config/ProductNameEnum.js +0 -115
- package/dist/lib/models/licensing/v4/config/ResetScopeEnum.d.ts +0 -19
- package/dist/lib/models/licensing/v4/config/ServiceViolationEnum.d.ts +0 -19
- package/dist/lib/models/licensing/v4/config/StatusEnum.js +0 -85
- package/dist/lib/models/licensing/v4/config/SubCategoryEnum.d.ts +0 -19
|
@@ -0,0 +1,297 @@
|
|
|
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.LicenseKeysApi = void 0;
|
|
8
|
+
var _ApiClient = require("../ApiClient");
|
|
9
|
+
var _AssignLicenseKeysApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/AssignLicenseKeysApiResponse"));
|
|
10
|
+
var _LicenseKeyAssignSpec = _interopRequireDefault(require("../models/licensing/v4/config/LicenseKeyAssignSpec"));
|
|
11
|
+
var _DeleteLicenseKeyApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/DeleteLicenseKeyApiResponse"));
|
|
12
|
+
var _ListLicenseKeysApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListLicenseKeysApiResponse"));
|
|
13
|
+
var _LicenseKey = _interopRequireDefault(require("../models/licensing/v4/config/LicenseKey"));
|
|
14
|
+
var _AddLicenseKeyApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/AddLicenseKeyApiResponse"));
|
|
15
|
+
var _GetLicenseKeyApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/GetLicenseKeyApiResponse"));
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
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
|
+
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; }
|
|
19
|
+
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; }
|
|
20
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
21
|
+
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); } }
|
|
22
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
23
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
24
|
+
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); }
|
|
25
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
26
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
27
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
28
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
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
|
+
* Nutanix Licensing APIs
|
|
31
|
+
*
|
|
32
|
+
* OpenAPI spec version: 4.0.1
|
|
33
|
+
*
|
|
34
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
35
|
+
*
|
|
36
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
37
|
+
*
|
|
38
|
+
* Do not edit the class manually.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* LicenseKeys service.
|
|
43
|
+
* @version 4.0.1
|
|
44
|
+
* @class LicenseKeysApi
|
|
45
|
+
*/
|
|
46
|
+
var _headersToSkip = /*#__PURE__*/new WeakMap();
|
|
47
|
+
var LicenseKeysApi = exports.LicenseKeysApi = /*#__PURE__*/function () {
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a new LicenseKeysApi.
|
|
50
|
+
* @alias module:api/LicenseKeysApi
|
|
51
|
+
* @class
|
|
52
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
53
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
54
|
+
*/
|
|
55
|
+
function LicenseKeysApi(apiClient) {
|
|
56
|
+
_classCallCheck(this, LicenseKeysApi);
|
|
57
|
+
_classPrivateFieldInitSpec(this, _headersToSkip, void 0);
|
|
58
|
+
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
59
|
+
_classPrivateFieldSet(_headersToSkip, this, new Set());
|
|
60
|
+
_classPrivateFieldGet(_headersToSkip, this).add('authorization');
|
|
61
|
+
_classPrivateFieldGet(_headersToSkip, this).add('cookie');
|
|
62
|
+
_classPrivateFieldGet(_headersToSkip, this).add('host');
|
|
63
|
+
_classPrivateFieldGet(_headersToSkip, this).add('user-agent');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Add license key
|
|
68
|
+
* Adds the license key in the system.
|
|
69
|
+
* @param { Partial<LicenseKey> } body specification
|
|
70
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
71
|
+
* @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.
|
|
72
|
+
* @param {Object} args Additional Arguments
|
|
73
|
+
* @return {Promise<AddLicenseKeyApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AddLicenseKeyApiResponse } and HTTP response
|
|
74
|
+
*/
|
|
75
|
+
return _createClass(LicenseKeysApi, [{
|
|
76
|
+
key: "addLicenseKey",
|
|
77
|
+
value: function addLicenseKey(body, opts) {
|
|
78
|
+
var _this = this;
|
|
79
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
80
|
+
opts = opts || {};
|
|
81
|
+
var postBody = null;
|
|
82
|
+
if (body instanceof _LicenseKey["default"] && typeof body.toJson === 'function') {
|
|
83
|
+
postBody = body.toJson();
|
|
84
|
+
} else {
|
|
85
|
+
postBody = body;
|
|
86
|
+
}
|
|
87
|
+
// verify the required parameter 'body' is set
|
|
88
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
89
|
+
throw new Error("Invalid body when calling addLicenseKey");
|
|
90
|
+
}
|
|
91
|
+
var pathParams = {};
|
|
92
|
+
var queryParams = _objectSpread({}, opts.hasOwnProperty('$dryrun') ? {
|
|
93
|
+
'$dryrun': opts['$dryrun']
|
|
94
|
+
} : {});
|
|
95
|
+
var headersToInclude = {};
|
|
96
|
+
Object.keys(argMap).forEach(function (header) {
|
|
97
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
|
|
98
|
+
headersToInclude[header] = argMap[header];
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
102
|
+
var formParams = {};
|
|
103
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
104
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
105
|
+
var contentTypes = ['application/json'];
|
|
106
|
+
var accepts = ['application/json'];
|
|
107
|
+
var returnType = _AddLicenseKeyApiResponse["default"];
|
|
108
|
+
return this.apiClient.callApi('/api/licensing/v4.0/config/license-keys', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Assign license keys to cluster
|
|
113
|
+
* Assign the license keys to a cluster.
|
|
114
|
+
* @param { Partial<Array> } body specification
|
|
115
|
+
* @param {Object} args Additional Arguments
|
|
116
|
+
* @return {Promise<AssignLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AssignLicenseKeysApiResponse } and HTTP response
|
|
117
|
+
*/
|
|
118
|
+
}, {
|
|
119
|
+
key: "assignLicenseKeys",
|
|
120
|
+
value: function assignLicenseKeys(body) {
|
|
121
|
+
var _this2 = this;
|
|
122
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
123
|
+
var postBody = null;
|
|
124
|
+
if (body instanceof Array && typeof body.toJson === 'function') {
|
|
125
|
+
postBody = body.toJson();
|
|
126
|
+
} else {
|
|
127
|
+
postBody = body;
|
|
128
|
+
}
|
|
129
|
+
// verify the required parameter 'body' is set
|
|
130
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
131
|
+
throw new Error("Invalid body when calling assignLicenseKeys");
|
|
132
|
+
}
|
|
133
|
+
var pathParams = {};
|
|
134
|
+
var queryParams = {};
|
|
135
|
+
var headersToInclude = {};
|
|
136
|
+
Object.keys(argMap).forEach(function (header) {
|
|
137
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
|
|
138
|
+
headersToInclude[header] = argMap[header];
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
142
|
+
var formParams = {};
|
|
143
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
144
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
145
|
+
var contentTypes = ['application/json'];
|
|
146
|
+
var accepts = ['application/json'];
|
|
147
|
+
var returnType = _AssignLicenseKeysApiResponse["default"];
|
|
148
|
+
return this.apiClient.callApi('/api/licensing/v4.0/config/$actions/assign-license-keys', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Delete license key
|
|
153
|
+
* Deletes the license key based on the provided external identifier.
|
|
154
|
+
* @param { String } extId Path parameter for the license key ID.
|
|
155
|
+
* @param {Object} args Additional Arguments
|
|
156
|
+
* @return {Promise<DeleteLicenseKeyApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteLicenseKeyApiResponse } and HTTP response
|
|
157
|
+
*/
|
|
158
|
+
}, {
|
|
159
|
+
key: "deleteLicenseKeyById",
|
|
160
|
+
value: function deleteLicenseKeyById(extId) {
|
|
161
|
+
var _this3 = this;
|
|
162
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
163
|
+
var postBody = null;
|
|
164
|
+
// verify the required parameter 'extId' is set
|
|
165
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
166
|
+
throw new Error("Missing the required parameter 'extId' when calling deleteLicenseKeyById");
|
|
167
|
+
}
|
|
168
|
+
var pathParams = {
|
|
169
|
+
'extId': extId
|
|
170
|
+
};
|
|
171
|
+
var queryParams = {};
|
|
172
|
+
var headersToInclude = {};
|
|
173
|
+
Object.keys(argMap).forEach(function (header) {
|
|
174
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this3).has(header.toLowerCase())) {
|
|
175
|
+
headersToInclude[header] = argMap[header];
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
179
|
+
var formParams = {};
|
|
180
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
181
|
+
var contentTypes = [];
|
|
182
|
+
var accepts = ['application/json'];
|
|
183
|
+
var returnType = _DeleteLicenseKeyApiResponse["default"];
|
|
184
|
+
return this.apiClient.callApi('/api/licensing/v4.0/config/license-keys/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Get license key detail
|
|
189
|
+
* Fetches the license key details for the provided license key identifier.
|
|
190
|
+
* @param { String } extId Path parameter for the license key ID.
|
|
191
|
+
* @param {Object} args Additional Arguments
|
|
192
|
+
* @return {Promise<GetLicenseKeyApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetLicenseKeyApiResponse } and HTTP response
|
|
193
|
+
*/
|
|
194
|
+
}, {
|
|
195
|
+
key: "getLicenseKeyById",
|
|
196
|
+
value: function getLicenseKeyById(extId) {
|
|
197
|
+
var _this4 = this;
|
|
198
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
199
|
+
var postBody = null;
|
|
200
|
+
// verify the required parameter 'extId' is set
|
|
201
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
202
|
+
throw new Error("Missing the required parameter 'extId' when calling getLicenseKeyById");
|
|
203
|
+
}
|
|
204
|
+
var pathParams = {
|
|
205
|
+
'extId': extId
|
|
206
|
+
};
|
|
207
|
+
var queryParams = {};
|
|
208
|
+
var headersToInclude = {};
|
|
209
|
+
Object.keys(argMap).forEach(function (header) {
|
|
210
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this4).has(header.toLowerCase())) {
|
|
211
|
+
headersToInclude[header] = argMap[header];
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
215
|
+
var formParams = {};
|
|
216
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
217
|
+
var contentTypes = [];
|
|
218
|
+
var accepts = ['application/json'];
|
|
219
|
+
var returnType = _GetLicenseKeyApiResponse["default"];
|
|
220
|
+
return this.apiClient.callApi('/api/licensing/v4.0/config/license-keys/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Get license key
|
|
225
|
+
* Fetches the license keys.
|
|
226
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
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
|
+
* @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
|
+
* @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'.<br>
|
|
231
|
+
* The filter can be applied to the following fields:<br>
|
|
232
|
+
* - extId<br>
|
|
233
|
+
* - isDeleted<br>
|
|
234
|
+
* - key
|
|
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
|
|
249
|
+
* @return {Promise<ListLicenseKeysApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListLicenseKeysApiResponse } and HTTP response
|
|
250
|
+
*/
|
|
251
|
+
}, {
|
|
252
|
+
key: "listLicenseKeys",
|
|
253
|
+
value: function listLicenseKeys(opts) {
|
|
254
|
+
var _this5 = this;
|
|
255
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
256
|
+
opts = opts || {};
|
|
257
|
+
var postBody = null;
|
|
258
|
+
var pathParams = {};
|
|
259
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
260
|
+
'$page': opts['$page']
|
|
261
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
262
|
+
'$limit': opts['$limit']
|
|
263
|
+
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
264
|
+
'$filter': opts['$filter']
|
|
265
|
+
} : {}), opts.hasOwnProperty('$orderby') ? {
|
|
266
|
+
'$orderby': opts['$orderby']
|
|
267
|
+
} : {}), opts.hasOwnProperty('$expand') ? {
|
|
268
|
+
'$expand': opts['$expand']
|
|
269
|
+
} : {}), opts.hasOwnProperty('$select') ? {
|
|
270
|
+
'$select': opts['$select']
|
|
271
|
+
} : {});
|
|
272
|
+
var headersToInclude = {};
|
|
273
|
+
Object.keys(argMap).forEach(function (header) {
|
|
274
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {
|
|
275
|
+
headersToInclude[header] = argMap[header];
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
279
|
+
var formParams = {};
|
|
280
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
281
|
+
var contentTypes = [];
|
|
282
|
+
var accepts = ['application/json'];
|
|
283
|
+
var returnType = _ListLicenseKeysApiResponse["default"];
|
|
284
|
+
return this.apiClient.callApi('/api/licensing/v4.0/config/license-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
285
|
+
}
|
|
286
|
+
}], [{
|
|
287
|
+
key: "ApiClient",
|
|
288
|
+
get:
|
|
289
|
+
/**
|
|
290
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
291
|
+
* their own fetch methods into the SDK
|
|
292
|
+
*/
|
|
293
|
+
function get() {
|
|
294
|
+
return _ApiClient.ApiClient;
|
|
295
|
+
}
|
|
296
|
+
}]);
|
|
297
|
+
}();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Licenses service.
|
|
3
|
-
* @version 4.0.1
|
|
3
|
+
* @version 4.0.1
|
|
4
4
|
* @class LicensesApi
|
|
5
5
|
*/
|
|
6
6
|
export class LicensesApi {
|
|
@@ -18,54 +18,6 @@ export class LicensesApi {
|
|
|
18
18
|
*/
|
|
19
19
|
constructor(apiClient?: any);
|
|
20
20
|
apiClient: any;
|
|
21
|
-
/**
|
|
22
|
-
* Get allowances for a cluster
|
|
23
|
-
* API to fetch allowances for a particular cluster.
|
|
24
|
-
* @param { String } extId Prism Central or Prism Element UUID.
|
|
25
|
-
* @param {Object} args Additional Arguments
|
|
26
|
-
* @return {Promise<GetClusterAllowanceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetClusterAllowanceApiResponse } and HTTP response
|
|
27
|
-
*/
|
|
28
|
-
getClusterAllowanceByClusterId(extId: string, ...args: any): Promise<GetClusterAllowanceApiResponse>;
|
|
29
|
-
/**
|
|
30
|
-
* List license entitlements for a cluster
|
|
31
|
-
* API to fetch entitlements for a particular cluster.
|
|
32
|
-
* @param { String } extId Prism Central or Prism Element UUID.
|
|
33
|
-
* @param {Object} args Additional Arguments
|
|
34
|
-
* @return {Promise<GetClusterEntitlementApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetClusterEntitlementApiResponse } and HTTP response
|
|
35
|
-
*/
|
|
36
|
-
getClusterEntitlementByClusterId(extId: string, ...args: any): Promise<GetClusterEntitlementApiResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* Get license violation for a cluster
|
|
39
|
-
* API to fetch violations for a particular cluster.
|
|
40
|
-
* @param { String } extId Prism Central or Prism Element UUID.
|
|
41
|
-
* @param {Object} args Additional Arguments
|
|
42
|
-
* @return {Promise<GetClusterViolationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetClusterViolationApiResponse } and HTTP response
|
|
43
|
-
*/
|
|
44
|
-
getClusterViolationByClusterId(extId: string, ...args: any): Promise<GetClusterViolationApiResponse>;
|
|
45
|
-
/**
|
|
46
|
-
* List license compliances for a cluster
|
|
47
|
-
* API to fetch compliances for a particular cluster.
|
|
48
|
-
* @param { String } extId Prism Central or Prism Element UUID.
|
|
49
|
-
* @param {Object} args Additional Arguments
|
|
50
|
-
* @return {Promise<GetComplianceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetComplianceApiResponse } and HTTP response
|
|
51
|
-
*/
|
|
52
|
-
getComplianceByClusterId(extId: string, ...args: any): Promise<GetComplianceApiResponse>;
|
|
53
|
-
/**
|
|
54
|
-
* Get applied license inventory by license ID
|
|
55
|
-
* API to fetch license details for a particular license identifier.
|
|
56
|
-
* @param { String } extId License ID to be fetched, Example: LIC-01485985
|
|
57
|
-
* @param {Object} args Additional Arguments
|
|
58
|
-
* @return {Promise<GetLicenseApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetLicenseApiResponse } and HTTP response
|
|
59
|
-
*/
|
|
60
|
-
getLicenseById(extId: string, ...args: any): Promise<GetLicenseApiResponse>;
|
|
61
|
-
/**
|
|
62
|
-
* Get license configurations for a cluster
|
|
63
|
-
* API to fetch setting details for a particular cluster.
|
|
64
|
-
* @param { String } extId Prism Central or Prism Element UUID.
|
|
65
|
-
* @param {Object} args Additional Arguments
|
|
66
|
-
* @return {Promise<GetSettingApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetSettingApiResponse } and HTTP response
|
|
67
|
-
*/
|
|
68
|
-
getSettingByClusterId(extId: string, ...args: any): Promise<GetSettingApiResponse>;
|
|
69
21
|
/**
|
|
70
22
|
* List allowances
|
|
71
23
|
* API to fetch allowances.
|
|
@@ -82,8 +34,11 @@ export class LicensesApi {
|
|
|
82
34
|
* - isDeleted<br>
|
|
83
35
|
* - name<br>
|
|
84
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
|
|
85
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.
|
|
86
|
-
-
|
|
41
|
+
- details
|
|
87
42
|
|
|
88
43
|
* @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.
|
|
89
44
|
- clusterExtId
|
|
@@ -92,18 +47,19 @@ export class LicensesApi {
|
|
|
92
47
|
- type
|
|
93
48
|
|
|
94
49
|
* @param {Object} args Additional Arguments
|
|
95
|
-
* @return {Promise<
|
|
50
|
+
* @return {Promise<ListAllowancesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListAllowancesApiResponse } and HTTP response
|
|
96
51
|
*/
|
|
97
52
|
listAllowances(opts: {
|
|
98
53
|
$page: number;
|
|
99
54
|
$limit: number;
|
|
100
55
|
$filter: string;
|
|
56
|
+
$orderby: string;
|
|
101
57
|
$expand: string;
|
|
102
58
|
$select: string;
|
|
103
|
-
}, ...args: any): Promise<
|
|
59
|
+
}, ...args: any): Promise<ListAllowancesApiResponse>;
|
|
104
60
|
/**
|
|
105
61
|
* List license compliances
|
|
106
|
-
* API to fetch list of compliances across clusters.
|
|
62
|
+
* API to fetch list of license compliances across clusters.
|
|
107
63
|
* @param {Object} opts Optional parameters defined for the operation
|
|
108
64
|
* @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.
|
|
109
65
|
|
|
@@ -115,6 +71,10 @@ export class LicensesApi {
|
|
|
115
71
|
* - clusterExtId<br>
|
|
116
72
|
* - isDeleted<br>
|
|
117
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
|
|
118
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.
|
|
119
79
|
- compliance
|
|
120
80
|
|
|
@@ -129,6 +89,7 @@ export class LicensesApi {
|
|
|
129
89
|
$page: number;
|
|
130
90
|
$limit: number;
|
|
131
91
|
$filter: string;
|
|
92
|
+
$orderby: string;
|
|
132
93
|
$expand: string;
|
|
133
94
|
$select: string;
|
|
134
95
|
}, ...args: any): Promise<ListCompliancesApiResponse>;
|
|
@@ -148,8 +109,12 @@ export class LicensesApi {
|
|
|
148
109
|
* - isDeleted<br>
|
|
149
110
|
* - name<br>
|
|
150
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
|
|
151
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.
|
|
152
|
-
-
|
|
117
|
+
- details
|
|
153
118
|
|
|
154
119
|
* @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.
|
|
155
120
|
- clusterExtId
|
|
@@ -158,15 +123,16 @@ export class LicensesApi {
|
|
|
158
123
|
- type
|
|
159
124
|
|
|
160
125
|
* @param {Object} args Additional Arguments
|
|
161
|
-
* @return {Promise<
|
|
126
|
+
* @return {Promise<ListEntitlementsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListEntitlementsApiResponse } and HTTP response
|
|
162
127
|
*/
|
|
163
128
|
listEntitlements(opts: {
|
|
164
129
|
$page: number;
|
|
165
130
|
$limit: number;
|
|
166
131
|
$filter: string;
|
|
132
|
+
$orderby: string;
|
|
167
133
|
$expand: string;
|
|
168
134
|
$select: string;
|
|
169
|
-
}, ...args: any): Promise<
|
|
135
|
+
}, ...args: any): Promise<ListEntitlementsApiResponse>;
|
|
170
136
|
/**
|
|
171
137
|
* List license features
|
|
172
138
|
* API to fetch features list.
|
|
@@ -183,8 +149,8 @@ export class LicensesApi {
|
|
|
183
149
|
* - licenseType<br>
|
|
184
150
|
* - name<br>
|
|
185
151
|
* - scope<br>
|
|
186
|
-
* -
|
|
187
|
-
* -
|
|
152
|
+
* - value<br>
|
|
153
|
+
* - valueType
|
|
188
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>
|
|
189
155
|
* The orderby can be applied to the following fields:<br>
|
|
190
156
|
* - licenseCategory<br>
|
|
@@ -195,8 +161,8 @@ export class LicensesApi {
|
|
|
195
161
|
- licenseSubCategory
|
|
196
162
|
- licenseType
|
|
197
163
|
- name
|
|
198
|
-
- type
|
|
199
164
|
- value
|
|
165
|
+
- valueType
|
|
200
166
|
|
|
201
167
|
* @param {Object} args Additional Arguments
|
|
202
168
|
* @return {Promise<ListFeaturesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListFeaturesApiResponse } and HTTP response
|
|
@@ -210,7 +176,7 @@ export class LicensesApi {
|
|
|
210
176
|
}, ...args: any): Promise<ListFeaturesApiResponse>;
|
|
211
177
|
/**
|
|
212
178
|
* List applied license inventory
|
|
213
|
-
* API to fetch
|
|
179
|
+
* API to fetch a list of licenses along with consumption details using expansion.
|
|
214
180
|
* @param {Object} opts Optional parameters defined for the operation
|
|
215
181
|
* @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.
|
|
216
182
|
|
|
@@ -223,14 +189,20 @@ export class LicensesApi {
|
|
|
223
189
|
* - extId<br>
|
|
224
190
|
* - isDeleted<br>
|
|
225
191
|
* - meter<br>
|
|
192
|
+
* - salesforceLicenseId<br>
|
|
226
193
|
* - subCategory<br>
|
|
227
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
|
|
228
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.
|
|
229
200
|
- consumptionDetails
|
|
230
201
|
|
|
231
202
|
* @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.
|
|
232
203
|
- category
|
|
233
204
|
- meter
|
|
205
|
+
- salesforceLicenseId
|
|
234
206
|
- subCategory
|
|
235
207
|
- type
|
|
236
208
|
|
|
@@ -241,12 +213,35 @@ export class LicensesApi {
|
|
|
241
213
|
$page: number;
|
|
242
214
|
$limit: number;
|
|
243
215
|
$filter: string;
|
|
216
|
+
$orderby: string;
|
|
244
217
|
$expand: string;
|
|
245
218
|
$select: string;
|
|
246
219
|
}, ...args: any): Promise<ListLicensesApiResponse>;
|
|
220
|
+
/**
|
|
221
|
+
* List cluster and license recommendations
|
|
222
|
+
* Lists all the available licensing recommendations from the license portal.
|
|
223
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
224
|
+
* @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.
|
|
225
|
+
|
|
226
|
+
* @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
|
+
|
|
228
|
+
* @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
|
+
* @param {Object} args Additional Arguments
|
|
235
|
+
* @return {Promise<ListRecommendationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListRecommendationsApiResponse } and HTTP response
|
|
236
|
+
*/
|
|
237
|
+
listRecommendations(opts: {
|
|
238
|
+
$page: number;
|
|
239
|
+
$limit: number;
|
|
240
|
+
$select: string;
|
|
241
|
+
}, ...args: any): Promise<ListRecommendationsApiResponse>;
|
|
247
242
|
/**
|
|
248
243
|
* List license configurations
|
|
249
|
-
* API to fetch settings list.
|
|
244
|
+
* API to fetch license settings list.
|
|
250
245
|
* @param {Object} opts Optional parameters defined for the operation
|
|
251
246
|
* @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.
|
|
252
247
|
|
|
@@ -261,32 +256,37 @@ export class LicensesApi {
|
|
|
261
256
|
}, ...args: any): Promise<ListSettingsApiResponse>;
|
|
262
257
|
/**
|
|
263
258
|
* List license violations
|
|
264
|
-
* API to fetch violations list.
|
|
259
|
+
* API to fetch license violations list.
|
|
265
260
|
* @param {Object} opts Optional parameters defined for the operation
|
|
266
261
|
* @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.
|
|
267
262
|
|
|
268
263
|
* @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.
|
|
269
264
|
|
|
270
265
|
* @param {Object} args Additional Arguments
|
|
271
|
-
* @return {Promise<
|
|
266
|
+
* @return {Promise<ListViolationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListViolationsApiResponse } and HTTP response
|
|
272
267
|
*/
|
|
273
268
|
listViolations(opts: {
|
|
274
269
|
$page: number;
|
|
275
270
|
$limit: number;
|
|
276
|
-
}, ...args: any): Promise<
|
|
271
|
+
}, ...args: any): Promise<ListViolationsApiResponse>;
|
|
272
|
+
/**
|
|
273
|
+
* Seamless licensing action
|
|
274
|
+
* API for seamless licensing actions like post the cluster summary file, apply license file, and others.
|
|
275
|
+
* @param { Partial<LicenseStateSyncSpec> } body specification
|
|
276
|
+
* @param {Object} args Additional Arguments
|
|
277
|
+
* @return {Promise<SyncLicenseStateApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link SyncLicenseStateApiResponse } and HTTP response
|
|
278
|
+
*/
|
|
279
|
+
syncLicenseState(body: Partial<LicenseStateSyncSpec>, ...args: any): Promise<SyncLicenseStateApiResponse>;
|
|
277
280
|
#private;
|
|
278
281
|
}
|
|
279
|
-
import
|
|
280
|
-
import GetClusterEntitlementApiResponse from "../models/licensing/v4/config/GetClusterEntitlementApiResponse";
|
|
281
|
-
import GetClusterViolationApiResponse from "../models/licensing/v4/config/GetClusterViolationApiResponse";
|
|
282
|
-
import GetComplianceApiResponse from "../models/licensing/v4/config/GetComplianceApiResponse";
|
|
283
|
-
import GetLicenseApiResponse from "../models/licensing/v4/config/GetLicenseApiResponse";
|
|
284
|
-
import GetSettingApiResponse from "../models/licensing/v4/config/GetSettingApiResponse";
|
|
285
|
-
import ListClusterAllowancesApiResponse from "../models/licensing/v4/config/ListClusterAllowancesApiResponse";
|
|
282
|
+
import ListAllowancesApiResponse from "../models/licensing/v4/config/ListAllowancesApiResponse";
|
|
286
283
|
import ListCompliancesApiResponse from "../models/licensing/v4/config/ListCompliancesApiResponse";
|
|
287
|
-
import
|
|
284
|
+
import ListEntitlementsApiResponse from "../models/licensing/v4/config/ListEntitlementsApiResponse";
|
|
288
285
|
import ListFeaturesApiResponse from "../models/licensing/v4/config/ListFeaturesApiResponse";
|
|
289
286
|
import ListLicensesApiResponse from "../models/licensing/v4/config/ListLicensesApiResponse";
|
|
287
|
+
import ListRecommendationsApiResponse from "../models/licensing/v4/config/ListRecommendationsApiResponse";
|
|
290
288
|
import ListSettingsApiResponse from "../models/licensing/v4/config/ListSettingsApiResponse";
|
|
291
|
-
import
|
|
289
|
+
import ListViolationsApiResponse from "../models/licensing/v4/config/ListViolationsApiResponse";
|
|
290
|
+
import LicenseStateSyncSpec from "../models/licensing/v4/config/LicenseStateSyncSpec";
|
|
291
|
+
import SyncLicenseStateApiResponse from "../models/licensing/v4/config/SyncLicenseStateApiResponse";
|
|
292
292
|
import { ApiClient } from "../ApiClient";
|