@nutanix-scratch/licensing-js-client 4.0.1-alpha.1 → 4.1.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 +54 -36
- package/dist/Ntnx-Licensing-js-client-prod.js +1 -1
- package/dist/Ntnx-Licensing-js-client.js +506 -242
- package/dist/es/ApiClient.d.ts +14 -1
- package/dist/es/ApiClient.js +257 -206
- 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 +90 -0
- package/dist/es/apis/licensekeys-endpoints.js +283 -0
- package/dist/es/apis/licenses-endpoints.d.ts +60 -146
- package/dist/es/apis/licenses-endpoints.js +176 -362
- package/dist/es/index.d.ts +115 -67
- package/dist/es/index.js +348 -156
- 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 +24 -22
- package/dist/es/models/common/v1/config/TenantAwareModel.js +55 -23
- 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/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 +127 -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 +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/{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 +149 -0
- package/dist/es/models/licensing/v4/config/LicenseKey.js +623 -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 +60 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyProjection.js +366 -0
- package/dist/{lib/models/licensing/v4/config/EnforcementPolicyEnum.d.ts → es/models/licensing/v4/config/LicenseKeySubCategory.d.ts} +6 -6
- package/dist/es/models/licensing/v4/config/LicenseKeySubCategory.js +85 -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 +271 -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/{lib/models/licensing/v4/config/ListClusterViolationsApiResponse.js → es/models/licensing/v4/config/ListRecommendationsApiResponse.js} +90 -58
- 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 +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 +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/{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/{lib/models/licensing/v4/config/GetClusterEntitlementApiResponse.js → es/models/licensing/v4/config/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/{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 +59 -50
- package/dist/es/models/licensing/v4/error/AppMessage.js +65 -33
- package/dist/es/models/licensing/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/es/models/licensing/v4/error/ErrorResponse.js +64 -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 +14 -1
- package/dist/lib/ApiClient.js +257 -206
- 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 +90 -0
- package/dist/lib/apis/licensekeys-endpoints.js +283 -0
- package/dist/lib/apis/licenses-endpoints.d.ts +60 -146
- package/dist/lib/apis/licenses-endpoints.js +176 -362
- package/dist/lib/index.d.ts +115 -67
- package/dist/lib/index.js +348 -156
- 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 +24 -22
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +55 -23
- 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/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 +127 -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/{es/models/licensing/v4/config/ListClusterEntitlementsApiResponse.js → lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.js} +90 -63
- 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 +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/{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 +149 -0
- package/dist/lib/models/licensing/v4/config/LicenseKey.js +623 -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 +60 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.js +366 -0
- package/dist/{es/models/licensing/v4/config/EnforcementPolicyEnum.d.ts → lib/models/licensing/v4/config/LicenseKeySubCategory.d.ts} +6 -6
- package/dist/lib/models/licensing/v4/config/LicenseKeySubCategory.js +85 -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 +271 -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 +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 +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/{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/{es/models/licensing/v4/config/GetClusterEntitlementApiResponse.js → lib/models/licensing/v4/config/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/{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 +59 -50
- package/dist/lib/models/licensing/v4/error/AppMessage.js +65 -33
- package/dist/lib/models/licensing/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/lib/models/licensing/v4/error/ErrorResponse.js +64 -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 +4 -4
- 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/agreements/UpdateEulaApiResponse.d.ts +0 -59
- package/dist/es/models/licensing/v4/agreements/UpdateEulaApiResponse.js +0 -311
- 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.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/agreements/UpdateEulaApiResponse.d.ts +0 -59
- package/dist/lib/models/licensing/v4/agreements/UpdateEulaApiResponse.js +0 -311
- 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.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
|
@@ -6,47 +6,44 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.LicensesApi = void 0;
|
|
8
8
|
var _ApiClient = require("../ApiClient");
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
9
|
+
var _ListEntitlementsApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListEntitlementsApiResponse"));
|
|
10
|
+
var _ListLicensesApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListLicensesApiResponse"));
|
|
11
|
+
var _ListRecommendationsApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListRecommendationsApiResponse"));
|
|
12
12
|
var _ListSettingsApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListSettingsApiResponse"));
|
|
13
|
+
var _ListAllowancesApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListAllowancesApiResponse"));
|
|
14
|
+
var _ListViolationsApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListViolationsApiResponse"));
|
|
15
|
+
var _LicenseStateSyncSpec = _interopRequireDefault(require("../models/licensing/v4/config/LicenseStateSyncSpec"));
|
|
13
16
|
var _ListCompliancesApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListCompliancesApiResponse"));
|
|
14
|
-
var
|
|
17
|
+
var _SyncLicenseStateApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/SyncLicenseStateApiResponse"));
|
|
15
18
|
var _ListFeaturesApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListFeaturesApiResponse"));
|
|
16
|
-
|
|
17
|
-
var _ListClusterEntitlementsApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListClusterEntitlementsApiResponse"));
|
|
18
|
-
var _GetLicenseApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/GetLicenseApiResponse"));
|
|
19
|
-
var _ListLicensesApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/ListLicensesApiResponse"));
|
|
20
|
-
var _GetClusterAllowanceApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/GetClusterAllowanceApiResponse"));
|
|
21
|
-
var _GetClusterViolationApiResponse = _interopRequireDefault(require("../models/licensing/v4/config/GetClusterViolationApiResponse"));
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
23
20
|
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; }
|
|
24
21
|
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; }
|
|
25
|
-
function _defineProperty(
|
|
26
|
-
function _classCallCheck(
|
|
27
|
-
function _defineProperties(
|
|
28
|
-
function _createClass(
|
|
22
|
+
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; }
|
|
23
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
24
|
+
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); } }
|
|
25
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
29
26
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
30
27
|
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); }
|
|
31
|
-
function _classPrivateFieldInitSpec(
|
|
32
|
-
function _checkPrivateRedeclaration(
|
|
28
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
29
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
33
30
|
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
34
31
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
35
32
|
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"); } /*
|
|
36
|
-
* Nutanix Licensing
|
|
33
|
+
* Nutanix Licensing APIs
|
|
37
34
|
*
|
|
38
|
-
* OpenAPI spec version: 4.
|
|
35
|
+
* OpenAPI spec version: 4.1.1
|
|
39
36
|
*
|
|
40
37
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
41
38
|
*
|
|
42
|
-
* Open API Dev Platform Codegen version:
|
|
39
|
+
* Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
|
|
43
40
|
*
|
|
44
41
|
* Do not edit the class manually.
|
|
45
42
|
*
|
|
46
43
|
*/
|
|
47
44
|
/**
|
|
48
45
|
* Licenses service.
|
|
49
|
-
* @version 4.
|
|
46
|
+
* @version 4.1.1
|
|
50
47
|
* @class LicensesApi
|
|
51
48
|
*/
|
|
52
49
|
var _headersToSkip = /*#__PURE__*/new WeakMap();
|
|
@@ -70,259 +67,35 @@ var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
|
|
|
70
67
|
}
|
|
71
68
|
|
|
72
69
|
/**
|
|
73
|
-
*
|
|
74
|
-
* API to fetch allowances
|
|
75
|
-
* @param {
|
|
70
|
+
* List allowances
|
|
71
|
+
* API to fetch allowances.
|
|
72
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
73
|
+
* @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.
|
|
74
|
+
* @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.
|
|
75
|
+
* @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>
|
|
76
|
+
* 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'.
|
|
77
|
+
* @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.
|
|
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.
|
|
79
|
+
* @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.
|
|
76
80
|
* @param {Object} args Additional Arguments
|
|
77
|
-
* @return {Promise<
|
|
81
|
+
* @return {Promise<ListAllowancesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListAllowancesApiResponse } and HTTP response
|
|
78
82
|
*/
|
|
79
83
|
return _createClass(LicensesApi, [{
|
|
80
|
-
key: "getClusterAllowanceByClusterId",
|
|
81
|
-
value: function getClusterAllowanceByClusterId(extId) {
|
|
82
|
-
var _this = this;
|
|
83
|
-
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
84
|
-
var postBody = null;
|
|
85
|
-
// verify the required parameter 'extId' is set
|
|
86
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
87
|
-
throw new Error("Missing the required parameter 'extId' when calling getClusterAllowanceByClusterId");
|
|
88
|
-
}
|
|
89
|
-
var pathParams = {
|
|
90
|
-
'extId': extId
|
|
91
|
-
};
|
|
92
|
-
var queryParams = {};
|
|
93
|
-
var headersToInclude = {};
|
|
94
|
-
Object.keys(argMap).forEach(function (header) {
|
|
95
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
|
|
96
|
-
headersToInclude[header] = argMap[header];
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
100
|
-
var formParams = {};
|
|
101
|
-
var authNames = ['basicAuthScheme'];
|
|
102
|
-
var contentTypes = [];
|
|
103
|
-
var accepts = ['application/json'];
|
|
104
|
-
var returnType = _GetClusterAllowanceApiResponse["default"];
|
|
105
|
-
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/clusters/{extId}/allowances', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* List license entitlements for a cluster
|
|
110
|
-
* API to fetch entitlements for a particular cluster.
|
|
111
|
-
* @param { String } extId Prism Central or Prism Element UUID.
|
|
112
|
-
* @param {Object} args Additional Arguments
|
|
113
|
-
* @return {Promise<GetClusterEntitlementApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetClusterEntitlementApiResponse } and HTTP response
|
|
114
|
-
*/
|
|
115
|
-
}, {
|
|
116
|
-
key: "getClusterEntitlementByClusterId",
|
|
117
|
-
value: function getClusterEntitlementByClusterId(extId) {
|
|
118
|
-
var _this2 = this;
|
|
119
|
-
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
120
|
-
var postBody = null;
|
|
121
|
-
// verify the required parameter 'extId' is set
|
|
122
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
123
|
-
throw new Error("Missing the required parameter 'extId' when calling getClusterEntitlementByClusterId");
|
|
124
|
-
}
|
|
125
|
-
var pathParams = {
|
|
126
|
-
'extId': extId
|
|
127
|
-
};
|
|
128
|
-
var queryParams = {};
|
|
129
|
-
var headersToInclude = {};
|
|
130
|
-
Object.keys(argMap).forEach(function (header) {
|
|
131
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
|
|
132
|
-
headersToInclude[header] = argMap[header];
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
136
|
-
var formParams = {};
|
|
137
|
-
var authNames = ['basicAuthScheme'];
|
|
138
|
-
var contentTypes = [];
|
|
139
|
-
var accepts = ['application/json'];
|
|
140
|
-
var returnType = _GetClusterEntitlementApiResponse["default"];
|
|
141
|
-
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/clusters/{extId}/entitlements', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Get license violation for a cluster
|
|
146
|
-
* API to fetch violations for a particular cluster.
|
|
147
|
-
* @param { String } extId Prism Central or Prism Element UUID.
|
|
148
|
-
* @param {Object} args Additional Arguments
|
|
149
|
-
* @return {Promise<GetClusterViolationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetClusterViolationApiResponse } and HTTP response
|
|
150
|
-
*/
|
|
151
|
-
}, {
|
|
152
|
-
key: "getClusterViolationByClusterId",
|
|
153
|
-
value: function getClusterViolationByClusterId(extId) {
|
|
154
|
-
var _this3 = this;
|
|
155
|
-
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
156
|
-
var postBody = null;
|
|
157
|
-
// verify the required parameter 'extId' is set
|
|
158
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
159
|
-
throw new Error("Missing the required parameter 'extId' when calling getClusterViolationByClusterId");
|
|
160
|
-
}
|
|
161
|
-
var pathParams = {
|
|
162
|
-
'extId': extId
|
|
163
|
-
};
|
|
164
|
-
var queryParams = {};
|
|
165
|
-
var headersToInclude = {};
|
|
166
|
-
Object.keys(argMap).forEach(function (header) {
|
|
167
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this3).has(header.toLowerCase())) {
|
|
168
|
-
headersToInclude[header] = argMap[header];
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
172
|
-
var formParams = {};
|
|
173
|
-
var authNames = ['basicAuthScheme'];
|
|
174
|
-
var contentTypes = [];
|
|
175
|
-
var accepts = ['application/json'];
|
|
176
|
-
var returnType = _GetClusterViolationApiResponse["default"];
|
|
177
|
-
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/clusters/{extId}/violations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* List license compliances for a cluster
|
|
182
|
-
* API to fetch compliances for a particular cluster.
|
|
183
|
-
* @param { String } extId Prism Central or Prism Element UUID.
|
|
184
|
-
* @param {Object} args Additional Arguments
|
|
185
|
-
* @return {Promise<GetComplianceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetComplianceApiResponse } and HTTP response
|
|
186
|
-
*/
|
|
187
|
-
}, {
|
|
188
|
-
key: "getComplianceByClusterId",
|
|
189
|
-
value: function getComplianceByClusterId(extId) {
|
|
190
|
-
var _this4 = this;
|
|
191
|
-
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
192
|
-
var postBody = null;
|
|
193
|
-
// verify the required parameter 'extId' is set
|
|
194
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
195
|
-
throw new Error("Missing the required parameter 'extId' when calling getComplianceByClusterId");
|
|
196
|
-
}
|
|
197
|
-
var pathParams = {
|
|
198
|
-
'extId': extId
|
|
199
|
-
};
|
|
200
|
-
var queryParams = {};
|
|
201
|
-
var headersToInclude = {};
|
|
202
|
-
Object.keys(argMap).forEach(function (header) {
|
|
203
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this4).has(header.toLowerCase())) {
|
|
204
|
-
headersToInclude[header] = argMap[header];
|
|
205
|
-
}
|
|
206
|
-
});
|
|
207
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
208
|
-
var formParams = {};
|
|
209
|
-
var authNames = ['basicAuthScheme'];
|
|
210
|
-
var contentTypes = [];
|
|
211
|
-
var accepts = ['application/json'];
|
|
212
|
-
var returnType = _GetComplianceApiResponse["default"];
|
|
213
|
-
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/clusters/{extId}/compliance', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Get applied license inventory by license ID
|
|
218
|
-
* API to fetch license details for a particular license identifier.
|
|
219
|
-
* @param { String } extId License ID to be fetched, Example: LIC-01485985
|
|
220
|
-
* @param {Object} args Additional Arguments
|
|
221
|
-
* @return {Promise<GetLicenseApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetLicenseApiResponse } and HTTP response
|
|
222
|
-
*/
|
|
223
|
-
}, {
|
|
224
|
-
key: "getLicenseById",
|
|
225
|
-
value: function getLicenseById(extId) {
|
|
226
|
-
var _this5 = this;
|
|
227
|
-
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
228
|
-
var postBody = null;
|
|
229
|
-
// verify the required parameter 'extId' is set
|
|
230
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
231
|
-
throw new Error("Missing the required parameter 'extId' when calling getLicenseById");
|
|
232
|
-
}
|
|
233
|
-
var pathParams = {
|
|
234
|
-
'extId': extId
|
|
235
|
-
};
|
|
236
|
-
var queryParams = {};
|
|
237
|
-
var headersToInclude = {};
|
|
238
|
-
Object.keys(argMap).forEach(function (header) {
|
|
239
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {
|
|
240
|
-
headersToInclude[header] = argMap[header];
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
244
|
-
var formParams = {};
|
|
245
|
-
var authNames = ['basicAuthScheme'];
|
|
246
|
-
var contentTypes = [];
|
|
247
|
-
var accepts = ['application/json'];
|
|
248
|
-
var returnType = _GetLicenseApiResponse["default"];
|
|
249
|
-
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/licenses/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Get license configurations for a cluster
|
|
254
|
-
* API to fetch setting details for a particular cluster.
|
|
255
|
-
* @param { String } extId Prism Central or Prism Element UUID.
|
|
256
|
-
* @param {Object} args Additional Arguments
|
|
257
|
-
* @return {Promise<GetSettingApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetSettingApiResponse } and HTTP response
|
|
258
|
-
*/
|
|
259
|
-
}, {
|
|
260
|
-
key: "getSettingByClusterId",
|
|
261
|
-
value: function getSettingByClusterId(extId) {
|
|
262
|
-
var _this6 = this;
|
|
263
|
-
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
264
|
-
var postBody = null;
|
|
265
|
-
// verify the required parameter 'extId' is set
|
|
266
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
267
|
-
throw new Error("Missing the required parameter 'extId' when calling getSettingByClusterId");
|
|
268
|
-
}
|
|
269
|
-
var pathParams = {
|
|
270
|
-
'extId': extId
|
|
271
|
-
};
|
|
272
|
-
var queryParams = {};
|
|
273
|
-
var headersToInclude = {};
|
|
274
|
-
Object.keys(argMap).forEach(function (header) {
|
|
275
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this6).has(header.toLowerCase())) {
|
|
276
|
-
headersToInclude[header] = argMap[header];
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
280
|
-
var formParams = {};
|
|
281
|
-
var authNames = ['basicAuthScheme'];
|
|
282
|
-
var contentTypes = [];
|
|
283
|
-
var accepts = ['application/json'];
|
|
284
|
-
var returnType = _GetSettingApiResponse["default"];
|
|
285
|
-
return this.apiClient.callApi('/api/licensing/v4.0.a1/config/clusters/{extId}/settings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* List allowances
|
|
290
|
-
* API to fetch allowances.
|
|
291
|
-
* @param {Object} opts Optional parameters defined for the operation
|
|
292
|
-
* @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.
|
|
293
|
-
* @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.
|
|
294
|
-
* @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>
|
|
295
|
-
* 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>
|
|
296
|
-
* The filter can be applied to the following fields:<br>
|
|
297
|
-
* - clusterExtId<br>
|
|
298
|
-
* - extId<br>
|
|
299
|
-
* - isDeleted<br>
|
|
300
|
-
* - name<br>
|
|
301
|
-
* - type
|
|
302
|
-
* @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.
|
|
303
|
-
- allowanceDetails
|
|
304
|
-
* @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.
|
|
305
|
-
- clusterExtId
|
|
306
|
-
- extId
|
|
307
|
-
- name
|
|
308
|
-
- type
|
|
309
|
-
* @param {Object} args Additional Arguments
|
|
310
|
-
* @return {Promise<ListClusterAllowancesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListClusterAllowancesApiResponse } and HTTP response
|
|
311
|
-
*/
|
|
312
|
-
}, {
|
|
313
84
|
key: "listAllowances",
|
|
314
85
|
value: function listAllowances(opts) {
|
|
315
|
-
var
|
|
86
|
+
var _this = this;
|
|
316
87
|
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
317
88
|
opts = opts || {};
|
|
318
89
|
var postBody = null;
|
|
319
90
|
var pathParams = {};
|
|
320
|
-
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
91
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
321
92
|
'$page': opts['$page']
|
|
322
93
|
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
323
94
|
'$limit': opts['$limit']
|
|
324
95
|
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
325
96
|
'$filter': opts['$filter']
|
|
97
|
+
} : {}), opts.hasOwnProperty('$orderby') ? {
|
|
98
|
+
'$orderby': opts['$orderby']
|
|
326
99
|
} : {}), opts.hasOwnProperty('$expand') ? {
|
|
327
100
|
'$expand': opts['$expand']
|
|
328
101
|
} : {}), opts.hasOwnProperty('$select') ? {
|
|
@@ -330,53 +103,49 @@ var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
|
|
|
330
103
|
} : {});
|
|
331
104
|
var headersToInclude = {};
|
|
332
105
|
Object.keys(argMap).forEach(function (header) {
|
|
333
|
-
if (!_classPrivateFieldGet(_headersToSkip,
|
|
106
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
|
|
334
107
|
headersToInclude[header] = argMap[header];
|
|
335
108
|
}
|
|
336
109
|
});
|
|
337
110
|
var headerParams = _objectSpread({}, headersToInclude);
|
|
338
111
|
var formParams = {};
|
|
339
|
-
var authNames = ['basicAuthScheme'];
|
|
112
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
340
113
|
var contentTypes = [];
|
|
341
114
|
var accepts = ['application/json'];
|
|
342
|
-
var returnType =
|
|
343
|
-
return this.apiClient.callApi('/api/licensing/v4.
|
|
115
|
+
var returnType = _ListAllowancesApiResponse["default"];
|
|
116
|
+
return this.apiClient.callApi('/api/licensing/v4.1/config/allowances', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
344
117
|
}
|
|
345
118
|
|
|
346
119
|
/**
|
|
347
120
|
* List license compliances
|
|
348
|
-
* API to fetch list of compliances across clusters.
|
|
121
|
+
* API to fetch list of license compliances across clusters.
|
|
349
122
|
* @param {Object} opts Optional parameters defined for the operation
|
|
350
123
|
* @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.
|
|
351
124
|
* @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.
|
|
352
125
|
* @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>
|
|
353
|
-
* 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'
|
|
354
|
-
*
|
|
355
|
-
* -
|
|
356
|
-
* -
|
|
357
|
-
*
|
|
358
|
-
* @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.
|
|
359
|
-
- compliance
|
|
360
|
-
* @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.
|
|
361
|
-
- clusterExtId
|
|
362
|
-
- type
|
|
363
|
-
* @param {Object} args Additional Arguments
|
|
126
|
+
* 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'.
|
|
127
|
+
* @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.
|
|
128
|
+
* @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.
|
|
129
|
+
* @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.
|
|
130
|
+
* @param {Object} args Additional Arguments
|
|
364
131
|
* @return {Promise<ListCompliancesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListCompliancesApiResponse } and HTTP response
|
|
365
132
|
*/
|
|
366
133
|
}, {
|
|
367
134
|
key: "listCompliances",
|
|
368
135
|
value: function listCompliances(opts) {
|
|
369
|
-
var
|
|
136
|
+
var _this2 = this;
|
|
370
137
|
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
371
138
|
opts = opts || {};
|
|
372
139
|
var postBody = null;
|
|
373
140
|
var pathParams = {};
|
|
374
|
-
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
141
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
375
142
|
'$page': opts['$page']
|
|
376
143
|
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
377
144
|
'$limit': opts['$limit']
|
|
378
145
|
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
379
146
|
'$filter': opts['$filter']
|
|
147
|
+
} : {}), opts.hasOwnProperty('$orderby') ? {
|
|
148
|
+
'$orderby': opts['$orderby']
|
|
380
149
|
} : {}), opts.hasOwnProperty('$expand') ? {
|
|
381
150
|
'$expand': opts['$expand']
|
|
382
151
|
} : {}), opts.hasOwnProperty('$select') ? {
|
|
@@ -384,17 +153,17 @@ var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
|
|
|
384
153
|
} : {});
|
|
385
154
|
var headersToInclude = {};
|
|
386
155
|
Object.keys(argMap).forEach(function (header) {
|
|
387
|
-
if (!_classPrivateFieldGet(_headersToSkip,
|
|
156
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
|
|
388
157
|
headersToInclude[header] = argMap[header];
|
|
389
158
|
}
|
|
390
159
|
});
|
|
391
160
|
var headerParams = _objectSpread({}, headersToInclude);
|
|
392
161
|
var formParams = {};
|
|
393
|
-
var authNames = ['basicAuthScheme'];
|
|
162
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
394
163
|
var contentTypes = [];
|
|
395
164
|
var accepts = ['application/json'];
|
|
396
165
|
var returnType = _ListCompliancesApiResponse["default"];
|
|
397
|
-
return this.apiClient.callApi('/api/licensing/v4.
|
|
166
|
+
return this.apiClient.callApi('/api/licensing/v4.1/config/compliances', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
398
167
|
}
|
|
399
168
|
|
|
400
169
|
/**
|
|
@@ -404,37 +173,29 @@ var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
|
|
|
404
173
|
* @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.
|
|
405
174
|
* @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.
|
|
406
175
|
* @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>
|
|
407
|
-
* 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'
|
|
408
|
-
*
|
|
409
|
-
* -
|
|
410
|
-
* -
|
|
411
|
-
*
|
|
412
|
-
*
|
|
413
|
-
* - type
|
|
414
|
-
* @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.
|
|
415
|
-
- entitlementDetails
|
|
416
|
-
* @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.
|
|
417
|
-
- clusterExtId
|
|
418
|
-
- extId
|
|
419
|
-
- name
|
|
420
|
-
- type
|
|
421
|
-
* @param {Object} args Additional Arguments
|
|
422
|
-
* @return {Promise<ListClusterEntitlementsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListClusterEntitlementsApiResponse } and HTTP response
|
|
176
|
+
* 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'.
|
|
177
|
+
* @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.
|
|
178
|
+
* @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.
|
|
179
|
+
* @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.
|
|
180
|
+
* @param {Object} args Additional Arguments
|
|
181
|
+
* @return {Promise<ListEntitlementsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListEntitlementsApiResponse } and HTTP response
|
|
423
182
|
*/
|
|
424
183
|
}, {
|
|
425
184
|
key: "listEntitlements",
|
|
426
185
|
value: function listEntitlements(opts) {
|
|
427
|
-
var
|
|
186
|
+
var _this3 = this;
|
|
428
187
|
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
429
188
|
opts = opts || {};
|
|
430
189
|
var postBody = null;
|
|
431
190
|
var pathParams = {};
|
|
432
|
-
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
191
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
433
192
|
'$page': opts['$page']
|
|
434
193
|
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
435
194
|
'$limit': opts['$limit']
|
|
436
195
|
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
437
196
|
'$filter': opts['$filter']
|
|
197
|
+
} : {}), opts.hasOwnProperty('$orderby') ? {
|
|
198
|
+
'$orderby': opts['$orderby']
|
|
438
199
|
} : {}), opts.hasOwnProperty('$expand') ? {
|
|
439
200
|
'$expand': opts['$expand']
|
|
440
201
|
} : {}), opts.hasOwnProperty('$select') ? {
|
|
@@ -442,17 +203,17 @@ var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
|
|
|
442
203
|
} : {});
|
|
443
204
|
var headersToInclude = {};
|
|
444
205
|
Object.keys(argMap).forEach(function (header) {
|
|
445
|
-
if (!_classPrivateFieldGet(_headersToSkip,
|
|
206
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this3).has(header.toLowerCase())) {
|
|
446
207
|
headersToInclude[header] = argMap[header];
|
|
447
208
|
}
|
|
448
209
|
});
|
|
449
210
|
var headerParams = _objectSpread({}, headersToInclude);
|
|
450
211
|
var formParams = {};
|
|
451
|
-
var authNames = ['basicAuthScheme'];
|
|
212
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
452
213
|
var contentTypes = [];
|
|
453
214
|
var accepts = ['application/json'];
|
|
454
|
-
var returnType =
|
|
455
|
-
return this.apiClient.callApi('/api/licensing/v4.
|
|
215
|
+
var returnType = _ListEntitlementsApiResponse["default"];
|
|
216
|
+
return this.apiClient.callApi('/api/licensing/v4.1/config/entitlements', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
456
217
|
}
|
|
457
218
|
|
|
458
219
|
/**
|
|
@@ -462,34 +223,16 @@ var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
|
|
|
462
223
|
* @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.
|
|
463
224
|
* @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.
|
|
464
225
|
* @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>
|
|
465
|
-
* 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'
|
|
466
|
-
*
|
|
467
|
-
* - licenseCategory<br>
|
|
468
|
-
* - licenseSubCategory<br>
|
|
469
|
-
* - licenseType<br>
|
|
470
|
-
* - name<br>
|
|
471
|
-
* - scope<br>
|
|
472
|
-
* - type<br>
|
|
473
|
-
* - value
|
|
474
|
-
* @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>
|
|
475
|
-
* The orderby can be applied to the following fields:<br>
|
|
476
|
-
* - licenseCategory<br>
|
|
477
|
-
* - licenseType<br>
|
|
478
|
-
* - name
|
|
226
|
+
* 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'.
|
|
227
|
+
* @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.
|
|
479
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.
|
|
480
|
-
|
|
481
|
-
- licenseSubCategory
|
|
482
|
-
- licenseType
|
|
483
|
-
- name
|
|
484
|
-
- type
|
|
485
|
-
- value
|
|
486
|
-
* @param {Object} args Additional Arguments
|
|
229
|
+
* @param {Object} args Additional Arguments
|
|
487
230
|
* @return {Promise<ListFeaturesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListFeaturesApiResponse } and HTTP response
|
|
488
231
|
*/
|
|
489
232
|
}, {
|
|
490
233
|
key: "listFeatures",
|
|
491
234
|
value: function listFeatures(opts) {
|
|
492
|
-
var
|
|
235
|
+
var _this4 = this;
|
|
493
236
|
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
494
237
|
opts = opts || {};
|
|
495
238
|
var postBody = null;
|
|
@@ -507,58 +250,49 @@ var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
|
|
|
507
250
|
} : {});
|
|
508
251
|
var headersToInclude = {};
|
|
509
252
|
Object.keys(argMap).forEach(function (header) {
|
|
510
|
-
if (!_classPrivateFieldGet(_headersToSkip,
|
|
253
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this4).has(header.toLowerCase())) {
|
|
511
254
|
headersToInclude[header] = argMap[header];
|
|
512
255
|
}
|
|
513
256
|
});
|
|
514
257
|
var headerParams = _objectSpread({}, headersToInclude);
|
|
515
258
|
var formParams = {};
|
|
516
|
-
var authNames = ['basicAuthScheme'];
|
|
259
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
517
260
|
var contentTypes = [];
|
|
518
261
|
var accepts = ['application/json'];
|
|
519
262
|
var returnType = _ListFeaturesApiResponse["default"];
|
|
520
|
-
return this.apiClient.callApi('/api/licensing/v4.
|
|
263
|
+
return this.apiClient.callApi('/api/licensing/v4.1/config/features', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
521
264
|
}
|
|
522
265
|
|
|
523
266
|
/**
|
|
524
267
|
* List applied license inventory
|
|
525
|
-
* API to fetch
|
|
268
|
+
* API to fetch a list of licenses along with consumption details using expansion.
|
|
526
269
|
* @param {Object} opts Optional parameters defined for the operation
|
|
527
270
|
* @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.
|
|
528
271
|
* @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.
|
|
529
272
|
* @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>
|
|
530
|
-
* 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'
|
|
531
|
-
*
|
|
532
|
-
* -
|
|
533
|
-
* -
|
|
534
|
-
*
|
|
535
|
-
* - meter<br>
|
|
536
|
-
* - subCategory<br>
|
|
537
|
-
* - type
|
|
538
|
-
* @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.
|
|
539
|
-
- consumptionDetails
|
|
540
|
-
* @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.
|
|
541
|
-
- category
|
|
542
|
-
- meter
|
|
543
|
-
- subCategory
|
|
544
|
-
- type
|
|
545
|
-
* @param {Object} args Additional Arguments
|
|
273
|
+
* 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'.
|
|
274
|
+
* @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.
|
|
275
|
+
* @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.
|
|
276
|
+
* @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.
|
|
277
|
+
* @param {Object} args Additional Arguments
|
|
546
278
|
* @return {Promise<ListLicensesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListLicensesApiResponse } and HTTP response
|
|
547
279
|
*/
|
|
548
280
|
}, {
|
|
549
281
|
key: "listLicenses",
|
|
550
282
|
value: function listLicenses(opts) {
|
|
551
|
-
var
|
|
283
|
+
var _this5 = this;
|
|
552
284
|
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
553
285
|
opts = opts || {};
|
|
554
286
|
var postBody = null;
|
|
555
287
|
var pathParams = {};
|
|
556
|
-
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
288
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
557
289
|
'$page': opts['$page']
|
|
558
290
|
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
559
291
|
'$limit': opts['$limit']
|
|
560
292
|
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
561
293
|
'$filter': opts['$filter']
|
|
294
|
+
} : {}), opts.hasOwnProperty('$orderby') ? {
|
|
295
|
+
'$orderby': opts['$orderby']
|
|
562
296
|
} : {}), opts.hasOwnProperty('$expand') ? {
|
|
563
297
|
'$expand': opts['$expand']
|
|
564
298
|
} : {}), opts.hasOwnProperty('$select') ? {
|
|
@@ -566,22 +300,62 @@ var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
|
|
|
566
300
|
} : {});
|
|
567
301
|
var headersToInclude = {};
|
|
568
302
|
Object.keys(argMap).forEach(function (header) {
|
|
569
|
-
if (!_classPrivateFieldGet(_headersToSkip,
|
|
303
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {
|
|
570
304
|
headersToInclude[header] = argMap[header];
|
|
571
305
|
}
|
|
572
306
|
});
|
|
573
307
|
var headerParams = _objectSpread({}, headersToInclude);
|
|
574
308
|
var formParams = {};
|
|
575
|
-
var authNames = ['basicAuthScheme'];
|
|
309
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
576
310
|
var contentTypes = [];
|
|
577
311
|
var accepts = ['application/json'];
|
|
578
312
|
var returnType = _ListLicensesApiResponse["default"];
|
|
579
|
-
return this.apiClient.callApi('/api/licensing/v4.
|
|
313
|
+
return this.apiClient.callApi('/api/licensing/v4.1/config/licenses', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* List cluster and license recommendations
|
|
318
|
+
* Lists all the available licensing recommendations from the license portal.
|
|
319
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
320
|
+
* @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.
|
|
321
|
+
* @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.
|
|
322
|
+
* @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.
|
|
323
|
+
* @param {Object} args Additional Arguments
|
|
324
|
+
* @return {Promise<ListRecommendationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListRecommendationsApiResponse } and HTTP response
|
|
325
|
+
*/
|
|
326
|
+
}, {
|
|
327
|
+
key: "listRecommendations",
|
|
328
|
+
value: function listRecommendations(opts) {
|
|
329
|
+
var _this6 = this;
|
|
330
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
331
|
+
opts = opts || {};
|
|
332
|
+
var postBody = null;
|
|
333
|
+
var pathParams = {};
|
|
334
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
335
|
+
'$page': opts['$page']
|
|
336
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
337
|
+
'$limit': opts['$limit']
|
|
338
|
+
} : {}), opts.hasOwnProperty('$select') ? {
|
|
339
|
+
'$select': opts['$select']
|
|
340
|
+
} : {});
|
|
341
|
+
var headersToInclude = {};
|
|
342
|
+
Object.keys(argMap).forEach(function (header) {
|
|
343
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this6).has(header.toLowerCase())) {
|
|
344
|
+
headersToInclude[header] = argMap[header];
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
348
|
+
var formParams = {};
|
|
349
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
350
|
+
var contentTypes = [];
|
|
351
|
+
var accepts = ['application/json'];
|
|
352
|
+
var returnType = _ListRecommendationsApiResponse["default"];
|
|
353
|
+
return this.apiClient.callApi('/api/licensing/v4.1/config/recommendations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
580
354
|
}
|
|
581
355
|
|
|
582
356
|
/**
|
|
583
357
|
* List license configurations
|
|
584
|
-
* API to fetch settings list.
|
|
358
|
+
* API to fetch license settings list.
|
|
585
359
|
* @param {Object} opts Optional parameters defined for the operation
|
|
586
360
|
* @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.
|
|
587
361
|
* @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.
|
|
@@ -591,7 +365,7 @@ var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
|
|
|
591
365
|
}, {
|
|
592
366
|
key: "listSettings",
|
|
593
367
|
value: function listSettings(opts) {
|
|
594
|
-
var
|
|
368
|
+
var _this7 = this;
|
|
595
369
|
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
596
370
|
opts = opts || {};
|
|
597
371
|
var postBody = null;
|
|
@@ -603,32 +377,32 @@ var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
|
|
|
603
377
|
} : {});
|
|
604
378
|
var headersToInclude = {};
|
|
605
379
|
Object.keys(argMap).forEach(function (header) {
|
|
606
|
-
if (!_classPrivateFieldGet(_headersToSkip,
|
|
380
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this7).has(header.toLowerCase())) {
|
|
607
381
|
headersToInclude[header] = argMap[header];
|
|
608
382
|
}
|
|
609
383
|
});
|
|
610
384
|
var headerParams = _objectSpread({}, headersToInclude);
|
|
611
385
|
var formParams = {};
|
|
612
|
-
var authNames = ['basicAuthScheme'];
|
|
386
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
613
387
|
var contentTypes = [];
|
|
614
388
|
var accepts = ['application/json'];
|
|
615
389
|
var returnType = _ListSettingsApiResponse["default"];
|
|
616
|
-
return this.apiClient.callApi('/api/licensing/v4.
|
|
390
|
+
return this.apiClient.callApi('/api/licensing/v4.1/config/settings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
617
391
|
}
|
|
618
392
|
|
|
619
393
|
/**
|
|
620
394
|
* List license violations
|
|
621
|
-
* API to fetch violations list.
|
|
395
|
+
* API to fetch license violations list.
|
|
622
396
|
* @param {Object} opts Optional parameters defined for the operation
|
|
623
397
|
* @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.
|
|
624
398
|
* @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.
|
|
625
399
|
* @param {Object} args Additional Arguments
|
|
626
|
-
* @return {Promise<
|
|
400
|
+
* @return {Promise<ListViolationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListViolationsApiResponse } and HTTP response
|
|
627
401
|
*/
|
|
628
402
|
}, {
|
|
629
403
|
key: "listViolations",
|
|
630
404
|
value: function listViolations(opts) {
|
|
631
|
-
var
|
|
405
|
+
var _this8 = this;
|
|
632
406
|
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
633
407
|
opts = opts || {};
|
|
634
408
|
var postBody = null;
|
|
@@ -640,17 +414,57 @@ var LicensesApi = exports.LicensesApi = /*#__PURE__*/function () {
|
|
|
640
414
|
} : {});
|
|
641
415
|
var headersToInclude = {};
|
|
642
416
|
Object.keys(argMap).forEach(function (header) {
|
|
643
|
-
if (!_classPrivateFieldGet(_headersToSkip,
|
|
417
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this8).has(header.toLowerCase())) {
|
|
644
418
|
headersToInclude[header] = argMap[header];
|
|
645
419
|
}
|
|
646
420
|
});
|
|
647
421
|
var headerParams = _objectSpread({}, headersToInclude);
|
|
648
422
|
var formParams = {};
|
|
649
|
-
var authNames = ['basicAuthScheme'];
|
|
423
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
650
424
|
var contentTypes = [];
|
|
651
425
|
var accepts = ['application/json'];
|
|
652
|
-
var returnType =
|
|
653
|
-
return this.apiClient.callApi('/api/licensing/v4.
|
|
426
|
+
var returnType = _ListViolationsApiResponse["default"];
|
|
427
|
+
return this.apiClient.callApi('/api/licensing/v4.1/config/violations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Seamless licensing action
|
|
432
|
+
* API for seamless licensing actions like post the cluster summary file, apply license file, and others.
|
|
433
|
+
* @param { Partial<LicenseStateSyncSpec> } body specification
|
|
434
|
+
* @param {Object} args Additional Arguments
|
|
435
|
+
* @return {Promise<SyncLicenseStateApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link SyncLicenseStateApiResponse } and HTTP response
|
|
436
|
+
*/
|
|
437
|
+
}, {
|
|
438
|
+
key: "syncLicenseState",
|
|
439
|
+
value: function syncLicenseState(body) {
|
|
440
|
+
var _this9 = this;
|
|
441
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
442
|
+
var postBody = null;
|
|
443
|
+
if (body instanceof _LicenseStateSyncSpec["default"] && typeof body.toJson === 'function') {
|
|
444
|
+
postBody = body.toJson();
|
|
445
|
+
} else {
|
|
446
|
+
postBody = body;
|
|
447
|
+
}
|
|
448
|
+
// verify the required parameter 'body' is set
|
|
449
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
450
|
+
throw new Error("Invalid body when calling syncLicenseState");
|
|
451
|
+
}
|
|
452
|
+
var pathParams = {};
|
|
453
|
+
var queryParams = {};
|
|
454
|
+
var headersToInclude = {};
|
|
455
|
+
Object.keys(argMap).forEach(function (header) {
|
|
456
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this9).has(header.toLowerCase())) {
|
|
457
|
+
headersToInclude[header] = argMap[header];
|
|
458
|
+
}
|
|
459
|
+
});
|
|
460
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
461
|
+
var formParams = {};
|
|
462
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
463
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
464
|
+
var contentTypes = ['application/json'];
|
|
465
|
+
var accepts = ['application/json'];
|
|
466
|
+
var returnType = _SyncLicenseStateApiResponse["default"];
|
|
467
|
+
return this.apiClient.callApi('/api/licensing/v4.1/config/$actions/sync-license-state', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
654
468
|
}
|
|
655
469
|
}], [{
|
|
656
470
|
key: "ApiClient",
|