/** * Utility functions for z/OS jobs * @export * @class JobsUtils */ export declare class JobsUtils { /** * Characters allowed in a job name: letters, numbers, and the national characters @, #, and $ */ private static readonly JOB_NAME_REGEX; /** * Characters allowed in a job ID: letters and numbers */ private static readonly JOB_ID_REGEX; /** * Characters allowed in a spool file ID: digits */ private static readonly SPOOL_ID_REGEX; /** * Validate a job name and job ID before they are placed in the path of a z/OSMF REST request. * Only the character set is checked, so that values such as "/" or ".." cannot change which * resource the request is sent to. Length and format rules are left to z/OSMF. * @static * @param {string} jobname - the job name to validate * @param {string} jobid - the job ID to validate * @throws {ImperativeError} when the job name or job ID contains characters that are not allowed * @memberof JobsUtils */ static validateJobNameAndId(jobname: string, jobid: string): void; /** * Validate a spool file ID before it is placed in the path of a z/OSMF REST request. * @static * @param {number} spoolId - the spool file ID to validate * @throws {ImperativeError} when the spool file ID is not a non-negative integer * @memberof JobsUtils */ static validateSpoolId(spoolId: number): void; } //# sourceMappingURL=JobsUtils.d.ts.map