@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
|
@@ -1,74 +1,82 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The BaseLicenseInfo model module.
|
|
3
3
|
* @module Ntnx/BaseLicenseInfo
|
|
4
|
-
* @version 4.
|
|
4
|
+
* @version 4.1.1
|
|
5
5
|
* @class BaseLicenseInfo
|
|
6
|
+
* @extends ExternalizableAbstractModel
|
|
6
7
|
*/
|
|
7
8
|
export default class BaseLicenseInfo extends ExternalizableAbstractModel {
|
|
8
9
|
/**
|
|
9
|
-
* Returns Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate
|
|
10
|
-
* @return {}
|
|
10
|
+
* Returns Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate.
|
|
11
|
+
* @return {string}
|
|
11
12
|
*/
|
|
12
|
-
getName():
|
|
13
|
+
getName(): string;
|
|
13
14
|
/**
|
|
14
|
-
* Sets Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate
|
|
15
|
-
* @param {} name Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate
|
|
15
|
+
* Sets Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate.
|
|
16
|
+
* @param {string} name Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate.
|
|
16
17
|
*/
|
|
17
|
-
setName(name:
|
|
18
|
-
name:
|
|
18
|
+
setName(name: string): void;
|
|
19
|
+
name: string;
|
|
19
20
|
/**
|
|
20
|
-
* @return {}
|
|
21
|
+
* @return {LicenseType}
|
|
21
22
|
*/
|
|
22
|
-
getType():
|
|
23
|
+
getType(): LicenseType;
|
|
23
24
|
/**
|
|
24
|
-
* @param {} type
|
|
25
|
+
* @param {LicenseType} type
|
|
25
26
|
*/
|
|
26
|
-
setType(type:
|
|
27
|
-
type:
|
|
27
|
+
setType(type: LicenseType): void;
|
|
28
|
+
type: string;
|
|
28
29
|
/**
|
|
29
|
-
* @return {}
|
|
30
|
+
* @return {LicenseCategory}
|
|
30
31
|
*/
|
|
31
|
-
getCategory():
|
|
32
|
+
getCategory(): LicenseCategory;
|
|
32
33
|
/**
|
|
33
|
-
* @param {} category
|
|
34
|
+
* @param {LicenseCategory} category
|
|
34
35
|
*/
|
|
35
|
-
setCategory(category:
|
|
36
|
-
category:
|
|
36
|
+
setCategory(category: LicenseCategory): void;
|
|
37
|
+
category: string;
|
|
37
38
|
/**
|
|
38
|
-
* @return {}
|
|
39
|
+
* @return {SubCategory}
|
|
39
40
|
*/
|
|
40
|
-
getSubCategory():
|
|
41
|
+
getSubCategory(): SubCategory;
|
|
41
42
|
/**
|
|
42
|
-
* @param {} subCategory
|
|
43
|
+
* @param {SubCategory} subCategory
|
|
43
44
|
*/
|
|
44
|
-
setSubCategory(subCategory:
|
|
45
|
-
subCategory:
|
|
45
|
+
setSubCategory(subCategory: SubCategory): void;
|
|
46
|
+
subCategory: string;
|
|
46
47
|
/**
|
|
47
|
-
* Returns Indicates
|
|
48
|
-
* @return {}
|
|
48
|
+
* Returns Indicates the expiration date of the license.
|
|
49
|
+
* @return {Date}
|
|
49
50
|
*/
|
|
50
|
-
getExpiryDate():
|
|
51
|
+
getExpiryDate(): Date;
|
|
51
52
|
/**
|
|
52
|
-
* Sets Indicates
|
|
53
|
-
* @param {} expiryDate Indicates
|
|
53
|
+
* Sets Indicates the expiration date of the license.
|
|
54
|
+
* @param {Date} expiryDate Indicates the expiration date of the license.
|
|
54
55
|
*/
|
|
55
|
-
setExpiryDate(expiryDate:
|
|
56
|
-
expiryDate:
|
|
56
|
+
setExpiryDate(expiryDate: Date): void;
|
|
57
|
+
expiryDate: Date;
|
|
57
58
|
toJson(forMutation: any): {
|
|
58
|
-
$reserved:
|
|
59
|
-
$fv: string;
|
|
60
|
-
};
|
|
59
|
+
$reserved: any;
|
|
61
60
|
$objectType: string;
|
|
62
|
-
$unknownFields:
|
|
63
|
-
tenantId?:
|
|
64
|
-
links?:
|
|
65
|
-
|
|
61
|
+
$unknownFields: any;
|
|
62
|
+
tenantId?: string;
|
|
63
|
+
links?: {
|
|
64
|
+
$reserved: any;
|
|
65
|
+
$objectType: string;
|
|
66
|
+
$unknownFields: any;
|
|
67
|
+
rel?: string;
|
|
68
|
+
href?: string;
|
|
69
|
+
}[];
|
|
70
|
+
extId?: string;
|
|
66
71
|
expiryDate?: any;
|
|
67
|
-
subCategory?:
|
|
68
|
-
category?:
|
|
69
|
-
type?:
|
|
70
|
-
name?:
|
|
72
|
+
subCategory?: string;
|
|
73
|
+
category?: string;
|
|
74
|
+
type?: string;
|
|
75
|
+
name?: string;
|
|
71
76
|
};
|
|
72
77
|
#private;
|
|
73
78
|
}
|
|
74
79
|
import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel";
|
|
80
|
+
import LicenseType from "./LicenseType";
|
|
81
|
+
import LicenseCategory from "./LicenseCategory";
|
|
82
|
+
import SubCategory from "./SubCategory";
|
|
@@ -4,46 +4,48 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
+
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
7
8
|
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
8
9
|
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
10
|
+
var _LicenseCategory = _interopRequireDefault(require("./LicenseCategory"));
|
|
11
|
+
var _LicenseType = _interopRequireDefault(require("./LicenseType"));
|
|
12
|
+
var _SubCategory = _interopRequireDefault(require("./SubCategory"));
|
|
12
13
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
13
14
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
14
15
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
15
|
-
function _interopRequireDefault(
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
17
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
17
|
-
function _slicedToArray(
|
|
18
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
18
19
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19
|
-
function _unsupportedIterableToArray(
|
|
20
|
-
function _arrayLikeToArray(
|
|
20
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
21
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
21
22
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
22
|
-
function _arrayWithHoles(
|
|
23
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
23
24
|
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
25
|
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(
|
|
26
|
+
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; }
|
|
27
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
28
|
+
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); } }
|
|
29
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
29
30
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
30
31
|
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
32
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
32
|
-
function _possibleConstructorReturn(
|
|
33
|
-
function _assertThisInitialized(
|
|
33
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
34
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
34
35
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
35
|
-
function _getPrototypeOf(
|
|
36
|
-
function _inherits(
|
|
37
|
-
function _setPrototypeOf(
|
|
38
|
-
function _classPrivateMethodInitSpec(
|
|
39
|
-
function _checkPrivateRedeclaration(
|
|
40
|
-
|
|
36
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
37
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
38
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
39
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
40
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
41
|
+
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"); } /*
|
|
42
|
+
* Nutanix Licensing APIs
|
|
41
43
|
*
|
|
42
|
-
* OpenAPI spec version: 4.
|
|
44
|
+
* OpenAPI spec version: 4.1.1
|
|
43
45
|
*
|
|
44
46
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
45
47
|
*
|
|
46
|
-
* Open API Dev Platform Codegen version:
|
|
48
|
+
* Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
|
|
47
49
|
*
|
|
48
50
|
* Do not edit the class manually.
|
|
49
51
|
*
|
|
@@ -51,14 +53,15 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
|
51
53
|
/**
|
|
52
54
|
* The BaseLicenseInfo model module.
|
|
53
55
|
* @module Ntnx/BaseLicenseInfo
|
|
54
|
-
* @version 4.
|
|
56
|
+
* @version 4.1.1
|
|
55
57
|
* @class BaseLicenseInfo
|
|
58
|
+
* @extends ExternalizableAbstractModel
|
|
56
59
|
*/
|
|
57
60
|
var _BaseLicenseInfo_brand = /*#__PURE__*/new WeakSet();
|
|
58
61
|
var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
|
|
59
62
|
/**
|
|
60
63
|
* Constructs a new <code>BaseLicenseInfo</code>.
|
|
61
|
-
* Model containing base licensing attributes like name, type, category and others
|
|
64
|
+
* Model containing base licensing attributes like name, type, category and others.
|
|
62
65
|
* @alias module:Ntnx/BaseLicenseInfo
|
|
63
66
|
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
64
67
|
*/
|
|
@@ -74,9 +77,11 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
74
77
|
*/
|
|
75
78
|
_classPrivateMethodInitSpec(_this, _BaseLicenseInfo_brand);
|
|
76
79
|
_this.$objectType = "licensing.v4.config.BaseLicenseInfo";
|
|
80
|
+
/** @type {object<string, any>} */
|
|
77
81
|
_this.$reserved = {
|
|
78
|
-
'$fv': "v4.
|
|
82
|
+
'$fv': "v4.r1"
|
|
79
83
|
};
|
|
84
|
+
/** @type {object<string, any>} */
|
|
80
85
|
_this.$unknownFields = {};
|
|
81
86
|
return _this;
|
|
82
87
|
}
|
|
@@ -94,16 +99,16 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
94
99
|
key: "getName",
|
|
95
100
|
value:
|
|
96
101
|
/**
|
|
97
|
-
* Returns Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate
|
|
98
|
-
* @return {}
|
|
102
|
+
* Returns Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate.
|
|
103
|
+
* @return {string}
|
|
99
104
|
*/
|
|
100
105
|
function getName() {
|
|
101
106
|
return this.name;
|
|
102
107
|
}
|
|
103
108
|
|
|
104
109
|
/**
|
|
105
|
-
* Sets Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate
|
|
106
|
-
* @param {} name Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate
|
|
110
|
+
* Sets Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate.
|
|
111
|
+
* @param {string} name Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate.
|
|
107
112
|
*/
|
|
108
113
|
}, {
|
|
109
114
|
key: "setName",
|
|
@@ -112,7 +117,7 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
112
117
|
}
|
|
113
118
|
|
|
114
119
|
/**
|
|
115
|
-
* @return {}
|
|
120
|
+
* @return {LicenseType}
|
|
116
121
|
*/
|
|
117
122
|
}, {
|
|
118
123
|
key: "getType",
|
|
@@ -121,7 +126,7 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
121
126
|
}
|
|
122
127
|
|
|
123
128
|
/**
|
|
124
|
-
* @param {} type
|
|
129
|
+
* @param {LicenseType} type
|
|
125
130
|
*/
|
|
126
131
|
}, {
|
|
127
132
|
key: "setType",
|
|
@@ -130,7 +135,7 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
130
135
|
}
|
|
131
136
|
|
|
132
137
|
/**
|
|
133
|
-
* @return {}
|
|
138
|
+
* @return {LicenseCategory}
|
|
134
139
|
*/
|
|
135
140
|
}, {
|
|
136
141
|
key: "getCategory",
|
|
@@ -139,7 +144,7 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
139
144
|
}
|
|
140
145
|
|
|
141
146
|
/**
|
|
142
|
-
* @param {} category
|
|
147
|
+
* @param {LicenseCategory} category
|
|
143
148
|
*/
|
|
144
149
|
}, {
|
|
145
150
|
key: "setCategory",
|
|
@@ -148,7 +153,7 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
148
153
|
}
|
|
149
154
|
|
|
150
155
|
/**
|
|
151
|
-
* @return {}
|
|
156
|
+
* @return {SubCategory}
|
|
152
157
|
*/
|
|
153
158
|
}, {
|
|
154
159
|
key: "getSubCategory",
|
|
@@ -157,7 +162,7 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
157
162
|
}
|
|
158
163
|
|
|
159
164
|
/**
|
|
160
|
-
* @param {} subCategory
|
|
165
|
+
* @param {SubCategory} subCategory
|
|
161
166
|
*/
|
|
162
167
|
}, {
|
|
163
168
|
key: "setSubCategory",
|
|
@@ -166,8 +171,8 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
166
171
|
}
|
|
167
172
|
|
|
168
173
|
/**
|
|
169
|
-
* Returns Indicates
|
|
170
|
-
* @return {}
|
|
174
|
+
* Returns Indicates the expiration date of the license.
|
|
175
|
+
* @return {Date}
|
|
171
176
|
*/
|
|
172
177
|
}, {
|
|
173
178
|
key: "getExpiryDate",
|
|
@@ -176,8 +181,8 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
176
181
|
}
|
|
177
182
|
|
|
178
183
|
/**
|
|
179
|
-
* Sets Indicates
|
|
180
|
-
* @param {} expiryDate Indicates
|
|
184
|
+
* Sets Indicates the expiration date of the license.
|
|
185
|
+
* @param {Date} expiryDate Indicates the expiration date of the license.
|
|
181
186
|
*/
|
|
182
187
|
}, {
|
|
183
188
|
key: "setExpiryDate",
|
|
@@ -197,7 +202,7 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
197
202
|
} : {}), typeof this.getSubCategory() !== 'undefined' && this.getSubCategory() !== null ? {
|
|
198
203
|
'subCategory': this.getSubCategory()
|
|
199
204
|
} : {}), typeof this.getExpiryDate() !== 'undefined' && this.getExpiryDate() !== null ? {
|
|
200
|
-
'expiryDate': this.getExpiryDate()
|
|
205
|
+
'expiryDate': _assertClassBrand(_BaseLicenseInfo_brand, this, _handleDateType).call(this, this.getExpiryDate(), true)
|
|
201
206
|
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
202
207
|
'extId': this.getExtId()
|
|
203
208
|
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
@@ -212,7 +217,7 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
212
217
|
'$unknownFields': this.get$UnknownFields()
|
|
213
218
|
});
|
|
214
219
|
}
|
|
215
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(
|
|
220
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
216
221
|
'name': this.getName()
|
|
217
222
|
} : {}), typeof this.getType() !== 'undefined' && this.getType() !== null ? {
|
|
218
223
|
'type': this.getType()
|
|
@@ -221,9 +226,7 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
221
226
|
} : {}), typeof this.getSubCategory() !== 'undefined' && this.getSubCategory() !== null ? {
|
|
222
227
|
'subCategory': this.getSubCategory()
|
|
223
228
|
} : {}), typeof this.getExpiryDate() !== 'undefined' && this.getExpiryDate() !== null ? {
|
|
224
|
-
'expiryDate': this.getExpiryDate()
|
|
225
|
-
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
226
|
-
'extId': this.getExtId()
|
|
229
|
+
'expiryDate': _assertClassBrand(_BaseLicenseInfo_brand, this, _handleDateType).call(this, this.getExpiryDate(), true)
|
|
227
230
|
} : {}), {}, {
|
|
228
231
|
'$reserved': this.get$Reserved(),
|
|
229
232
|
'$objectType': this.get$ObjectType(),
|
|
@@ -297,7 +300,8 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
297
300
|
}
|
|
298
301
|
}], [{
|
|
299
302
|
key: "constructFromObject",
|
|
300
|
-
value: function constructFromObject(data
|
|
303
|
+
value: function constructFromObject(data) {
|
|
304
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
301
305
|
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
302
306
|
var items, item, i, itemArr, discriminator;
|
|
303
307
|
if (data) {
|
|
@@ -307,13 +311,13 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
307
311
|
obj.setName(data['name']);
|
|
308
312
|
}
|
|
309
313
|
if (data.hasOwnProperty('type') && data.type !== null && data.type !== undefined) {
|
|
310
|
-
obj.setType(
|
|
314
|
+
obj.setType(_LicenseType["default"].constructFromObject(data['type']));
|
|
311
315
|
}
|
|
312
316
|
if (data.hasOwnProperty('category') && data.category !== null && data.category !== undefined) {
|
|
313
|
-
obj.setCategory(
|
|
317
|
+
obj.setCategory(_LicenseCategory["default"].constructFromObject(data['category']));
|
|
314
318
|
}
|
|
315
319
|
if (data.hasOwnProperty('subCategory') && data.subCategory !== null && data.subCategory !== undefined) {
|
|
316
|
-
obj.setSubCategory(
|
|
320
|
+
obj.setSubCategory(_SubCategory["default"].constructFromObject(data['subCategory']));
|
|
317
321
|
}
|
|
318
322
|
if (data.hasOwnProperty('expiryDate') && data.expiryDate !== null && data.expiryDate !== undefined) {
|
|
319
323
|
obj.setExpiryDate(data['expiryDate']);
|
|
@@ -321,7 +325,11 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
321
325
|
if (!callFromChild) {
|
|
322
326
|
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
323
327
|
for (var property in data) {
|
|
324
|
-
if
|
|
328
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
329
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
330
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
331
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
332
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
325
333
|
obj.$unknownFields[property] = data[property];
|
|
326
334
|
}
|
|
327
335
|
}
|
|
@@ -329,10 +337,23 @@ var BaseLicenseInfo = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
329
337
|
}
|
|
330
338
|
return obj;
|
|
331
339
|
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Converts a given snake_case string to camelCase.
|
|
343
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
344
|
+
* @returns {string} - The converted string in camelCase format.
|
|
345
|
+
*/
|
|
346
|
+
}, {
|
|
347
|
+
key: "snakeToCamel",
|
|
348
|
+
value: function snakeToCamel(snakeStr) {
|
|
349
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
350
|
+
return match[1].toUpperCase();
|
|
351
|
+
});
|
|
352
|
+
}
|
|
332
353
|
}]);
|
|
333
354
|
}(_ExternalizableAbstractModel["default"]);
|
|
334
355
|
/**
|
|
335
|
-
* Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate
|
|
356
|
+
* Indicates name of the license. Possible values could be NCI Pro, NCM Ultimate.
|
|
336
357
|
* @memberof BaseLicenseInfo
|
|
337
358
|
*/
|
|
338
359
|
function _toJsonMapType(obj, forMutation) {
|
|
@@ -350,6 +371,18 @@ function _toJsonMapType(obj, forMutation) {
|
|
|
350
371
|
}
|
|
351
372
|
return obj;
|
|
352
373
|
}
|
|
374
|
+
/*
|
|
375
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
376
|
+
* @param {Object} obj Object to serialize
|
|
377
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
378
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
379
|
+
*/
|
|
380
|
+
function _handleDateType(obj, isDateOnly) {
|
|
381
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
382
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
383
|
+
}
|
|
384
|
+
return obj;
|
|
385
|
+
}
|
|
353
386
|
BaseLicenseInfo.prototype.name = undefined;
|
|
354
387
|
|
|
355
388
|
/**
|
|
@@ -368,7 +401,23 @@ BaseLicenseInfo.prototype.category = undefined;
|
|
|
368
401
|
BaseLicenseInfo.prototype.subCategory = undefined;
|
|
369
402
|
|
|
370
403
|
/**
|
|
371
|
-
* Indicates
|
|
404
|
+
* Indicates the expiration date of the license.
|
|
372
405
|
* @memberof BaseLicenseInfo
|
|
373
406
|
*/
|
|
374
|
-
BaseLicenseInfo.prototype.expiryDate = undefined;
|
|
407
|
+
BaseLicenseInfo.prototype.expiryDate = undefined;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
411
|
+
* @memberof BaseLicenseInfo
|
|
412
|
+
*/
|
|
413
|
+
_ExternalizableAbstractModel["default"].prototype.extId = undefined;
|
|
414
|
+
/**
|
|
415
|
+
* A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
|
|
416
|
+
* @memberof BaseLicenseInfo
|
|
417
|
+
*/
|
|
418
|
+
_ExternalizableAbstractModel["default"].prototype.links = undefined;
|
|
419
|
+
/**
|
|
420
|
+
* A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this ID to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
|
|
421
|
+
* @memberof BaseLicenseInfo
|
|
422
|
+
*/
|
|
423
|
+
_TenantAwareModel["default"].prototype.tenantId = undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default BillingPlan;
|
|
2
|
+
/**
|
|
3
|
+
* *
|
|
4
|
+
*/
|
|
5
|
+
type BillingPlan = string;
|
|
6
|
+
declare namespace BillingPlan {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a <code>BillingPlan</code> enum value from a JavaScript object name.
|
|
9
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
10
|
+
* @return {BillingPlan} The enum <code>BillingPlan</code> value.
|
|
11
|
+
*/
|
|
12
|
+
function constructFromObject(obj: any): string;
|
|
13
|
+
/**
|
|
14
|
+
* Validates <code>BillingPlan</code> enum value.
|
|
15
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
16
|
+
* @return {null} Throws error for invalid value.
|
|
17
|
+
*/
|
|
18
|
+
function validate(obj: any): null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
8
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
9
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
/*
|
|
12
|
+
* Nutanix Licensing APIs
|
|
13
|
+
*
|
|
14
|
+
* OpenAPI spec version: 4.1.1
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
17
|
+
*
|
|
18
|
+
* Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
|
|
19
|
+
*
|
|
20
|
+
* Do not edit the class manually.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Enum class BillingPlan.
|
|
26
|
+
* @enum {string}
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
var BillingPlan = {
|
|
30
|
+
/**
|
|
31
|
+
* Unknown value.
|
|
32
|
+
* @const
|
|
33
|
+
*/
|
|
34
|
+
$UNKNOWN: "$UNKNOWN",
|
|
35
|
+
/**
|
|
36
|
+
* Redacted value.
|
|
37
|
+
* @const
|
|
38
|
+
*/
|
|
39
|
+
$REDACTED: "$REDACTED",
|
|
40
|
+
/**
|
|
41
|
+
* Trial period for free.
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
FREE_TRIAL: "FREE_TRIAL",
|
|
45
|
+
/**
|
|
46
|
+
* Pay as you go billing plan.
|
|
47
|
+
* @const
|
|
48
|
+
*/
|
|
49
|
+
PAY_AS_YOU_GO: "PAY_AS_YOU_GO",
|
|
50
|
+
/**
|
|
51
|
+
* Cloud commit billing plan.
|
|
52
|
+
* @const
|
|
53
|
+
*/
|
|
54
|
+
CLOUD_COMMIT: "CLOUD_COMMIT"
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Returns a <code>BillingPlan</code> enum value from a JavaScript object name.
|
|
59
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
60
|
+
* @return {BillingPlan} The enum <code>BillingPlan</code> value.
|
|
61
|
+
*/
|
|
62
|
+
BillingPlan.constructFromObject = function (obj) {
|
|
63
|
+
if (typeof obj === 'string' || obj instanceof String) {
|
|
64
|
+
var enumVal = Object.keys(BillingPlan).find(function (key) {
|
|
65
|
+
return BillingPlan[key] === obj;
|
|
66
|
+
});
|
|
67
|
+
return enumVal === undefined || enumVal === null ? BillingPlan.$UNKNOWN : BillingPlan[enumVal];
|
|
68
|
+
} else {
|
|
69
|
+
throw new Error("Received object name is not an instance of String");
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Validates <code>BillingPlan</code> enum value.
|
|
75
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
76
|
+
* @return {null} Throws error for invalid value.
|
|
77
|
+
*/
|
|
78
|
+
BillingPlan.validate = function (obj) {
|
|
79
|
+
switch (obj) {
|
|
80
|
+
case BillingPlan.$UNKNOWN:
|
|
81
|
+
case BillingPlan.$REDACTED:
|
|
82
|
+
case BillingPlan.FREE_TRIAL:
|
|
83
|
+
case BillingPlan.PAY_AS_YOU_GO:
|
|
84
|
+
case BillingPlan.CLOUD_COMMIT:
|
|
85
|
+
return;
|
|
86
|
+
default:
|
|
87
|
+
throw new Error("Invalid : must be BillingPlan.{ $UNKNOWN|$REDACTED|FREE_TRIAL|PAY_AS_YOU_GO|CLOUD_COMMIT }");
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
Object.freeze(BillingPlan);
|
|
91
|
+
var _default = exports["default"] = BillingPlan;
|