/** * The TaskJob model module. * @module Ntnx/TaskJob * @version 4.4.2 * @class TaskJob * @extends ExternalizableAbstractModel */ export default class TaskJob extends ExternalizableAbstractModel { /** * Returns Name of the job associated with the task. * @return {string} */ getName(): string; /** * Sets Name of the job associated with the task. * @param {string} name Name of the job associated with the task. */ setName(name: string): void; name: string; /** * @return {TaskJobStatus} */ getStatus(): TaskJobStatus; /** * @param {TaskJobStatus} status */ setStatus(status: TaskJobStatus): void; status: string; /** * Returns Entities affected by the job associated with the task. * @return {EntityReference[]} */ getEntitiesAffected(): EntityReference[]; /** * Sets Entities affected by the job associated with the task. * @param {EntityReference[]} entitiesAffected Entities affected by the job associated with the task. */ setEntitiesAffected(entitiesAffected: EntityReference[]): void; entitiesAffected: EntityReference[]; /** * Returns Error details that explain a job failure. These details are populated if a task fails. * @return {AppMessage[]} */ getErrorMessages(): AppMessage[]; /** * Sets Error details that explain a job failure. These details are populated if a task fails. * @param {AppMessage[]} errorMessages Error details that explain a job failure. These details are populated if a task fails. */ setErrorMessages(errorMessages: AppMessage[]): void; errorMessages: AppMessage[]; /** * Returns Warning messages to alert the user of issues that did not directly cause the job to fail. * @return {AppMessage[]} */ getWarnings(): AppMessage[]; /** * Sets Warning messages to alert the user of issues that did not directly cause the job to fail. * @param {AppMessage[]} warnings Warning messages to alert the user of issues that did not directly cause the job to fail. */ setWarnings(warnings: AppMessage[]): void; warnings: AppMessage[]; /** * Returns List of globally unique identifiers for clusters associated with the job. * @return {string[]} */ getClusterExtIds(): string[]; /** * Sets List of globally unique identifiers for clusters associated with the job. * @param {string[]} clusterExtIds List of globally unique identifiers for clusters associated with the job. */ setClusterExtIds(clusterExtIds: string[]): void; clusterExtIds: string[]; /** * Returns Additional job details that help the user take further action after the job is completed. * @return {KVPair[]} */ getCompletionDetails(): KVPair[]; /** * Sets Additional job details that help the user take further action after the job is completed. * @param {KVPair[]} completionDetails Additional job details that help the user take further action after the job is completed. */ setCompletionDetails(completionDetails: KVPair[]): void; completionDetails: KVPair[]; /** * Returns UTC date and time in RFC-3339 format when the job was created. * @return {Date} */ getCreatedTime(): Date; /** * Sets UTC date and time in RFC-3339 format when the job was created. * @param {Date} createdTime UTC date and time in RFC-3339 format when the job was created. */ setCreatedTime(createdTime: Date): void; createdTime: Date; /** * Returns UTC date and time in RFC-3339 format when the job was completed. * @return {Date} */ getCompletedTime(): Date; /** * Sets UTC date and time in RFC-3339 format when the job was completed. * @param {Date} completedTime UTC date and time in RFC-3339 format when the job was completed. */ setCompletedTime(completedTime: Date): void; completedTime: Date; #private; } import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel"; import TaskJobStatus from "./TaskJobStatus"; import EntityReference from "./EntityReference"; import AppMessage from "../error/AppMessage"; import KVPair from "../../../common/v1/config/KVPair";