@nutanix-scratch/licensing-js-client 4.2.1 → 4.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -3
- package/dist/Ntnx-Licensing-js-client-prod.js +1 -1
- package/dist/Ntnx-Licensing-js-client.js +633 -561
- package/dist/es/ApiClient.d.ts +29 -7
- package/dist/es/ApiClient.js +854 -667
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +144 -183
- package/dist/es/apis/enduserlicenseagreement-endpoints.d.ts +1 -1
- package/dist/es/apis/enduserlicenseagreement-endpoints.js +82 -99
- package/dist/es/apis/licensekeys-endpoints.d.ts +47 -2
- package/dist/es/apis/licensekeys-endpoints.js +360 -222
- package/dist/es/apis/licenses-endpoints.d.ts +6 -6
- package/dist/es/apis/licenses-endpoints.js +401 -381
- package/dist/es/index.d.ts +15 -3
- package/dist/es/index.js +387 -339
- package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/es/models/common/v1/config/Flag.js +170 -211
- package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/es/models/common/v1/config/KVPair.js +225 -270
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/es/models/common/v1/config/Message.d.ts +2 -10
- package/dist/es/models/common/v1/config/Message.js +213 -258
- package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
- package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
- package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/es/models/common/v1/response/ApiLink.js +165 -206
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
- package/dist/es/models/licensing/v4/agreements/Acceptance.d.ts +2 -16
- package/dist/es/models/licensing/v4/agreements/Acceptance.js +161 -203
- package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.d.ts +2 -43
- package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.js +209 -264
- package/dist/es/models/licensing/v4/agreements/EndUser.d.ts +2 -10
- package/dist/es/models/licensing/v4/agreements/EndUser.js +226 -271
- package/dist/es/models/licensing/v4/agreements/Eula.d.ts +1 -34
- package/dist/es/models/licensing/v4/agreements/Eula.js +230 -286
- package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +2 -43
- package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.js +187 -242
- package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +2 -46
- package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.js +190 -245
- package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +2 -72
- package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +194 -247
- package/dist/es/models/licensing/v4/config/Allowance.d.ts +1 -27
- package/dist/es/models/licensing/v4/config/Allowance.js +192 -241
- package/dist/es/models/licensing/v4/config/AllowanceDetail.d.ts +2 -10
- package/dist/es/models/licensing/v4/config/AllowanceDetail.js +217 -262
- package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.js +74 -103
- package/dist/es/models/licensing/v4/config/AllowanceProjection.d.ts +1 -36
- package/dist/es/models/licensing/v4/config/AllowanceProjection.js +155 -198
- package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +2 -46
- package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +209 -264
- package/dist/es/models/licensing/v4/config/{LicenseKeyAssociationSpec.d.ts → AssociateLicenseKeySpec.d.ts} +11 -24
- package/dist/es/models/licensing/v4/config/AssociateLicenseKeySpec.js +253 -0
- package/dist/es/models/licensing/v4/config/AssociateLicenseKeysApiResponse.d.ts +58 -0
- package/dist/es/models/licensing/v4/config/AssociateLicenseKeysApiResponse.js +310 -0
- package/dist/es/models/licensing/v4/config/AssociationType.js +7 -9
- package/dist/es/models/licensing/v4/config/BaseClusterInfo.d.ts +1 -16
- package/dist/es/models/licensing/v4/config/BaseClusterInfo.js +123 -166
- package/dist/es/models/licensing/v4/config/BaseLicenseInfo.d.ts +1 -20
- package/dist/es/models/licensing/v4/config/BaseLicenseInfo.js +223 -273
- package/dist/es/models/licensing/v4/config/BillingPlan.js +7 -9
- package/dist/es/models/licensing/v4/config/CapacityViolation.d.ts +2 -10
- package/dist/es/models/licensing/v4/config/CapacityViolation.js +210 -255
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +1 -9
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.js +131 -170
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +73 -102
- package/dist/es/models/licensing/v4/config/ClusterType.js +14 -10
- package/dist/es/models/licensing/v4/config/Compliance.d.ts +1 -35
- package/dist/es/models/licensing/v4/config/Compliance.js +192 -241
- package/dist/es/models/licensing/v4/config/ComplianceProjection.d.ts +1 -52
- package/dist/es/models/licensing/v4/config/ComplianceProjection.js +155 -198
- package/dist/es/models/licensing/v4/config/Consumption.d.ts +2 -8
- package/dist/es/models/licensing/v4/config/Consumption.js +168 -209
- package/dist/es/models/licensing/v4/config/ConsumptionProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ConsumptionProjection.js +74 -103
- package/dist/es/models/licensing/v4/config/ConsumptionType.js +7 -9
- package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +2 -43
- package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +190 -245
- package/dist/es/models/licensing/v4/config/DryRunCheck.d.ts +2 -18
- package/dist/es/models/licensing/v4/config/DryRunCheck.js +173 -224
- package/dist/es/models/licensing/v4/config/DryRunStatus.js +7 -9
- package/dist/es/models/licensing/v4/config/DryRunValidationResult.d.ts +2 -23
- package/dist/es/models/licensing/v4/config/DryRunValidationResult.js +154 -207
- package/dist/es/models/licensing/v4/config/EnforcementActions.js +7 -9
- package/dist/es/models/licensing/v4/config/EnforcementLevel.js +7 -9
- package/dist/es/models/licensing/v4/config/EnforcementPolicy.js +7 -9
- package/dist/es/models/licensing/v4/config/Entitlement.d.ts +1 -33
- package/dist/es/models/licensing/v4/config/Entitlement.js +245 -298
- package/dist/es/models/licensing/v4/config/EntitlementDetail.d.ts +2 -14
- package/dist/es/models/licensing/v4/config/EntitlementDetail.js +308 -361
- package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.js +74 -103
- package/dist/es/models/licensing/v4/config/EntitlementProjection.d.ts +1 -46
- package/dist/es/models/licensing/v4/config/EntitlementProjection.js +165 -204
- package/dist/es/models/licensing/v4/config/ExpiredLicense.d.ts +1 -23
- package/dist/es/models/licensing/v4/config/ExpiredLicense.js +203 -239
- package/dist/es/models/licensing/v4/config/Feature.d.ts +1 -22
- package/dist/es/models/licensing/v4/config/Feature.js +285 -343
- package/dist/es/models/licensing/v4/config/FeatureDetail.d.ts +2 -9
- package/dist/es/models/licensing/v4/config/FeatureDetail.js +198 -241
- package/dist/es/models/licensing/v4/config/FeatureProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/FeatureProjection.js +74 -103
- package/dist/es/models/licensing/v4/config/FeatureViolation.d.ts +1 -10
- package/dist/es/models/licensing/v4/config/FeatureViolation.js +136 -173
- package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +2 -43
- package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.js +187 -242
- package/dist/es/models/licensing/v4/config/License.d.ts +1 -31
- package/dist/es/models/licensing/v4/config/License.js +262 -306
- package/dist/es/models/licensing/v4/config/LicenseCategory.js +14 -10
- package/dist/es/models/licensing/v4/config/LicenseClass.js +7 -9
- package/dist/es/models/licensing/v4/config/LicenseKey.d.ts +1 -42
- package/dist/es/models/licensing/v4/config/LicenseKey.js +410 -483
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignment.d.ts +2 -14
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignment.js +178 -223
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignmentSpec.d.ts +2 -19
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignmentSpec.js +152 -195
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociation.d.ts +2 -10
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociation.js +215 -261
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociationProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociationProjection.js +73 -102
- package/dist/es/models/licensing/v4/config/LicenseKeyMapping.d.ts +2 -8
- package/dist/es/models/licensing/v4/config/LicenseKeyMapping.js +168 -209
- package/dist/es/models/licensing/v4/config/LicenseKeyProjection.d.ts +1 -61
- package/dist/es/models/licensing/v4/config/LicenseKeyProjection.js +217 -254
- package/dist/es/models/licensing/v4/config/LicenseKeySubCategory.js +7 -9
- package/dist/es/models/licensing/v4/config/LicenseProjection.d.ts +1 -38
- package/dist/es/models/licensing/v4/config/LicenseProjection.js +187 -217
- package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +2 -9
- package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.js +203 -246
- package/dist/es/models/licensing/v4/config/LicenseType.js +7 -9
- package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +2 -43
- package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.js +213 -268
- package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +2 -43
- package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.js +213 -268
- package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +2 -43
- package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.js +213 -268
- package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +2 -43
- package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.js +213 -268
- package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +2 -43
- package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.js +213 -268
- package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.d.ts +2 -43
- package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.js +213 -268
- package/dist/es/models/licensing/v4/config/ListReclaimLicenseTokensApiResponse.d.ts +59 -0
- package/dist/es/models/licensing/v4/config/ListReclaimLicenseTokensApiResponse.js +315 -0
- package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +2 -43
- package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.js +209 -264
- package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.d.ts +2 -43
- package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.js +209 -264
- package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.d.ts +2 -43
- package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.js +209 -264
- package/dist/es/models/licensing/v4/config/LogicalVersion.d.ts +2 -8
- package/dist/es/models/licensing/v4/config/LogicalVersion.js +166 -207
- package/dist/es/models/licensing/v4/config/Meter.js +7 -9
- package/dist/es/models/licensing/v4/config/OperationType.js +7 -9
- package/dist/es/models/licensing/v4/config/PortalSetting.d.ts +2 -9
- package/dist/es/models/licensing/v4/config/PortalSetting.js +194 -238
- package/dist/es/models/licensing/v4/config/PostPaidCategory.js +7 -9
- package/dist/es/models/licensing/v4/config/PostPaidConfig.d.ts +2 -11
- package/dist/es/models/licensing/v4/config/PostPaidConfig.js +237 -284
- package/dist/es/models/licensing/v4/config/ProductName.js +15 -11
- package/dist/es/models/licensing/v4/config/ReclaimLicenseKeyApiResponse.d.ts +58 -0
- package/dist/es/models/licensing/v4/config/ReclaimLicenseKeyApiResponse.js +310 -0
- package/dist/es/models/licensing/v4/config/ReclaimLicenseKeySpec.d.ts +59 -0
- package/dist/es/models/licensing/v4/config/ReclaimLicenseKeySpec.js +248 -0
- package/dist/es/models/licensing/v4/config/ReclaimLicenseToken.d.ts +57 -0
- package/dist/es/models/licensing/v4/config/ReclaimLicenseToken.js +342 -0
- package/dist/es/models/licensing/v4/config/ReclaimLicenseTokenProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/ReclaimLicenseTokenProjection.js +123 -0
- package/dist/es/models/licensing/v4/config/ReclaimType.js +7 -9
- package/dist/es/models/licensing/v4/config/Recommendation.d.ts +1 -25
- package/dist/es/models/licensing/v4/config/Recommendation.js +136 -182
- package/dist/es/models/licensing/v4/config/RecommendationDetail.d.ts +2 -11
- package/dist/es/models/licensing/v4/config/RecommendationDetail.js +241 -288
- package/dist/es/models/licensing/v4/config/RecommendationScope.js +7 -9
- package/dist/es/models/licensing/v4/config/ResetScope.js +7 -9
- package/dist/es/models/licensing/v4/config/Scope.js +7 -9
- package/dist/es/models/licensing/v4/config/Service.d.ts +2 -18
- package/dist/es/models/licensing/v4/config/Service.js +278 -331
- package/dist/es/models/licensing/v4/config/ServiceProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/ServiceProjection.js +74 -103
- package/dist/es/models/licensing/v4/config/ServiceViolation.d.ts +2 -8
- package/dist/es/models/licensing/v4/config/ServiceViolation.js +164 -205
- package/dist/es/models/licensing/v4/config/ServiceViolationType.js +7 -9
- package/dist/es/models/licensing/v4/config/Setting.d.ts +1 -40
- package/dist/es/models/licensing/v4/config/Setting.js +325 -382
- package/dist/es/models/licensing/v4/config/Status.js +7 -9
- package/dist/es/models/licensing/v4/config/SubCategory.js +7 -9
- package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +2 -43
- package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.js +187 -242
- package/dist/es/models/licensing/v4/config/SyncOperationType.js +7 -9
- package/dist/es/models/licensing/v4/config/Trial.d.ts +1 -20
- package/dist/es/models/licensing/v4/config/Trial.js +218 -270
- package/dist/es/models/licensing/v4/config/TrialCategory.js +7 -9
- package/dist/es/models/licensing/v4/config/TrialProjection.d.ts +1 -1
- package/dist/es/models/licensing/v4/config/TrialProjection.js +74 -103
- package/dist/es/models/licensing/v4/config/TrialStatus.js +7 -9
- package/dist/es/models/licensing/v4/config/TrialType.js +7 -9
- package/dist/es/models/licensing/v4/config/ValueType.js +7 -9
- package/dist/es/models/licensing/v4/config/Violation.d.ts +1 -56
- package/dist/es/models/licensing/v4/config/Violation.js +211 -268
- package/dist/es/models/licensing/v4/error/AppMessage.d.ts +2 -12
- package/dist/es/models/licensing/v4/error/AppMessage.js +264 -313
- package/dist/es/models/licensing/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/es/models/licensing/v4/error/ErrorResponse.js +178 -218
- package/dist/es/models/licensing/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/es/models/licensing/v4/error/SchemaValidationError.js +249 -300
- package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/es/models/validation/ValidationError.js +26 -42
- package/dist/es/models/validation/ValidationScopes.js +3 -3
- package/dist/es/utils/ValidationUtils.js +39 -69
- package/dist/lib/ApiClient.d.ts +29 -7
- package/dist/lib/ApiClient.js +854 -667
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +144 -183
- package/dist/lib/apis/enduserlicenseagreement-endpoints.d.ts +1 -1
- package/dist/lib/apis/enduserlicenseagreement-endpoints.js +82 -99
- package/dist/lib/apis/licensekeys-endpoints.d.ts +47 -2
- package/dist/lib/apis/licensekeys-endpoints.js +360 -222
- package/dist/lib/apis/licenses-endpoints.d.ts +6 -6
- package/dist/lib/apis/licenses-endpoints.js +401 -381
- package/dist/lib/index.d.ts +15 -3
- package/dist/lib/index.js +387 -339
- package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/lib/models/common/v1/config/Flag.js +170 -211
- package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/lib/models/common/v1/config/KVPair.js +225 -270
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
- package/dist/lib/models/common/v1/config/Message.js +213 -258
- package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
- package/dist/lib/models/licensing/v4/agreements/Acceptance.d.ts +2 -16
- package/dist/lib/models/licensing/v4/agreements/Acceptance.js +161 -203
- package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.d.ts +2 -43
- package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.js +209 -264
- package/dist/lib/models/licensing/v4/agreements/EndUser.d.ts +2 -10
- package/dist/lib/models/licensing/v4/agreements/EndUser.js +226 -271
- package/dist/lib/models/licensing/v4/agreements/Eula.d.ts +1 -34
- package/dist/lib/models/licensing/v4/agreements/Eula.js +230 -286
- package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +2 -43
- package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.js +187 -242
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +2 -46
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.js +190 -245
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +2 -72
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +194 -247
- package/dist/lib/models/licensing/v4/config/Allowance.d.ts +1 -27
- package/dist/lib/models/licensing/v4/config/Allowance.js +192 -241
- package/dist/lib/models/licensing/v4/config/AllowanceDetail.d.ts +2 -10
- package/dist/lib/models/licensing/v4/config/AllowanceDetail.js +217 -262
- package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.js +74 -103
- package/dist/lib/models/licensing/v4/config/AllowanceProjection.d.ts +1 -36
- package/dist/lib/models/licensing/v4/config/AllowanceProjection.js +155 -198
- package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +2 -46
- package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +209 -264
- package/dist/lib/models/licensing/v4/config/{LicenseKeyAssociationSpec.d.ts → AssociateLicenseKeySpec.d.ts} +11 -24
- package/dist/lib/models/licensing/v4/config/AssociateLicenseKeySpec.js +253 -0
- package/dist/lib/models/licensing/v4/config/AssociateLicenseKeysApiResponse.d.ts +58 -0
- package/dist/lib/models/licensing/v4/config/AssociateLicenseKeysApiResponse.js +310 -0
- package/dist/lib/models/licensing/v4/config/AssociationType.js +7 -9
- package/dist/lib/models/licensing/v4/config/BaseClusterInfo.d.ts +1 -16
- package/dist/lib/models/licensing/v4/config/BaseClusterInfo.js +123 -166
- package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.d.ts +1 -20
- package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.js +223 -273
- package/dist/lib/models/licensing/v4/config/BillingPlan.js +7 -9
- package/dist/lib/models/licensing/v4/config/CapacityViolation.d.ts +2 -10
- package/dist/lib/models/licensing/v4/config/CapacityViolation.js +210 -255
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +1 -9
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.js +131 -170
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +73 -102
- package/dist/lib/models/licensing/v4/config/ClusterType.js +14 -10
- package/dist/lib/models/licensing/v4/config/Compliance.d.ts +1 -35
- package/dist/lib/models/licensing/v4/config/Compliance.js +192 -241
- package/dist/lib/models/licensing/v4/config/ComplianceProjection.d.ts +1 -52
- package/dist/lib/models/licensing/v4/config/ComplianceProjection.js +155 -198
- package/dist/lib/models/licensing/v4/config/Consumption.d.ts +2 -8
- package/dist/lib/models/licensing/v4/config/Consumption.js +168 -209
- package/dist/lib/models/licensing/v4/config/ConsumptionProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ConsumptionProjection.js +74 -103
- package/dist/lib/models/licensing/v4/config/ConsumptionType.js +7 -9
- package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +2 -43
- package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +190 -245
- package/dist/lib/models/licensing/v4/config/DryRunCheck.d.ts +2 -18
- package/dist/lib/models/licensing/v4/config/DryRunCheck.js +173 -224
- package/dist/lib/models/licensing/v4/config/DryRunStatus.js +7 -9
- package/dist/lib/models/licensing/v4/config/DryRunValidationResult.d.ts +2 -23
- package/dist/lib/models/licensing/v4/config/DryRunValidationResult.js +154 -207
- package/dist/lib/models/licensing/v4/config/EnforcementActions.js +7 -9
- package/dist/lib/models/licensing/v4/config/EnforcementLevel.js +7 -9
- package/dist/lib/models/licensing/v4/config/EnforcementPolicy.js +7 -9
- package/dist/lib/models/licensing/v4/config/Entitlement.d.ts +1 -33
- package/dist/lib/models/licensing/v4/config/Entitlement.js +245 -298
- package/dist/lib/models/licensing/v4/config/EntitlementDetail.d.ts +2 -14
- package/dist/lib/models/licensing/v4/config/EntitlementDetail.js +308 -361
- package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.js +74 -103
- package/dist/lib/models/licensing/v4/config/EntitlementProjection.d.ts +1 -46
- package/dist/lib/models/licensing/v4/config/EntitlementProjection.js +165 -204
- package/dist/lib/models/licensing/v4/config/ExpiredLicense.d.ts +1 -23
- package/dist/lib/models/licensing/v4/config/ExpiredLicense.js +203 -239
- package/dist/lib/models/licensing/v4/config/Feature.d.ts +1 -22
- package/dist/lib/models/licensing/v4/config/Feature.js +285 -343
- package/dist/lib/models/licensing/v4/config/FeatureDetail.d.ts +2 -9
- package/dist/lib/models/licensing/v4/config/FeatureDetail.js +198 -241
- package/dist/lib/models/licensing/v4/config/FeatureProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/FeatureProjection.js +74 -103
- package/dist/lib/models/licensing/v4/config/FeatureViolation.d.ts +1 -10
- package/dist/lib/models/licensing/v4/config/FeatureViolation.js +136 -173
- package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +2 -43
- package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.js +187 -242
- package/dist/lib/models/licensing/v4/config/License.d.ts +1 -31
- package/dist/lib/models/licensing/v4/config/License.js +262 -306
- package/dist/lib/models/licensing/v4/config/LicenseCategory.js +14 -10
- package/dist/lib/models/licensing/v4/config/LicenseClass.js +7 -9
- package/dist/lib/models/licensing/v4/config/LicenseKey.d.ts +1 -42
- package/dist/lib/models/licensing/v4/config/LicenseKey.js +410 -483
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignment.d.ts +2 -14
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignment.js +178 -223
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignmentSpec.d.ts +2 -19
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignmentSpec.js +152 -195
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociation.d.ts +2 -10
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociation.js +215 -261
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationProjection.js +73 -102
- package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.d.ts +2 -8
- package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.js +168 -209
- package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.d.ts +1 -61
- package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.js +217 -254
- package/dist/lib/models/licensing/v4/config/LicenseKeySubCategory.js +7 -9
- package/dist/lib/models/licensing/v4/config/LicenseProjection.d.ts +1 -38
- package/dist/lib/models/licensing/v4/config/LicenseProjection.js +187 -217
- package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +2 -9
- package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.js +203 -246
- package/dist/lib/models/licensing/v4/config/LicenseType.js +7 -9
- package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +2 -43
- package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.js +213 -268
- package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +2 -43
- package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.js +213 -268
- package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +2 -43
- package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.js +213 -268
- package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +2 -43
- package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.js +213 -268
- package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +2 -43
- package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.js +213 -268
- package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.d.ts +2 -43
- package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.js +213 -268
- package/dist/lib/models/licensing/v4/config/ListReclaimLicenseTokensApiResponse.d.ts +59 -0
- package/dist/lib/models/licensing/v4/config/ListReclaimLicenseTokensApiResponse.js +315 -0
- package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +2 -43
- package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.js +209 -264
- package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.d.ts +2 -43
- package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.js +209 -264
- package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.d.ts +2 -43
- package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.js +209 -264
- package/dist/lib/models/licensing/v4/config/LogicalVersion.d.ts +2 -8
- package/dist/lib/models/licensing/v4/config/LogicalVersion.js +166 -207
- package/dist/lib/models/licensing/v4/config/Meter.js +7 -9
- package/dist/lib/models/licensing/v4/config/OperationType.js +7 -9
- package/dist/lib/models/licensing/v4/config/PortalSetting.d.ts +2 -9
- package/dist/lib/models/licensing/v4/config/PortalSetting.js +194 -238
- package/dist/lib/models/licensing/v4/config/PostPaidCategory.js +7 -9
- package/dist/lib/models/licensing/v4/config/PostPaidConfig.d.ts +2 -11
- package/dist/lib/models/licensing/v4/config/PostPaidConfig.js +237 -284
- package/dist/lib/models/licensing/v4/config/ProductName.js +15 -11
- package/dist/lib/models/licensing/v4/config/ReclaimLicenseKeyApiResponse.d.ts +58 -0
- package/dist/lib/models/licensing/v4/config/ReclaimLicenseKeyApiResponse.js +310 -0
- package/dist/lib/models/licensing/v4/config/ReclaimLicenseKeySpec.d.ts +59 -0
- package/dist/lib/models/licensing/v4/config/ReclaimLicenseKeySpec.js +248 -0
- package/dist/lib/models/licensing/v4/config/ReclaimLicenseToken.d.ts +57 -0
- package/dist/lib/models/licensing/v4/config/ReclaimLicenseToken.js +342 -0
- package/dist/lib/models/licensing/v4/config/ReclaimLicenseTokenProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/ReclaimLicenseTokenProjection.js +123 -0
- package/dist/lib/models/licensing/v4/config/ReclaimType.js +7 -9
- package/dist/lib/models/licensing/v4/config/Recommendation.d.ts +1 -25
- package/dist/lib/models/licensing/v4/config/Recommendation.js +136 -182
- package/dist/lib/models/licensing/v4/config/RecommendationDetail.d.ts +2 -11
- package/dist/lib/models/licensing/v4/config/RecommendationDetail.js +241 -288
- package/dist/lib/models/licensing/v4/config/RecommendationScope.js +7 -9
- package/dist/lib/models/licensing/v4/config/ResetScope.js +7 -9
- package/dist/lib/models/licensing/v4/config/Scope.js +7 -9
- package/dist/lib/models/licensing/v4/config/Service.d.ts +2 -18
- package/dist/lib/models/licensing/v4/config/Service.js +278 -331
- package/dist/lib/models/licensing/v4/config/ServiceProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/ServiceProjection.js +74 -103
- package/dist/lib/models/licensing/v4/config/ServiceViolation.d.ts +2 -8
- package/dist/lib/models/licensing/v4/config/ServiceViolation.js +164 -205
- package/dist/lib/models/licensing/v4/config/ServiceViolationType.js +7 -9
- package/dist/lib/models/licensing/v4/config/Setting.d.ts +1 -40
- package/dist/lib/models/licensing/v4/config/Setting.js +325 -382
- package/dist/lib/models/licensing/v4/config/Status.js +7 -9
- package/dist/lib/models/licensing/v4/config/SubCategory.js +7 -9
- package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +2 -43
- package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.js +187 -242
- package/dist/lib/models/licensing/v4/config/SyncOperationType.js +7 -9
- package/dist/lib/models/licensing/v4/config/Trial.d.ts +1 -20
- package/dist/lib/models/licensing/v4/config/Trial.js +218 -270
- package/dist/lib/models/licensing/v4/config/TrialCategory.js +7 -9
- package/dist/lib/models/licensing/v4/config/TrialProjection.d.ts +1 -1
- package/dist/lib/models/licensing/v4/config/TrialProjection.js +74 -103
- package/dist/lib/models/licensing/v4/config/TrialStatus.js +7 -9
- package/dist/lib/models/licensing/v4/config/TrialType.js +7 -9
- package/dist/lib/models/licensing/v4/config/ValueType.js +7 -9
- package/dist/lib/models/licensing/v4/config/Violation.d.ts +1 -56
- package/dist/lib/models/licensing/v4/config/Violation.js +211 -268
- package/dist/lib/models/licensing/v4/error/AppMessage.d.ts +2 -12
- package/dist/lib/models/licensing/v4/error/AppMessage.js +264 -313
- package/dist/lib/models/licensing/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/lib/models/licensing/v4/error/ErrorResponse.js +178 -218
- package/dist/lib/models/licensing/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/lib/models/licensing/v4/error/SchemaValidationError.js +249 -300
- package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/lib/models/validation/ValidationError.js +26 -42
- package/dist/lib/models/validation/ValidationScopes.js +3 -3
- package/dist/lib/utils/ValidationUtils.js +39 -69
- package/package.json +1 -1
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociationSpec.js +0 -296
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationSpec.js +0 -296
|
@@ -0,0 +1,248 @@
|
|
|
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
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
12
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
13
|
+
* Nutanix Licensing APIs
|
|
14
|
+
*
|
|
15
|
+
* OpenAPI spec version: 4.3.2
|
|
16
|
+
*
|
|
17
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
18
|
+
*
|
|
19
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
20
|
+
*
|
|
21
|
+
* Do not edit the class manually.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* The ReclaimLicenseKeySpec model module.
|
|
26
|
+
* @module Ntnx/ReclaimLicenseKeySpec
|
|
27
|
+
* @version 4.3.2
|
|
28
|
+
* @class ReclaimLicenseKeySpec
|
|
29
|
+
*
|
|
30
|
+
* @param { Number } quantity Attribute for capturing license key quantity for reclaim.
|
|
31
|
+
*/
|
|
32
|
+
var _ReclaimLicenseKeySpec_brand = /*#__PURE__*/new WeakSet();
|
|
33
|
+
class ReclaimLicenseKeySpec {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>ReclaimLicenseKeySpec</code>.
|
|
36
|
+
* Model for capturing attributes required for reclaim.
|
|
37
|
+
* @alias module:Ntnx/ReclaimLicenseKeySpec
|
|
38
|
+
*
|
|
39
|
+
* @param { Number } quantity Attribute for capturing license key quantity for reclaim.
|
|
40
|
+
*/
|
|
41
|
+
constructor(quantity) {
|
|
42
|
+
/*
|
|
43
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
44
|
+
* @param {Object} obj
|
|
45
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
46
|
+
* Otherwise, just returns the input object.
|
|
47
|
+
*/
|
|
48
|
+
_classPrivateMethodInitSpec(this, _ReclaimLicenseKeySpec_brand);
|
|
49
|
+
this.quantity = quantity;
|
|
50
|
+
this.$objectType = "licensing.v4.config.ReclaimLicenseKeySpec";
|
|
51
|
+
/** @type {object<string, any>} */
|
|
52
|
+
this.$reserved = {
|
|
53
|
+
'$fv': "v4.r3"
|
|
54
|
+
};
|
|
55
|
+
/** @type {object<string, any>} */
|
|
56
|
+
this.$unknownFields = {};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Constructs a <code>ReclaimLicenseKeySpec</code> from a plain JavaScript object, optionally creating a new instance.
|
|
61
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
62
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
63
|
+
* @param {module:Ntnx/ReclaimLicenseKeySpec} obj Optional instance to populate.
|
|
64
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
65
|
+
* @return {module:Ntnx/ReclaimLicenseKeySpec} The populated <code>ReclaimLicenseKeySpec</code> instance.
|
|
66
|
+
*/
|
|
67
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
68
|
+
let items, item, i, itemArr, discriminator;
|
|
69
|
+
if (data) {
|
|
70
|
+
obj = obj || new ReclaimLicenseKeySpec();
|
|
71
|
+
if (data.hasOwnProperty('quantity') && data.quantity !== null && data.quantity !== undefined) {
|
|
72
|
+
obj.setQuantity(data['quantity']);
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
75
|
+
obj.$reserved = data['$reserved'];
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
78
|
+
obj.$objectType = data['$objectType'];
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
81
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
82
|
+
}
|
|
83
|
+
if (!callFromChild) {
|
|
84
|
+
obj.$unknownFields = {
|
|
85
|
+
...data.$unknownFields
|
|
86
|
+
};
|
|
87
|
+
for (const property in data) {
|
|
88
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
89
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
90
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
91
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
92
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
93
|
+
obj.$unknownFields[property] = data[property];
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return obj;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Converts a given snake_case string to camelCase.
|
|
103
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
104
|
+
* @returns {string} - The converted string in camelCase format.
|
|
105
|
+
*/
|
|
106
|
+
static snakeToCamel(snakeStr) {
|
|
107
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Returns Attribute for capturing license key quantity for reclaim.
|
|
112
|
+
* minimum: 1
|
|
113
|
+
* maximum: 16384
|
|
114
|
+
* @return {Number}
|
|
115
|
+
*/
|
|
116
|
+
getQuantity() {
|
|
117
|
+
return this.quantity;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Sets Attribute for capturing license key quantity for reclaim.
|
|
122
|
+
* @param {Number} quantity Attribute for capturing license key quantity for reclaim.
|
|
123
|
+
*/
|
|
124
|
+
setQuantity(quantity) {
|
|
125
|
+
this.quantity = quantity;
|
|
126
|
+
}
|
|
127
|
+
get$Reserved() {
|
|
128
|
+
return this.$reserved;
|
|
129
|
+
}
|
|
130
|
+
get$ObjectType() {
|
|
131
|
+
return this.$objectType;
|
|
132
|
+
}
|
|
133
|
+
get$UnknownFields() {
|
|
134
|
+
return this.$unknownFields;
|
|
135
|
+
}
|
|
136
|
+
toJson(forMutation) {
|
|
137
|
+
if (forMutation === false) {
|
|
138
|
+
return {
|
|
139
|
+
...(typeof this.getQuantity() !== 'undefined' && this.getQuantity() !== null ? {
|
|
140
|
+
'quantity': this.getQuantity()
|
|
141
|
+
} : {}),
|
|
142
|
+
'$reserved': this.get$Reserved(),
|
|
143
|
+
'$objectType': this.get$ObjectType(),
|
|
144
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
145
|
+
'$unknownFields': {}
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
return {
|
|
149
|
+
...(typeof this.getQuantity() !== 'undefined' && this.getQuantity() !== null ? {
|
|
150
|
+
'quantity': this.getQuantity()
|
|
151
|
+
} : {}),
|
|
152
|
+
'$reserved': this.get$Reserved(),
|
|
153
|
+
'$objectType': this.get$ObjectType(),
|
|
154
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
155
|
+
'$unknownFields': {}
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
validate(scope, properties) {
|
|
159
|
+
let propList = [];
|
|
160
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
161
|
+
//cases validate() and validate(scope)
|
|
162
|
+
propList = ["quantity"];
|
|
163
|
+
} else if (arguments.length === 1) {
|
|
164
|
+
//case validate(properties)
|
|
165
|
+
propList = arguments[0];
|
|
166
|
+
scope = null;
|
|
167
|
+
} else {
|
|
168
|
+
//case validate(scope, properties)
|
|
169
|
+
propList = arguments[1];
|
|
170
|
+
}
|
|
171
|
+
let res = [];
|
|
172
|
+
let err = null;
|
|
173
|
+
propList.forEach(property => {
|
|
174
|
+
err = this.validateProperty(property, scope);
|
|
175
|
+
if (err) {
|
|
176
|
+
res.push(err);
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
return new Promise(function (resolve, reject) {
|
|
180
|
+
if (res.length !== 0) {
|
|
181
|
+
reject(err);
|
|
182
|
+
} else {
|
|
183
|
+
resolve();
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
validateProperty(scope, property) {
|
|
188
|
+
if (property === "quantity") {
|
|
189
|
+
if (typeof this.quantity === 'undefined' || this.quantity === null) {
|
|
190
|
+
return new _ValidationError.default("quantity", "undefined or null");
|
|
191
|
+
}
|
|
192
|
+
if (!_ValidationUtils.default.validateMaximum(this.quantity, 16384)) {
|
|
193
|
+
return new _ValidationError.default("quantity", "does not satisfy required maximum constraint: 16384");
|
|
194
|
+
}
|
|
195
|
+
if (!_ValidationUtils.default.validateMinimum(this.quantity, 1)) {
|
|
196
|
+
return new _ValidationError.default("quantity", "does not satisfy required minimum constraint: 1");
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
if (property === "$reserved") {
|
|
200
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
201
|
+
return new _ValidationError.default("$reserved", "undefined or null");
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
if (property === "$objectType") {
|
|
205
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
206
|
+
return new _ValidationError.default("$objectType", "undefined or null");
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
if (property === "$unknownFields") {
|
|
210
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
211
|
+
return new _ValidationError.default("$unknownFields", "undefined or null");
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Attribute for capturing license key quantity for reclaim.
|
|
220
|
+
* @memberof ReclaimLicenseKeySpec
|
|
221
|
+
*/
|
|
222
|
+
exports.default = ReclaimLicenseKeySpec;
|
|
223
|
+
function _toJsonMapType(obj, forMutation) {
|
|
224
|
+
if (obj instanceof Map) {
|
|
225
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
226
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
227
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
228
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
229
|
+
}));
|
|
230
|
+
}
|
|
231
|
+
return obj;
|
|
232
|
+
}
|
|
233
|
+
/*
|
|
234
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
235
|
+
* @param {Object} obj Object to serialize
|
|
236
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
237
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
238
|
+
*/
|
|
239
|
+
function _handleDateType(obj, isDateOnly) {
|
|
240
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
241
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
242
|
+
}
|
|
243
|
+
return obj;
|
|
244
|
+
}
|
|
245
|
+
ReclaimLicenseKeySpec.prototype.quantity = undefined;
|
|
246
|
+
ReclaimLicenseKeySpec.prototype.$reserved = undefined;
|
|
247
|
+
ReclaimLicenseKeySpec.prototype.$objectType = undefined;
|
|
248
|
+
ReclaimLicenseKeySpec.prototype.$unknownFields = undefined;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ReclaimLicenseToken model module.
|
|
3
|
+
* @module Ntnx/ReclaimLicenseToken
|
|
4
|
+
* @version 4.3.2
|
|
5
|
+
* @class ReclaimLicenseToken
|
|
6
|
+
* @extends ExternalizableAbstractModel
|
|
7
|
+
*/
|
|
8
|
+
export default class ReclaimLicenseToken extends ExternalizableAbstractModel {
|
|
9
|
+
/**
|
|
10
|
+
* Returns Attribute for license key being reclaimed.
|
|
11
|
+
* @return {string}
|
|
12
|
+
*/
|
|
13
|
+
getKey(): string;
|
|
14
|
+
/**
|
|
15
|
+
* Sets Attribute for license key being reclaimed.
|
|
16
|
+
* @param {string} key Attribute for license key being reclaimed.
|
|
17
|
+
*/
|
|
18
|
+
setKey(key: string): void;
|
|
19
|
+
key: string;
|
|
20
|
+
/**
|
|
21
|
+
* Returns Attribute for capturing reclaimed quantity.
|
|
22
|
+
* minimum: 1
|
|
23
|
+
* maximum: 16384
|
|
24
|
+
* @return {Number}
|
|
25
|
+
*/
|
|
26
|
+
getQuantity(): number;
|
|
27
|
+
/**
|
|
28
|
+
* Sets Attribute for capturing reclaimed quantity.
|
|
29
|
+
* @param {Number} quantity Attribute for capturing reclaimed quantity.
|
|
30
|
+
*/
|
|
31
|
+
setQuantity(quantity: number): void;
|
|
32
|
+
quantity: number;
|
|
33
|
+
/**
|
|
34
|
+
* Returns Attribute capturing reclaim token generated.
|
|
35
|
+
* @return {string}
|
|
36
|
+
*/
|
|
37
|
+
getReclaimToken(): string;
|
|
38
|
+
/**
|
|
39
|
+
* Sets Attribute capturing reclaim token generated.
|
|
40
|
+
* @param {string} reclaimToken Attribute capturing reclaim token generated.
|
|
41
|
+
*/
|
|
42
|
+
setReclaimToken(reclaimToken: string): void;
|
|
43
|
+
reclaimToken: string;
|
|
44
|
+
/**
|
|
45
|
+
* Returns Attribute for capturing reclaim token creation date.
|
|
46
|
+
* @return {Date}
|
|
47
|
+
*/
|
|
48
|
+
getReclaimDate(): Date;
|
|
49
|
+
/**
|
|
50
|
+
* Sets Attribute for capturing reclaim token creation date.
|
|
51
|
+
* @param {Date} reclaimDate Attribute for capturing reclaim token creation date.
|
|
52
|
+
*/
|
|
53
|
+
setReclaimDate(reclaimDate: Date): void;
|
|
54
|
+
reclaimDate: Date;
|
|
55
|
+
#private;
|
|
56
|
+
}
|
|
57
|
+
import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel";
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
8
|
+
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
9
|
+
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
10
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
11
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
12
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
15
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
16
|
+
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"); } /*
|
|
17
|
+
* Nutanix Licensing APIs
|
|
18
|
+
*
|
|
19
|
+
* OpenAPI spec version: 4.3.2
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
22
|
+
*
|
|
23
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
24
|
+
*
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The ReclaimLicenseToken model module.
|
|
30
|
+
* @module Ntnx/ReclaimLicenseToken
|
|
31
|
+
* @version 4.3.2
|
|
32
|
+
* @class ReclaimLicenseToken
|
|
33
|
+
* @extends ExternalizableAbstractModel
|
|
34
|
+
*/
|
|
35
|
+
var _ReclaimLicenseToken_brand = /*#__PURE__*/new WeakSet();
|
|
36
|
+
class ReclaimLicenseToken extends _ExternalizableAbstractModel.default {
|
|
37
|
+
/**
|
|
38
|
+
* Constructs a new <code>ReclaimLicenseToken</code>.
|
|
39
|
+
* Model for reclaim license token.
|
|
40
|
+
* @alias module:Ntnx/ReclaimLicenseToken
|
|
41
|
+
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
42
|
+
*/
|
|
43
|
+
constructor() {
|
|
44
|
+
super();
|
|
45
|
+
/*
|
|
46
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
47
|
+
* @param {Object} obj
|
|
48
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
49
|
+
* Otherwise, just returns the input object.
|
|
50
|
+
*/
|
|
51
|
+
_classPrivateMethodInitSpec(this, _ReclaimLicenseToken_brand);
|
|
52
|
+
this.$objectType = "licensing.v4.config.ReclaimLicenseToken";
|
|
53
|
+
/** @type {object<string, any>} */
|
|
54
|
+
this.$reserved = {
|
|
55
|
+
'$fv': "v4.r3"
|
|
56
|
+
};
|
|
57
|
+
/** @type {object<string, any>} */
|
|
58
|
+
this.$unknownFields = {};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Constructs a <code>ReclaimLicenseToken</code> from a plain JavaScript object, optionally creating a new instance.
|
|
63
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
64
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
65
|
+
* @param {module:Ntnx/ReclaimLicenseToken} obj Optional instance to populate.
|
|
66
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
67
|
+
* @return {module:Ntnx/ReclaimLicenseToken} The populated <code>ReclaimLicenseToken</code> instance.
|
|
68
|
+
*/
|
|
69
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
70
|
+
let items, item, i, itemArr, discriminator;
|
|
71
|
+
if (data) {
|
|
72
|
+
obj = obj || new ReclaimLicenseToken();
|
|
73
|
+
_ExternalizableAbstractModel.default.constructFromObject(data, obj, true);
|
|
74
|
+
if (data.hasOwnProperty('key') && data.key !== null && data.key !== undefined) {
|
|
75
|
+
obj.setKey(data['key']);
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('quantity') && data.quantity !== null && data.quantity !== undefined) {
|
|
78
|
+
obj.setQuantity(data['quantity']);
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('reclaimToken') && data.reclaimToken !== null && data.reclaimToken !== undefined) {
|
|
81
|
+
obj.setReclaimToken(data['reclaimToken']);
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('reclaimDate') && data.reclaimDate !== null && data.reclaimDate !== undefined) {
|
|
84
|
+
obj.setReclaimDate(data['reclaimDate']);
|
|
85
|
+
}
|
|
86
|
+
if (!callFromChild) {
|
|
87
|
+
obj.$unknownFields = {
|
|
88
|
+
...data.$unknownFields
|
|
89
|
+
};
|
|
90
|
+
for (const property in data) {
|
|
91
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
92
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
93
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
94
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
95
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
96
|
+
obj.$unknownFields[property] = data[property];
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return obj;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Converts a given snake_case string to camelCase.
|
|
106
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
107
|
+
* @returns {string} - The converted string in camelCase format.
|
|
108
|
+
*/
|
|
109
|
+
static snakeToCamel(snakeStr) {
|
|
110
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Returns Attribute for license key being reclaimed.
|
|
115
|
+
* @return {string}
|
|
116
|
+
*/
|
|
117
|
+
getKey() {
|
|
118
|
+
return this.key;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Sets Attribute for license key being reclaimed.
|
|
123
|
+
* @param {string} key Attribute for license key being reclaimed.
|
|
124
|
+
*/
|
|
125
|
+
setKey(key) {
|
|
126
|
+
this.key = key;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Returns Attribute for capturing reclaimed quantity.
|
|
131
|
+
* minimum: 1
|
|
132
|
+
* maximum: 16384
|
|
133
|
+
* @return {Number}
|
|
134
|
+
*/
|
|
135
|
+
getQuantity() {
|
|
136
|
+
return this.quantity;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Sets Attribute for capturing reclaimed quantity.
|
|
141
|
+
* @param {Number} quantity Attribute for capturing reclaimed quantity.
|
|
142
|
+
*/
|
|
143
|
+
setQuantity(quantity) {
|
|
144
|
+
this.quantity = quantity;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Returns Attribute capturing reclaim token generated.
|
|
149
|
+
* @return {string}
|
|
150
|
+
*/
|
|
151
|
+
getReclaimToken() {
|
|
152
|
+
return this.reclaimToken;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Sets Attribute capturing reclaim token generated.
|
|
157
|
+
* @param {string} reclaimToken Attribute capturing reclaim token generated.
|
|
158
|
+
*/
|
|
159
|
+
setReclaimToken(reclaimToken) {
|
|
160
|
+
this.reclaimToken = reclaimToken;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Returns Attribute for capturing reclaim token creation date.
|
|
165
|
+
* @return {Date}
|
|
166
|
+
*/
|
|
167
|
+
getReclaimDate() {
|
|
168
|
+
return this.reclaimDate;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Sets Attribute for capturing reclaim token creation date.
|
|
173
|
+
* @param {Date} reclaimDate Attribute for capturing reclaim token creation date.
|
|
174
|
+
*/
|
|
175
|
+
setReclaimDate(reclaimDate) {
|
|
176
|
+
this.reclaimDate = reclaimDate;
|
|
177
|
+
}
|
|
178
|
+
toJson(forMutation) {
|
|
179
|
+
if (forMutation === false) {
|
|
180
|
+
return {
|
|
181
|
+
...(typeof this.getKey() !== 'undefined' && this.getKey() !== null ? {
|
|
182
|
+
'key': this.getKey()
|
|
183
|
+
} : {}),
|
|
184
|
+
...(typeof this.getQuantity() !== 'undefined' && this.getQuantity() !== null ? {
|
|
185
|
+
'quantity': this.getQuantity()
|
|
186
|
+
} : {}),
|
|
187
|
+
...(typeof this.getReclaimToken() !== 'undefined' && this.getReclaimToken() !== null ? {
|
|
188
|
+
'reclaimToken': this.getReclaimToken()
|
|
189
|
+
} : {}),
|
|
190
|
+
...(typeof this.getReclaimDate() !== 'undefined' && this.getReclaimDate() !== null ? {
|
|
191
|
+
'reclaimDate': _assertClassBrand(_ReclaimLicenseToken_brand, this, _handleDateType).call(this, this.getReclaimDate(), true)
|
|
192
|
+
} : {}),
|
|
193
|
+
...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
194
|
+
'extId': this.getExtId()
|
|
195
|
+
} : {}),
|
|
196
|
+
...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
197
|
+
'links': this.getLinks().map(item => item.toJson(false))
|
|
198
|
+
} : {}),
|
|
199
|
+
...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
200
|
+
'tenantId': this.getTenantId()
|
|
201
|
+
} : {}),
|
|
202
|
+
'$reserved': this.get$Reserved(),
|
|
203
|
+
'$objectType': this.get$ObjectType(),
|
|
204
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
205
|
+
'$unknownFields': {}
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
return {
|
|
209
|
+
'$reserved': this.get$Reserved(),
|
|
210
|
+
'$objectType': this.get$ObjectType(),
|
|
211
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
212
|
+
'$unknownFields': {}
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
validate(scope, properties) {
|
|
216
|
+
let propList = [];
|
|
217
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
218
|
+
//cases validate() and validate(scope)
|
|
219
|
+
propList = [];
|
|
220
|
+
} else if (arguments.length === 1) {
|
|
221
|
+
//case validate(properties)
|
|
222
|
+
propList = arguments[0];
|
|
223
|
+
scope = null;
|
|
224
|
+
} else {
|
|
225
|
+
//case validate(scope, properties)
|
|
226
|
+
propList = arguments[1];
|
|
227
|
+
}
|
|
228
|
+
let res = [];
|
|
229
|
+
let err = null;
|
|
230
|
+
propList.forEach(property => {
|
|
231
|
+
err = this.validateProperty(property, scope);
|
|
232
|
+
if (err) {
|
|
233
|
+
res.push(err);
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
return new Promise(function (resolve, reject) {
|
|
237
|
+
if (res.length !== 0) {
|
|
238
|
+
reject(err);
|
|
239
|
+
} else {
|
|
240
|
+
resolve();
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
validateProperty(scope, property) {
|
|
245
|
+
if (property === "key") {
|
|
246
|
+
if (typeof this.key === 'undefined' || this.key === null) {
|
|
247
|
+
return new _ValidationError.default("key", "undefined or null");
|
|
248
|
+
}
|
|
249
|
+
if (!_ValidationUtils.default.validateMaxLength(this.key, 100)) {
|
|
250
|
+
return new _ValidationError.default("key", "does not satisfy required maxLength constraint: 100");
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
if (property === "quantity") {
|
|
254
|
+
if (typeof this.quantity === 'undefined' || this.quantity === null) {
|
|
255
|
+
return new _ValidationError.default("quantity", "undefined or null");
|
|
256
|
+
}
|
|
257
|
+
if (!_ValidationUtils.default.validateMaximum(this.quantity, 16384)) {
|
|
258
|
+
return new _ValidationError.default("quantity", "does not satisfy required maximum constraint: 16384");
|
|
259
|
+
}
|
|
260
|
+
if (!_ValidationUtils.default.validateMinimum(this.quantity, 1)) {
|
|
261
|
+
return new _ValidationError.default("quantity", "does not satisfy required minimum constraint: 1");
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
if (property === "reclaimToken") {
|
|
265
|
+
if (typeof this.reclaimToken === 'undefined' || this.reclaimToken === null) {
|
|
266
|
+
return new _ValidationError.default("reclaimToken", "undefined or null");
|
|
267
|
+
}
|
|
268
|
+
if (!_ValidationUtils.default.validateMaxLength(this.reclaimToken, 100)) {
|
|
269
|
+
return new _ValidationError.default("reclaimToken", "does not satisfy required maxLength constraint: 100");
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
if (property === "reclaimDate") {
|
|
273
|
+
if (typeof this.reclaimDate === 'undefined' || this.reclaimDate === null) {
|
|
274
|
+
return new _ValidationError.default("reclaimDate", "undefined or null");
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Attribute for license key being reclaimed.
|
|
283
|
+
* @memberof ReclaimLicenseToken
|
|
284
|
+
*/
|
|
285
|
+
exports.default = ReclaimLicenseToken;
|
|
286
|
+
function _toJsonMapType(obj, forMutation) {
|
|
287
|
+
if (obj instanceof Map) {
|
|
288
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
289
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
290
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
291
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
292
|
+
}));
|
|
293
|
+
}
|
|
294
|
+
return obj;
|
|
295
|
+
}
|
|
296
|
+
/*
|
|
297
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
298
|
+
* @param {Object} obj Object to serialize
|
|
299
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
300
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
301
|
+
*/
|
|
302
|
+
function _handleDateType(obj, isDateOnly) {
|
|
303
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
304
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
305
|
+
}
|
|
306
|
+
return obj;
|
|
307
|
+
}
|
|
308
|
+
ReclaimLicenseToken.prototype.key = undefined;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Attribute for capturing reclaimed quantity.
|
|
312
|
+
* @memberof ReclaimLicenseToken
|
|
313
|
+
*/
|
|
314
|
+
ReclaimLicenseToken.prototype.quantity = undefined;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Attribute capturing reclaim token generated.
|
|
318
|
+
* @memberof ReclaimLicenseToken
|
|
319
|
+
*/
|
|
320
|
+
ReclaimLicenseToken.prototype.reclaimToken = undefined;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Attribute for capturing reclaim token creation date.
|
|
324
|
+
* @memberof ReclaimLicenseToken
|
|
325
|
+
*/
|
|
326
|
+
ReclaimLicenseToken.prototype.reclaimDate = undefined;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
330
|
+
* @memberof ReclaimLicenseToken
|
|
331
|
+
*/
|
|
332
|
+
_ExternalizableAbstractModel.default.prototype.extId = undefined;
|
|
333
|
+
/**
|
|
334
|
+
* 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.
|
|
335
|
+
* @memberof ReclaimLicenseToken
|
|
336
|
+
*/
|
|
337
|
+
_ExternalizableAbstractModel.default.prototype.links = undefined;
|
|
338
|
+
/**
|
|
339
|
+
* 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).
|
|
340
|
+
* @memberof ReclaimLicenseToken
|
|
341
|
+
*/
|
|
342
|
+
_TenantAwareModel.default.prototype.tenantId = undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ReclaimLicenseTokenProjection model module.
|
|
3
|
+
* @module Ntnx/ReclaimLicenseTokenProjection
|
|
4
|
+
* @version 4.3.2
|
|
5
|
+
* @class ReclaimLicenseTokenProjection
|
|
6
|
+
* @extends ReclaimLicenseToken
|
|
7
|
+
*/
|
|
8
|
+
export default class ReclaimLicenseTokenProjection extends ReclaimLicenseToken {
|
|
9
|
+
}
|
|
10
|
+
import ReclaimLicenseToken from "./ReclaimLicenseToken";
|