@nutanix-scratch/licensing-js-client 1.421.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +202 -0
- package/README.md +215 -0
- package/dist/Ntnx-Licensing-js-client-prod.js +1 -0
- package/dist/Ntnx-Licensing-js-client.js +1642 -0
- package/dist/es/ApiClient.d.ts +172 -0
- package/dist/es/ApiClient.js +1262 -0
- package/dist/es/Paginable.d.ts +95 -0
- package/dist/es/Paginable.js +287 -0
- package/dist/es/apis/enduserlicenseagreement-endpoints.d.ts +41 -0
- package/dist/es/apis/enduserlicenseagreement-endpoints.js +141 -0
- package/dist/es/apis/licensekeys-endpoints.d.ts +91 -0
- package/dist/es/apis/licensekeys-endpoints.js +283 -0
- package/dist/es/apis/licenses-endpoints.d.ts +206 -0
- package/dist/es/apis/licenses-endpoints.js +480 -0
- package/dist/es/index.d.ts +230 -0
- package/dist/es/index.js +916 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +64 -0
- package/dist/es/models/common/v1/config/Flag.js +319 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +71 -0
- package/dist/es/models/common/v1/config/KVPair.js +378 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/es/models/common/v1/config/Message.d.ts +87 -0
- package/dist/es/models/common/v1/config/Message.js +386 -0
- package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/es/models/common/v1/config/MessageSeverity.js +91 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +52 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.js +275 -0
- package/dist/es/models/common/v1/response/ApiLink.d.ts +64 -0
- package/dist/es/models/common/v1/response/ApiLink.js +312 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +133 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +482 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +48 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +310 -0
- package/dist/es/models/licensing/v4/agreements/Acceptance.d.ts +81 -0
- package/dist/es/models/licensing/v4/agreements/Acceptance.js +314 -0
- package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/agreements/AddUserApiResponse.js +365 -0
- package/dist/es/models/licensing/v4/agreements/EndUser.d.ts +110 -0
- package/dist/es/models/licensing/v4/agreements/EndUser.js +420 -0
- package/dist/es/models/licensing/v4/agreements/Eula.d.ts +115 -0
- package/dist/es/models/licensing/v4/agreements/Eula.js +441 -0
- package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/agreements/GetEulaApiResponse.js +343 -0
- package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +103 -0
- package/dist/es/models/licensing/v4/config/AddLicenseKeyApiResponse.js +347 -0
- package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +137 -0
- package/dist/es/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +360 -0
- package/dist/es/models/licensing/v4/config/Allowance.d.ts +70 -0
- package/dist/es/models/licensing/v4/config/Allowance.js +371 -0
- package/dist/es/models/licensing/v4/config/AllowanceDetail.d.ts +86 -0
- package/dist/es/models/licensing/v4/config/AllowanceDetail.js +390 -0
- package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/AllowanceDetailProjection.js +152 -0
- package/dist/es/models/licensing/v4/config/AllowanceProjection.d.ts +56 -0
- package/dist/es/models/licensing/v4/config/AllowanceProjection.js +320 -0
- package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +102 -0
- package/dist/es/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +365 -0
- package/dist/es/models/licensing/v4/config/AssociationType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/AssociationType.js +85 -0
- package/dist/es/models/licensing/v4/config/BaseClusterInfo.d.ts +37 -0
- package/dist/es/models/licensing/v4/config/BaseClusterInfo.js +271 -0
- package/dist/es/models/licensing/v4/config/BaseLicenseInfo.d.ts +82 -0
- package/dist/es/models/licensing/v4/config/BaseLicenseInfo.js +423 -0
- package/dist/es/models/licensing/v4/config/BillingPlan.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/BillingPlan.js +91 -0
- package/dist/es/models/licensing/v4/config/CapacityViolation.d.ts +85 -0
- package/dist/es/models/licensing/v4/config/CapacityViolation.js +382 -0
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +30 -0
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMapping.js +269 -0
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +151 -0
- package/dist/es/models/licensing/v4/config/ClusterType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ClusterType.js +91 -0
- package/dist/es/models/licensing/v4/config/Compliance.d.ts +78 -0
- package/dist/es/models/licensing/v4/config/Compliance.js +371 -0
- package/dist/es/models/licensing/v4/config/ComplianceProjection.d.ts +72 -0
- package/dist/es/models/licensing/v4/config/ComplianceProjection.js +320 -0
- package/dist/es/models/licensing/v4/config/Consumption.d.ts +64 -0
- package/dist/es/models/licensing/v4/config/Consumption.js +315 -0
- package/dist/es/models/licensing/v4/config/ConsumptionProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/ConsumptionProjection.js +150 -0
- package/dist/es/models/licensing/v4/config/ConsumptionType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ConsumptionType.js +85 -0
- package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +98 -0
- package/dist/es/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +345 -0
- package/dist/es/models/licensing/v4/config/DryRunCheck.d.ts +72 -0
- package/dist/es/models/licensing/v4/config/DryRunCheck.js +325 -0
- package/dist/es/models/licensing/v4/config/DryRunStatus.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/DryRunStatus.js +86 -0
- package/dist/es/models/licensing/v4/config/DryRunValidationResult.d.ts +68 -0
- package/dist/es/models/licensing/v4/config/DryRunValidationResult.js +297 -0
- package/dist/es/models/licensing/v4/config/EnforcementActions.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/EnforcementActions.js +139 -0
- package/dist/es/models/licensing/v4/config/EnforcementLevel.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/EnforcementLevel.js +85 -0
- package/dist/es/models/licensing/v4/config/EnforcementPolicy.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/EnforcementPolicy.js +85 -0
- package/dist/es/models/licensing/v4/config/Entitlement.d.ts +98 -0
- package/dist/es/models/licensing/v4/config/Entitlement.js +450 -0
- package/dist/es/models/licensing/v4/config/EntitlementDetail.d.ts +131 -0
- package/dist/es/models/licensing/v4/config/EntitlementDetail.js +534 -0
- package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/EntitlementDetailProjection.js +155 -0
- package/dist/es/models/licensing/v4/config/EntitlementProjection.d.ts +66 -0
- package/dist/es/models/licensing/v4/config/EntitlementProjection.js +338 -0
- package/dist/es/models/licensing/v4/config/ExpiredLicense.d.ts +65 -0
- package/dist/es/models/licensing/v4/config/ExpiredLicense.js +396 -0
- package/dist/es/models/licensing/v4/config/Feature.d.ts +104 -0
- package/dist/es/models/licensing/v4/config/Feature.js +512 -0
- package/dist/es/models/licensing/v4/config/FeatureDetail.d.ts +76 -0
- package/dist/es/models/licensing/v4/config/FeatureDetail.js +359 -0
- package/dist/es/models/licensing/v4/config/FeatureProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/FeatureProjection.js +152 -0
- package/dist/es/models/licensing/v4/config/FeatureViolation.d.ts +31 -0
- package/dist/es/models/licensing/v4/config/FeatureViolation.js +278 -0
- package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/GetLicenseKeyApiResponse.js +343 -0
- package/dist/es/models/licensing/v4/config/License.d.ts +95 -0
- package/dist/es/models/licensing/v4/config/License.js +484 -0
- package/dist/es/models/licensing/v4/config/LicenseCategory.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/LicenseCategory.js +295 -0
- package/dist/es/models/licensing/v4/config/LicenseClass.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/LicenseClass.js +91 -0
- package/dist/es/models/licensing/v4/config/LicenseKey.d.ts +181 -0
- package/dist/es/models/licensing/v4/config/LicenseKey.js +707 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignment.d.ts +71 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignment.js +329 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignmentSpec.d.ts +75 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssignmentSpec.js +296 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociation.d.ts +104 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociation.js +403 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociationProjection.d.ts +16 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociationProjection.js +164 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociationSpec.d.ts +71 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyAssociationSpec.js +296 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyMapping.d.ts +64 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyMapping.js +315 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyProjection.d.ts +91 -0
- package/dist/es/models/licensing/v4/config/LicenseKeyProjection.js +431 -0
- package/dist/es/models/licensing/v4/config/LicenseKeySubCategory.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/LicenseKeySubCategory.js +85 -0
- package/dist/es/models/licensing/v4/config/LicenseProjection.d.ts +58 -0
- package/dist/es/models/licensing/v4/config/LicenseProjection.js +374 -0
- package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +75 -0
- package/dist/es/models/licensing/v4/config/LicenseStateSyncSpec.js +364 -0
- package/dist/es/models/licensing/v4/config/LicenseType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/LicenseType.js +283 -0
- package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListAllowancesApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListCompliancesApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListEntitlementsApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListFeaturesApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListLicenseKeysApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.d.ts +100 -0
- package/dist/es/models/licensing/v4/config/ListLicensesApiResponse.js +370 -0
- package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/ListRecommendationsApiResponse.js +365 -0
- package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/ListSettingsApiResponse.js +365 -0
- package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/ListViolationsApiResponse.js +365 -0
- package/dist/es/models/licensing/v4/config/LogicalVersion.d.ts +64 -0
- package/dist/es/models/licensing/v4/config/LogicalVersion.js +312 -0
- package/dist/es/models/licensing/v4/config/Meter.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/Meter.js +127 -0
- package/dist/es/models/licensing/v4/config/OperationType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/OperationType.js +97 -0
- package/dist/es/models/licensing/v4/config/PortalSetting.d.ts +86 -0
- package/dist/es/models/licensing/v4/config/PortalSetting.js +359 -0
- package/dist/es/models/licensing/v4/config/PostPaidCategory.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/PostPaidCategory.js +85 -0
- package/dist/es/models/licensing/v4/config/PostPaidConfig.d.ts +97 -0
- package/dist/es/models/licensing/v4/config/PostPaidConfig.js +423 -0
- package/dist/es/models/licensing/v4/config/ProductName.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ProductName.js +115 -0
- package/dist/es/models/licensing/v4/config/ReclaimType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ReclaimType.js +85 -0
- package/dist/es/models/licensing/v4/config/Recommendation.d.ts +47 -0
- package/dist/es/models/licensing/v4/config/Recommendation.js +287 -0
- package/dist/es/models/licensing/v4/config/RecommendationDetail.d.ts +98 -0
- package/dist/es/models/licensing/v4/config/RecommendationDetail.js +429 -0
- package/dist/es/models/licensing/v4/config/RecommendationScope.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/RecommendationScope.js +85 -0
- package/dist/es/models/licensing/v4/config/ResetScope.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ResetScope.js +85 -0
- package/dist/es/models/licensing/v4/config/Scope.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/Scope.js +91 -0
- package/dist/es/models/licensing/v4/config/Service.d.ts +117 -0
- package/dist/es/models/licensing/v4/config/Service.js +482 -0
- package/dist/es/models/licensing/v4/config/ServiceProjection.d.ts +10 -0
- package/dist/es/models/licensing/v4/config/ServiceProjection.js +155 -0
- package/dist/es/models/licensing/v4/config/ServiceViolation.d.ts +63 -0
- package/dist/es/models/licensing/v4/config/ServiceViolation.js +311 -0
- package/dist/es/models/licensing/v4/config/ServiceViolationType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ServiceViolationType.js +91 -0
- package/dist/es/models/licensing/v4/config/Setting.d.ts +145 -0
- package/dist/es/models/licensing/v4/config/Setting.js +581 -0
- package/dist/es/models/licensing/v4/config/Status.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/Status.js +85 -0
- package/dist/es/models/licensing/v4/config/SubCategory.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/SubCategory.js +85 -0
- package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +99 -0
- package/dist/es/models/licensing/v4/config/SyncLicenseStateApiResponse.js +343 -0
- package/dist/es/models/licensing/v4/config/SyncOperationType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/SyncOperationType.js +121 -0
- package/dist/es/models/licensing/v4/config/Trial.d.ts +93 -0
- package/dist/es/models/licensing/v4/config/Trial.js +421 -0
- package/dist/es/models/licensing/v4/config/TrialCategory.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/TrialCategory.js +79 -0
- package/dist/es/models/licensing/v4/config/TrialProjection.d.ts +12 -0
- package/dist/es/models/licensing/v4/config/TrialProjection.js +159 -0
- package/dist/es/models/licensing/v4/config/TrialStatus.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/TrialStatus.js +85 -0
- package/dist/es/models/licensing/v4/config/TrialType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/TrialType.js +79 -0
- package/dist/es/models/licensing/v4/config/ValueType.d.ts +19 -0
- package/dist/es/models/licensing/v4/config/ValueType.js +85 -0
- package/dist/es/models/licensing/v4/config/Violation.d.ts +102 -0
- package/dist/es/models/licensing/v4/config/Violation.js +398 -0
- package/dist/es/models/licensing/v4/error/AppMessage.d.ts +117 -0
- package/dist/es/models/licensing/v4/error/AppMessage.js +464 -0
- package/dist/es/models/licensing/v4/error/ErrorResponse.d.ts +52 -0
- package/dist/es/models/licensing/v4/error/ErrorResponse.js +331 -0
- package/dist/es/models/licensing/v4/error/SchemaValidationError.d.ts +108 -0
- package/dist/es/models/licensing/v4/error/SchemaValidationError.js +440 -0
- package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +76 -0
- package/dist/es/models/licensing/v4/error/SchemaValidationErrorMessage.js +350 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +52 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +279 -0
- package/dist/es/models/validation/ValidationError.d.ts +13 -0
- package/dist/es/models/validation/ValidationError.js +60 -0
- package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/es/models/validation/ValidationScopes.js +38 -0
- package/dist/es/utils/ValidationUtils.d.ts +13 -0
- package/dist/es/utils/ValidationUtils.js +85 -0
- package/dist/lib/ApiClient.d.ts +172 -0
- package/dist/lib/ApiClient.js +1262 -0
- package/dist/lib/Paginable.d.ts +95 -0
- package/dist/lib/Paginable.js +287 -0
- package/dist/lib/apis/enduserlicenseagreement-endpoints.d.ts +41 -0
- package/dist/lib/apis/enduserlicenseagreement-endpoints.js +141 -0
- package/dist/lib/apis/licensekeys-endpoints.d.ts +91 -0
- package/dist/lib/apis/licensekeys-endpoints.js +283 -0
- package/dist/lib/apis/licenses-endpoints.d.ts +206 -0
- package/dist/lib/apis/licenses-endpoints.js +480 -0
- package/dist/lib/index.d.ts +230 -0
- package/dist/lib/index.js +916 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +64 -0
- package/dist/lib/models/common/v1/config/Flag.js +319 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +71 -0
- package/dist/lib/models/common/v1/config/KVPair.js +378 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +87 -0
- package/dist/lib/models/common/v1/config/Message.js +386 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.js +91 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +52 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +275 -0
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +64 -0
- package/dist/lib/models/common/v1/response/ApiLink.js +312 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +133 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +482 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +48 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +310 -0
- package/dist/lib/models/licensing/v4/agreements/Acceptance.d.ts +81 -0
- package/dist/lib/models/licensing/v4/agreements/Acceptance.js +314 -0
- package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/agreements/AddUserApiResponse.js +365 -0
- package/dist/lib/models/licensing/v4/agreements/EndUser.d.ts +110 -0
- package/dist/lib/models/licensing/v4/agreements/EndUser.js +420 -0
- package/dist/lib/models/licensing/v4/agreements/Eula.d.ts +115 -0
- package/dist/lib/models/licensing/v4/agreements/Eula.js +441 -0
- package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/agreements/GetEulaApiResponse.js +343 -0
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.d.ts +103 -0
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyApiResponse.js +347 -0
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.d.ts +137 -0
- package/dist/lib/models/licensing/v4/config/AddLicenseKeyDryRunApiResponse.js +360 -0
- package/dist/lib/models/licensing/v4/config/Allowance.d.ts +70 -0
- package/dist/lib/models/licensing/v4/config/Allowance.js +371 -0
- package/dist/lib/models/licensing/v4/config/AllowanceDetail.d.ts +86 -0
- package/dist/lib/models/licensing/v4/config/AllowanceDetail.js +390 -0
- package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/AllowanceDetailProjection.js +152 -0
- package/dist/lib/models/licensing/v4/config/AllowanceProjection.d.ts +56 -0
- package/dist/lib/models/licensing/v4/config/AllowanceProjection.js +320 -0
- package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.d.ts +102 -0
- package/dist/lib/models/licensing/v4/config/AssignLicenseKeysApiResponse.js +365 -0
- package/dist/lib/models/licensing/v4/config/AssociationType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/AssociationType.js +85 -0
- package/dist/lib/models/licensing/v4/config/BaseClusterInfo.d.ts +37 -0
- package/dist/lib/models/licensing/v4/config/BaseClusterInfo.js +271 -0
- package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.d.ts +82 -0
- package/dist/lib/models/licensing/v4/config/BaseLicenseInfo.js +423 -0
- package/dist/lib/models/licensing/v4/config/BillingPlan.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/BillingPlan.js +91 -0
- package/dist/lib/models/licensing/v4/config/CapacityViolation.d.ts +85 -0
- package/dist/lib/models/licensing/v4/config/CapacityViolation.js +382 -0
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.d.ts +30 -0
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMapping.js +269 -0
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/ClusterLicenseKeyMappingProjection.js +151 -0
- package/dist/lib/models/licensing/v4/config/ClusterType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ClusterType.js +91 -0
- package/dist/lib/models/licensing/v4/config/Compliance.d.ts +78 -0
- package/dist/lib/models/licensing/v4/config/Compliance.js +371 -0
- package/dist/lib/models/licensing/v4/config/ComplianceProjection.d.ts +72 -0
- package/dist/lib/models/licensing/v4/config/ComplianceProjection.js +320 -0
- package/dist/lib/models/licensing/v4/config/Consumption.d.ts +64 -0
- package/dist/lib/models/licensing/v4/config/Consumption.js +315 -0
- package/dist/lib/models/licensing/v4/config/ConsumptionProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/ConsumptionProjection.js +150 -0
- package/dist/lib/models/licensing/v4/config/ConsumptionType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ConsumptionType.js +85 -0
- package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.d.ts +98 -0
- package/dist/lib/models/licensing/v4/config/DeleteLicenseKeyApiResponse.js +345 -0
- package/dist/lib/models/licensing/v4/config/DryRunCheck.d.ts +72 -0
- package/dist/lib/models/licensing/v4/config/DryRunCheck.js +325 -0
- package/dist/lib/models/licensing/v4/config/DryRunStatus.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/DryRunStatus.js +86 -0
- package/dist/lib/models/licensing/v4/config/DryRunValidationResult.d.ts +68 -0
- package/dist/lib/models/licensing/v4/config/DryRunValidationResult.js +297 -0
- package/dist/lib/models/licensing/v4/config/EnforcementActions.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/EnforcementActions.js +139 -0
- package/dist/lib/models/licensing/v4/config/EnforcementLevel.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/EnforcementLevel.js +85 -0
- package/dist/lib/models/licensing/v4/config/EnforcementPolicy.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/EnforcementPolicy.js +85 -0
- package/dist/lib/models/licensing/v4/config/Entitlement.d.ts +98 -0
- package/dist/lib/models/licensing/v4/config/Entitlement.js +450 -0
- package/dist/lib/models/licensing/v4/config/EntitlementDetail.d.ts +131 -0
- package/dist/lib/models/licensing/v4/config/EntitlementDetail.js +534 -0
- package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/EntitlementDetailProjection.js +155 -0
- package/dist/lib/models/licensing/v4/config/EntitlementProjection.d.ts +66 -0
- package/dist/lib/models/licensing/v4/config/EntitlementProjection.js +338 -0
- package/dist/lib/models/licensing/v4/config/ExpiredLicense.d.ts +65 -0
- package/dist/lib/models/licensing/v4/config/ExpiredLicense.js +396 -0
- package/dist/lib/models/licensing/v4/config/Feature.d.ts +104 -0
- package/dist/lib/models/licensing/v4/config/Feature.js +512 -0
- package/dist/lib/models/licensing/v4/config/FeatureDetail.d.ts +76 -0
- package/dist/lib/models/licensing/v4/config/FeatureDetail.js +359 -0
- package/dist/lib/models/licensing/v4/config/FeatureProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/FeatureProjection.js +152 -0
- package/dist/lib/models/licensing/v4/config/FeatureViolation.d.ts +31 -0
- package/dist/lib/models/licensing/v4/config/FeatureViolation.js +278 -0
- package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/GetLicenseKeyApiResponse.js +343 -0
- package/dist/lib/models/licensing/v4/config/License.d.ts +95 -0
- package/dist/lib/models/licensing/v4/config/License.js +484 -0
- package/dist/lib/models/licensing/v4/config/LicenseCategory.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/LicenseCategory.js +295 -0
- package/dist/lib/models/licensing/v4/config/LicenseClass.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/LicenseClass.js +91 -0
- package/dist/lib/models/licensing/v4/config/LicenseKey.d.ts +181 -0
- package/dist/lib/models/licensing/v4/config/LicenseKey.js +707 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignment.d.ts +71 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignment.js +329 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignmentSpec.d.ts +75 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssignmentSpec.js +296 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociation.d.ts +104 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociation.js +403 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationProjection.d.ts +16 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationProjection.js +164 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationSpec.d.ts +71 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyAssociationSpec.js +296 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.d.ts +64 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyMapping.js +315 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.d.ts +91 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeyProjection.js +431 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeySubCategory.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/LicenseKeySubCategory.js +85 -0
- package/dist/lib/models/licensing/v4/config/LicenseProjection.d.ts +58 -0
- package/dist/lib/models/licensing/v4/config/LicenseProjection.js +374 -0
- package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.d.ts +75 -0
- package/dist/lib/models/licensing/v4/config/LicenseStateSyncSpec.js +364 -0
- package/dist/lib/models/licensing/v4/config/LicenseType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/LicenseType.js +283 -0
- package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListAllowancesApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListCompliancesApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListEntitlementsApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListFeaturesApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListLicenseKeysApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.d.ts +100 -0
- package/dist/lib/models/licensing/v4/config/ListLicensesApiResponse.js +370 -0
- package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/ListRecommendationsApiResponse.js +365 -0
- package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/ListSettingsApiResponse.js +365 -0
- package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/ListViolationsApiResponse.js +365 -0
- package/dist/lib/models/licensing/v4/config/LogicalVersion.d.ts +64 -0
- package/dist/lib/models/licensing/v4/config/LogicalVersion.js +312 -0
- package/dist/lib/models/licensing/v4/config/Meter.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/Meter.js +127 -0
- package/dist/lib/models/licensing/v4/config/OperationType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/OperationType.js +97 -0
- package/dist/lib/models/licensing/v4/config/PortalSetting.d.ts +86 -0
- package/dist/lib/models/licensing/v4/config/PortalSetting.js +359 -0
- package/dist/lib/models/licensing/v4/config/PostPaidCategory.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/PostPaidCategory.js +85 -0
- package/dist/lib/models/licensing/v4/config/PostPaidConfig.d.ts +97 -0
- package/dist/lib/models/licensing/v4/config/PostPaidConfig.js +423 -0
- package/dist/lib/models/licensing/v4/config/ProductName.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ProductName.js +115 -0
- package/dist/lib/models/licensing/v4/config/ReclaimType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ReclaimType.js +85 -0
- package/dist/lib/models/licensing/v4/config/Recommendation.d.ts +47 -0
- package/dist/lib/models/licensing/v4/config/Recommendation.js +287 -0
- package/dist/lib/models/licensing/v4/config/RecommendationDetail.d.ts +98 -0
- package/dist/lib/models/licensing/v4/config/RecommendationDetail.js +429 -0
- package/dist/lib/models/licensing/v4/config/RecommendationScope.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/RecommendationScope.js +85 -0
- package/dist/lib/models/licensing/v4/config/ResetScope.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ResetScope.js +85 -0
- package/dist/lib/models/licensing/v4/config/Scope.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/Scope.js +91 -0
- package/dist/lib/models/licensing/v4/config/Service.d.ts +117 -0
- package/dist/lib/models/licensing/v4/config/Service.js +482 -0
- package/dist/lib/models/licensing/v4/config/ServiceProjection.d.ts +10 -0
- package/dist/lib/models/licensing/v4/config/ServiceProjection.js +155 -0
- package/dist/lib/models/licensing/v4/config/ServiceViolation.d.ts +63 -0
- package/dist/lib/models/licensing/v4/config/ServiceViolation.js +311 -0
- package/dist/lib/models/licensing/v4/config/ServiceViolationType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ServiceViolationType.js +91 -0
- package/dist/lib/models/licensing/v4/config/Setting.d.ts +145 -0
- package/dist/lib/models/licensing/v4/config/Setting.js +581 -0
- package/dist/lib/models/licensing/v4/config/Status.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/Status.js +85 -0
- package/dist/lib/models/licensing/v4/config/SubCategory.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/SubCategory.js +85 -0
- package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.d.ts +99 -0
- package/dist/lib/models/licensing/v4/config/SyncLicenseStateApiResponse.js +343 -0
- package/dist/lib/models/licensing/v4/config/SyncOperationType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/SyncOperationType.js +121 -0
- package/dist/lib/models/licensing/v4/config/Trial.d.ts +93 -0
- package/dist/lib/models/licensing/v4/config/Trial.js +421 -0
- package/dist/lib/models/licensing/v4/config/TrialCategory.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/TrialCategory.js +79 -0
- package/dist/lib/models/licensing/v4/config/TrialProjection.d.ts +12 -0
- package/dist/lib/models/licensing/v4/config/TrialProjection.js +159 -0
- package/dist/lib/models/licensing/v4/config/TrialStatus.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/TrialStatus.js +85 -0
- package/dist/lib/models/licensing/v4/config/TrialType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/TrialType.js +79 -0
- package/dist/lib/models/licensing/v4/config/ValueType.d.ts +19 -0
- package/dist/lib/models/licensing/v4/config/ValueType.js +85 -0
- package/dist/lib/models/licensing/v4/config/Violation.d.ts +102 -0
- package/dist/lib/models/licensing/v4/config/Violation.js +398 -0
- package/dist/lib/models/licensing/v4/error/AppMessage.d.ts +117 -0
- package/dist/lib/models/licensing/v4/error/AppMessage.js +464 -0
- package/dist/lib/models/licensing/v4/error/ErrorResponse.d.ts +52 -0
- package/dist/lib/models/licensing/v4/error/ErrorResponse.js +331 -0
- package/dist/lib/models/licensing/v4/error/SchemaValidationError.d.ts +108 -0
- package/dist/lib/models/licensing/v4/error/SchemaValidationError.js +440 -0
- package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.d.ts +76 -0
- package/dist/lib/models/licensing/v4/error/SchemaValidationErrorMessage.js +350 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +52 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +279 -0
- package/dist/lib/models/validation/ValidationError.d.ts +13 -0
- package/dist/lib/models/validation/ValidationError.js +60 -0
- package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/lib/models/validation/ValidationScopes.js +38 -0
- package/dist/lib/utils/ValidationUtils.d.ts +13 -0
- package/dist/lib/utils/ValidationUtils.js +85 -0
- package/package.json +53 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ApiResponseMetadata model module.
|
|
3
|
+
* @module Ntnx/ApiResponseMetadata
|
|
4
|
+
* @version 1.421.1
|
|
5
|
+
* @class ApiResponseMetadata
|
|
6
|
+
*/
|
|
7
|
+
export default class ApiResponseMetadata {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a <code>ApiResponseMetadata</code> from a plain JavaScript object, optionally creating a new instance.
|
|
10
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
11
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
12
|
+
* @param {module:Ntnx/ApiResponseMetadata} obj Optional instance to populate.
|
|
13
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
|
+
* @return {module:Ntnx/ApiResponseMetadata} The populated <code>ApiResponseMetadata</code> instance.
|
|
15
|
+
*/
|
|
16
|
+
static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any;
|
|
17
|
+
/**
|
|
18
|
+
* Converts a given snake_case string to camelCase.
|
|
19
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
20
|
+
* @returns {string} - The converted string in camelCase format.
|
|
21
|
+
*/
|
|
22
|
+
static snakeToCamel(snakeStr: string): string;
|
|
23
|
+
$objectType: string;
|
|
24
|
+
/** @type {object<string, any>} */
|
|
25
|
+
$reserved: object;
|
|
26
|
+
/** @type {object<string, any>} */
|
|
27
|
+
$unknownFields: object;
|
|
28
|
+
/**
|
|
29
|
+
* Returns An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated.
|
|
30
|
+
* @return {Flag[]}
|
|
31
|
+
*/
|
|
32
|
+
getFlags(): Flag[];
|
|
33
|
+
/**
|
|
34
|
+
* Sets An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated.
|
|
35
|
+
* @param {Flag[]} flags An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated.
|
|
36
|
+
*/
|
|
37
|
+
setFlags(flags: Flag[]): void;
|
|
38
|
+
flags: Flag[];
|
|
39
|
+
/**
|
|
40
|
+
* Returns An array of HATEOAS style links for the response that may also include pagination links for list operations.
|
|
41
|
+
* @return {ApiLink[]}
|
|
42
|
+
*/
|
|
43
|
+
getLinks(): ApiLink[];
|
|
44
|
+
/**
|
|
45
|
+
* Sets An array of HATEOAS style links for the response that may also include pagination links for list operations.
|
|
46
|
+
* @param {ApiLink[]} links An array of HATEOAS style links for the response that may also include pagination links for list operations.
|
|
47
|
+
*/
|
|
48
|
+
setLinks(links: ApiLink[]): void;
|
|
49
|
+
links: ApiLink[];
|
|
50
|
+
/**
|
|
51
|
+
* Returns The total number of entities that are available on the server for this type.
|
|
52
|
+
* @return {Number}
|
|
53
|
+
*/
|
|
54
|
+
getTotalAvailableResults(): number;
|
|
55
|
+
/**
|
|
56
|
+
* Sets The total number of entities that are available on the server for this type.
|
|
57
|
+
* @param {Number} totalAvailableResults The total number of entities that are available on the server for this type.
|
|
58
|
+
*/
|
|
59
|
+
setTotalAvailableResults(totalAvailableResults: number): void;
|
|
60
|
+
totalAvailableResults: number;
|
|
61
|
+
/**
|
|
62
|
+
* Returns Information, Warning or Error messages that might provide additional contextual information related to the operation.
|
|
63
|
+
* @return {Message[]}
|
|
64
|
+
*/
|
|
65
|
+
getMessages(): Message[];
|
|
66
|
+
/**
|
|
67
|
+
* Sets Information, Warning or Error messages that might provide additional contextual information related to the operation.
|
|
68
|
+
* @param {Message[]} messages Information, Warning or Error messages that might provide additional contextual information related to the operation.
|
|
69
|
+
*/
|
|
70
|
+
setMessages(messages: Message[]): void;
|
|
71
|
+
messages: Message[];
|
|
72
|
+
/**
|
|
73
|
+
* Returns An array of entity-specific metadata
|
|
74
|
+
* @return {KVPair[]}
|
|
75
|
+
*/
|
|
76
|
+
getExtraInfo(): KVPair[];
|
|
77
|
+
/**
|
|
78
|
+
* Sets An array of entity-specific metadata
|
|
79
|
+
* @param {KVPair[]} extraInfo An array of entity-specific metadata
|
|
80
|
+
*/
|
|
81
|
+
setExtraInfo(extraInfo: KVPair[]): void;
|
|
82
|
+
extraInfo: KVPair[];
|
|
83
|
+
get$Reserved(): any;
|
|
84
|
+
get$ObjectType(): string;
|
|
85
|
+
get$UnknownFields(): any;
|
|
86
|
+
toJson(forMutation: any): {
|
|
87
|
+
$reserved: any;
|
|
88
|
+
$objectType: string;
|
|
89
|
+
$unknownFields: any;
|
|
90
|
+
extraInfo?: {
|
|
91
|
+
$reserved: any;
|
|
92
|
+
$objectType: string;
|
|
93
|
+
$unknownFields: any;
|
|
94
|
+
value?: any;
|
|
95
|
+
name?: string;
|
|
96
|
+
}[];
|
|
97
|
+
messages?: {
|
|
98
|
+
$reserved: any;
|
|
99
|
+
$objectType: string;
|
|
100
|
+
$unknownFields: any;
|
|
101
|
+
severity?: string;
|
|
102
|
+
locale?: string;
|
|
103
|
+
message?: string;
|
|
104
|
+
code?: string;
|
|
105
|
+
}[];
|
|
106
|
+
totalAvailableResults?: number;
|
|
107
|
+
links?: {
|
|
108
|
+
$reserved: any;
|
|
109
|
+
$objectType: string; /**
|
|
110
|
+
* Returns An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated.
|
|
111
|
+
* @return {Flag[]}
|
|
112
|
+
*/
|
|
113
|
+
$unknownFields: any;
|
|
114
|
+
rel?: string;
|
|
115
|
+
href?: string;
|
|
116
|
+
}[];
|
|
117
|
+
flags?: {
|
|
118
|
+
$reserved: any;
|
|
119
|
+
$objectType: string;
|
|
120
|
+
$unknownFields: any;
|
|
121
|
+
value?: boolean;
|
|
122
|
+
name?: string;
|
|
123
|
+
}[];
|
|
124
|
+
};
|
|
125
|
+
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
126
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
127
|
+
#private;
|
|
128
|
+
}
|
|
129
|
+
import Flag from "../config/Flag";
|
|
130
|
+
import ApiLink from "./ApiLink";
|
|
131
|
+
import Message from "../config/Message";
|
|
132
|
+
import KVPair from "../config/KVPair";
|
|
133
|
+
import ValidationError from "../../../validation/ValidationError";
|
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _Flag = _interopRequireDefault(require("../config/Flag"));
|
|
8
|
+
var _KVPair = _interopRequireDefault(require("../config/KVPair"));
|
|
9
|
+
var _Message = _interopRequireDefault(require("../config/Message"));
|
|
10
|
+
var _ApiLink = _interopRequireDefault(require("./ApiLink"));
|
|
11
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
12
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
13
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
+
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); }
|
|
16
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
17
|
+
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."); }
|
|
18
|
+
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; } }
|
|
19
|
+
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; }
|
|
20
|
+
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; } }
|
|
21
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
22
|
+
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; }
|
|
23
|
+
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; }
|
|
24
|
+
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; }
|
|
25
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
26
|
+
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); } }
|
|
27
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
28
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
29
|
+
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); }
|
|
30
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
31
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
32
|
+
* Nutanix Licensing APIs
|
|
33
|
+
*
|
|
34
|
+
* OpenAPI spec version: 1.421.1
|
|
35
|
+
*
|
|
36
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
37
|
+
*
|
|
38
|
+
* Open API Dev Platform Codegen version: 17.3.1.9079-RELEASE
|
|
39
|
+
*
|
|
40
|
+
* Do not edit the class manually.
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* The ApiResponseMetadata model module.
|
|
45
|
+
* @module Ntnx/ApiResponseMetadata
|
|
46
|
+
* @version 1.421.1
|
|
47
|
+
* @class ApiResponseMetadata
|
|
48
|
+
*/
|
|
49
|
+
var _ApiResponseMetadata_brand = /*#__PURE__*/new WeakSet();
|
|
50
|
+
var ApiResponseMetadata = exports["default"] = /*#__PURE__*/function () {
|
|
51
|
+
/**
|
|
52
|
+
* Constructs a new <code>ApiResponseMetadata</code>.
|
|
53
|
+
* The metadata associated with an API response. This value is always present and minimally contains the self-link for the API request that produced this response. It also contains pagination data for the paginated requests.
|
|
54
|
+
* @alias module:Ntnx/ApiResponseMetadata
|
|
55
|
+
*/
|
|
56
|
+
function ApiResponseMetadata() {
|
|
57
|
+
_classCallCheck(this, ApiResponseMetadata);
|
|
58
|
+
/*
|
|
59
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
60
|
+
* @param {Object} obj
|
|
61
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
62
|
+
* Otherwise, just returns the input object.
|
|
63
|
+
*/
|
|
64
|
+
_classPrivateMethodInitSpec(this, _ApiResponseMetadata_brand);
|
|
65
|
+
this.$objectType = "common.v1.response.ApiResponseMetadata";
|
|
66
|
+
/** @type {object<string, any>} */
|
|
67
|
+
this.$reserved = {
|
|
68
|
+
'$fv': "v1.r0"
|
|
69
|
+
};
|
|
70
|
+
/** @type {object<string, any>} */
|
|
71
|
+
this.$unknownFields = {};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Constructs a <code>ApiResponseMetadata</code> from a plain JavaScript object, optionally creating a new instance.
|
|
76
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
77
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
78
|
+
* @param {module:Ntnx/ApiResponseMetadata} obj Optional instance to populate.
|
|
79
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
80
|
+
* @return {module:Ntnx/ApiResponseMetadata} The populated <code>ApiResponseMetadata</code> instance.
|
|
81
|
+
*/
|
|
82
|
+
return _createClass(ApiResponseMetadata, [{
|
|
83
|
+
key: "getFlags",
|
|
84
|
+
value:
|
|
85
|
+
/**
|
|
86
|
+
* Returns An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated.
|
|
87
|
+
* @return {Flag[]}
|
|
88
|
+
*/
|
|
89
|
+
function getFlags() {
|
|
90
|
+
return this.flags;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Sets An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated.
|
|
95
|
+
* @param {Flag[]} flags An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated.
|
|
96
|
+
*/
|
|
97
|
+
}, {
|
|
98
|
+
key: "setFlags",
|
|
99
|
+
value: function setFlags(flags) {
|
|
100
|
+
this.flags = flags;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Returns An array of HATEOAS style links for the response that may also include pagination links for list operations.
|
|
105
|
+
* @return {ApiLink[]}
|
|
106
|
+
*/
|
|
107
|
+
}, {
|
|
108
|
+
key: "getLinks",
|
|
109
|
+
value: function getLinks() {
|
|
110
|
+
return this.links;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Sets An array of HATEOAS style links for the response that may also include pagination links for list operations.
|
|
115
|
+
* @param {ApiLink[]} links An array of HATEOAS style links for the response that may also include pagination links for list operations.
|
|
116
|
+
*/
|
|
117
|
+
}, {
|
|
118
|
+
key: "setLinks",
|
|
119
|
+
value: function setLinks(links) {
|
|
120
|
+
this.links = links;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Returns The total number of entities that are available on the server for this type.
|
|
125
|
+
* @return {Number}
|
|
126
|
+
*/
|
|
127
|
+
}, {
|
|
128
|
+
key: "getTotalAvailableResults",
|
|
129
|
+
value: function getTotalAvailableResults() {
|
|
130
|
+
return this.totalAvailableResults;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Sets The total number of entities that are available on the server for this type.
|
|
135
|
+
* @param {Number} totalAvailableResults The total number of entities that are available on the server for this type.
|
|
136
|
+
*/
|
|
137
|
+
}, {
|
|
138
|
+
key: "setTotalAvailableResults",
|
|
139
|
+
value: function setTotalAvailableResults(totalAvailableResults) {
|
|
140
|
+
this.totalAvailableResults = totalAvailableResults;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Returns Information, Warning or Error messages that might provide additional contextual information related to the operation.
|
|
145
|
+
* @return {Message[]}
|
|
146
|
+
*/
|
|
147
|
+
}, {
|
|
148
|
+
key: "getMessages",
|
|
149
|
+
value: function getMessages() {
|
|
150
|
+
return this.messages;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Sets Information, Warning or Error messages that might provide additional contextual information related to the operation.
|
|
155
|
+
* @param {Message[]} messages Information, Warning or Error messages that might provide additional contextual information related to the operation.
|
|
156
|
+
*/
|
|
157
|
+
}, {
|
|
158
|
+
key: "setMessages",
|
|
159
|
+
value: function setMessages(messages) {
|
|
160
|
+
this.messages = messages;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Returns An array of entity-specific metadata
|
|
165
|
+
* @return {KVPair[]}
|
|
166
|
+
*/
|
|
167
|
+
}, {
|
|
168
|
+
key: "getExtraInfo",
|
|
169
|
+
value: function getExtraInfo() {
|
|
170
|
+
return this.extraInfo;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Sets An array of entity-specific metadata
|
|
175
|
+
* @param {KVPair[]} extraInfo An array of entity-specific metadata
|
|
176
|
+
*/
|
|
177
|
+
}, {
|
|
178
|
+
key: "setExtraInfo",
|
|
179
|
+
value: function setExtraInfo(extraInfo) {
|
|
180
|
+
this.extraInfo = extraInfo;
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
key: "get$Reserved",
|
|
184
|
+
value: function get$Reserved() {
|
|
185
|
+
return this.$reserved;
|
|
186
|
+
}
|
|
187
|
+
}, {
|
|
188
|
+
key: "get$ObjectType",
|
|
189
|
+
value: function get$ObjectType() {
|
|
190
|
+
return this.$objectType;
|
|
191
|
+
}
|
|
192
|
+
}, {
|
|
193
|
+
key: "get$UnknownFields",
|
|
194
|
+
value: function get$UnknownFields() {
|
|
195
|
+
return this.$unknownFields;
|
|
196
|
+
}
|
|
197
|
+
}, {
|
|
198
|
+
key: "toJson",
|
|
199
|
+
value: function toJson(forMutation) {
|
|
200
|
+
if (forMutation === false) {
|
|
201
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getFlags() !== 'undefined' && this.getFlags() !== null ? {
|
|
202
|
+
'flags': this.getFlags().map(function (item) {
|
|
203
|
+
return item.toJson(false);
|
|
204
|
+
})
|
|
205
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
206
|
+
'links': this.getLinks().map(function (item) {
|
|
207
|
+
return item.toJson(false);
|
|
208
|
+
})
|
|
209
|
+
} : {}), typeof this.getTotalAvailableResults() !== 'undefined' && this.getTotalAvailableResults() !== null ? {
|
|
210
|
+
'totalAvailableResults': this.getTotalAvailableResults()
|
|
211
|
+
} : {}), typeof this.getMessages() !== 'undefined' && this.getMessages() !== null ? {
|
|
212
|
+
'messages': this.getMessages().map(function (item) {
|
|
213
|
+
return item.toJson(false);
|
|
214
|
+
})
|
|
215
|
+
} : {}), typeof this.getExtraInfo() !== 'undefined' && this.getExtraInfo() !== null ? {
|
|
216
|
+
'extraInfo': this.getExtraInfo().map(function (item) {
|
|
217
|
+
return item.toJson(false);
|
|
218
|
+
})
|
|
219
|
+
} : {}), {}, {
|
|
220
|
+
'$reserved': this.get$Reserved(),
|
|
221
|
+
'$objectType': this.get$ObjectType(),
|
|
222
|
+
'$unknownFields': this.get$UnknownFields()
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getFlags() !== 'undefined' && this.getFlags() !== null ? {
|
|
226
|
+
'flags': this.getFlags().map(function (item) {
|
|
227
|
+
return item.toJson(false);
|
|
228
|
+
})
|
|
229
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
230
|
+
'links': this.getLinks().map(function (item) {
|
|
231
|
+
return item.toJson(false);
|
|
232
|
+
})
|
|
233
|
+
} : {}), typeof this.getTotalAvailableResults() !== 'undefined' && this.getTotalAvailableResults() !== null ? {
|
|
234
|
+
'totalAvailableResults': this.getTotalAvailableResults()
|
|
235
|
+
} : {}), typeof this.getMessages() !== 'undefined' && this.getMessages() !== null ? {
|
|
236
|
+
'messages': this.getMessages().map(function (item) {
|
|
237
|
+
return item.toJson(false);
|
|
238
|
+
})
|
|
239
|
+
} : {}), typeof this.getExtraInfo() !== 'undefined' && this.getExtraInfo() !== null ? {
|
|
240
|
+
'extraInfo': this.getExtraInfo().map(function (item) {
|
|
241
|
+
return item.toJson(false);
|
|
242
|
+
})
|
|
243
|
+
} : {}), {}, {
|
|
244
|
+
'$reserved': this.get$Reserved(),
|
|
245
|
+
'$objectType': this.get$ObjectType(),
|
|
246
|
+
'$unknownFields': this.get$UnknownFields()
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
}, {
|
|
250
|
+
key: "validate",
|
|
251
|
+
value: function validate(scope, properties) {
|
|
252
|
+
var _this = this;
|
|
253
|
+
var propList = [];
|
|
254
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
255
|
+
//cases validate() and validate(scope)
|
|
256
|
+
propList = [];
|
|
257
|
+
} else if (arguments.length === 1) {
|
|
258
|
+
//case validate(properties)
|
|
259
|
+
propList = arguments[0];
|
|
260
|
+
scope = null;
|
|
261
|
+
} else {
|
|
262
|
+
//case validate(scope, properties)
|
|
263
|
+
propList = arguments[1];
|
|
264
|
+
}
|
|
265
|
+
var res = [];
|
|
266
|
+
var err = null;
|
|
267
|
+
propList.forEach(function (property) {
|
|
268
|
+
err = _this.validateProperty(property, scope);
|
|
269
|
+
if (err) {
|
|
270
|
+
res.push(err);
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
return new Promise(function (resolve, reject) {
|
|
274
|
+
if (res.length !== 0) {
|
|
275
|
+
reject(err);
|
|
276
|
+
} else {
|
|
277
|
+
resolve();
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
}, {
|
|
282
|
+
key: "validateProperty",
|
|
283
|
+
value: function validateProperty(scope, property) {
|
|
284
|
+
if (property === "flags") {
|
|
285
|
+
if (typeof this.flags === 'undefined' || this.flags === null) {
|
|
286
|
+
return new _ValidationError["default"]("flags", "undefined or null");
|
|
287
|
+
}
|
|
288
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.flags, 20)) {
|
|
289
|
+
return new _ValidationError["default"]("flags", "does not satisfy required maxItems constraint: 20");
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
if (property === "links") {
|
|
293
|
+
if (typeof this.links === 'undefined' || this.links === null) {
|
|
294
|
+
return new _ValidationError["default"]("links", "undefined or null");
|
|
295
|
+
}
|
|
296
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.links, 20)) {
|
|
297
|
+
return new _ValidationError["default"]("links", "does not satisfy required maxItems constraint: 20");
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
if (property === "totalAvailableResults") {
|
|
301
|
+
if (typeof this.totalAvailableResults === 'undefined' || this.totalAvailableResults === null) {
|
|
302
|
+
return new _ValidationError["default"]("totalAvailableResults", "undefined or null");
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
if (property === "messages") {
|
|
306
|
+
if (typeof this.messages === 'undefined' || this.messages === null) {
|
|
307
|
+
return new _ValidationError["default"]("messages", "undefined or null");
|
|
308
|
+
}
|
|
309
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.messages, 20)) {
|
|
310
|
+
return new _ValidationError["default"]("messages", "does not satisfy required maxItems constraint: 20");
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
if (property === "extraInfo") {
|
|
314
|
+
if (typeof this.extraInfo === 'undefined' || this.extraInfo === null) {
|
|
315
|
+
return new _ValidationError["default"]("extraInfo", "undefined or null");
|
|
316
|
+
}
|
|
317
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.extraInfo, 20)) {
|
|
318
|
+
return new _ValidationError["default"]("extraInfo", "does not satisfy required maxItems constraint: 20");
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
if (property === "$reserved") {
|
|
322
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
323
|
+
return new _ValidationError["default"]("$reserved", "undefined or null");
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
if (property === "$objectType") {
|
|
327
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
328
|
+
return new _ValidationError["default"]("$objectType", "undefined or null");
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
if (property === "$unknownFields") {
|
|
332
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
333
|
+
return new _ValidationError["default"]("$unknownFields", "undefined or null");
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
337
|
+
}
|
|
338
|
+
}], [{
|
|
339
|
+
key: "constructFromObject",
|
|
340
|
+
value: function constructFromObject(data) {
|
|
341
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
342
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
343
|
+
var items, item, i, itemArr, discriminator;
|
|
344
|
+
if (data) {
|
|
345
|
+
obj = obj || new ApiResponseMetadata();
|
|
346
|
+
if (data.hasOwnProperty('flags') && data.flags !== null && data.flags !== undefined) {
|
|
347
|
+
itemArr = [];
|
|
348
|
+
items = data.flags;
|
|
349
|
+
for (i = 0; i < items.length; i++) {
|
|
350
|
+
item = _Flag["default"].constructFromObject(items[i], undefined);
|
|
351
|
+
itemArr.push(item);
|
|
352
|
+
}
|
|
353
|
+
obj.setFlags(itemArr);
|
|
354
|
+
}
|
|
355
|
+
if (data.hasOwnProperty('links') && data.links !== null && data.links !== undefined) {
|
|
356
|
+
itemArr = [];
|
|
357
|
+
items = data.links;
|
|
358
|
+
for (i = 0; i < items.length; i++) {
|
|
359
|
+
item = _ApiLink["default"].constructFromObject(items[i], undefined);
|
|
360
|
+
itemArr.push(item);
|
|
361
|
+
}
|
|
362
|
+
obj.setLinks(itemArr);
|
|
363
|
+
}
|
|
364
|
+
if (data.hasOwnProperty('totalAvailableResults') && data.totalAvailableResults !== null && data.totalAvailableResults !== undefined) {
|
|
365
|
+
obj.setTotalAvailableResults(data['totalAvailableResults']);
|
|
366
|
+
}
|
|
367
|
+
if (data.hasOwnProperty('messages') && data.messages !== null && data.messages !== undefined) {
|
|
368
|
+
itemArr = [];
|
|
369
|
+
items = data.messages;
|
|
370
|
+
for (i = 0; i < items.length; i++) {
|
|
371
|
+
item = _Message["default"].constructFromObject(items[i], undefined);
|
|
372
|
+
itemArr.push(item);
|
|
373
|
+
}
|
|
374
|
+
obj.setMessages(itemArr);
|
|
375
|
+
}
|
|
376
|
+
if (data.hasOwnProperty('extraInfo') && data.extraInfo !== null && data.extraInfo !== undefined) {
|
|
377
|
+
itemArr = [];
|
|
378
|
+
items = data.extraInfo;
|
|
379
|
+
for (i = 0; i < items.length; i++) {
|
|
380
|
+
item = _KVPair["default"].constructFromObject(items[i], undefined);
|
|
381
|
+
itemArr.push(item);
|
|
382
|
+
}
|
|
383
|
+
obj.setExtraInfo(itemArr);
|
|
384
|
+
}
|
|
385
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
386
|
+
obj.$reserved = data['$reserved'];
|
|
387
|
+
}
|
|
388
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
389
|
+
obj.$objectType = data['$objectType'];
|
|
390
|
+
}
|
|
391
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
392
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
393
|
+
}
|
|
394
|
+
if (!callFromChild) {
|
|
395
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
396
|
+
for (var property in data) {
|
|
397
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
398
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
399
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
400
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
401
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
402
|
+
obj.$unknownFields[property] = data[property];
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
return obj;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Converts a given snake_case string to camelCase.
|
|
412
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
413
|
+
* @returns {string} - The converted string in camelCase format.
|
|
414
|
+
*/
|
|
415
|
+
}, {
|
|
416
|
+
key: "snakeToCamel",
|
|
417
|
+
value: function snakeToCamel(snakeStr) {
|
|
418
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
419
|
+
return match[1].toUpperCase();
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
}]);
|
|
423
|
+
}();
|
|
424
|
+
/**
|
|
425
|
+
* An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated.
|
|
426
|
+
* @memberof ApiResponseMetadata
|
|
427
|
+
*/
|
|
428
|
+
function _toJsonMapType(obj, forMutation) {
|
|
429
|
+
if (obj instanceof Map) {
|
|
430
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
431
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
432
|
+
k = _ref2[0],
|
|
433
|
+
v = _ref2[1];
|
|
434
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
435
|
+
}));
|
|
436
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
437
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
438
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
439
|
+
}));
|
|
440
|
+
}
|
|
441
|
+
return obj;
|
|
442
|
+
}
|
|
443
|
+
/*
|
|
444
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
445
|
+
* @param {Object} obj Object to serialize
|
|
446
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
447
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
448
|
+
*/
|
|
449
|
+
function _handleDateType(obj, isDateOnly) {
|
|
450
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
451
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
452
|
+
}
|
|
453
|
+
return obj;
|
|
454
|
+
}
|
|
455
|
+
ApiResponseMetadata.prototype.flags = undefined;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* An array of HATEOAS style links for the response that may also include pagination links for list operations.
|
|
459
|
+
* @memberof ApiResponseMetadata
|
|
460
|
+
*/
|
|
461
|
+
ApiResponseMetadata.prototype.links = undefined;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* The total number of entities that are available on the server for this type.
|
|
465
|
+
* @memberof ApiResponseMetadata
|
|
466
|
+
*/
|
|
467
|
+
ApiResponseMetadata.prototype.totalAvailableResults = undefined;
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Information, Warning or Error messages that might provide additional contextual information related to the operation.
|
|
471
|
+
* @memberof ApiResponseMetadata
|
|
472
|
+
*/
|
|
473
|
+
ApiResponseMetadata.prototype.messages = undefined;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* An array of entity-specific metadata
|
|
477
|
+
* @memberof ApiResponseMetadata
|
|
478
|
+
*/
|
|
479
|
+
ApiResponseMetadata.prototype.extraInfo = undefined;
|
|
480
|
+
ApiResponseMetadata.prototype.$reserved = undefined;
|
|
481
|
+
ApiResponseMetadata.prototype.$objectType = undefined;
|
|
482
|
+
ApiResponseMetadata.prototype.$unknownFields = undefined;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ExternalizableAbstractModel model module.
|
|
3
|
+
* @module Ntnx/ExternalizableAbstractModel
|
|
4
|
+
* @version 1.421.1
|
|
5
|
+
* @class ExternalizableAbstractModel
|
|
6
|
+
* @extends TenantAwareModel
|
|
7
|
+
*/
|
|
8
|
+
export default class ExternalizableAbstractModel extends TenantAwareModel {
|
|
9
|
+
/**
|
|
10
|
+
* Returns A globally unique identifier of an instance that is suitable for external consumption.
|
|
11
|
+
* @return {string}
|
|
12
|
+
*/
|
|
13
|
+
getExtId(): string;
|
|
14
|
+
/**
|
|
15
|
+
* Sets A globally unique identifier of an instance that is suitable for external consumption.
|
|
16
|
+
* @param {string} extId A globally unique identifier of an instance that is suitable for external consumption.
|
|
17
|
+
*/
|
|
18
|
+
setExtId(extId: string): void;
|
|
19
|
+
extId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Returns 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.
|
|
22
|
+
* @return {ApiLink[]}
|
|
23
|
+
*/
|
|
24
|
+
getLinks(): ApiLink[];
|
|
25
|
+
/**
|
|
26
|
+
* Sets 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.
|
|
27
|
+
* @param {ApiLink[]} links 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.
|
|
28
|
+
*/
|
|
29
|
+
setLinks(links: ApiLink[]): void;
|
|
30
|
+
links: ApiLink[];
|
|
31
|
+
toJson(forMutation: any): {
|
|
32
|
+
$reserved: any;
|
|
33
|
+
$objectType: string;
|
|
34
|
+
$unknownFields: any;
|
|
35
|
+
tenantId?: string;
|
|
36
|
+
links?: {
|
|
37
|
+
$reserved: any;
|
|
38
|
+
$objectType: string;
|
|
39
|
+
$unknownFields: any;
|
|
40
|
+
rel?: string;
|
|
41
|
+
href?: string;
|
|
42
|
+
}[];
|
|
43
|
+
extId?: string;
|
|
44
|
+
};
|
|
45
|
+
#private;
|
|
46
|
+
}
|
|
47
|
+
import TenantAwareModel from "../config/TenantAwareModel";
|
|
48
|
+
import ApiLink from "./ApiLink";
|