@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,279 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
8
|
+
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
9
|
+
var _NotificationItem = _interopRequireDefault(require("./NotificationItem"));
|
|
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 Notification model module.
|
|
51
|
+
* @module Ntnx/Notification
|
|
52
|
+
* @version 4.0.1-beta-1
|
|
53
|
+
* @class Notification
|
|
54
|
+
*/
|
|
55
|
+
var _Notification_brand = /*#__PURE__*/new WeakSet();
|
|
56
|
+
var Notification = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
|
|
57
|
+
/**
|
|
58
|
+
* Constructs a new <code>Notification</code>.
|
|
59
|
+
* The computed LCM upgrade notifications for the given input.
|
|
60
|
+
* @alias module:Ntnx/Notification
|
|
61
|
+
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
62
|
+
*/
|
|
63
|
+
function Notification() {
|
|
64
|
+
var _this;
|
|
65
|
+
_classCallCheck(this, Notification);
|
|
66
|
+
_this = _callSuper(this, Notification);
|
|
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, _Notification_brand);
|
|
74
|
+
_this.$objectType = "lifecycle.v4.resources.Notification";
|
|
75
|
+
_this.$reserved = {
|
|
76
|
+
'$fv': "v4.r0.b1"
|
|
77
|
+
};
|
|
78
|
+
_this.$unknownFields = {};
|
|
79
|
+
return _this;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Constructs a <code>Notification</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/Notification} obj Optional instance to populate.
|
|
87
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
88
|
+
* @return {module:Ntnx/Notification} The populated <code>Notification</code> instance.
|
|
89
|
+
*/
|
|
90
|
+
_inherits(Notification, _ExternalizableAbstra);
|
|
91
|
+
return _createClass(Notification, [{
|
|
92
|
+
key: "getNotifications",
|
|
93
|
+
value:
|
|
94
|
+
/**
|
|
95
|
+
* @return {}
|
|
96
|
+
*/
|
|
97
|
+
function getNotifications() {
|
|
98
|
+
return this.notifications;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @param {} notifications
|
|
103
|
+
*/
|
|
104
|
+
}, {
|
|
105
|
+
key: "setNotifications",
|
|
106
|
+
value: function setNotifications(notifications) {
|
|
107
|
+
this.notifications = notifications;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Returns Cluster uuid on which the resource is present or operation is being performed.
|
|
112
|
+
* @return {}
|
|
113
|
+
*/
|
|
114
|
+
}, {
|
|
115
|
+
key: "getClusterExtId",
|
|
116
|
+
value: function getClusterExtId() {
|
|
117
|
+
return this.clusterExtId;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Sets Cluster uuid on which the resource is present or operation is being performed.
|
|
122
|
+
* @param {} clusterExtId Cluster uuid on which the resource is present or operation is being performed.
|
|
123
|
+
*/
|
|
124
|
+
}, {
|
|
125
|
+
key: "setClusterExtId",
|
|
126
|
+
value: function setClusterExtId(clusterExtId) {
|
|
127
|
+
this.clusterExtId = clusterExtId;
|
|
128
|
+
}
|
|
129
|
+
}, {
|
|
130
|
+
key: "toJson",
|
|
131
|
+
value: function toJson(forMutation) {
|
|
132
|
+
if (forMutation === false) {
|
|
133
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getNotifications() !== 'undefined' && this.getNotifications() !== null ? {
|
|
134
|
+
'notifications': this.getNotifications().map(function (item) {
|
|
135
|
+
return item.toJson(false);
|
|
136
|
+
})
|
|
137
|
+
} : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
138
|
+
'clusterExtId': this.getClusterExtId()
|
|
139
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
140
|
+
'extId': this.getExtId()
|
|
141
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
142
|
+
'links': this.getLinks().map(function (item) {
|
|
143
|
+
return item.toJson(false);
|
|
144
|
+
})
|
|
145
|
+
} : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
146
|
+
'tenantId': this.getTenantId()
|
|
147
|
+
} : {}), {}, {
|
|
148
|
+
'$reserved': this.get$Reserved(),
|
|
149
|
+
'$objectType': this.get$ObjectType(),
|
|
150
|
+
'$unknownFields': this.get$UnknownFields()
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getNotifications() !== 'undefined' && this.getNotifications() !== null ? {
|
|
154
|
+
'notifications': this.getNotifications().map(function (item) {
|
|
155
|
+
return item.toJson(false);
|
|
156
|
+
})
|
|
157
|
+
} : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
158
|
+
'clusterExtId': this.getClusterExtId()
|
|
159
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
160
|
+
'extId': this.getExtId()
|
|
161
|
+
} : {}), {}, {
|
|
162
|
+
'$reserved': this.get$Reserved(),
|
|
163
|
+
'$objectType': this.get$ObjectType(),
|
|
164
|
+
'$unknownFields': this.get$UnknownFields()
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}, {
|
|
168
|
+
key: "validate",
|
|
169
|
+
value: function validate(scope, properties) {
|
|
170
|
+
var _this2 = this;
|
|
171
|
+
var propList = [];
|
|
172
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
173
|
+
//cases validate() and validate(scope)
|
|
174
|
+
propList = [];
|
|
175
|
+
} else if (arguments.length === 1) {
|
|
176
|
+
//case validate(properties)
|
|
177
|
+
propList = arguments[0];
|
|
178
|
+
scope = null;
|
|
179
|
+
} else {
|
|
180
|
+
//case validate(scope, properties)
|
|
181
|
+
propList = arguments[1];
|
|
182
|
+
}
|
|
183
|
+
var res = [];
|
|
184
|
+
var err = null;
|
|
185
|
+
propList.forEach(function (property) {
|
|
186
|
+
err = _this2.validateProperty(property, scope);
|
|
187
|
+
if (err) {
|
|
188
|
+
res.push(err);
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
return new Promise(function (resolve, reject) {
|
|
192
|
+
if (res.length !== 0) {
|
|
193
|
+
reject(err);
|
|
194
|
+
} else {
|
|
195
|
+
resolve();
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
}, {
|
|
200
|
+
key: "validateProperty",
|
|
201
|
+
value: function validateProperty(scope, property) {
|
|
202
|
+
if (property === "notifications") {
|
|
203
|
+
if (typeof this.notifications === 'undefined' || this.notifications === null) {
|
|
204
|
+
return new _ValidationError["default"]("notifications", "undefined or null");
|
|
205
|
+
}
|
|
206
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.notifications, 2048)) {
|
|
207
|
+
return new _ValidationError["default"]("notifications", "does not satisfy required maxItems constraint: 2048");
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
if (property === "clusterExtId") {
|
|
211
|
+
if (typeof this.clusterExtId === 'undefined' || this.clusterExtId === null) {
|
|
212
|
+
return new _ValidationError["default"]("clusterExtId", "undefined or null");
|
|
213
|
+
}
|
|
214
|
+
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}$/)) {
|
|
215
|
+
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}$/");
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
219
|
+
}
|
|
220
|
+
}], [{
|
|
221
|
+
key: "constructFromObject",
|
|
222
|
+
value: function constructFromObject(data, obj) {
|
|
223
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
224
|
+
var items, item, i, itemArr, discriminator;
|
|
225
|
+
if (data) {
|
|
226
|
+
obj = obj || new Notification();
|
|
227
|
+
_ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
|
|
228
|
+
if (data.hasOwnProperty('notifications') && data.notifications !== null && data.notifications !== undefined) {
|
|
229
|
+
itemArr = [];
|
|
230
|
+
items = data.notifications;
|
|
231
|
+
for (i = 0; i < items.length; i++) {
|
|
232
|
+
item = _NotificationItem["default"].constructFromObject(items[i], undefined);
|
|
233
|
+
itemArr.push(item);
|
|
234
|
+
}
|
|
235
|
+
obj.setNotifications(itemArr);
|
|
236
|
+
}
|
|
237
|
+
if (data.hasOwnProperty('clusterExtId') && data.clusterExtId !== null && data.clusterExtId !== undefined) {
|
|
238
|
+
obj.setClusterExtId(data['clusterExtId']);
|
|
239
|
+
}
|
|
240
|
+
if (!callFromChild) {
|
|
241
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
242
|
+
for (var property in data) {
|
|
243
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
244
|
+
obj.$unknownFields[property] = data[property];
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
return obj;
|
|
250
|
+
}
|
|
251
|
+
}]);
|
|
252
|
+
}(_ExternalizableAbstractModel["default"]);
|
|
253
|
+
/**
|
|
254
|
+
* @memberof Notification
|
|
255
|
+
*/
|
|
256
|
+
function _toJsonMapType(obj, forMutation) {
|
|
257
|
+
if (obj instanceof Map) {
|
|
258
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
259
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
260
|
+
k = _ref2[0],
|
|
261
|
+
v = _ref2[1];
|
|
262
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
263
|
+
}));
|
|
264
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
265
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
266
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
267
|
+
}));
|
|
268
|
+
}
|
|
269
|
+
return obj;
|
|
270
|
+
}
|
|
271
|
+
Notification.prototype.notifications = undefined;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Cluster uuid on which the resource is present or operation is being performed.
|
|
275
|
+
* @memberof Notification
|
|
276
|
+
*/
|
|
277
|
+
Notification.prototype.clusterExtId = undefined;
|
|
278
|
+
|
|
279
|
+
// Implement OneOflifecycle.v4.resources.GetNotificationsByIdApiResponsedata interface:
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NotificationDetail model module.
|
|
3
|
+
* @module Ntnx/NotificationDetail
|
|
4
|
+
* @version 4.0.1-beta-1
|
|
5
|
+
* @class NotificationDetail
|
|
6
|
+
*/
|
|
7
|
+
export default class NotificationDetail {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a <code>NotificationDetail</code> from a plain JavaScript object, optionally creating a new instance.
|
|
10
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
11
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
12
|
+
* @param {module:Ntnx/NotificationDetail} obj Optional instance to populate.
|
|
13
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
|
+
* @return {module:Ntnx/NotificationDetail} The populated <code>NotificationDetail</code> instance.
|
|
15
|
+
*/
|
|
16
|
+
static constructFromObject(data: any, obj: any, callFromChild?: boolean): any;
|
|
17
|
+
$objectType: string;
|
|
18
|
+
$reserved: {
|
|
19
|
+
$fv: string;
|
|
20
|
+
};
|
|
21
|
+
$unknownFields: {};
|
|
22
|
+
/**
|
|
23
|
+
* @return {}
|
|
24
|
+
*/
|
|
25
|
+
getSeverityLevel(): any;
|
|
26
|
+
/**
|
|
27
|
+
* @param {} severityLevel
|
|
28
|
+
*/
|
|
29
|
+
setSeverityLevel(severityLevel: any): void;
|
|
30
|
+
severityLevel: any;
|
|
31
|
+
/**
|
|
32
|
+
* Returns A message with notification details. The description of the most disruptive action that will occur on the node or the cluster. INFO, WARNING or NOTICE based message for an entity.
|
|
33
|
+
* @return {}
|
|
34
|
+
*/
|
|
35
|
+
getMessage(): any;
|
|
36
|
+
/**
|
|
37
|
+
* Sets A message with notification details. The description of the most disruptive action that will occur on the node or the cluster. INFO, WARNING or NOTICE based message for an entity.
|
|
38
|
+
* @param {} message A message with notification details. The description of the most disruptive action that will occur on the node or the cluster. INFO, WARNING or NOTICE based message for an entity.
|
|
39
|
+
*/
|
|
40
|
+
setMessage(message: any): void;
|
|
41
|
+
message: any;
|
|
42
|
+
get$Reserved(): {
|
|
43
|
+
$fv: string;
|
|
44
|
+
};
|
|
45
|
+
get$ObjectType(): string;
|
|
46
|
+
get$UnknownFields(): {};
|
|
47
|
+
toJson(forMutation: any): {
|
|
48
|
+
$reserved: {
|
|
49
|
+
$fv: string;
|
|
50
|
+
};
|
|
51
|
+
$objectType: string;
|
|
52
|
+
$unknownFields: {};
|
|
53
|
+
message?: any;
|
|
54
|
+
severityLevel?: any;
|
|
55
|
+
};
|
|
56
|
+
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
57
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
58
|
+
#private;
|
|
59
|
+
}
|
|
60
|
+
import ValidationError from "../../../validation/ValidationError";
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _SeverityLevel = _interopRequireDefault(require("./SeverityLevel"));
|
|
8
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
9
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
10
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
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); }
|
|
13
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
14
|
+
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."); }
|
|
15
|
+
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); }
|
|
16
|
+
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; }
|
|
17
|
+
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; } }
|
|
18
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
19
|
+
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; }
|
|
20
|
+
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; }
|
|
21
|
+
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; }
|
|
22
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
+
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); } }
|
|
24
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
26
|
+
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); }
|
|
27
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
28
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
29
|
+
* Nutanix Lifecycle Versioned APIs
|
|
30
|
+
*
|
|
31
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
32
|
+
*
|
|
33
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
34
|
+
*
|
|
35
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
36
|
+
*
|
|
37
|
+
* Do not edit the class manually.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* The NotificationDetail model module.
|
|
42
|
+
* @module Ntnx/NotificationDetail
|
|
43
|
+
* @version 4.0.1-beta-1
|
|
44
|
+
* @class NotificationDetail
|
|
45
|
+
*/
|
|
46
|
+
var _NotificationDetail_brand = /*#__PURE__*/new WeakSet();
|
|
47
|
+
var NotificationDetail = exports["default"] = /*#__PURE__*/function () {
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a new <code>NotificationDetail</code>.
|
|
50
|
+
* Detailed LCM upgrade notification information for this entity.
|
|
51
|
+
* @alias module:Ntnx/NotificationDetail
|
|
52
|
+
*/
|
|
53
|
+
function NotificationDetail() {
|
|
54
|
+
_classCallCheck(this, NotificationDetail);
|
|
55
|
+
/*
|
|
56
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
57
|
+
* @param {Object} obj
|
|
58
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
59
|
+
* Otherwise, just returns the input object.
|
|
60
|
+
*/
|
|
61
|
+
_classPrivateMethodInitSpec(this, _NotificationDetail_brand);
|
|
62
|
+
this.$objectType = "lifecycle.v4.resources.NotificationDetail";
|
|
63
|
+
this.$reserved = {
|
|
64
|
+
'$fv': "v4.r0.b1"
|
|
65
|
+
};
|
|
66
|
+
this.$unknownFields = {};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Constructs a <code>NotificationDetail</code> from a plain JavaScript object, optionally creating a new instance.
|
|
71
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
72
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
73
|
+
* @param {module:Ntnx/NotificationDetail} obj Optional instance to populate.
|
|
74
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
75
|
+
* @return {module:Ntnx/NotificationDetail} The populated <code>NotificationDetail</code> instance.
|
|
76
|
+
*/
|
|
77
|
+
return _createClass(NotificationDetail, [{
|
|
78
|
+
key: "getSeverityLevel",
|
|
79
|
+
value:
|
|
80
|
+
/**
|
|
81
|
+
* @return {}
|
|
82
|
+
*/
|
|
83
|
+
function getSeverityLevel() {
|
|
84
|
+
return this.severityLevel;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @param {} severityLevel
|
|
89
|
+
*/
|
|
90
|
+
}, {
|
|
91
|
+
key: "setSeverityLevel",
|
|
92
|
+
value: function setSeverityLevel(severityLevel) {
|
|
93
|
+
this.severityLevel = severityLevel;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Returns A message with notification details. The description of the most disruptive action that will occur on the node or the cluster. INFO, WARNING or NOTICE based message for an entity.
|
|
98
|
+
* @return {}
|
|
99
|
+
*/
|
|
100
|
+
}, {
|
|
101
|
+
key: "getMessage",
|
|
102
|
+
value: function getMessage() {
|
|
103
|
+
return this.message;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Sets A message with notification details. The description of the most disruptive action that will occur on the node or the cluster. INFO, WARNING or NOTICE based message for an entity.
|
|
108
|
+
* @param {} message A message with notification details. The description of the most disruptive action that will occur on the node or the cluster. INFO, WARNING or NOTICE based message for an entity.
|
|
109
|
+
*/
|
|
110
|
+
}, {
|
|
111
|
+
key: "setMessage",
|
|
112
|
+
value: function setMessage(message) {
|
|
113
|
+
this.message = message;
|
|
114
|
+
}
|
|
115
|
+
}, {
|
|
116
|
+
key: "get$Reserved",
|
|
117
|
+
value: function get$Reserved() {
|
|
118
|
+
return this.$reserved;
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
121
|
+
key: "get$ObjectType",
|
|
122
|
+
value: function get$ObjectType() {
|
|
123
|
+
return this.$objectType;
|
|
124
|
+
}
|
|
125
|
+
}, {
|
|
126
|
+
key: "get$UnknownFields",
|
|
127
|
+
value: function get$UnknownFields() {
|
|
128
|
+
return this.$unknownFields;
|
|
129
|
+
}
|
|
130
|
+
}, {
|
|
131
|
+
key: "toJson",
|
|
132
|
+
value: function toJson(forMutation) {
|
|
133
|
+
if (forMutation === false) {
|
|
134
|
+
return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getSeverityLevel() !== 'undefined' && this.getSeverityLevel() !== null ? {
|
|
135
|
+
'severityLevel': this.getSeverityLevel()
|
|
136
|
+
} : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {
|
|
137
|
+
'message': this.getMessage()
|
|
138
|
+
} : {}), {}, {
|
|
139
|
+
'$reserved': this.get$Reserved(),
|
|
140
|
+
'$objectType': this.get$ObjectType(),
|
|
141
|
+
'$unknownFields': this.get$UnknownFields()
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getSeverityLevel() !== 'undefined' && this.getSeverityLevel() !== null ? {
|
|
145
|
+
'severityLevel': this.getSeverityLevel()
|
|
146
|
+
} : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {
|
|
147
|
+
'message': this.getMessage()
|
|
148
|
+
} : {}), {}, {
|
|
149
|
+
'$reserved': this.get$Reserved(),
|
|
150
|
+
'$objectType': this.get$ObjectType(),
|
|
151
|
+
'$unknownFields': this.get$UnknownFields()
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}, {
|
|
155
|
+
key: "validate",
|
|
156
|
+
value: function validate(scope, properties) {
|
|
157
|
+
var _this = this;
|
|
158
|
+
var propList = [];
|
|
159
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
160
|
+
//cases validate() and validate(scope)
|
|
161
|
+
propList = [];
|
|
162
|
+
} else if (arguments.length === 1) {
|
|
163
|
+
//case validate(properties)
|
|
164
|
+
propList = arguments[0];
|
|
165
|
+
scope = null;
|
|
166
|
+
} else {
|
|
167
|
+
//case validate(scope, properties)
|
|
168
|
+
propList = arguments[1];
|
|
169
|
+
}
|
|
170
|
+
var res = [];
|
|
171
|
+
var err = null;
|
|
172
|
+
propList.forEach(function (property) {
|
|
173
|
+
err = _this.validateProperty(property, scope);
|
|
174
|
+
if (err) {
|
|
175
|
+
res.push(err);
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
return new Promise(function (resolve, reject) {
|
|
179
|
+
if (res.length !== 0) {
|
|
180
|
+
reject(err);
|
|
181
|
+
} else {
|
|
182
|
+
resolve();
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
}, {
|
|
187
|
+
key: "validateProperty",
|
|
188
|
+
value: function validateProperty(scope, property) {
|
|
189
|
+
if (property === "severityLevel") {
|
|
190
|
+
if (typeof this.severityLevel === 'undefined' || this.severityLevel === null) {
|
|
191
|
+
return new _ValidationError["default"]("severityLevel", "undefined or null");
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
if (property === "message") {
|
|
195
|
+
if (typeof this.message === 'undefined' || this.message === null) {
|
|
196
|
+
return new _ValidationError["default"]("message", "undefined or null");
|
|
197
|
+
}
|
|
198
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.message, 512)) {
|
|
199
|
+
return new _ValidationError["default"]("message", "does not satisfy required maxLength constraint: 512");
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
if (property === "$reserved") {
|
|
203
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
204
|
+
return new _ValidationError["default"]("$reserved", "undefined or null");
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
if (property === "$objectType") {
|
|
208
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
209
|
+
return new _ValidationError["default"]("$objectType", "undefined or null");
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
if (property === "$unknownFields") {
|
|
213
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
214
|
+
return new _ValidationError["default"]("$unknownFields", "undefined or null");
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
218
|
+
}
|
|
219
|
+
}], [{
|
|
220
|
+
key: "constructFromObject",
|
|
221
|
+
value: function constructFromObject(data, obj) {
|
|
222
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
223
|
+
var items, item, i, itemArr, discriminator;
|
|
224
|
+
if (data) {
|
|
225
|
+
obj = obj || new NotificationDetail();
|
|
226
|
+
if (data.hasOwnProperty('severityLevel') && data.severityLevel !== null && data.severityLevel !== undefined) {
|
|
227
|
+
obj.setSeverityLevel(_SeverityLevel["default"].constructFromObject(data['severityLevel']));
|
|
228
|
+
}
|
|
229
|
+
if (data.hasOwnProperty('message') && data.message !== null && data.message !== undefined) {
|
|
230
|
+
obj.setMessage(data['message']);
|
|
231
|
+
}
|
|
232
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
233
|
+
obj.$reserved = data['$reserved'];
|
|
234
|
+
}
|
|
235
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
236
|
+
obj.$objectType = data['$objectType'];
|
|
237
|
+
}
|
|
238
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
239
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
240
|
+
}
|
|
241
|
+
if (!callFromChild) {
|
|
242
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
243
|
+
for (var property in data) {
|
|
244
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
245
|
+
obj.$unknownFields[property] = data[property];
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
return obj;
|
|
251
|
+
}
|
|
252
|
+
}]);
|
|
253
|
+
}();
|
|
254
|
+
/**
|
|
255
|
+
* @memberof NotificationDetail
|
|
256
|
+
*/
|
|
257
|
+
function _toJsonMapType(obj, forMutation) {
|
|
258
|
+
if (obj instanceof Map) {
|
|
259
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
260
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
261
|
+
k = _ref2[0],
|
|
262
|
+
v = _ref2[1];
|
|
263
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
264
|
+
}));
|
|
265
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
266
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
267
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
268
|
+
}));
|
|
269
|
+
}
|
|
270
|
+
return obj;
|
|
271
|
+
}
|
|
272
|
+
NotificationDetail.prototype.severityLevel = undefined;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* A message with notification details. The description of the most disruptive action that will occur on the node or the cluster. INFO, WARNING or NOTICE based message for an entity.
|
|
276
|
+
* @memberof NotificationDetail
|
|
277
|
+
*/
|
|
278
|
+
NotificationDetail.prototype.message = undefined;
|
|
279
|
+
NotificationDetail.prototype.$reserved = undefined;
|
|
280
|
+
NotificationDetail.prototype.$objectType = undefined;
|
|
281
|
+
NotificationDetail.prototype.$unknownFields = undefined;
|