use conjure_http::endpoint;
#[conjure_http::conjure_client(name = "IngestAutomationService")]
pub trait IngestAutomationService<
#[response_body]
I: Iterator<
Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
>,
> {
#[endpoint(
method = POST,
path = "/ingest/v1/ingest-automations",
name = "createIngestAutomation",
accept = conjure_http::client::StdResponseDeserializer
)]
fn create_ingest_automation(
&self,
#[auth]
auth_: &conjure_object::BearerToken,
#[body(serializer = conjure_http::client::StdRequestSerializer)]
request: &super::super::super::super::objects::ingest::api::CreateIngestAutomationRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestAutomation,
conjure_http::private::Error,
>;
#[endpoint(
method = GET,
path = "/ingest/v1/ingest-automations/{rid}",
name = "getIngestAutomation",
accept = conjure_http::client::StdResponseDeserializer
)]
fn get_ingest_automation(
&self,
#[auth]
auth_: &conjure_object::BearerToken,
#[path(name = "rid", encoder = conjure_http::client::conjure::PlainEncoder)]
rid: &super::super::super::super::objects::ingest::api::IngestAutomationRid,
) -> Result<
super::super::super::super::objects::ingest::api::IngestAutomation,
conjure_http::private::Error,
>;
}
#[conjure_http::conjure_client(name = "IngestAutomationService")]
pub trait AsyncIngestAutomationService<
#[response_body]
I: conjure_http::private::Stream<
Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
>,
> {
#[endpoint(
method = POST,
path = "/ingest/v1/ingest-automations",
name = "createIngestAutomation",
accept = conjure_http::client::StdResponseDeserializer
)]
async fn create_ingest_automation(
&self,
#[auth]
auth_: &conjure_object::BearerToken,
#[body(serializer = conjure_http::client::StdRequestSerializer)]
request: &super::super::super::super::objects::ingest::api::CreateIngestAutomationRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestAutomation,
conjure_http::private::Error,
>;
#[endpoint(
method = GET,
path = "/ingest/v1/ingest-automations/{rid}",
name = "getIngestAutomation",
accept = conjure_http::client::StdResponseDeserializer
)]
async fn get_ingest_automation(
&self,
#[auth]
auth_: &conjure_object::BearerToken,
#[path(name = "rid", encoder = conjure_http::client::conjure::PlainEncoder)]
rid: &super::super::super::super::objects::ingest::api::IngestAutomationRid,
) -> Result<
super::super::super::super::objects::ingest::api::IngestAutomation,
conjure_http::private::Error,
>;
}
#[conjure_http::conjure_client(name = "IngestAutomationService", local)]
pub trait LocalAsyncIngestAutomationService<
#[response_body]
I: conjure_http::private::Stream<
Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
>,
> {
#[endpoint(
method = POST,
path = "/ingest/v1/ingest-automations",
name = "createIngestAutomation",
accept = conjure_http::client::StdResponseDeserializer
)]
async fn create_ingest_automation(
&self,
#[auth]
auth_: &conjure_object::BearerToken,
#[body(serializer = conjure_http::client::StdRequestSerializer)]
request: &super::super::super::super::objects::ingest::api::CreateIngestAutomationRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestAutomation,
conjure_http::private::Error,
>;
#[endpoint(
method = GET,
path = "/ingest/v1/ingest-automations/{rid}",
name = "getIngestAutomation",
accept = conjure_http::client::StdResponseDeserializer
)]
async fn get_ingest_automation(
&self,
#[auth]
auth_: &conjure_object::BearerToken,
#[path(name = "rid", encoder = conjure_http::client::conjure::PlainEncoder)]
rid: &super::super::super::super::objects::ingest::api::IngestAutomationRid,
) -> Result<
super::super::super::super::objects::ingest::api::IngestAutomation,
conjure_http::private::Error,
>;
}