use conjure_http::endpoint;
/// The Job Service is responsible for returning information about jobs for checklist executions.
#[conjure_http::conjure_endpoints(name = "JobService", use_legacy_error_serialization)]
pub trait JobService {
    /// Fetches the job report for a job RID. Throws ResourcesNotFound if no job exists with this job RID.
    #[endpoint(
        method = GET,
        path = "/jobs/v1/{jobRid}/job-report",
        name = "getJobReport",
        produces = conjure_http::server::StdResponseSerializer
    )]
    fn get_job_report(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[path(
            name = "jobRid",
            decoder = conjure_http::server::conjure::FromPlainDecoder,
            log_as = "jobRid",
            safe
        )]
        job_rid: super::super::super::super::super::objects::scout::checks::api::JobRid,
    ) -> Result<
        super::super::super::super::super::objects::scout::checks::api::JobReport,
        conjure_http::private::Error,
    >;
    /// Fetches the job reports for a set of job RIDs. Omits any job reports the user is not permitted to see from
    /// the response.
    #[endpoint(
        method = POST,
        path = "/jobs/v1/batch-get-job-reports",
        name = "batchGetJobReports",
        produces = conjure_http::server::StdResponseSerializer
    )]
    fn batch_get_job_reports(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
        request: super::super::super::super::super::objects::scout::checks::api::BatchGetJobReportsRequest,
    ) -> Result<
        super::super::super::super::super::objects::scout::checks::api::BatchGetJobReportsResponse,
        conjure_http::private::Error,
    >;
}
/// The Job Service is responsible for returning information about jobs for checklist executions.
#[conjure_http::conjure_endpoints(name = "JobService", use_legacy_error_serialization)]
pub trait AsyncJobService {
    /// Fetches the job report for a job RID. Throws ResourcesNotFound if no job exists with this job RID.
    #[endpoint(
        method = GET,
        path = "/jobs/v1/{jobRid}/job-report",
        name = "getJobReport",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn get_job_report(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[path(
            name = "jobRid",
            decoder = conjure_http::server::conjure::FromPlainDecoder,
            log_as = "jobRid",
            safe
        )]
        job_rid: super::super::super::super::super::objects::scout::checks::api::JobRid,
    ) -> Result<
        super::super::super::super::super::objects::scout::checks::api::JobReport,
        conjure_http::private::Error,
    >;
    /// Fetches the job reports for a set of job RIDs. Omits any job reports the user is not permitted to see from
    /// the response.
    #[endpoint(
        method = POST,
        path = "/jobs/v1/batch-get-job-reports",
        name = "batchGetJobReports",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn batch_get_job_reports(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
        request: super::super::super::super::super::objects::scout::checks::api::BatchGetJobReportsRequest,
    ) -> Result<
        super::super::super::super::super::objects::scout::checks::api::BatchGetJobReportsResponse,
        conjure_http::private::Error,
    >;
}
/// The Job Service is responsible for returning information about jobs for checklist executions.
#[conjure_http::conjure_endpoints(
    name = "JobService",
    use_legacy_error_serialization,
    local
)]
pub trait LocalAsyncJobService {
    /// Fetches the job report for a job RID. Throws ResourcesNotFound if no job exists with this job RID.
    #[endpoint(
        method = GET,
        path = "/jobs/v1/{jobRid}/job-report",
        name = "getJobReport",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn get_job_report(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[path(
            name = "jobRid",
            decoder = conjure_http::server::conjure::FromPlainDecoder,
            log_as = "jobRid",
            safe
        )]
        job_rid: super::super::super::super::super::objects::scout::checks::api::JobRid,
    ) -> Result<
        super::super::super::super::super::objects::scout::checks::api::JobReport,
        conjure_http::private::Error,
    >;
    /// Fetches the job reports for a set of job RIDs. Omits any job reports the user is not permitted to see from
    /// the response.
    #[endpoint(
        method = POST,
        path = "/jobs/v1/batch-get-job-reports",
        name = "batchGetJobReports",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn batch_get_job_reports(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
        request: super::super::super::super::super::objects::scout::checks::api::BatchGetJobReportsRequest,
    ) -> Result<
        super::super::super::super::super::objects::scout::checks::api::BatchGetJobReportsResponse,
        conjure_http::private::Error,
    >;
}
