use conjure_http::endpoint;
/// The Internal Job Service is responsible for running jobs for checklist executions.
#[conjure_http::conjure_endpoints(
    name = "InternalJobService",
    use_legacy_error_serialization
)]
pub trait InternalJobService {
    /// Runs the requested job specs.
    #[endpoint(
        method = POST,
        path = "/internal/jobs/v1/submitJobs",
        name = "submitJobs",
        produces = conjure_http::server::StdResponseSerializer
    )]
    fn submit_jobs(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::super::super::objects::scout::checks::api::SubmitJobsRequest,
    ) -> Result<
        super::super::super::super::super::objects::scout::checks::api::SubmitJobsResponse,
        conjure_http::private::Error,
    >;
}
/// The Internal Job Service is responsible for running jobs for checklist executions.
#[conjure_http::conjure_endpoints(
    name = "InternalJobService",
    use_legacy_error_serialization
)]
pub trait AsyncInternalJobService {
    /// Runs the requested job specs.
    #[endpoint(
        method = POST,
        path = "/internal/jobs/v1/submitJobs",
        name = "submitJobs",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn submit_jobs(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::super::super::objects::scout::checks::api::SubmitJobsRequest,
    ) -> Result<
        super::super::super::super::super::objects::scout::checks::api::SubmitJobsResponse,
        conjure_http::private::Error,
    >;
}
/// The Internal Job Service is responsible for running jobs for checklist executions.
#[conjure_http::conjure_endpoints(
    name = "InternalJobService",
    use_legacy_error_serialization,
    local
)]
pub trait LocalAsyncInternalJobService {
    /// Runs the requested job specs.
    #[endpoint(
        method = POST,
        path = "/internal/jobs/v1/submitJobs",
        name = "submitJobs",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn submit_jobs(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::super::super::objects::scout::checks::api::SubmitJobsRequest,
    ) -> Result<
        super::super::super::super::super::objects::scout::checks::api::SubmitJobsResponse,
        conjure_http::private::Error,
    >;
}
