import { AbstractSession , IHandlerParameters } from "@zowe/imperative" ; import { IZosFilesResponse , ICreateZfsOptions , Create } from "@zowe/zos-files-for-zowe-sdk" ; import { ZosFilesBaseHandler } from "../../ZosFilesBase.handler" ; /**
 * Handler to create a z/OS file system
 */ export default class ZfsHandler extends ZosFilesBaseHandler { public async processWithSession ( commandParameters , session ) { const createZfsOptions = { owner : commandParameters . arguments . owner , group : commandParameters . arguments . group , perms : commandParameters . arguments . perms , cylsPri : commandParameters . arguments . cylsPri , cylsSec : commandParameters . arguments . cylsSec , storclass : commandParameters . arguments . storageClass , mgntclass : commandParameters . arguments . managementClass , dataclass : commandParameters . arguments . dataClass , volumes : commandParameters . arguments . volumes , timeout : commandParameters . arguments . timeout , responseTimeout : commandParameters . arguments . responseTimeout } ; return Create . zfs ( session , commandParameters . arguments . fileSystemName , createZfsOptions ) ; } }