use conjure_http::endpoint;
#[conjure_http::conjure_endpoints(
name = "IngestAutomationService",
use_legacy_error_serialization
)]
pub trait IngestAutomationService {
#[endpoint(
method = POST,
path = "/ingest/v1/ingest-automations",
name = "createIngestAutomation",
produces = conjure_http::server::StdResponseSerializer
)]
fn create_ingest_automation(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(deserializer = conjure_http::server::StdRequestDeserializer)]
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",
produces = conjure_http::server::StdResponseSerializer
)]
fn get_ingest_automation(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[path(
name = "rid",
decoder = conjure_http::server::conjure::FromPlainDecoder,
safe
)]
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_endpoints(
name = "IngestAutomationService",
use_legacy_error_serialization
)]
pub trait AsyncIngestAutomationService {
#[endpoint(
method = POST,
path = "/ingest/v1/ingest-automations",
name = "createIngestAutomation",
produces = conjure_http::server::StdResponseSerializer
)]
async fn create_ingest_automation(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(deserializer = conjure_http::server::StdRequestDeserializer)]
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",
produces = conjure_http::server::StdResponseSerializer
)]
async fn get_ingest_automation(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[path(
name = "rid",
decoder = conjure_http::server::conjure::FromPlainDecoder,
safe
)]
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_endpoints(
name = "IngestAutomationService",
use_legacy_error_serialization,
local
)]
pub trait LocalAsyncIngestAutomationService {
#[endpoint(
method = POST,
path = "/ingest/v1/ingest-automations",
name = "createIngestAutomation",
produces = conjure_http::server::StdResponseSerializer
)]
async fn create_ingest_automation(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(deserializer = conjure_http::server::StdRequestDeserializer)]
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",
produces = conjure_http::server::StdResponseSerializer
)]
async fn get_ingest_automation(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[path(
name = "rid",
decoder = conjure_http::server::conjure::FromPlainDecoder,
safe
)]
rid: super::super::super::super::objects::ingest::api::IngestAutomationRid,
) -> Result<
super::super::super::super::objects::ingest::api::IngestAutomation,
conjure_http::private::Error,
>;
}