@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,297 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _EntityBaseModel2 = _interopRequireDefault(require("../common/EntityBaseModel"));
|
|
8
|
+
var _EntityType = _interopRequireDefault(require("../common/EntityType"));
|
|
9
|
+
var _EntityUpdateSpec = _interopRequireDefault(require("../common/EntityUpdateSpec"));
|
|
10
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
11
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
12
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
+
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); }
|
|
15
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
|
+
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."); }
|
|
17
|
+
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); }
|
|
18
|
+
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; }
|
|
19
|
+
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; } }
|
|
20
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
|
+
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; }
|
|
22
|
+
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; }
|
|
23
|
+
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; }
|
|
24
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
+
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); } }
|
|
26
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
28
|
+
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); }
|
|
29
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
30
|
+
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); }
|
|
31
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
32
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
33
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
34
|
+
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); }
|
|
35
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
36
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
37
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
38
|
+
* Nutanix Lifecycle Versioned APIs
|
|
39
|
+
*
|
|
40
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
41
|
+
*
|
|
42
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
43
|
+
*
|
|
44
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
45
|
+
*
|
|
46
|
+
* Do not edit the class manually.
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* The DeployableVersion model module.
|
|
51
|
+
* @module Ntnx/DeployableVersion
|
|
52
|
+
* @version 4.0.1-beta-1
|
|
53
|
+
* @class DeployableVersion
|
|
54
|
+
*/
|
|
55
|
+
var _DeployableVersion_brand = /*#__PURE__*/new WeakSet();
|
|
56
|
+
var DeployableVersion = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
57
|
+
/**
|
|
58
|
+
* Constructs a new <code>DeployableVersion</code>.
|
|
59
|
+
* List of deployable versions based on entity types, versions and its dependencies.
|
|
60
|
+
* @alias module:Ntnx/DeployableVersion
|
|
61
|
+
* @extends module:Ntnx/EntityBaseModel
|
|
62
|
+
*/
|
|
63
|
+
function DeployableVersion() {
|
|
64
|
+
var _this;
|
|
65
|
+
_classCallCheck(this, DeployableVersion);
|
|
66
|
+
_this = _callSuper(this, DeployableVersion);
|
|
67
|
+
/*
|
|
68
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
69
|
+
* @param {Object} obj
|
|
70
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
71
|
+
* Otherwise, just returns the input object.
|
|
72
|
+
*/
|
|
73
|
+
_classPrivateMethodInitSpec(_this, _DeployableVersion_brand);
|
|
74
|
+
_this.$objectType = "lifecycle.v4.resources.DeployableVersion";
|
|
75
|
+
_this.$reserved = {
|
|
76
|
+
'$fv': "v4.r0.b1"
|
|
77
|
+
};
|
|
78
|
+
_this.$unknownFields = {};
|
|
79
|
+
return _this;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Constructs a <code>DeployableVersion</code> from a plain JavaScript object, optionally creating a new instance.
|
|
84
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
85
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
86
|
+
* @param {module:Ntnx/DeployableVersion} obj Optional instance to populate.
|
|
87
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
88
|
+
* @return {module:Ntnx/DeployableVersion} The populated <code>DeployableVersion</code> instance.
|
|
89
|
+
*/
|
|
90
|
+
_inherits(DeployableVersion, _EntityBaseModel);
|
|
91
|
+
return _createClass(DeployableVersion, [{
|
|
92
|
+
key: "getTargetVersion",
|
|
93
|
+
value:
|
|
94
|
+
/**
|
|
95
|
+
* Returns Entity target version.
|
|
96
|
+
* @return {}
|
|
97
|
+
*/
|
|
98
|
+
function getTargetVersion() {
|
|
99
|
+
return this.targetVersion;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Sets Entity target version.
|
|
104
|
+
* @param {} targetVersion Entity target version.
|
|
105
|
+
*/
|
|
106
|
+
}, {
|
|
107
|
+
key: "setTargetVersion",
|
|
108
|
+
value: function setTargetVersion(targetVersion) {
|
|
109
|
+
this.targetVersion = targetVersion;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @return {}
|
|
114
|
+
*/
|
|
115
|
+
}, {
|
|
116
|
+
key: "getUpdateDependencies",
|
|
117
|
+
value: function getUpdateDependencies() {
|
|
118
|
+
return this.updateDependencies;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @param {} updateDependencies
|
|
123
|
+
*/
|
|
124
|
+
}, {
|
|
125
|
+
key: "setUpdateDependencies",
|
|
126
|
+
value: function setUpdateDependencies(updateDependencies) {
|
|
127
|
+
this.updateDependencies = updateDependencies;
|
|
128
|
+
}
|
|
129
|
+
}, {
|
|
130
|
+
key: "toJson",
|
|
131
|
+
value: function toJson(forMutation) {
|
|
132
|
+
if (forMutation === false) {
|
|
133
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getTargetVersion() !== 'undefined' && this.getTargetVersion() !== null ? {
|
|
134
|
+
'targetVersion': this.getTargetVersion()
|
|
135
|
+
} : {}), typeof this.getUpdateDependencies() !== 'undefined' && this.getUpdateDependencies() !== null ? {
|
|
136
|
+
'updateDependencies': this.getUpdateDependencies().map(function (item) {
|
|
137
|
+
return item.toJson(false);
|
|
138
|
+
})
|
|
139
|
+
} : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {
|
|
140
|
+
'entityClass': this.getEntityClass()
|
|
141
|
+
} : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {
|
|
142
|
+
'entityModel': this.getEntityModel()
|
|
143
|
+
} : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {
|
|
144
|
+
'entityType': this.getEntityType()
|
|
145
|
+
} : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {
|
|
146
|
+
'entityVersion': this.getEntityVersion()
|
|
147
|
+
} : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {
|
|
148
|
+
'hardwareFamily': this.getHardwareFamily()
|
|
149
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
150
|
+
'extId': this.getExtId()
|
|
151
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
152
|
+
'links': this.getLinks().map(function (item) {
|
|
153
|
+
return item.toJson(false);
|
|
154
|
+
})
|
|
155
|
+
} : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
156
|
+
'tenantId': this.getTenantId()
|
|
157
|
+
} : {}), {}, {
|
|
158
|
+
'$reserved': this.get$Reserved(),
|
|
159
|
+
'$objectType': this.get$ObjectType(),
|
|
160
|
+
'$unknownFields': this.get$UnknownFields()
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getTargetVersion() !== 'undefined' && this.getTargetVersion() !== null ? {
|
|
164
|
+
'targetVersion': this.getTargetVersion()
|
|
165
|
+
} : {}), typeof this.getUpdateDependencies() !== 'undefined' && this.getUpdateDependencies() !== null ? {
|
|
166
|
+
'updateDependencies': this.getUpdateDependencies().map(function (item) {
|
|
167
|
+
return item.toJson(false);
|
|
168
|
+
})
|
|
169
|
+
} : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {
|
|
170
|
+
'entityClass': this.getEntityClass()
|
|
171
|
+
} : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {
|
|
172
|
+
'entityModel': this.getEntityModel()
|
|
173
|
+
} : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {
|
|
174
|
+
'entityType': this.getEntityType()
|
|
175
|
+
} : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {
|
|
176
|
+
'entityVersion': this.getEntityVersion()
|
|
177
|
+
} : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {
|
|
178
|
+
'hardwareFamily': this.getHardwareFamily()
|
|
179
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
180
|
+
'extId': this.getExtId()
|
|
181
|
+
} : {}), {}, {
|
|
182
|
+
'$reserved': this.get$Reserved(),
|
|
183
|
+
'$objectType': this.get$ObjectType(),
|
|
184
|
+
'$unknownFields': this.get$UnknownFields()
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
}, {
|
|
188
|
+
key: "validate",
|
|
189
|
+
value: function validate(scope, properties) {
|
|
190
|
+
var _this2 = this;
|
|
191
|
+
var propList = [];
|
|
192
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
193
|
+
//cases validate() and validate(scope)
|
|
194
|
+
propList = [];
|
|
195
|
+
} else if (arguments.length === 1) {
|
|
196
|
+
//case validate(properties)
|
|
197
|
+
propList = arguments[0];
|
|
198
|
+
scope = null;
|
|
199
|
+
} else {
|
|
200
|
+
//case validate(scope, properties)
|
|
201
|
+
propList = arguments[1];
|
|
202
|
+
}
|
|
203
|
+
var res = [];
|
|
204
|
+
var err = null;
|
|
205
|
+
propList.forEach(function (property) {
|
|
206
|
+
err = _this2.validateProperty(property, scope);
|
|
207
|
+
if (err) {
|
|
208
|
+
res.push(err);
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
return new Promise(function (resolve, reject) {
|
|
212
|
+
if (res.length !== 0) {
|
|
213
|
+
reject(err);
|
|
214
|
+
} else {
|
|
215
|
+
resolve();
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
}, {
|
|
220
|
+
key: "validateProperty",
|
|
221
|
+
value: function validateProperty(scope, property) {
|
|
222
|
+
if (property === "targetVersion") {
|
|
223
|
+
if (typeof this.targetVersion === 'undefined' || this.targetVersion === null) {
|
|
224
|
+
return new _ValidationError["default"]("targetVersion", "undefined or null");
|
|
225
|
+
}
|
|
226
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.targetVersion, 128)) {
|
|
227
|
+
return new _ValidationError["default"]("targetVersion", "does not satisfy required maxLength constraint: 128");
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
if (property === "updateDependencies") {
|
|
231
|
+
if (typeof this.updateDependencies === 'undefined' || this.updateDependencies === null) {
|
|
232
|
+
return new _ValidationError["default"]("updateDependencies", "undefined or null");
|
|
233
|
+
}
|
|
234
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.updateDependencies, 2048)) {
|
|
235
|
+
return new _ValidationError["default"]("updateDependencies", "does not satisfy required maxItems constraint: 2048");
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
239
|
+
}
|
|
240
|
+
}], [{
|
|
241
|
+
key: "constructFromObject",
|
|
242
|
+
value: function constructFromObject(data, obj) {
|
|
243
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
244
|
+
var items, item, i, itemArr, discriminator;
|
|
245
|
+
if (data) {
|
|
246
|
+
obj = obj || new DeployableVersion();
|
|
247
|
+
_EntityBaseModel2["default"].constructFromObject(data, obj, true);
|
|
248
|
+
if (data.hasOwnProperty('targetVersion') && data.targetVersion !== null && data.targetVersion !== undefined) {
|
|
249
|
+
obj.setTargetVersion(data['targetVersion']);
|
|
250
|
+
}
|
|
251
|
+
if (data.hasOwnProperty('updateDependencies') && data.updateDependencies !== null && data.updateDependencies !== undefined) {
|
|
252
|
+
itemArr = [];
|
|
253
|
+
items = data.updateDependencies;
|
|
254
|
+
for (i = 0; i < items.length; i++) {
|
|
255
|
+
item = _EntityUpdateSpec["default"].constructFromObject(items[i], undefined);
|
|
256
|
+
itemArr.push(item);
|
|
257
|
+
}
|
|
258
|
+
obj.setUpdateDependencies(itemArr);
|
|
259
|
+
}
|
|
260
|
+
if (!callFromChild) {
|
|
261
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
262
|
+
for (var property in data) {
|
|
263
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
264
|
+
obj.$unknownFields[property] = data[property];
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
return obj;
|
|
270
|
+
}
|
|
271
|
+
}]);
|
|
272
|
+
}(_EntityBaseModel2["default"]);
|
|
273
|
+
/**
|
|
274
|
+
* Entity target version.
|
|
275
|
+
* @memberof DeployableVersion
|
|
276
|
+
*/
|
|
277
|
+
function _toJsonMapType(obj, forMutation) {
|
|
278
|
+
if (obj instanceof Map) {
|
|
279
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
280
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
281
|
+
k = _ref2[0],
|
|
282
|
+
v = _ref2[1];
|
|
283
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
284
|
+
}));
|
|
285
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
286
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
287
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
288
|
+
}));
|
|
289
|
+
}
|
|
290
|
+
return obj;
|
|
291
|
+
}
|
|
292
|
+
DeployableVersion.prototype.targetVersion = undefined;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @memberof DeployableVersion
|
|
296
|
+
*/
|
|
297
|
+
DeployableVersion.prototype.updateDependencies = undefined;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Entity model module.
|
|
3
|
+
* @module Ntnx/Entity
|
|
4
|
+
* @version 4.0.1-beta-1
|
|
5
|
+
* @class Entity
|
|
6
|
+
*/
|
|
7
|
+
export default class Entity extends EntityBaseModel {
|
|
8
|
+
/**
|
|
9
|
+
* Returns Description of an LCM entity.
|
|
10
|
+
* @return {}
|
|
11
|
+
*/
|
|
12
|
+
getEntityDescription(): any;
|
|
13
|
+
/**
|
|
14
|
+
* Sets Description of an LCM entity.
|
|
15
|
+
* @param {} entityDescription Description of an LCM entity.
|
|
16
|
+
*/
|
|
17
|
+
setEntityDescription(entityDescription: any): void;
|
|
18
|
+
entityDescription: any;
|
|
19
|
+
/**
|
|
20
|
+
* @return {}
|
|
21
|
+
*/
|
|
22
|
+
getLocationInfo(): any;
|
|
23
|
+
/**
|
|
24
|
+
* @param {} locationInfo
|
|
25
|
+
*/
|
|
26
|
+
setLocationInfo(locationInfo: any): void;
|
|
27
|
+
locationInfo: any;
|
|
28
|
+
/**
|
|
29
|
+
* Returns The requested update version of an LCM entity.
|
|
30
|
+
* @return {}
|
|
31
|
+
*/
|
|
32
|
+
getTargetVersion(): any;
|
|
33
|
+
/**
|
|
34
|
+
* Sets The requested update version of an LCM entity.
|
|
35
|
+
* @param {} targetVersion The requested update version of an LCM entity.
|
|
36
|
+
*/
|
|
37
|
+
setTargetVersion(targetVersion: any): void;
|
|
38
|
+
targetVersion: any;
|
|
39
|
+
/**
|
|
40
|
+
* Returns UTC date and time in RFC-3339 format when the task was last updated.
|
|
41
|
+
* @return {}
|
|
42
|
+
*/
|
|
43
|
+
getLastUpdatedTime(): any;
|
|
44
|
+
/**
|
|
45
|
+
* Sets UTC date and time in RFC-3339 format when the task was last updated.
|
|
46
|
+
* @param {} lastUpdatedTime UTC date and time in RFC-3339 format when the task was last updated.
|
|
47
|
+
*/
|
|
48
|
+
setLastUpdatedTime(lastUpdatedTime: any): void;
|
|
49
|
+
lastUpdatedTime: any;
|
|
50
|
+
/**
|
|
51
|
+
* Returns Unique identifier of an LCM entity e.g. \"HDD serial number\".
|
|
52
|
+
* @return {}
|
|
53
|
+
*/
|
|
54
|
+
getDeviceId(): any;
|
|
55
|
+
/**
|
|
56
|
+
* Sets Unique identifier of an LCM entity e.g. \"HDD serial number\".
|
|
57
|
+
* @param {} deviceId Unique identifier of an LCM entity e.g. \"HDD serial number\".
|
|
58
|
+
*/
|
|
59
|
+
setDeviceId(deviceId: any): void;
|
|
60
|
+
deviceId: any;
|
|
61
|
+
/**
|
|
62
|
+
* Returns UUID of the group that this LCM entity is part of.
|
|
63
|
+
* @return {}
|
|
64
|
+
*/
|
|
65
|
+
getGroupUuid(): any;
|
|
66
|
+
/**
|
|
67
|
+
* Sets UUID of the group that this LCM entity is part of.
|
|
68
|
+
* @param {} groupUuid UUID of the group that this LCM entity is part of.
|
|
69
|
+
*/
|
|
70
|
+
setGroupUuid(groupUuid: any): void;
|
|
71
|
+
groupUuid: any;
|
|
72
|
+
/**
|
|
73
|
+
* Returns Detailed information for the LCM entity. For example, firmware entities contain additional information about NIC and so on.
|
|
74
|
+
* @return {}
|
|
75
|
+
*/
|
|
76
|
+
getEntityDetails(): any;
|
|
77
|
+
/**
|
|
78
|
+
* Sets Detailed information for the LCM entity. For example, firmware entities contain additional information about NIC and so on.
|
|
79
|
+
* @param {} entityDetails Detailed information for the LCM entity. For example, firmware entities contain additional information about NIC and so on.
|
|
80
|
+
*/
|
|
81
|
+
setEntityDetails(entityDetails: any): void;
|
|
82
|
+
entityDetails: any;
|
|
83
|
+
/**
|
|
84
|
+
* Returns Component information for the payload based entity.
|
|
85
|
+
* @return {}
|
|
86
|
+
*/
|
|
87
|
+
getChildEntities(): any;
|
|
88
|
+
/**
|
|
89
|
+
* Sets Component information for the payload based entity.
|
|
90
|
+
* @param {} childEntities Component information for the payload based entity.
|
|
91
|
+
*/
|
|
92
|
+
setChildEntities(childEntities: any): void;
|
|
93
|
+
childEntities: any;
|
|
94
|
+
/**
|
|
95
|
+
* Returns List of available versions for an LCM entity to update.
|
|
96
|
+
* @return {}
|
|
97
|
+
*/
|
|
98
|
+
getAvailableVersions(): any;
|
|
99
|
+
/**
|
|
100
|
+
* Sets List of available versions for an LCM entity to update.
|
|
101
|
+
* @param {} availableVersions List of available versions for an LCM entity to update.
|
|
102
|
+
*/
|
|
103
|
+
setAvailableVersions(availableVersions: any): void;
|
|
104
|
+
availableVersions: any;
|
|
105
|
+
/**
|
|
106
|
+
* Returns A list of sub-entities applicable to the entity.
|
|
107
|
+
* @return {}
|
|
108
|
+
*/
|
|
109
|
+
getSubEntities(): any;
|
|
110
|
+
/**
|
|
111
|
+
* Sets A list of sub-entities applicable to the entity.
|
|
112
|
+
* @param {} subEntities A list of sub-entities applicable to the entity.
|
|
113
|
+
*/
|
|
114
|
+
setSubEntities(subEntities: any): void;
|
|
115
|
+
subEntities: any;
|
|
116
|
+
/**
|
|
117
|
+
* Returns Cluster uuid on which the resource is present or operation is being performed.
|
|
118
|
+
* @return {}
|
|
119
|
+
*/
|
|
120
|
+
getClusterExtId(): any;
|
|
121
|
+
/**
|
|
122
|
+
* Sets Cluster uuid on which the resource is present or operation is being performed.
|
|
123
|
+
* @param {} clusterExtId Cluster uuid on which the resource is present or operation is being performed.
|
|
124
|
+
*/
|
|
125
|
+
setClusterExtId(clusterExtId: any): void;
|
|
126
|
+
clusterExtId: any;
|
|
127
|
+
toJson(forMutation: any): {
|
|
128
|
+
$reserved: {
|
|
129
|
+
$fv: string;
|
|
130
|
+
};
|
|
131
|
+
$objectType: string;
|
|
132
|
+
$unknownFields: {};
|
|
133
|
+
tenantId?: any;
|
|
134
|
+
links?: any;
|
|
135
|
+
extId?: any;
|
|
136
|
+
hardwareFamily?: any;
|
|
137
|
+
entityVersion?: any;
|
|
138
|
+
entityType?: any;
|
|
139
|
+
entityModel?: any;
|
|
140
|
+
entityClass?: any;
|
|
141
|
+
clusterExtId?: any;
|
|
142
|
+
subEntities?: any;
|
|
143
|
+
availableVersions?: any;
|
|
144
|
+
childEntities?: any;
|
|
145
|
+
entityDetails?: any;
|
|
146
|
+
groupUuid?: any;
|
|
147
|
+
deviceId?: any;
|
|
148
|
+
lastUpdatedTime?: any;
|
|
149
|
+
targetVersion?: any;
|
|
150
|
+
locationInfo?: any;
|
|
151
|
+
entityDescription?: any;
|
|
152
|
+
};
|
|
153
|
+
#private;
|
|
154
|
+
}
|
|
155
|
+
import EntityBaseModel from "../common/EntityBaseModel";
|