JESApi

interface JESApi

Functions

Link copied to clipboard
@DELETE(value = "/zosmf/restjobs/jobs/{job_correlator}")
abstract fun cancelJobPurgeOutRequest(@Header(value = "Authorization") basicCredentials: String, @Header(value = "X-IBM-Job-Modify-Version") version: ProcessMethod? = null, @Path(value = "job-correlator") jobCorrelator: String): Call<CancelJobPurgeOutRequest>
@DELETE(value = "/zosmf/restjobs/jobs/{jobname}/{jobid}")
abstract fun cancelJobPurgeOutRequest(@Header(value = "Authorization") basicCredentials: String, @Header(value = "X-IBM-Job-Modify-Version") version: ProcessMethod = ProcessMethod.SYNCHRONOUS, @Path(value = "jobname") jobName: String, @Path(value = "jobid") jobId: String): Call<CancelJobPurgeOutRequest>
Link copied to clipboard
@PUT(value = "/zosmf/restjobs/jobs/{job_correlator}")
abstract fun cancelJobRequest(@Header(value = "Authorization") basicCredentials: String, @Path(value = "job-correlator") jobCorrelator: String, @Body body: CancelJobRequestBody): Call<CancelJobRequest>
@PUT(value = "/zosmf/restjobs/jobs/{jobname}/{jobid}")
abstract fun cancelJobRequest(@Header(value = "Authorization") basicCredentials: String, @Path(value = "jobname") jobName: String, @Path(value = "jobid") jobId: String, @Body body: CancelJobRequestBody): Call<CancelJobRequest>
Link copied to clipboard
@GET(value = "/zosmf/restjobs/jobs")
abstract fun getFilteredJobs(@Header(value = "Authorization") basicCredentials: String, @Query(value = "owner") owner: String? = null, @Query(value = "prefix") prefix: String? = null, @Query(value = "jobid") jobId: String? = null, @Query(value = "max-jobs") maxCount: Int? = null, @Query(value = "user-correlator") userCorrelator: String? = null, @Query(value = "exec-data") execData: ExecData? = null, @Query(value = "status") status: ActiveStatus? = null): Call<List<Job>>
Link copied to clipboard
@GET(value = "/zosmf/restjobs/jobs/{job-correlator}/files/JCL/records")
abstract fun getJCLRecords(@Header(value = "Authorization") basicCredentials: String, @Path(value = "job-correlator") jobCorrelator: String, @Query(value = "mode") mode: BinaryMode = BinaryMode.TEXT, @Header(value = "X-IBM-Record-Range") range: RecordRange? = null, @Query(value = "fileEncoding") fileEncoding: String? = null, @Query(value = "search") searchFor: String? = null, @Query(value = "research") searchForRegular: String? = null, @Query(value = "insensitive") isSearchCaseSensitive: Boolean? = null, @Query(value = "maxreturnsize") maxreturnsize: Int? = null): Call<ByteArray>
@GET(value = "/zosmf/restjobs/jobs/{job-name}/{job-id}/files/JCL/records")
abstract fun getJCLRecords(@Header(value = "Authorization") basicCredentials: String, @Path(value = "job-name") jobName: String, @Path(value = "job-id") jobId: String, @Query(value = "mode") mode: BinaryMode = BinaryMode.TEXT, @Header(value = "X-IBM-Record-Range") range: RecordRange? = null, @Query(value = "fileEncoding") fileEncoding: String? = null, @Query(value = "search") searchFor: String? = null, @Query(value = "research") searchForRegular: String? = null, @Query(value = "insensitive") isSearchCaseSensitive: Boolean? = null, @Query(value = "maxreturnsize") maxreturnsize: Int? = null): Call<ByteArray>
Link copied to clipboard
@GET(value = "/zosmf/restjobs/jobs/{job-correlator}")
abstract fun getJob(@Header(value = "Authorization") basicCredentials: String, @Path(value = "job-correlator") jobCorrelator: String, @Query(value = "step-data") useStepData: UseStepData = UseStepData.DISABLE, @Query(value = "exec-data") execData: ExecData? = null): Call<Job>
@GET(value = "/zosmf/restjobs/jobs/{job-name}/{job-id}")
abstract fun getJob(@Header(value = "Authorization") basicCredentials: String, @Path(value = "job-name") jobName: String, @Path(value = "job-id") jobId: String, @Query(value = "step-data") useStepData: UseStepData = UseStepData.DISABLE, @Query(value = "exec-data") execData: ExecData? = null): Call<Job>
Link copied to clipboard
@GET(value = "/zosmf/restjobs/jobs/{job-correlator}/files")
abstract fun getJobSpoolFiles(@Header(value = "Authorization") basicCredentials: String, @Path(value = "job-correlator") jobCorrelator: String): Call<List<SpoolFile>>
@GET(value = "/zosmf/restjobs/jobs/{job-name}/{job-id}/files")
abstract fun getJobSpoolFiles(@Header(value = "Authorization") basicCredentials: String, @Path(value = "job-name") jobName: String, @Path(value = "job-id") jobId: String): Call<List<SpoolFile>>
Link copied to clipboard
@GET(value = "/zosmf/restjobs/jobs/{job-correlator}/files/{file-id}/records")
abstract fun getSpoolFileRecords(@Header(value = "Authorization") basicCredentials: String, @Path(value = "job-correlator") jobCorrelator: String, @Path(value = "file-id") fileId: Int, @Query(value = "mode") mode: BinaryMode = BinaryMode.TEXT, @Header(value = "X-IBM-Record-Range") range: RecordRange? = null, @Query(value = "fileEncoding") fileEncoding: String? = null, @Query(value = "search") searchFor: String? = null, @Query(value = "research") searchForRegular: String? = null, @Query(value = "insensitive") isSearchCaseSensitive: Boolean? = null, @Query(value = "maxreturnsize") maxreturnsize: Int? = null): Call<ByteArray>
@GET(value = "/zosmf/restjobs/jobs/{job-name}/{job-id}/files/{file-id}/records")
abstract fun getSpoolFileRecords(@Header(value = "Authorization") basicCredentials: String, @Path(value = "job-name") jobName: String, @Path(value = "job-id") jobId: String, @Path(value = "file-id") fileId: Int, @Query(value = "mode") mode: BinaryMode = BinaryMode.TEXT, @Header(value = "X-IBM-Record-Range") range: RecordRange? = null, @Query(value = "fileEncoding") fileEncoding: String? = null, @Query(value = "search") searchFor: String? = null, @Query(value = "research") searchForRegular: String? = null, @Query(value = "insensitive") isSearchCaseSensitive: Boolean? = null, @Query(value = "maxreturnsize") maxreturnsize: Int? = null): Call<ByteArray>
Link copied to clipboard
@PUT(value = "/zosmf/restjobs/jobs/{job-correlator}")
abstract fun holdJobRequest(@Header(value = "Authorization") basicCredentials: String, @Path(value = "job-correlator") jobCorrelator: String, @Body body: HoldJobRequestBody): Call<HoldJobRequest>
@PUT(value = "/zosmf/restjobs/jobs/{jobname}/{jobid}")
abstract fun holdJobRequest(@Header(value = "Authorization") basicCredentials: String, @Path(value = "jobname") jobName: String, @Path(value = "jobid") jobId: String, @Body body: HoldJobRequestBody): Call<HoldJobRequest>
Link copied to clipboard
@PUT(value = "/zosmf/restjobs/jobs/{job-correlator}")
abstract fun releaseJobRequest(@Header(value = "Authorization") basicCredentials: String, @Path(value = "job-correlator") jobCorrelator: String, @Body body: ReleaseJobRequestBody): Call<ReleaseJobRequest>
@PUT(value = "/zosmf/restjobs/jobs/{jobname}/{jobid}")
abstract fun releaseJobRequest(@Header(value = "Authorization") basicCredentials: String, @Path(value = "jobname") jobName: String, @Path(value = "jobid") jobId: String, @Body body: ReleaseJobRequestBody): Call<ReleaseJobRequest>
Link copied to clipboard
@PUT(value = "/zosmf/restjobs/jobs")
abstract fun submitJobRequest(@Header(value = "Authorization") basicCredentials: String, @Header(value = "Content-type") contentType: ContentType = ContentType.TEXT_PLAIN, @Header(value = "X-IBM-Intrdr-Class") intrdrclass: String? = null, @Header(value = "X-IBM-Intrdr-Recfm") recfm: Intrdr_Recfm? = null, @Header(value = "X-IBM-Intrdr-Lrecl") lrecl: String? = null, @Header(value = "X-IBM-Intrdr-Mode") mode: Intrdr_Mode = Intrdr_Mode.TEXT, @Header(value = "X-IBM-User-Correlator") userCorrelator: String? = null, @Header(value = "X-IBM-JCL-Symbol-name") symbolName: String? = null, @Header(value = "X-IBM-Notification-URL") notificationURL: String? = null, @Query(value = "JESB") jesb: String? = null, @Body body: String, @Header(value = "X-IBM-Intrdr-FileEncoding") fileEncoding: String? = null): Call<SubmitJobRequest>
@PUT(value = "/zosmf/restjobs/jobs")
abstract fun submitJobRequest(@Header(value = "Authorization") basicCredentials: String, @Header(value = "Content-type") contentType: ContentType = ContentType.APP_JSON, @Header(value = "X-IBM-Intrdr-Class") intrdrclass: String? = null, @Header(value = "X-IBM-Intrdr-Recfm") recfm: Intrdr_Recfm? = null, @Header(value = "X-IBM-Intrdr-Lrecl") lrecl: String? = null, @Header(value = "X-IBM-Intrdr-Mode") mode: Intrdr_Mode? = null, @Header(value = "X-IBM-User-Correlator") userCorrelator: String? = null, @Header(value = "X-IBM-JCL-Symbol-name") symbolName: String? = null, @Header(value = "X-IBM-Notification-URL") notificationURL: String? = null, @Query(value = "JESB") jesb: String? = null, @Body body: SubmitFileNameBody, @Header(value = "X-IBM-Intrdr-FileEncoding") fileEncoding: String? = null): Call<SubmitJobRequest>