use conjure_http::endpoint;
#[conjure_http::conjure_client(name = "InternalIngestJobService")]
pub trait InternalIngestJobService<
#[response_body]
I: Iterator<
Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
>,
> {
#[endpoint(
method = POST,
path = "/internal/ingest/v1/ingest-job",
name = "createIngestJob",
accept = conjure_http::client::StdResponseDeserializer
)]
fn create_ingest_job(
&self,
#[auth]
auth_: &conjure_object::BearerToken,
#[body(serializer = conjure_http::client::StdRequestSerializer)]
create_ingest_job_request: &super::super::super::super::objects::ingest::api::CreateIngestJobRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestJobRid,
conjure_http::private::Error,
>;
#[endpoint(
method = GET,
path = "/internal/ingest/v1/ingest-job/{ingestJobRid}",
name = "getIngestJobInternal",
accept = conjure_http::client::StdResponseDeserializer
)]
fn get_ingest_job_internal(
&self,
#[auth]
auth_: &conjure_object::BearerToken,
#[path(
name = "ingestJobRid",
encoder = conjure_http::client::conjure::PlainEncoder
)]
ingest_job_rid: &super::super::super::super::objects::ingest::api::IngestJobRid,
) -> Result<
super::super::super::super::objects::ingest::api::InternalIngestJob,
conjure_http::private::Error,
>;
#[endpoint(
method = PUT,
path = "/internal/ingest/v1/ingest-job/{ingestJobRid}/status",
name = "updateIngestJobStatus",
accept = conjure_http::client::StdResponseDeserializer
)]
fn update_ingest_job_status(
&self,
#[auth]
auth_: &conjure_object::BearerToken,
#[path(
name = "ingestJobRid",
encoder = conjure_http::client::conjure::PlainEncoder
)]
ingest_job_rid: &super::super::super::super::objects::ingest::api::IngestJobRid,
#[body(serializer = conjure_http::client::StdRequestSerializer)]
status: &super::super::super::super::objects::ingest::api::IngestJobStatus,
) -> Result<
super::super::super::super::objects::ingest::api::IngestJobStatus,
conjure_http::private::Error,
>;
}
#[conjure_http::conjure_client(name = "InternalIngestJobService")]
pub trait AsyncInternalIngestJobService<
#[response_body]
I: conjure_http::private::Stream<
Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
>,
> {
#[endpoint(
method = POST,
path = "/internal/ingest/v1/ingest-job",
name = "createIngestJob",
accept = conjure_http::client::StdResponseDeserializer
)]
async fn create_ingest_job(
&self,
#[auth]
auth_: &conjure_object::BearerToken,
#[body(serializer = conjure_http::client::StdRequestSerializer)]
create_ingest_job_request: &super::super::super::super::objects::ingest::api::CreateIngestJobRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestJobRid,
conjure_http::private::Error,
>;
#[endpoint(
method = GET,
path = "/internal/ingest/v1/ingest-job/{ingestJobRid}",
name = "getIngestJobInternal",
accept = conjure_http::client::StdResponseDeserializer
)]
async fn get_ingest_job_internal(
&self,
#[auth]
auth_: &conjure_object::BearerToken,
#[path(
name = "ingestJobRid",
encoder = conjure_http::client::conjure::PlainEncoder
)]
ingest_job_rid: &super::super::super::super::objects::ingest::api::IngestJobRid,
) -> Result<
super::super::super::super::objects::ingest::api::InternalIngestJob,
conjure_http::private::Error,
>;
#[endpoint(
method = PUT,
path = "/internal/ingest/v1/ingest-job/{ingestJobRid}/status",
name = "updateIngestJobStatus",
accept = conjure_http::client::StdResponseDeserializer
)]
async fn update_ingest_job_status(
&self,
#[auth]
auth_: &conjure_object::BearerToken,
#[path(
name = "ingestJobRid",
encoder = conjure_http::client::conjure::PlainEncoder
)]
ingest_job_rid: &super::super::super::super::objects::ingest::api::IngestJobRid,
#[body(serializer = conjure_http::client::StdRequestSerializer)]
status: &super::super::super::super::objects::ingest::api::IngestJobStatus,
) -> Result<
super::super::super::super::objects::ingest::api::IngestJobStatus,
conjure_http::private::Error,
>;
}
#[conjure_http::conjure_client(name = "InternalIngestJobService", local)]
pub trait LocalAsyncInternalIngestJobService<
#[response_body]
I: conjure_http::private::Stream<
Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
>,
> {
#[endpoint(
method = POST,
path = "/internal/ingest/v1/ingest-job",
name = "createIngestJob",
accept = conjure_http::client::StdResponseDeserializer
)]
async fn create_ingest_job(
&self,
#[auth]
auth_: &conjure_object::BearerToken,
#[body(serializer = conjure_http::client::StdRequestSerializer)]
create_ingest_job_request: &super::super::super::super::objects::ingest::api::CreateIngestJobRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestJobRid,
conjure_http::private::Error,
>;
#[endpoint(
method = GET,
path = "/internal/ingest/v1/ingest-job/{ingestJobRid}",
name = "getIngestJobInternal",
accept = conjure_http::client::StdResponseDeserializer
)]
async fn get_ingest_job_internal(
&self,
#[auth]
auth_: &conjure_object::BearerToken,
#[path(
name = "ingestJobRid",
encoder = conjure_http::client::conjure::PlainEncoder
)]
ingest_job_rid: &super::super::super::super::objects::ingest::api::IngestJobRid,
) -> Result<
super::super::super::super::objects::ingest::api::InternalIngestJob,
conjure_http::private::Error,
>;
#[endpoint(
method = PUT,
path = "/internal/ingest/v1/ingest-job/{ingestJobRid}/status",
name = "updateIngestJobStatus",
accept = conjure_http::client::StdResponseDeserializer
)]
async fn update_ingest_job_status(
&self,
#[auth]
auth_: &conjure_object::BearerToken,
#[path(
name = "ingestJobRid",
encoder = conjure_http::client::conjure::PlainEncoder
)]
ingest_job_rid: &super::super::super::super::objects::ingest::api::IngestJobRid,
#[body(serializer = conjure_http::client::StdRequestSerializer)]
status: &super::super::super::super::objects::ingest::api::IngestJobStatus,
) -> Result<
super::super::super::super::objects::ingest::api::IngestJobStatus,
conjure_http::private::Error,
>;
}