use conjure_http::endpoint;
/// The Internal Job Service is responsible for running jobs for checklist executions.
#[conjure_http::conjure_client(name = "InternalJobService")]
pub trait InternalJobService<
    #[response_body]
    I: Iterator<
            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
        >,
> {
    /// Runs the requested job specs.
    #[endpoint(
        method = POST,
        path = "/internal/jobs/v1/submitJobs",
        name = "submitJobs",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    fn submit_jobs(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        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_client(name = "InternalJobService")]
pub trait AsyncInternalJobService<
    #[response_body]
    I: conjure_http::private::Stream<
            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
        >,
> {
    /// Runs the requested job specs.
    #[endpoint(
        method = POST,
        path = "/internal/jobs/v1/submitJobs",
        name = "submitJobs",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn submit_jobs(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        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_client(name = "InternalJobService", local)]
pub trait LocalAsyncInternalJobService<
    #[response_body]
    I: conjure_http::private::Stream<
            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
        >,
> {
    /// Runs the requested job specs.
    #[endpoint(
        method = POST,
        path = "/internal/jobs/v1/submitJobs",
        name = "submitJobs",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn submit_jobs(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        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,
    >;
}
