/** * The Batch model module. * @module Ntnx/Batch * @version 4.4.2 * @class Batch * @extends ExternalizableAbstractModel */ export default class Batch extends ExternalizableAbstractModel { /** * Returns An user friendly name of the batch. * @return {string} */ getName(): string; /** * Sets An user friendly name of the batch. * @param {string} name An user friendly name of the batch. */ setName(name: string): void; name: string; /** * Returns An unique uuid identifier of the user * @return {string} */ getOwnerUuid(): string; /** * Sets An unique uuid identifier of the user * @param {string} ownerUuid An unique uuid identifier of the user */ setOwnerUuid(ownerUuid: string): void; ownerUuid: string; /** * Returns The execution start time of the batch. The value will be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would imply that the batch started execution at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html * @return {Date} */ getStartTime(): Date; /** * Sets The execution start time of the batch. The value will be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would imply that the batch started execution at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html * @param {Date} startTime The execution start time of the batch. The value will be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would imply that the batch started execution at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html */ setStartTime(startTime: Date): void; startTime: Date; /** * Returns The completion time of the batch. The value will be in extended ISO-8601 format. For example, end time of 2022-04-23T01:23:45.678+09:00 would imply that the batch completed its execution at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html * @return {Date} */ getEndTime(): Date; /** * Sets The completion time of the batch. The value will be in extended ISO-8601 format. For example, end time of 2022-04-23T01:23:45.678+09:00 would imply that the batch completed its execution at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html * @param {Date} endTime The completion time of the batch. The value will be in extended ISO-8601 format. For example, end time of 2022-04-23T01:23:45.678+09:00 would imply that the batch completed its execution at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html */ setEndTime(endTime: Date): void; endTime: Date; /** * Returns The total number of elements submitted for processing in the batch. * @return {Number} */ getSize(): number; /** * Sets The total number of elements submitted for processing in the batch. * @param {Number} size The total number of elements submitted for processing in the batch. */ setSize(size: number): void; size: number; /** * Returns The total number of elements successfully processed in the batch. * @return {Number} */ getSuccessCount(): number; /** * Sets The total number of elements successfully processed in the batch. * @param {Number} successCount The total number of elements successfully processed in the batch. */ setSuccessCount(successCount: number): void; successCount: number; /** * Returns The total number of elements that failed to be processed in the batch. * @return {Number} */ getFailedCount(): number; /** * Sets The total number of elements that failed to be processed in the batch. * @param {Number} failedCount The total number of elements that failed to be processed in the batch. */ setFailedCount(failedCount: number): void; failedCount: number; /** * @return {BatchCompletionStatus} */ getCompletionStatus(): BatchCompletionStatus; /** * @param {BatchCompletionStatus} completionStatus */ setCompletionStatus(completionStatus: BatchCompletionStatus): void; completionStatus: string; /** * @return {BatchExecutionStatus} */ getExecutionStatus(): BatchExecutionStatus; /** * @param {BatchExecutionStatus} executionStatus */ setExecutionStatus(executionStatus: BatchExecutionStatus): void; executionStatus: string; /** * Returns A flag indicating whether the batch procession should halt or continue when an error response is received from the server during the execution of a batch chunk * @return {boolean} */ getShouldStopOnError(): boolean; /** * Sets A flag indicating whether the batch procession should halt or continue when an error response is received from the server during the execution of a batch chunk * @param {boolean} shouldStopOnError A flag indicating whether the batch procession should halt or continue when an error response is received from the server during the execution of a batch chunk */ setShouldStopOnError(shouldStopOnError: boolean): void; shouldStopOnError: boolean; #private; } import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel"; import BatchCompletionStatus from "./BatchCompletionStatus"; import BatchExecutionStatus from "./BatchExecutionStatus";