/** * Notifications service. * @version 4.3.1 * @class NotificationsApi */ export class NotificationsApi { /** * Make the default {@link ApiClient} class available for developers to be able to extend it and bring * their own fetch methods into the SDK */ static get ApiClient(): typeof ApiClient; /** * Constructs a new NotificationsApi. * @alias module:api/NotificationsApi * @class * @param {module:ApiClient} [apiClient] Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ constructor(apiClient?: any); apiClient: any; /** * Compute upgrade notifications for a set of LCM entities. * Compute upgrade notifications for a set of LCM entities and their target versions. Notifications describe the impact of the planned upgrade on cluster nodes and entities, including disruptive actions such as host reboots, VM migrations, and maintenance-mode entry. Submit a NotificationsSpec containing entity update specifications (entity UUID and target version pairs) and optional credentials for third-party vendor management. When operating from Prism Central, supply the X-Cluster-Id header to target a specific Prism Element cluster; if omitted, the operation targets the Prism Central cluster itself. The operation is asynchronous and returns a TaskReference. Once the task completes successfully, retrieve the resource identifier from the task's completion_details field and use GET /notifications/{extId} to fetch the computed notification results. The result resource is valid for 1 hour from creation. Requires the NTNX-Request-Id header (a UUID v4 value) for idempotency. * @param { Required> & Partial } body specification * @param {Object} opts Optional parameters defined for the operation * @param { String } opts.xClusterId The cluster UUID on which the resource is present or the operation is being performed. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ComputeNotificationsApiResponse } and HTTP response */ computeNotifications(body: Required> & Partial, opts: { xClusterId: string; }, ...args: any): Promise; /** * Retrieve a computed upgrade notification result by its resource identifier. * Retrieve the computed upgrade notification result by its resource identifier. The resource identifier is obtained from the completion_details field of the task returned by POST /$actions/compute-notifications. The result contains notification items grouped by entity and location, each with severity levels and descriptive messages about the upgrade impact. The notification result is valid for 1 hour from the time it was computed. Review notifications before proceeding with prechecks (POST /$actions/prechecks) and upgrade (POST /$actions/upgrade) to understand the operational impact. * @param { String } extId The resource identifier (UUID) of the computed upgrade notification. Obtained from the completion_details of the task returned by POST /$actions/compute-notifications. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetNotificationsByIdApiResponse } and HTTP response */ getNotificationById(extId: string, ...args: any): Promise; #private; } import NotificationsSpec from "../models/lifecycle/v4/resources/NotificationsSpec"; import ComputeNotificationsApiResponse from "../models/lifecycle/v4/operations/ComputeNotificationsApiResponse"; import GetNotificationsByIdApiResponse from "../models/lifecycle/v4/resources/GetNotificationsByIdApiResponse"; import { ApiClient } from "../ApiClient";