@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,663 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _KVPair = _interopRequireDefault(require("../../../common/v1/config/KVPair"));
|
|
8
|
+
var _EntityBaseModel2 = _interopRequireDefault(require("../common/EntityBaseModel"));
|
|
9
|
+
var _EntityType = _interopRequireDefault(require("../common/EntityType"));
|
|
10
|
+
var _LocationInfo = _interopRequireDefault(require("../common/LocationInfo"));
|
|
11
|
+
var _AvailableVersion = _interopRequireDefault(require("./AvailableVersion"));
|
|
12
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
13
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
14
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
17
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19
|
+
function _unsupportedIterableToArray(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); }
|
|
20
|
+
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; }
|
|
21
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
22
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25
|
+
function _defineProperty(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; }
|
|
26
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
|
+
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); } }
|
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
30
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
31
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
32
|
+
function _possibleConstructorReturn(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); }
|
|
33
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
34
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
35
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
36
|
+
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); }
|
|
37
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
38
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
39
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
40
|
+
* Nutanix Lifecycle Versioned APIs
|
|
41
|
+
*
|
|
42
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
43
|
+
*
|
|
44
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
45
|
+
*
|
|
46
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
47
|
+
*
|
|
48
|
+
* Do not edit the class manually.
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* The Entity model module.
|
|
53
|
+
* @module Ntnx/Entity
|
|
54
|
+
* @version 4.0.1-beta-1
|
|
55
|
+
* @class Entity
|
|
56
|
+
*/
|
|
57
|
+
var _Entity_brand = /*#__PURE__*/new WeakSet();
|
|
58
|
+
var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
59
|
+
/**
|
|
60
|
+
* Constructs a new <code>Entity</code>.
|
|
61
|
+
* Details of an LCM entity.
|
|
62
|
+
* @alias module:Ntnx/Entity
|
|
63
|
+
* @extends module:Ntnx/EntityBaseModel
|
|
64
|
+
*/
|
|
65
|
+
function Entity() {
|
|
66
|
+
var _this;
|
|
67
|
+
_classCallCheck(this, Entity);
|
|
68
|
+
_this = _callSuper(this, Entity);
|
|
69
|
+
/*
|
|
70
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
71
|
+
* @param {Object} obj
|
|
72
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
73
|
+
* Otherwise, just returns the input object.
|
|
74
|
+
*/
|
|
75
|
+
_classPrivateMethodInitSpec(_this, _Entity_brand);
|
|
76
|
+
_this.$objectType = "lifecycle.v4.resources.Entity";
|
|
77
|
+
_this.$reserved = {
|
|
78
|
+
'$fv': "v4.r0.b1"
|
|
79
|
+
};
|
|
80
|
+
_this.$unknownFields = {};
|
|
81
|
+
return _this;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Constructs a <code>Entity</code> from a plain JavaScript object, optionally creating a new instance.
|
|
86
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
87
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
88
|
+
* @param {module:Ntnx/Entity} obj Optional instance to populate.
|
|
89
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
90
|
+
* @return {module:Ntnx/Entity} The populated <code>Entity</code> instance.
|
|
91
|
+
*/
|
|
92
|
+
_inherits(Entity, _EntityBaseModel);
|
|
93
|
+
return _createClass(Entity, [{
|
|
94
|
+
key: "getEntityDescription",
|
|
95
|
+
value:
|
|
96
|
+
/**
|
|
97
|
+
* Returns Description of an LCM entity.
|
|
98
|
+
* @return {}
|
|
99
|
+
*/
|
|
100
|
+
function getEntityDescription() {
|
|
101
|
+
return this.entityDescription;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Sets Description of an LCM entity.
|
|
106
|
+
* @param {} entityDescription Description of an LCM entity.
|
|
107
|
+
*/
|
|
108
|
+
}, {
|
|
109
|
+
key: "setEntityDescription",
|
|
110
|
+
value: function setEntityDescription(entityDescription) {
|
|
111
|
+
this.entityDescription = entityDescription;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @return {}
|
|
116
|
+
*/
|
|
117
|
+
}, {
|
|
118
|
+
key: "getLocationInfo",
|
|
119
|
+
value: function getLocationInfo() {
|
|
120
|
+
return this.locationInfo;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @param {} locationInfo
|
|
125
|
+
*/
|
|
126
|
+
}, {
|
|
127
|
+
key: "setLocationInfo",
|
|
128
|
+
value: function setLocationInfo(locationInfo) {
|
|
129
|
+
this.locationInfo = locationInfo;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Returns The requested update version of an LCM entity.
|
|
134
|
+
* @return {}
|
|
135
|
+
*/
|
|
136
|
+
}, {
|
|
137
|
+
key: "getTargetVersion",
|
|
138
|
+
value: function getTargetVersion() {
|
|
139
|
+
return this.targetVersion;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Sets The requested update version of an LCM entity.
|
|
144
|
+
* @param {} targetVersion The requested update version of an LCM entity.
|
|
145
|
+
*/
|
|
146
|
+
}, {
|
|
147
|
+
key: "setTargetVersion",
|
|
148
|
+
value: function setTargetVersion(targetVersion) {
|
|
149
|
+
this.targetVersion = targetVersion;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Returns UTC date and time in RFC-3339 format when the task was last updated.
|
|
154
|
+
* @return {}
|
|
155
|
+
*/
|
|
156
|
+
}, {
|
|
157
|
+
key: "getLastUpdatedTime",
|
|
158
|
+
value: function getLastUpdatedTime() {
|
|
159
|
+
return this.lastUpdatedTime;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Sets UTC date and time in RFC-3339 format when the task was last updated.
|
|
164
|
+
* @param {} lastUpdatedTime UTC date and time in RFC-3339 format when the task was last updated.
|
|
165
|
+
*/
|
|
166
|
+
}, {
|
|
167
|
+
key: "setLastUpdatedTime",
|
|
168
|
+
value: function setLastUpdatedTime(lastUpdatedTime) {
|
|
169
|
+
this.lastUpdatedTime = lastUpdatedTime;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Returns Unique identifier of an LCM entity e.g. \"HDD serial number\".
|
|
174
|
+
* @return {}
|
|
175
|
+
*/
|
|
176
|
+
}, {
|
|
177
|
+
key: "getDeviceId",
|
|
178
|
+
value: function getDeviceId() {
|
|
179
|
+
return this.deviceId;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Sets Unique identifier of an LCM entity e.g. \"HDD serial number\".
|
|
184
|
+
* @param {} deviceId Unique identifier of an LCM entity e.g. \"HDD serial number\".
|
|
185
|
+
*/
|
|
186
|
+
}, {
|
|
187
|
+
key: "setDeviceId",
|
|
188
|
+
value: function setDeviceId(deviceId) {
|
|
189
|
+
this.deviceId = deviceId;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Returns UUID of the group that this LCM entity is part of.
|
|
194
|
+
* @return {}
|
|
195
|
+
*/
|
|
196
|
+
}, {
|
|
197
|
+
key: "getGroupUuid",
|
|
198
|
+
value: function getGroupUuid() {
|
|
199
|
+
return this.groupUuid;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Sets UUID of the group that this LCM entity is part of.
|
|
204
|
+
* @param {} groupUuid UUID of the group that this LCM entity is part of.
|
|
205
|
+
*/
|
|
206
|
+
}, {
|
|
207
|
+
key: "setGroupUuid",
|
|
208
|
+
value: function setGroupUuid(groupUuid) {
|
|
209
|
+
this.groupUuid = groupUuid;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Returns Detailed information for the LCM entity. For example, firmware entities contain additional information about NIC and so on.
|
|
214
|
+
* @return {}
|
|
215
|
+
*/
|
|
216
|
+
}, {
|
|
217
|
+
key: "getEntityDetails",
|
|
218
|
+
value: function getEntityDetails() {
|
|
219
|
+
return this.entityDetails;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Sets Detailed information for the LCM entity. For example, firmware entities contain additional information about NIC and so on.
|
|
224
|
+
* @param {} entityDetails Detailed information for the LCM entity. For example, firmware entities contain additional information about NIC and so on.
|
|
225
|
+
*/
|
|
226
|
+
}, {
|
|
227
|
+
key: "setEntityDetails",
|
|
228
|
+
value: function setEntityDetails(entityDetails) {
|
|
229
|
+
this.entityDetails = entityDetails;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Returns Component information for the payload based entity.
|
|
234
|
+
* @return {}
|
|
235
|
+
*/
|
|
236
|
+
}, {
|
|
237
|
+
key: "getChildEntities",
|
|
238
|
+
value: function getChildEntities() {
|
|
239
|
+
return this.childEntities;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Sets Component information for the payload based entity.
|
|
244
|
+
* @param {} childEntities Component information for the payload based entity.
|
|
245
|
+
*/
|
|
246
|
+
}, {
|
|
247
|
+
key: "setChildEntities",
|
|
248
|
+
value: function setChildEntities(childEntities) {
|
|
249
|
+
this.childEntities = childEntities;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Returns List of available versions for an LCM entity to update.
|
|
254
|
+
* @return {}
|
|
255
|
+
*/
|
|
256
|
+
}, {
|
|
257
|
+
key: "getAvailableVersions",
|
|
258
|
+
value: function getAvailableVersions() {
|
|
259
|
+
return this.availableVersions;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Sets List of available versions for an LCM entity to update.
|
|
264
|
+
* @param {} availableVersions List of available versions for an LCM entity to update.
|
|
265
|
+
*/
|
|
266
|
+
}, {
|
|
267
|
+
key: "setAvailableVersions",
|
|
268
|
+
value: function setAvailableVersions(availableVersions) {
|
|
269
|
+
this.availableVersions = availableVersions;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Returns A list of sub-entities applicable to the entity.
|
|
274
|
+
* @return {}
|
|
275
|
+
*/
|
|
276
|
+
}, {
|
|
277
|
+
key: "getSubEntities",
|
|
278
|
+
value: function getSubEntities() {
|
|
279
|
+
return this.subEntities;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Sets A list of sub-entities applicable to the entity.
|
|
284
|
+
* @param {} subEntities A list of sub-entities applicable to the entity.
|
|
285
|
+
*/
|
|
286
|
+
}, {
|
|
287
|
+
key: "setSubEntities",
|
|
288
|
+
value: function setSubEntities(subEntities) {
|
|
289
|
+
this.subEntities = subEntities;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Returns Cluster uuid on which the resource is present or operation is being performed.
|
|
294
|
+
* @return {}
|
|
295
|
+
*/
|
|
296
|
+
}, {
|
|
297
|
+
key: "getClusterExtId",
|
|
298
|
+
value: function getClusterExtId() {
|
|
299
|
+
return this.clusterExtId;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Sets Cluster uuid on which the resource is present or operation is being performed.
|
|
304
|
+
* @param {} clusterExtId Cluster uuid on which the resource is present or operation is being performed.
|
|
305
|
+
*/
|
|
306
|
+
}, {
|
|
307
|
+
key: "setClusterExtId",
|
|
308
|
+
value: function setClusterExtId(clusterExtId) {
|
|
309
|
+
this.clusterExtId = clusterExtId;
|
|
310
|
+
}
|
|
311
|
+
}, {
|
|
312
|
+
key: "toJson",
|
|
313
|
+
value: function toJson(forMutation) {
|
|
314
|
+
if (forMutation === false) {
|
|
315
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getEntityDescription() !== 'undefined' && this.getEntityDescription() !== null ? {
|
|
316
|
+
'entityDescription': this.getEntityDescription()
|
|
317
|
+
} : {}), typeof this.getLocationInfo() !== 'undefined' && this.getLocationInfo() !== null ? {
|
|
318
|
+
'locationInfo': this.getLocationInfo().toJson(false)
|
|
319
|
+
} : {}), typeof this.getTargetVersion() !== 'undefined' && this.getTargetVersion() !== null ? {
|
|
320
|
+
'targetVersion': this.getTargetVersion()
|
|
321
|
+
} : {}), typeof this.getLastUpdatedTime() !== 'undefined' && this.getLastUpdatedTime() !== null ? {
|
|
322
|
+
'lastUpdatedTime': this.getLastUpdatedTime()
|
|
323
|
+
} : {}), typeof this.getDeviceId() !== 'undefined' && this.getDeviceId() !== null ? {
|
|
324
|
+
'deviceId': this.getDeviceId()
|
|
325
|
+
} : {}), typeof this.getGroupUuid() !== 'undefined' && this.getGroupUuid() !== null ? {
|
|
326
|
+
'groupUuid': this.getGroupUuid()
|
|
327
|
+
} : {}), typeof this.getEntityDetails() !== 'undefined' && this.getEntityDetails() !== null ? {
|
|
328
|
+
'entityDetails': this.getEntityDetails().map(function (item) {
|
|
329
|
+
return item.toJson(false);
|
|
330
|
+
})
|
|
331
|
+
} : {}), typeof this.getChildEntities() !== 'undefined' && this.getChildEntities() !== null ? {
|
|
332
|
+
'childEntities': this.getChildEntities()
|
|
333
|
+
} : {}), typeof this.getAvailableVersions() !== 'undefined' && this.getAvailableVersions() !== null ? {
|
|
334
|
+
'availableVersions': this.getAvailableVersions().map(function (item) {
|
|
335
|
+
return item.toJson(false);
|
|
336
|
+
})
|
|
337
|
+
} : {}), typeof this.getSubEntities() !== 'undefined' && this.getSubEntities() !== null ? {
|
|
338
|
+
'subEntities': this.getSubEntities().map(function (item) {
|
|
339
|
+
return item.toJson(false);
|
|
340
|
+
})
|
|
341
|
+
} : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
342
|
+
'clusterExtId': this.getClusterExtId()
|
|
343
|
+
} : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {
|
|
344
|
+
'entityClass': this.getEntityClass()
|
|
345
|
+
} : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {
|
|
346
|
+
'entityModel': this.getEntityModel()
|
|
347
|
+
} : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {
|
|
348
|
+
'entityType': this.getEntityType()
|
|
349
|
+
} : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {
|
|
350
|
+
'entityVersion': this.getEntityVersion()
|
|
351
|
+
} : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {
|
|
352
|
+
'hardwareFamily': this.getHardwareFamily()
|
|
353
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
354
|
+
'extId': this.getExtId()
|
|
355
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
356
|
+
'links': this.getLinks().map(function (item) {
|
|
357
|
+
return item.toJson(false);
|
|
358
|
+
})
|
|
359
|
+
} : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
360
|
+
'tenantId': this.getTenantId()
|
|
361
|
+
} : {}), {}, {
|
|
362
|
+
'$reserved': this.get$Reserved(),
|
|
363
|
+
'$objectType': this.get$ObjectType(),
|
|
364
|
+
'$unknownFields': this.get$UnknownFields()
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getLocationInfo() !== 'undefined' && this.getLocationInfo() !== null ? {
|
|
368
|
+
'locationInfo': this.getLocationInfo().toJson(false)
|
|
369
|
+
} : {}), typeof this.getSubEntities() !== 'undefined' && this.getSubEntities() !== null ? {
|
|
370
|
+
'subEntities': this.getSubEntities().map(function (item) {
|
|
371
|
+
return item.toJson(false);
|
|
372
|
+
})
|
|
373
|
+
} : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
374
|
+
'clusterExtId': this.getClusterExtId()
|
|
375
|
+
} : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {
|
|
376
|
+
'entityClass': this.getEntityClass()
|
|
377
|
+
} : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {
|
|
378
|
+
'entityModel': this.getEntityModel()
|
|
379
|
+
} : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {
|
|
380
|
+
'entityType': this.getEntityType()
|
|
381
|
+
} : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {
|
|
382
|
+
'entityVersion': this.getEntityVersion()
|
|
383
|
+
} : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {
|
|
384
|
+
'hardwareFamily': this.getHardwareFamily()
|
|
385
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
386
|
+
'extId': this.getExtId()
|
|
387
|
+
} : {}), {}, {
|
|
388
|
+
'$reserved': this.get$Reserved(),
|
|
389
|
+
'$objectType': this.get$ObjectType(),
|
|
390
|
+
'$unknownFields': this.get$UnknownFields()
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
}, {
|
|
394
|
+
key: "validate",
|
|
395
|
+
value: function validate(scope, properties) {
|
|
396
|
+
var _this2 = this;
|
|
397
|
+
var propList = [];
|
|
398
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
399
|
+
//cases validate() and validate(scope)
|
|
400
|
+
propList = [];
|
|
401
|
+
} else if (arguments.length === 1) {
|
|
402
|
+
//case validate(properties)
|
|
403
|
+
propList = arguments[0];
|
|
404
|
+
scope = null;
|
|
405
|
+
} else {
|
|
406
|
+
//case validate(scope, properties)
|
|
407
|
+
propList = arguments[1];
|
|
408
|
+
}
|
|
409
|
+
var res = [];
|
|
410
|
+
var err = null;
|
|
411
|
+
propList.forEach(function (property) {
|
|
412
|
+
err = _this2.validateProperty(property, scope);
|
|
413
|
+
if (err) {
|
|
414
|
+
res.push(err);
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
return new Promise(function (resolve, reject) {
|
|
418
|
+
if (res.length !== 0) {
|
|
419
|
+
reject(err);
|
|
420
|
+
} else {
|
|
421
|
+
resolve();
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
}, {
|
|
426
|
+
key: "validateProperty",
|
|
427
|
+
value: function validateProperty(scope, property) {
|
|
428
|
+
if (property === "entityDescription") {
|
|
429
|
+
if (typeof this.entityDescription === 'undefined' || this.entityDescription === null) {
|
|
430
|
+
return new _ValidationError["default"]("entityDescription", "undefined or null");
|
|
431
|
+
}
|
|
432
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.entityDescription, 256)) {
|
|
433
|
+
return new _ValidationError["default"]("entityDescription", "does not satisfy required maxLength constraint: 256");
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
if (property === "locationInfo") {
|
|
437
|
+
if (typeof this.locationInfo === 'undefined' || this.locationInfo === null) {
|
|
438
|
+
return new _ValidationError["default"]("locationInfo", "undefined or null");
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
if (property === "targetVersion") {
|
|
442
|
+
if (typeof this.targetVersion === 'undefined' || this.targetVersion === null) {
|
|
443
|
+
return new _ValidationError["default"]("targetVersion", "undefined or null");
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
if (property === "lastUpdatedTime") {
|
|
447
|
+
if (typeof this.lastUpdatedTime === 'undefined' || this.lastUpdatedTime === null) {
|
|
448
|
+
return new _ValidationError["default"]("lastUpdatedTime", "undefined or null");
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
if (property === "deviceId") {
|
|
452
|
+
if (typeof this.deviceId === 'undefined' || this.deviceId === null) {
|
|
453
|
+
return new _ValidationError["default"]("deviceId", "undefined or null");
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
if (property === "groupUuid") {
|
|
457
|
+
if (typeof this.groupUuid === 'undefined' || this.groupUuid === null) {
|
|
458
|
+
return new _ValidationError["default"]("groupUuid", "undefined or null");
|
|
459
|
+
}
|
|
460
|
+
if (!_ValidationUtils["default"].validatePattern(this.groupUuid, /^[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}$/)) {
|
|
461
|
+
return new _ValidationError["default"]("groupUuid", "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}$/");
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
if (property === "entityDetails") {
|
|
465
|
+
if (typeof this.entityDetails === 'undefined' || this.entityDetails === null) {
|
|
466
|
+
return new _ValidationError["default"]("entityDetails", "undefined or null");
|
|
467
|
+
}
|
|
468
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.entityDetails, 100)) {
|
|
469
|
+
return new _ValidationError["default"]("entityDetails", "does not satisfy required maxItems constraint: 100");
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
if (property === "childEntities") {
|
|
473
|
+
if (typeof this.childEntities === 'undefined' || this.childEntities === null) {
|
|
474
|
+
return new _ValidationError["default"]("childEntities", "undefined or null");
|
|
475
|
+
}
|
|
476
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.childEntities, 100)) {
|
|
477
|
+
return new _ValidationError["default"]("childEntities", "does not satisfy required maxItems constraint: 100");
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
if (property === "availableVersions") {
|
|
481
|
+
if (typeof this.availableVersions === 'undefined' || this.availableVersions === null) {
|
|
482
|
+
return new _ValidationError["default"]("availableVersions", "undefined or null");
|
|
483
|
+
}
|
|
484
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.availableVersions, 100)) {
|
|
485
|
+
return new _ValidationError["default"]("availableVersions", "does not satisfy required maxItems constraint: 100");
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
if (property === "subEntities") {
|
|
489
|
+
if (typeof this.subEntities === 'undefined' || this.subEntities === null) {
|
|
490
|
+
return new _ValidationError["default"]("subEntities", "undefined or null");
|
|
491
|
+
}
|
|
492
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.subEntities, 100)) {
|
|
493
|
+
return new _ValidationError["default"]("subEntities", "does not satisfy required maxItems constraint: 100");
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
if (property === "clusterExtId") {
|
|
497
|
+
if (typeof this.clusterExtId === 'undefined' || this.clusterExtId === null) {
|
|
498
|
+
return new _ValidationError["default"]("clusterExtId", "undefined or null");
|
|
499
|
+
}
|
|
500
|
+
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}$/)) {
|
|
501
|
+
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}$/");
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
505
|
+
}
|
|
506
|
+
}], [{
|
|
507
|
+
key: "constructFromObject",
|
|
508
|
+
value: function constructFromObject(data, obj) {
|
|
509
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
510
|
+
var items, item, i, itemArr, discriminator;
|
|
511
|
+
if (data) {
|
|
512
|
+
obj = obj || new Entity();
|
|
513
|
+
_EntityBaseModel2["default"].constructFromObject(data, obj, true);
|
|
514
|
+
if (data.hasOwnProperty('entityDescription') && data.entityDescription !== null && data.entityDescription !== undefined) {
|
|
515
|
+
obj.setEntityDescription(data['entityDescription']);
|
|
516
|
+
}
|
|
517
|
+
if (data.hasOwnProperty('locationInfo') && data.locationInfo !== null && data.locationInfo !== undefined) {
|
|
518
|
+
obj.setLocationInfo(_LocationInfo["default"].constructFromObject(data['locationInfo']));
|
|
519
|
+
}
|
|
520
|
+
if (data.hasOwnProperty('targetVersion') && data.targetVersion !== null && data.targetVersion !== undefined) {
|
|
521
|
+
obj.setTargetVersion(data['targetVersion']);
|
|
522
|
+
}
|
|
523
|
+
if (data.hasOwnProperty('lastUpdatedTime') && data.lastUpdatedTime !== null && data.lastUpdatedTime !== undefined) {
|
|
524
|
+
obj.setLastUpdatedTime(data['lastUpdatedTime']);
|
|
525
|
+
}
|
|
526
|
+
if (data.hasOwnProperty('deviceId') && data.deviceId !== null && data.deviceId !== undefined) {
|
|
527
|
+
obj.setDeviceId(data['deviceId']);
|
|
528
|
+
}
|
|
529
|
+
if (data.hasOwnProperty('groupUuid') && data.groupUuid !== null && data.groupUuid !== undefined) {
|
|
530
|
+
obj.setGroupUuid(data['groupUuid']);
|
|
531
|
+
}
|
|
532
|
+
if (data.hasOwnProperty('entityDetails') && data.entityDetails !== null && data.entityDetails !== undefined) {
|
|
533
|
+
itemArr = [];
|
|
534
|
+
items = data.entityDetails;
|
|
535
|
+
for (i = 0; i < items.length; i++) {
|
|
536
|
+
item = _KVPair["default"].constructFromObject(items[i], undefined);
|
|
537
|
+
itemArr.push(item);
|
|
538
|
+
}
|
|
539
|
+
obj.setEntityDetails(itemArr);
|
|
540
|
+
}
|
|
541
|
+
if (data.hasOwnProperty('childEntities') && data.childEntities !== null && data.childEntities !== undefined) {
|
|
542
|
+
itemArr = [];
|
|
543
|
+
items = data.childEntities;
|
|
544
|
+
for (i = 0; i < items.length; i++) {
|
|
545
|
+
itemArr.push(items[i]);
|
|
546
|
+
}
|
|
547
|
+
obj.setChildEntities(itemArr);
|
|
548
|
+
}
|
|
549
|
+
if (data.hasOwnProperty('availableVersions') && data.availableVersions !== null && data.availableVersions !== undefined) {
|
|
550
|
+
itemArr = [];
|
|
551
|
+
items = data.availableVersions;
|
|
552
|
+
for (i = 0; i < items.length; i++) {
|
|
553
|
+
item = _AvailableVersion["default"].constructFromObject(items[i], undefined);
|
|
554
|
+
itemArr.push(item);
|
|
555
|
+
}
|
|
556
|
+
obj.setAvailableVersions(itemArr);
|
|
557
|
+
}
|
|
558
|
+
if (data.hasOwnProperty('subEntities') && data.subEntities !== null && data.subEntities !== undefined) {
|
|
559
|
+
itemArr = [];
|
|
560
|
+
items = data.subEntities;
|
|
561
|
+
for (i = 0; i < items.length; i++) {
|
|
562
|
+
item = _EntityBaseModel2["default"].constructFromObject(items[i], undefined);
|
|
563
|
+
itemArr.push(item);
|
|
564
|
+
}
|
|
565
|
+
obj.setSubEntities(itemArr);
|
|
566
|
+
}
|
|
567
|
+
if (data.hasOwnProperty('clusterExtId') && data.clusterExtId !== null && data.clusterExtId !== undefined) {
|
|
568
|
+
obj.setClusterExtId(data['clusterExtId']);
|
|
569
|
+
}
|
|
570
|
+
if (!callFromChild) {
|
|
571
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
572
|
+
for (var property in data) {
|
|
573
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
574
|
+
obj.$unknownFields[property] = data[property];
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
return obj;
|
|
580
|
+
}
|
|
581
|
+
}]);
|
|
582
|
+
}(_EntityBaseModel2["default"]);
|
|
583
|
+
/**
|
|
584
|
+
* Description of an LCM entity.
|
|
585
|
+
* @memberof Entity
|
|
586
|
+
*/
|
|
587
|
+
function _toJsonMapType(obj, forMutation) {
|
|
588
|
+
if (obj instanceof Map) {
|
|
589
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
590
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
591
|
+
k = _ref2[0],
|
|
592
|
+
v = _ref2[1];
|
|
593
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
594
|
+
}));
|
|
595
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
596
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
597
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
598
|
+
}));
|
|
599
|
+
}
|
|
600
|
+
return obj;
|
|
601
|
+
}
|
|
602
|
+
Entity.prototype.entityDescription = undefined;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* @memberof Entity
|
|
606
|
+
*/
|
|
607
|
+
Entity.prototype.locationInfo = undefined;
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* The requested update version of an LCM entity.
|
|
611
|
+
* @memberof Entity
|
|
612
|
+
*/
|
|
613
|
+
Entity.prototype.targetVersion = undefined;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* UTC date and time in RFC-3339 format when the task was last updated.
|
|
617
|
+
* @memberof Entity
|
|
618
|
+
*/
|
|
619
|
+
Entity.prototype.lastUpdatedTime = undefined;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Unique identifier of an LCM entity e.g. \"HDD serial number\".
|
|
623
|
+
* @memberof Entity
|
|
624
|
+
*/
|
|
625
|
+
Entity.prototype.deviceId = undefined;
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* UUID of the group that this LCM entity is part of.
|
|
629
|
+
* @memberof Entity
|
|
630
|
+
*/
|
|
631
|
+
Entity.prototype.groupUuid = undefined;
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Detailed information for the LCM entity. For example, firmware entities contain additional information about NIC and so on.
|
|
635
|
+
* @memberof Entity
|
|
636
|
+
*/
|
|
637
|
+
Entity.prototype.entityDetails = undefined;
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Component information for the payload based entity.
|
|
641
|
+
* @memberof Entity
|
|
642
|
+
*/
|
|
643
|
+
Entity.prototype.childEntities = undefined;
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* List of available versions for an LCM entity to update.
|
|
647
|
+
* @memberof Entity
|
|
648
|
+
*/
|
|
649
|
+
Entity.prototype.availableVersions = undefined;
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* A list of sub-entities applicable to the entity.
|
|
653
|
+
* @memberof Entity
|
|
654
|
+
*/
|
|
655
|
+
Entity.prototype.subEntities = undefined;
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Cluster uuid on which the resource is present or operation is being performed.
|
|
659
|
+
* @memberof Entity
|
|
660
|
+
*/
|
|
661
|
+
Entity.prototype.clusterExtId = undefined;
|
|
662
|
+
|
|
663
|
+
// Implement OneOflifecycle.v4.resources.GetEntityByIdApiResponsedata interface:
|