UNPKG

@zowe/cli

Version:

Zowe CLI is a command line interface (CLI) that provides a simple and streamlined way to interact with IBM z/OS.

26 lines (25 loc) 1.23 kB
import { AbstractSession } from "@zowe/imperative"; import { IZosFilesResponse } from "../../doc/IZosFilesResponse"; import { IDataSet } from "../../doc/IDataSet"; import { ICopyDatasetOptions } from "./doc/ICopyDatasetOptions"; /** * This class holds helper functions that are used to copy the contents of datasets through the * z/OSMF APIs. */ export declare class Copy { /** * Copy the contents of a dataset * * @param {AbstractSession} session - z/OSMF connection info * @param {IDataSet} toDataSet - The data set to copy to * @param {IDataSetOptions} options - Options * * @returns {Promise<IZosFilesResponse>} A response indicating the status of the copying * * @throws {ImperativeError} Data set name must be specified as a non-empty string * @throws {Error} When the {@link ZosmfRestClient} throws an error * * @see https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.izua700/IZUHPINFO_API_PutDataSetMemberUtilities.htm */ static dataSet(session: AbstractSession, { dataSetName: toDataSetName, memberName: toMemberName }: IDataSet, options: ICopyDatasetOptions): Promise<IZosFilesResponse>; }