@nutanix-scratch/lifecycle-js-client 4.0.1-beta.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 +49 -0
- package/README.md +197 -0
- package/dist/Ntnx-Lifecycle-js-client-prod.js +1 -0
- package/dist/Ntnx-Lifecycle-js-client.js +1180 -0
- package/dist/es/ApiClient.d.ts +159 -0
- package/dist/es/ApiClient.js +1216 -0
- package/dist/es/Paginable.d.ts +95 -0
- package/dist/es/Paginable.js +287 -0
- package/dist/es/apis/config-endpoints.d.ts +51 -0
- package/dist/es/apis/config-endpoints.js +148 -0
- package/dist/es/apis/entities-endpoints.d.ts +68 -0
- package/dist/es/apis/entities-endpoints.js +166 -0
- package/dist/es/apis/images-endpoints.d.ts +59 -0
- package/dist/es/apis/images-endpoints.js +129 -0
- package/dist/es/apis/inventory-endpoints.d.ts +35 -0
- package/dist/es/apis/inventory-endpoints.js +104 -0
- package/dist/es/apis/notifications-endpoints.d.ts +47 -0
- package/dist/es/apis/notifications-endpoints.js +150 -0
- package/dist/es/apis/prechecks-endpoints.d.ts +39 -0
- package/dist/es/apis/prechecks-endpoints.js +113 -0
- package/dist/es/apis/recommendations-endpoints.d.ts +48 -0
- package/dist/es/apis/recommendations-endpoints.js +150 -0
- package/dist/es/apis/status-endpoints.d.ts +35 -0
- package/dist/es/apis/status-endpoints.js +104 -0
- package/dist/es/apis/upgrades-endpoints.d.ts +39 -0
- package/dist/es/apis/upgrades-endpoints.js +113 -0
- package/dist/es/index.d.ts +146 -0
- package/dist/es/index.js +580 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/es/models/common/v1/config/Flag.js +275 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +62 -0
- package/dist/es/models/common/v1/config/KVPair.js +332 -0
- package/dist/es/models/common/v1/config/Message.d.ts +84 -0
- package/dist/es/models/common/v1/config/Message.js +354 -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 +50 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.js +243 -0
- package/dist/es/models/common/v1/response/ApiLink.d.ts +62 -0
- package/dist/es/models/common/v1/response/ApiLink.js +280 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +438 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
- package/dist/es/models/lifecycle/v4/common/AvailableVersionStatus.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/AvailableVersionStatus.js +121 -0
- package/dist/es/models/lifecycle/v4/common/CheckSumType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/CheckSumType.js +85 -0
- package/dist/es/models/lifecycle/v4/common/EntityBaseModel.d.ts +78 -0
- package/dist/es/models/lifecycle/v4/common/EntityBaseModel.js +375 -0
- package/dist/es/models/lifecycle/v4/common/EntityDeploySpec.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/common/EntityDeploySpec.js +245 -0
- package/dist/es/models/lifecycle/v4/common/EntityType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/EntityType.js +85 -0
- package/dist/es/models/lifecycle/v4/common/EntityUpdateSpec.d.ts +76 -0
- package/dist/es/models/lifecycle/v4/common/EntityUpdateSpec.js +293 -0
- package/dist/es/models/lifecycle/v4/common/HypervisorType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/HypervisorType.js +91 -0
- package/dist/es/models/lifecycle/v4/common/LocationInfo.d.ts +58 -0
- package/dist/es/models/lifecycle/v4/common/LocationInfo.js +276 -0
- package/dist/es/models/lifecycle/v4/common/LocationType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/LocationType.js +91 -0
- package/dist/es/models/lifecycle/v4/common/ManagementServer.d.ts +107 -0
- package/dist/es/models/lifecycle/v4/common/ManagementServer.js +377 -0
- package/dist/es/models/lifecycle/v4/common/NotificationType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/NotificationType.js +85 -0
- package/dist/es/models/lifecycle/v4/common/OperationType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/OperationType.js +97 -0
- package/dist/es/models/lifecycle/v4/common/PrechecksSpec.d.ts +81 -0
- package/dist/es/models/lifecycle/v4/common/PrechecksSpec.js +342 -0
- package/dist/es/models/lifecycle/v4/common/SystemAutoMgmtFlag.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/SystemAutoMgmtFlag.js +79 -0
- package/dist/es/models/lifecycle/v4/common/UpgradeSpec.d.ts +48 -0
- package/dist/es/models/lifecycle/v4/common/UpgradeSpec.js +292 -0
- package/dist/es/models/lifecycle/v4/error/AppMessage.d.ts +108 -0
- package/dist/es/models/lifecycle/v4/error/AppMessage.js +432 -0
- package/dist/es/models/lifecycle/v4/error/ErrorResponse.d.ts +48 -0
- package/dist/es/models/lifecycle/v4/error/ErrorResponse.js +296 -0
- package/dist/es/models/lifecycle/v4/error/SchemaValidationError.d.ts +98 -0
- package/dist/es/models/lifecycle/v4/error/SchemaValidationError.js +407 -0
- package/dist/es/models/lifecycle/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
- package/dist/es/models/lifecycle/v4/error/SchemaValidationErrorMessage.js +318 -0
- package/dist/es/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/operations/InventoryApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/operations/InventoryApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/operations/PrechecksApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/operations/PrechecksApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/operations/UpgradeApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/operations/UpgradeApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/resources/AvailableVersion.d.ts +182 -0
- package/dist/es/models/lifecycle/v4/resources/AvailableVersion.js +705 -0
- package/dist/es/models/lifecycle/v4/resources/Config.d.ts +150 -0
- package/dist/es/models/lifecycle/v4/resources/Config.js +627 -0
- package/dist/es/models/lifecycle/v4/resources/ConnectivityType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/resources/ConnectivityType.js +91 -0
- package/dist/es/models/lifecycle/v4/resources/DependentEntity.d.ts +37 -0
- package/dist/es/models/lifecycle/v4/resources/DependentEntity.js +255 -0
- package/dist/es/models/lifecycle/v4/resources/DeployableVersion.d.ts +47 -0
- package/dist/es/models/lifecycle/v4/resources/DeployableVersion.js +297 -0
- package/dist/es/models/lifecycle/v4/resources/Entity.d.ts +155 -0
- package/dist/es/models/lifecycle/v4/resources/Entity.js +663 -0
- package/dist/es/models/lifecycle/v4/resources/FrameworkVersionInfo.d.ts +74 -0
- package/dist/es/models/lifecycle/v4/resources/FrameworkVersionInfo.js +325 -0
- package/dist/es/models/lifecycle/v4/resources/GetConfigApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/resources/GetConfigApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/resources/GetEntityByIdApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/resources/GetStatusApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/resources/GetStatusApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/resources/Image.d.ts +109 -0
- package/dist/es/models/lifecycle/v4/resources/Image.js +464 -0
- package/dist/es/models/lifecycle/v4/resources/ImageFile.d.ts +127 -0
- package/dist/es/models/lifecycle/v4/resources/ImageFile.js +453 -0
- package/dist/es/models/lifecycle/v4/resources/InProgressOpInfo.d.ts +60 -0
- package/dist/es/models/lifecycle/v4/resources/InProgressOpInfo.js +281 -0
- package/dist/es/models/lifecycle/v4/resources/ListEntitiesApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/resources/ListEntitiesApiResponse.js +333 -0
- package/dist/es/models/lifecycle/v4/resources/ListImagesApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/resources/ListImagesApiResponse.js +333 -0
- package/dist/es/models/lifecycle/v4/resources/Notification.d.ts +42 -0
- package/dist/es/models/lifecycle/v4/resources/Notification.js +279 -0
- package/dist/es/models/lifecycle/v4/resources/NotificationDetail.d.ts +60 -0
- package/dist/es/models/lifecycle/v4/resources/NotificationDetail.js +281 -0
- package/dist/es/models/lifecycle/v4/resources/NotificationItem.d.ts +79 -0
- package/dist/es/models/lifecycle/v4/resources/NotificationItem.js +405 -0
- package/dist/es/models/lifecycle/v4/resources/RecommendationResult.d.ts +92 -0
- package/dist/es/models/lifecycle/v4/resources/RecommendationResult.js +488 -0
- package/dist/es/models/lifecycle/v4/resources/RecommendationSpec.d.ts +62 -0
- package/dist/es/models/lifecycle/v4/resources/RecommendationSpec.js +305 -0
- package/dist/es/models/lifecycle/v4/resources/SeverityLevel.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/resources/SeverityLevel.js +91 -0
- package/dist/es/models/lifecycle/v4/resources/StatusInfo.d.ts +82 -0
- package/dist/es/models/lifecycle/v4/resources/StatusInfo.js +358 -0
- package/dist/es/models/lifecycle/v4/resources/TargetEntity.d.ts +70 -0
- package/dist/es/models/lifecycle/v4/resources/TargetEntity.js +330 -0
- package/dist/es/models/lifecycle/v4/resources/UpdateConfigApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/resources/UpdateConfigApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntity.d.ts +35 -0
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntity.js +243 -0
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntityResult.d.ts +70 -0
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js +286 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +50 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +252 -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 +159 -0
- package/dist/lib/ApiClient.js +1216 -0
- package/dist/lib/Paginable.d.ts +95 -0
- package/dist/lib/Paginable.js +287 -0
- package/dist/lib/apis/config-endpoints.d.ts +51 -0
- package/dist/lib/apis/config-endpoints.js +148 -0
- package/dist/lib/apis/entities-endpoints.d.ts +68 -0
- package/dist/lib/apis/entities-endpoints.js +166 -0
- package/dist/lib/apis/images-endpoints.d.ts +59 -0
- package/dist/lib/apis/images-endpoints.js +129 -0
- package/dist/lib/apis/inventory-endpoints.d.ts +35 -0
- package/dist/lib/apis/inventory-endpoints.js +104 -0
- package/dist/lib/apis/notifications-endpoints.d.ts +47 -0
- package/dist/lib/apis/notifications-endpoints.js +150 -0
- package/dist/lib/apis/prechecks-endpoints.d.ts +39 -0
- package/dist/lib/apis/prechecks-endpoints.js +113 -0
- package/dist/lib/apis/recommendations-endpoints.d.ts +48 -0
- package/dist/lib/apis/recommendations-endpoints.js +150 -0
- package/dist/lib/apis/status-endpoints.d.ts +35 -0
- package/dist/lib/apis/status-endpoints.js +104 -0
- package/dist/lib/apis/upgrades-endpoints.d.ts +39 -0
- package/dist/lib/apis/upgrades-endpoints.js +113 -0
- package/dist/lib/index.d.ts +146 -0
- package/dist/lib/index.js +580 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/lib/models/common/v1/config/Flag.js +275 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +62 -0
- package/dist/lib/models/common/v1/config/KVPair.js +332 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +84 -0
- package/dist/lib/models/common/v1/config/Message.js +354 -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 +50 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +243 -0
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +62 -0
- package/dist/lib/models/common/v1/response/ApiLink.js +280 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +438 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
- package/dist/lib/models/lifecycle/v4/common/AvailableVersionStatus.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/AvailableVersionStatus.js +121 -0
- package/dist/lib/models/lifecycle/v4/common/CheckSumType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/CheckSumType.js +85 -0
- package/dist/lib/models/lifecycle/v4/common/EntityBaseModel.d.ts +78 -0
- package/dist/lib/models/lifecycle/v4/common/EntityBaseModel.js +375 -0
- package/dist/lib/models/lifecycle/v4/common/EntityDeploySpec.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/common/EntityDeploySpec.js +245 -0
- package/dist/lib/models/lifecycle/v4/common/EntityType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/EntityType.js +85 -0
- package/dist/lib/models/lifecycle/v4/common/EntityUpdateSpec.d.ts +76 -0
- package/dist/lib/models/lifecycle/v4/common/EntityUpdateSpec.js +293 -0
- package/dist/lib/models/lifecycle/v4/common/HypervisorType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/HypervisorType.js +91 -0
- package/dist/lib/models/lifecycle/v4/common/LocationInfo.d.ts +58 -0
- package/dist/lib/models/lifecycle/v4/common/LocationInfo.js +276 -0
- package/dist/lib/models/lifecycle/v4/common/LocationType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/LocationType.js +91 -0
- package/dist/lib/models/lifecycle/v4/common/ManagementServer.d.ts +107 -0
- package/dist/lib/models/lifecycle/v4/common/ManagementServer.js +377 -0
- package/dist/lib/models/lifecycle/v4/common/NotificationType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/NotificationType.js +85 -0
- package/dist/lib/models/lifecycle/v4/common/OperationType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/OperationType.js +97 -0
- package/dist/lib/models/lifecycle/v4/common/PrechecksSpec.d.ts +81 -0
- package/dist/lib/models/lifecycle/v4/common/PrechecksSpec.js +342 -0
- package/dist/lib/models/lifecycle/v4/common/SystemAutoMgmtFlag.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/SystemAutoMgmtFlag.js +79 -0
- package/dist/lib/models/lifecycle/v4/common/UpgradeSpec.d.ts +48 -0
- package/dist/lib/models/lifecycle/v4/common/UpgradeSpec.js +292 -0
- package/dist/lib/models/lifecycle/v4/error/AppMessage.d.ts +108 -0
- package/dist/lib/models/lifecycle/v4/error/AppMessage.js +432 -0
- package/dist/lib/models/lifecycle/v4/error/ErrorResponse.d.ts +48 -0
- package/dist/lib/models/lifecycle/v4/error/ErrorResponse.js +296 -0
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationError.d.ts +98 -0
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationError.js +407 -0
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationErrorMessage.js +318 -0
- package/dist/lib/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/operations/InventoryApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/operations/InventoryApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/operations/PrechecksApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/operations/PrechecksApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/operations/UpgradeApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/operations/UpgradeApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/resources/AvailableVersion.d.ts +182 -0
- package/dist/lib/models/lifecycle/v4/resources/AvailableVersion.js +705 -0
- package/dist/lib/models/lifecycle/v4/resources/Config.d.ts +150 -0
- package/dist/lib/models/lifecycle/v4/resources/Config.js +627 -0
- package/dist/lib/models/lifecycle/v4/resources/ConnectivityType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/resources/ConnectivityType.js +91 -0
- package/dist/lib/models/lifecycle/v4/resources/DependentEntity.d.ts +37 -0
- package/dist/lib/models/lifecycle/v4/resources/DependentEntity.js +255 -0
- package/dist/lib/models/lifecycle/v4/resources/DeployableVersion.d.ts +47 -0
- package/dist/lib/models/lifecycle/v4/resources/DeployableVersion.js +297 -0
- package/dist/lib/models/lifecycle/v4/resources/Entity.d.ts +155 -0
- package/dist/lib/models/lifecycle/v4/resources/Entity.js +663 -0
- package/dist/lib/models/lifecycle/v4/resources/FrameworkVersionInfo.d.ts +74 -0
- package/dist/lib/models/lifecycle/v4/resources/FrameworkVersionInfo.js +325 -0
- package/dist/lib/models/lifecycle/v4/resources/GetConfigApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/resources/GetConfigApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/resources/GetEntityByIdApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/resources/GetStatusApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/resources/GetStatusApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/resources/Image.d.ts +109 -0
- package/dist/lib/models/lifecycle/v4/resources/Image.js +464 -0
- package/dist/lib/models/lifecycle/v4/resources/ImageFile.d.ts +127 -0
- package/dist/lib/models/lifecycle/v4/resources/ImageFile.js +453 -0
- package/dist/lib/models/lifecycle/v4/resources/InProgressOpInfo.d.ts +60 -0
- package/dist/lib/models/lifecycle/v4/resources/InProgressOpInfo.js +281 -0
- package/dist/lib/models/lifecycle/v4/resources/ListEntitiesApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/resources/ListEntitiesApiResponse.js +333 -0
- package/dist/lib/models/lifecycle/v4/resources/ListImagesApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/resources/ListImagesApiResponse.js +333 -0
- package/dist/lib/models/lifecycle/v4/resources/Notification.d.ts +42 -0
- package/dist/lib/models/lifecycle/v4/resources/Notification.js +279 -0
- package/dist/lib/models/lifecycle/v4/resources/NotificationDetail.d.ts +60 -0
- package/dist/lib/models/lifecycle/v4/resources/NotificationDetail.js +281 -0
- package/dist/lib/models/lifecycle/v4/resources/NotificationItem.d.ts +79 -0
- package/dist/lib/models/lifecycle/v4/resources/NotificationItem.js +405 -0
- package/dist/lib/models/lifecycle/v4/resources/RecommendationResult.d.ts +92 -0
- package/dist/lib/models/lifecycle/v4/resources/RecommendationResult.js +488 -0
- package/dist/lib/models/lifecycle/v4/resources/RecommendationSpec.d.ts +62 -0
- package/dist/lib/models/lifecycle/v4/resources/RecommendationSpec.js +305 -0
- package/dist/lib/models/lifecycle/v4/resources/SeverityLevel.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/resources/SeverityLevel.js +91 -0
- package/dist/lib/models/lifecycle/v4/resources/StatusInfo.d.ts +82 -0
- package/dist/lib/models/lifecycle/v4/resources/StatusInfo.js +358 -0
- package/dist/lib/models/lifecycle/v4/resources/TargetEntity.d.ts +70 -0
- package/dist/lib/models/lifecycle/v4/resources/TargetEntity.js +330 -0
- package/dist/lib/models/lifecycle/v4/resources/UpdateConfigApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/resources/UpdateConfigApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntity.d.ts +35 -0
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntity.js +243 -0
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntityResult.d.ts +70 -0
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js +286 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +50 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +252 -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,464 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _AvailableVersionStatus = _interopRequireDefault(require("../common/AvailableVersionStatus"));
|
|
8
|
+
var _EntityBaseModel2 = _interopRequireDefault(require("../common/EntityBaseModel"));
|
|
9
|
+
var _EntityType = _interopRequireDefault(require("../common/EntityType"));
|
|
10
|
+
var _ImageFile = _interopRequireDefault(require("./ImageFile"));
|
|
11
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
12
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
13
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _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(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
19
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
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(arr) { if (Array.isArray(arr)) return arr; }
|
|
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(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
26
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
27
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
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 _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
31
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
32
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
33
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
34
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
35
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
36
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
38
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
39
|
+
* Nutanix Lifecycle Versioned APIs
|
|
40
|
+
*
|
|
41
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
42
|
+
*
|
|
43
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
44
|
+
*
|
|
45
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
46
|
+
*
|
|
47
|
+
* Do not edit the class manually.
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
/**
|
|
51
|
+
* The Image model module.
|
|
52
|
+
* @module Ntnx/Image
|
|
53
|
+
* @version 4.0.1-beta-1
|
|
54
|
+
* @class Image
|
|
55
|
+
*
|
|
56
|
+
* @param { String } specVersion Version specification for image metadata JSON.
|
|
57
|
+
*
|
|
58
|
+
* @param { ImageFile } files
|
|
59
|
+
*/
|
|
60
|
+
var _Image_brand = /*#__PURE__*/new WeakSet();
|
|
61
|
+
var Image = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
62
|
+
/**
|
|
63
|
+
* Constructs a new <code>Image</code>.
|
|
64
|
+
* LCM image (List of LCM image files).
|
|
65
|
+
* @alias module:Ntnx/Image
|
|
66
|
+
* @extends module:Ntnx/EntityBaseModel
|
|
67
|
+
*
|
|
68
|
+
* @param { String } specVersion Version specification for image metadata JSON.
|
|
69
|
+
*
|
|
70
|
+
* @param { ImageFile } files
|
|
71
|
+
*/
|
|
72
|
+
function Image(specVersion, files) {
|
|
73
|
+
var _this;
|
|
74
|
+
_classCallCheck(this, Image);
|
|
75
|
+
_this = _callSuper(this, Image);
|
|
76
|
+
/*
|
|
77
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
78
|
+
* @param {Object} obj
|
|
79
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
80
|
+
* Otherwise, just returns the input object.
|
|
81
|
+
*/
|
|
82
|
+
_classPrivateMethodInitSpec(_this, _Image_brand);
|
|
83
|
+
_this.specVersion = specVersion;
|
|
84
|
+
_this.files = files;
|
|
85
|
+
_this.$objectType = "lifecycle.v4.resources.Image";
|
|
86
|
+
_this.$reserved = {
|
|
87
|
+
'$fv': "v4.r0.b1"
|
|
88
|
+
};
|
|
89
|
+
_this.$unknownFields = {};
|
|
90
|
+
return _this;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Constructs a <code>Image</code> from a plain JavaScript object, optionally creating a new instance.
|
|
95
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
96
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
97
|
+
* @param {module:Ntnx/Image} obj Optional instance to populate.
|
|
98
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
99
|
+
* @return {module:Ntnx/Image} The populated <code>Image</code> instance.
|
|
100
|
+
*/
|
|
101
|
+
_inherits(Image, _EntityBaseModel);
|
|
102
|
+
return _createClass(Image, [{
|
|
103
|
+
key: "getReleaseNotes",
|
|
104
|
+
value:
|
|
105
|
+
/**
|
|
106
|
+
* Returns Release notes for the LCM image.
|
|
107
|
+
* @return {}
|
|
108
|
+
*/
|
|
109
|
+
function getReleaseNotes() {
|
|
110
|
+
return this.releaseNotes;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Sets Release notes for the LCM image.
|
|
115
|
+
* @param {} releaseNotes Release notes for the LCM image.
|
|
116
|
+
*/
|
|
117
|
+
}, {
|
|
118
|
+
key: "setReleaseNotes",
|
|
119
|
+
value: function setReleaseNotes(releaseNotes) {
|
|
120
|
+
this.releaseNotes = releaseNotes;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Returns Version specification for image metadata JSON.
|
|
125
|
+
* @return {}
|
|
126
|
+
*/
|
|
127
|
+
}, {
|
|
128
|
+
key: "getSpecVersion",
|
|
129
|
+
value: function getSpecVersion() {
|
|
130
|
+
return this.specVersion;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Sets Version specification for image metadata JSON.
|
|
135
|
+
* @param {} specVersion Version specification for image metadata JSON.
|
|
136
|
+
*/
|
|
137
|
+
}, {
|
|
138
|
+
key: "setSpecVersion",
|
|
139
|
+
value: function setSpecVersion(specVersion) {
|
|
140
|
+
this.specVersion = specVersion;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Returns Denotes if the thirdparty version is qualified.
|
|
145
|
+
* @return {}
|
|
146
|
+
*/
|
|
147
|
+
}, {
|
|
148
|
+
key: "getIsQualified",
|
|
149
|
+
value: function getIsQualified() {
|
|
150
|
+
return this.isQualified;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Sets Denotes if the thirdparty version is qualified.
|
|
155
|
+
* @param {} isQualified Denotes if the thirdparty version is qualified.
|
|
156
|
+
*/
|
|
157
|
+
}, {
|
|
158
|
+
key: "setIsQualified",
|
|
159
|
+
value: function setIsQualified(isQualified) {
|
|
160
|
+
this.isQualified = isQualified;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @return {}
|
|
165
|
+
*/
|
|
166
|
+
}, {
|
|
167
|
+
key: "getStatus",
|
|
168
|
+
value: function getStatus() {
|
|
169
|
+
return this.status;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @param {} status
|
|
174
|
+
*/
|
|
175
|
+
}, {
|
|
176
|
+
key: "setStatus",
|
|
177
|
+
value: function setStatus(status) {
|
|
178
|
+
this.status = status;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @return {}
|
|
183
|
+
*/
|
|
184
|
+
}, {
|
|
185
|
+
key: "getFiles",
|
|
186
|
+
value: function getFiles() {
|
|
187
|
+
return this.files;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @param {} files
|
|
192
|
+
*/
|
|
193
|
+
}, {
|
|
194
|
+
key: "setFiles",
|
|
195
|
+
value: function setFiles(files) {
|
|
196
|
+
this.files = files;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Returns Cluster uuid on which the resource is present or operation is being performed.
|
|
201
|
+
* @return {}
|
|
202
|
+
*/
|
|
203
|
+
}, {
|
|
204
|
+
key: "getClusterExtId",
|
|
205
|
+
value: function getClusterExtId() {
|
|
206
|
+
return this.clusterExtId;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Sets Cluster uuid on which the resource is present or operation is being performed.
|
|
211
|
+
* @param {} clusterExtId Cluster uuid on which the resource is present or operation is being performed.
|
|
212
|
+
*/
|
|
213
|
+
}, {
|
|
214
|
+
key: "setClusterExtId",
|
|
215
|
+
value: function setClusterExtId(clusterExtId) {
|
|
216
|
+
this.clusterExtId = clusterExtId;
|
|
217
|
+
}
|
|
218
|
+
}, {
|
|
219
|
+
key: "toJson",
|
|
220
|
+
value: function toJson(forMutation) {
|
|
221
|
+
if (forMutation === false) {
|
|
222
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getReleaseNotes() !== 'undefined' && this.getReleaseNotes() !== null ? {
|
|
223
|
+
'releaseNotes': this.getReleaseNotes()
|
|
224
|
+
} : {}), typeof this.getSpecVersion() !== 'undefined' && this.getSpecVersion() !== null ? {
|
|
225
|
+
'specVersion': this.getSpecVersion()
|
|
226
|
+
} : {}), typeof this.getIsQualified() !== 'undefined' && this.getIsQualified() !== null ? {
|
|
227
|
+
'isQualified': this.getIsQualified()
|
|
228
|
+
} : {}), typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {
|
|
229
|
+
'status': this.getStatus()
|
|
230
|
+
} : {}), typeof this.getFiles() !== 'undefined' && this.getFiles() !== null ? {
|
|
231
|
+
'files': this.getFiles().map(function (item) {
|
|
232
|
+
return item.toJson(false);
|
|
233
|
+
})
|
|
234
|
+
} : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
235
|
+
'clusterExtId': this.getClusterExtId()
|
|
236
|
+
} : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {
|
|
237
|
+
'entityClass': this.getEntityClass()
|
|
238
|
+
} : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {
|
|
239
|
+
'entityModel': this.getEntityModel()
|
|
240
|
+
} : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {
|
|
241
|
+
'entityType': this.getEntityType()
|
|
242
|
+
} : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {
|
|
243
|
+
'entityVersion': this.getEntityVersion()
|
|
244
|
+
} : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {
|
|
245
|
+
'hardwareFamily': this.getHardwareFamily()
|
|
246
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
247
|
+
'extId': this.getExtId()
|
|
248
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
249
|
+
'links': this.getLinks().map(function (item) {
|
|
250
|
+
return item.toJson(false);
|
|
251
|
+
})
|
|
252
|
+
} : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
253
|
+
'tenantId': this.getTenantId()
|
|
254
|
+
} : {}), {}, {
|
|
255
|
+
'$reserved': this.get$Reserved(),
|
|
256
|
+
'$objectType': this.get$ObjectType(),
|
|
257
|
+
'$unknownFields': this.get$UnknownFields()
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getReleaseNotes() !== 'undefined' && this.getReleaseNotes() !== null ? {
|
|
261
|
+
'releaseNotes': this.getReleaseNotes()
|
|
262
|
+
} : {}), typeof this.getSpecVersion() !== 'undefined' && this.getSpecVersion() !== null ? {
|
|
263
|
+
'specVersion': this.getSpecVersion()
|
|
264
|
+
} : {}), typeof this.getIsQualified() !== 'undefined' && this.getIsQualified() !== null ? {
|
|
265
|
+
'isQualified': this.getIsQualified()
|
|
266
|
+
} : {}), typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {
|
|
267
|
+
'status': this.getStatus()
|
|
268
|
+
} : {}), typeof this.getFiles() !== 'undefined' && this.getFiles() !== null ? {
|
|
269
|
+
'files': this.getFiles().map(function (item) {
|
|
270
|
+
return item.toJson(false);
|
|
271
|
+
})
|
|
272
|
+
} : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
273
|
+
'clusterExtId': this.getClusterExtId()
|
|
274
|
+
} : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {
|
|
275
|
+
'entityClass': this.getEntityClass()
|
|
276
|
+
} : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {
|
|
277
|
+
'entityModel': this.getEntityModel()
|
|
278
|
+
} : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {
|
|
279
|
+
'entityType': this.getEntityType()
|
|
280
|
+
} : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {
|
|
281
|
+
'entityVersion': this.getEntityVersion()
|
|
282
|
+
} : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {
|
|
283
|
+
'hardwareFamily': this.getHardwareFamily()
|
|
284
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
285
|
+
'extId': this.getExtId()
|
|
286
|
+
} : {}), {}, {
|
|
287
|
+
'$reserved': this.get$Reserved(),
|
|
288
|
+
'$objectType': this.get$ObjectType(),
|
|
289
|
+
'$unknownFields': this.get$UnknownFields()
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
}, {
|
|
293
|
+
key: "validate",
|
|
294
|
+
value: function validate(scope, properties) {
|
|
295
|
+
var _this2 = this;
|
|
296
|
+
var propList = [];
|
|
297
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
298
|
+
//cases validate() and validate(scope)
|
|
299
|
+
propList = ["specVersion", "files"];
|
|
300
|
+
} else if (arguments.length === 1) {
|
|
301
|
+
//case validate(properties)
|
|
302
|
+
propList = arguments[0];
|
|
303
|
+
scope = null;
|
|
304
|
+
} else {
|
|
305
|
+
//case validate(scope, properties)
|
|
306
|
+
propList = arguments[1];
|
|
307
|
+
}
|
|
308
|
+
var res = [];
|
|
309
|
+
var err = null;
|
|
310
|
+
propList.forEach(function (property) {
|
|
311
|
+
err = _this2.validateProperty(property, scope);
|
|
312
|
+
if (err) {
|
|
313
|
+
res.push(err);
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
return new Promise(function (resolve, reject) {
|
|
317
|
+
if (res.length !== 0) {
|
|
318
|
+
reject(err);
|
|
319
|
+
} else {
|
|
320
|
+
resolve();
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
}, {
|
|
325
|
+
key: "validateProperty",
|
|
326
|
+
value: function validateProperty(scope, property) {
|
|
327
|
+
if (property === "releaseNotes") {
|
|
328
|
+
if (typeof this.releaseNotes === 'undefined' || this.releaseNotes === null) {
|
|
329
|
+
return new _ValidationError["default"]("releaseNotes", "undefined or null");
|
|
330
|
+
}
|
|
331
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.releaseNotes, 1024)) {
|
|
332
|
+
return new _ValidationError["default"]("releaseNotes", "does not satisfy required maxLength constraint: 1024");
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
if (property === "specVersion") {
|
|
336
|
+
if (typeof this.specVersion === 'undefined' || this.specVersion === null) {
|
|
337
|
+
return new _ValidationError["default"]("specVersion", "undefined or null");
|
|
338
|
+
}
|
|
339
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.specVersion, 128)) {
|
|
340
|
+
return new _ValidationError["default"]("specVersion", "does not satisfy required maxLength constraint: 128");
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
if (property === "isQualified") {
|
|
344
|
+
if (typeof this.isQualified === 'undefined' || this.isQualified === null) {
|
|
345
|
+
return new _ValidationError["default"]("isQualified", "undefined or null");
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
if (property === "status") {
|
|
349
|
+
if (typeof this.status === 'undefined' || this.status === null) {
|
|
350
|
+
return new _ValidationError["default"]("status", "undefined or null");
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
if (property === "files") {
|
|
354
|
+
if (typeof this.files === 'undefined' || this.files === null) {
|
|
355
|
+
return new _ValidationError["default"]("files", "undefined or null");
|
|
356
|
+
}
|
|
357
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.files, 100)) {
|
|
358
|
+
return new _ValidationError["default"]("files", "does not satisfy required maxItems constraint: 100");
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
if (property === "clusterExtId") {
|
|
362
|
+
if (typeof this.clusterExtId === 'undefined' || this.clusterExtId === null) {
|
|
363
|
+
return new _ValidationError["default"]("clusterExtId", "undefined or null");
|
|
364
|
+
}
|
|
365
|
+
if (!_ValidationUtils["default"].validatePattern(this.clusterExtId, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
366
|
+
return new _ValidationError["default"]("clusterExtId", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
370
|
+
}
|
|
371
|
+
}], [{
|
|
372
|
+
key: "constructFromObject",
|
|
373
|
+
value: function constructFromObject(data, obj) {
|
|
374
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
375
|
+
var items, item, i, itemArr, discriminator;
|
|
376
|
+
if (data) {
|
|
377
|
+
obj = obj || new Image();
|
|
378
|
+
_EntityBaseModel2["default"].constructFromObject(data, obj, true);
|
|
379
|
+
if (data.hasOwnProperty('releaseNotes') && data.releaseNotes !== null && data.releaseNotes !== undefined) {
|
|
380
|
+
obj.setReleaseNotes(data['releaseNotes']);
|
|
381
|
+
}
|
|
382
|
+
if (data.hasOwnProperty('specVersion') && data.specVersion !== null && data.specVersion !== undefined) {
|
|
383
|
+
obj.setSpecVersion(data['specVersion']);
|
|
384
|
+
}
|
|
385
|
+
if (data.hasOwnProperty('isQualified') && data.isQualified !== null && data.isQualified !== undefined) {
|
|
386
|
+
obj.setIsQualified(data['isQualified']);
|
|
387
|
+
}
|
|
388
|
+
if (data.hasOwnProperty('status') && data.status !== null && data.status !== undefined) {
|
|
389
|
+
obj.setStatus(_AvailableVersionStatus["default"].constructFromObject(data['status']));
|
|
390
|
+
}
|
|
391
|
+
if (data.hasOwnProperty('files') && data.files !== null && data.files !== undefined) {
|
|
392
|
+
itemArr = [];
|
|
393
|
+
items = data.files;
|
|
394
|
+
for (i = 0; i < items.length; i++) {
|
|
395
|
+
item = _ImageFile["default"].constructFromObject(items[i], undefined);
|
|
396
|
+
itemArr.push(item);
|
|
397
|
+
}
|
|
398
|
+
obj.setFiles(itemArr);
|
|
399
|
+
}
|
|
400
|
+
if (data.hasOwnProperty('clusterExtId') && data.clusterExtId !== null && data.clusterExtId !== undefined) {
|
|
401
|
+
obj.setClusterExtId(data['clusterExtId']);
|
|
402
|
+
}
|
|
403
|
+
if (!callFromChild) {
|
|
404
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
405
|
+
for (var property in data) {
|
|
406
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
407
|
+
obj.$unknownFields[property] = data[property];
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
return obj;
|
|
413
|
+
}
|
|
414
|
+
}]);
|
|
415
|
+
}(_EntityBaseModel2["default"]);
|
|
416
|
+
/**
|
|
417
|
+
* Release notes for the LCM image.
|
|
418
|
+
* @memberof Image
|
|
419
|
+
*/
|
|
420
|
+
function _toJsonMapType(obj, forMutation) {
|
|
421
|
+
if (obj instanceof Map) {
|
|
422
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
423
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
424
|
+
k = _ref2[0],
|
|
425
|
+
v = _ref2[1];
|
|
426
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
427
|
+
}));
|
|
428
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
429
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
430
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
431
|
+
}));
|
|
432
|
+
}
|
|
433
|
+
return obj;
|
|
434
|
+
}
|
|
435
|
+
Image.prototype.releaseNotes = undefined;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Version specification for image metadata JSON.
|
|
439
|
+
* @memberof Image
|
|
440
|
+
*/
|
|
441
|
+
Image.prototype.specVersion = undefined;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Denotes if the thirdparty version is qualified.
|
|
445
|
+
* @memberof Image
|
|
446
|
+
* @default false
|
|
447
|
+
*/
|
|
448
|
+
Image.prototype.isQualified = false;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* @memberof Image
|
|
452
|
+
*/
|
|
453
|
+
Image.prototype.status = undefined;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* @memberof Image
|
|
457
|
+
*/
|
|
458
|
+
Image.prototype.files = undefined;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Cluster uuid on which the resource is present or operation is being performed.
|
|
462
|
+
* @memberof Image
|
|
463
|
+
*/
|
|
464
|
+
Image.prototype.clusterExtId = undefined;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ImageFile model module.
|
|
3
|
+
* @module Ntnx/ImageFile
|
|
4
|
+
* @version 4.0.1-beta-1
|
|
5
|
+
* @class ImageFile
|
|
6
|
+
*
|
|
7
|
+
* @param { Number } sizeBytes LCM image file size.
|
|
8
|
+
*
|
|
9
|
+
* @param { CheckSumType } checksumType
|
|
10
|
+
*
|
|
11
|
+
* @param { String } checksum LCM image checksum.
|
|
12
|
+
*/
|
|
13
|
+
export default class ImageFile {
|
|
14
|
+
/**
|
|
15
|
+
* Constructs a <code>ImageFile</code> from a plain JavaScript object, optionally creating a new instance.
|
|
16
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
17
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
18
|
+
* @param {module:Ntnx/ImageFile} obj Optional instance to populate.
|
|
19
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
20
|
+
* @return {module:Ntnx/ImageFile} The populated <code>ImageFile</code> instance.
|
|
21
|
+
*/
|
|
22
|
+
static constructFromObject(data: any, obj: any, callFromChild?: boolean): any;
|
|
23
|
+
/**
|
|
24
|
+
* Constructs a new <code>ImageFile</code>.
|
|
25
|
+
* Description of LCM image file.
|
|
26
|
+
* @alias module:Ntnx/ImageFile
|
|
27
|
+
*
|
|
28
|
+
* @param { Number } sizeBytes LCM image file size.
|
|
29
|
+
*
|
|
30
|
+
* @param { CheckSumType } checksumType
|
|
31
|
+
*
|
|
32
|
+
* @param { String } checksum LCM image checksum.
|
|
33
|
+
*/
|
|
34
|
+
constructor(sizeBytes: number, checksumType: CheckSumType, checksum: string);
|
|
35
|
+
sizeBytes: number;
|
|
36
|
+
checksumType: string;
|
|
37
|
+
checksum: string;
|
|
38
|
+
$objectType: string;
|
|
39
|
+
$reserved: {
|
|
40
|
+
$fv: string;
|
|
41
|
+
};
|
|
42
|
+
$unknownFields: {};
|
|
43
|
+
/**
|
|
44
|
+
* Returns Image file global catalog item UUID.
|
|
45
|
+
* @return {}
|
|
46
|
+
*/
|
|
47
|
+
getFileLocationId(): any;
|
|
48
|
+
/**
|
|
49
|
+
* Sets Image file global catalog item UUID.
|
|
50
|
+
* @param {} fileLocationId Image file global catalog item UUID.
|
|
51
|
+
*/
|
|
52
|
+
setFileLocationId(fileLocationId: any): void;
|
|
53
|
+
fileLocationId: any;
|
|
54
|
+
/**
|
|
55
|
+
* Returns LCM image file name.
|
|
56
|
+
* @return {}
|
|
57
|
+
*/
|
|
58
|
+
getName(): any;
|
|
59
|
+
/**
|
|
60
|
+
* Sets LCM image file name.
|
|
61
|
+
* @param {} name LCM image file name.
|
|
62
|
+
*/
|
|
63
|
+
setName(name: any): void;
|
|
64
|
+
name: any;
|
|
65
|
+
/**
|
|
66
|
+
* Returns LCM image file size.
|
|
67
|
+
* @return {}
|
|
68
|
+
*/
|
|
69
|
+
getSizeBytes(): any;
|
|
70
|
+
/**
|
|
71
|
+
* Sets LCM image file size.
|
|
72
|
+
* @param {} sizeBytes LCM image file size.
|
|
73
|
+
*/
|
|
74
|
+
setSizeBytes(sizeBytes: any): void;
|
|
75
|
+
/**
|
|
76
|
+
* Returns File path for the LCM image.
|
|
77
|
+
* @return {}
|
|
78
|
+
*/
|
|
79
|
+
getFilePath(): any;
|
|
80
|
+
/**
|
|
81
|
+
* Sets File path for the LCM image.
|
|
82
|
+
* @param {} filePath File path for the LCM image.
|
|
83
|
+
*/
|
|
84
|
+
setFilePath(filePath: any): void;
|
|
85
|
+
filePath: any;
|
|
86
|
+
/**
|
|
87
|
+
* @return {}
|
|
88
|
+
*/
|
|
89
|
+
getChecksumType(): any;
|
|
90
|
+
/**
|
|
91
|
+
* @param {} checksumType
|
|
92
|
+
*/
|
|
93
|
+
setChecksumType(checksumType: any): void;
|
|
94
|
+
/**
|
|
95
|
+
* Returns LCM image checksum.
|
|
96
|
+
* @return {}
|
|
97
|
+
*/
|
|
98
|
+
getChecksum(): any;
|
|
99
|
+
/**
|
|
100
|
+
* Sets LCM image checksum.
|
|
101
|
+
* @param {} checksum LCM image checksum.
|
|
102
|
+
*/
|
|
103
|
+
setChecksum(checksum: any): void;
|
|
104
|
+
get$Reserved(): {
|
|
105
|
+
$fv: string;
|
|
106
|
+
};
|
|
107
|
+
get$ObjectType(): string;
|
|
108
|
+
get$UnknownFields(): {};
|
|
109
|
+
toJson(forMutation: any): {
|
|
110
|
+
$reserved: {
|
|
111
|
+
$fv: string;
|
|
112
|
+
};
|
|
113
|
+
$objectType: string;
|
|
114
|
+
$unknownFields: {};
|
|
115
|
+
checksum?: any;
|
|
116
|
+
checksumType?: any;
|
|
117
|
+
filePath?: any;
|
|
118
|
+
sizeBytes?: any;
|
|
119
|
+
name?: any;
|
|
120
|
+
fileLocationId?: any;
|
|
121
|
+
};
|
|
122
|
+
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
123
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
124
|
+
#private;
|
|
125
|
+
}
|
|
126
|
+
import ValidationError from "../../../validation/ValidationError";
|
|
127
|
+
import CheckSumType from "../common/CheckSumType";
|