use conjure_http::endpoint;
#[conjure_http::conjure_endpoints(
name = "IngestService",
use_legacy_error_serialization
)]
pub trait IngestService {
#[endpoint(
method = POST,
path = "/ingest/v1/ingest",
name = "ingest",
produces = conjure_http::server::StdResponseSerializer
)]
fn ingest(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(
deserializer = conjure_http::server::StdRequestDeserializer,
log_as = "triggerIngest"
)]
trigger_ingest: super::super::super::super::objects::ingest::api::IngestRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestResponse,
conjure_http::private::Error,
>;
#[endpoint(
method = POST,
path = "/ingest/v1/re-ingest",
name = "rerunIngest",
produces = conjure_http::server::StdResponseSerializer
)]
fn rerun_ingest(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
request: super::super::super::super::objects::ingest::api::RerunIngestRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestResponse,
conjure_http::private::Error,
>;
#[endpoint(
method = POST,
path = "/ingest/v1/ingest-run",
name = "ingestRun",
produces = conjure_http::server::StdResponseSerializer
)]
fn ingest_run(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(deserializer = conjure_http::server::StdRequestDeserializer)]
request: super::super::super::super::objects::ingest::api::IngestRunRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestRunResponse,
conjure_http::private::Error,
>;
#[endpoint(
method = POST,
path = "/ingest/v1/ingest-video",
name = "ingestVideo",
produces = conjure_http::server::StdResponseSerializer
)]
fn ingest_video(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(
deserializer = conjure_http::server::StdRequestDeserializer,
log_as = "ingestVideo"
)]
ingest_video: super::super::super::super::objects::ingest::api::IngestVideoRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestVideoResponse,
conjure_http::private::Error,
>;
#[endpoint(
method = POST,
path = "/ingest/v1/reingest-dataset-files",
name = "reingestFromDatasets",
produces = conjure_http::server::StdResponseSerializer
)]
fn reingest_from_datasets(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(deserializer = conjure_http::server::StdRequestDeserializer)]
request: super::super::super::super::objects::ingest::api::ReingestDatasetsRequest,
) -> Result<
super::super::super::super::objects::ingest::api::ReingestDatasetsResponse,
conjure_http::private::Error,
>;
#[endpoint(
method = DELETE,
path = "/ingest/v1/delete-file/{datasetRid}/file/{fileId}",
name = "deleteFile"
)]
fn delete_file(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[path(
name = "datasetRid",
decoder = conjure_http::server::conjure::FromPlainDecoder,
log_as = "datasetRid",
safe
)]
dataset_rid: super::super::super::super::objects::api::rids::DatasetRid,
#[path(
name = "fileId",
decoder = conjure_http::server::conjure::FromPlainDecoder,
log_as = "fileId"
)]
file_id: conjure_object::Uuid,
) -> Result<(), conjure_http::private::Error>;
}
#[conjure_http::conjure_endpoints(
name = "IngestService",
use_legacy_error_serialization
)]
pub trait AsyncIngestService {
#[endpoint(
method = POST,
path = "/ingest/v1/ingest",
name = "ingest",
produces = conjure_http::server::StdResponseSerializer
)]
async fn ingest(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(
deserializer = conjure_http::server::StdRequestDeserializer,
log_as = "triggerIngest"
)]
trigger_ingest: super::super::super::super::objects::ingest::api::IngestRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestResponse,
conjure_http::private::Error,
>;
#[endpoint(
method = POST,
path = "/ingest/v1/re-ingest",
name = "rerunIngest",
produces = conjure_http::server::StdResponseSerializer
)]
async fn rerun_ingest(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
request: super::super::super::super::objects::ingest::api::RerunIngestRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestResponse,
conjure_http::private::Error,
>;
#[endpoint(
method = POST,
path = "/ingest/v1/ingest-run",
name = "ingestRun",
produces = conjure_http::server::StdResponseSerializer
)]
async fn ingest_run(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(deserializer = conjure_http::server::StdRequestDeserializer)]
request: super::super::super::super::objects::ingest::api::IngestRunRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestRunResponse,
conjure_http::private::Error,
>;
#[endpoint(
method = POST,
path = "/ingest/v1/ingest-video",
name = "ingestVideo",
produces = conjure_http::server::StdResponseSerializer
)]
async fn ingest_video(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(
deserializer = conjure_http::server::StdRequestDeserializer,
log_as = "ingestVideo"
)]
ingest_video: super::super::super::super::objects::ingest::api::IngestVideoRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestVideoResponse,
conjure_http::private::Error,
>;
#[endpoint(
method = POST,
path = "/ingest/v1/reingest-dataset-files",
name = "reingestFromDatasets",
produces = conjure_http::server::StdResponseSerializer
)]
async fn reingest_from_datasets(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(deserializer = conjure_http::server::StdRequestDeserializer)]
request: super::super::super::super::objects::ingest::api::ReingestDatasetsRequest,
) -> Result<
super::super::super::super::objects::ingest::api::ReingestDatasetsResponse,
conjure_http::private::Error,
>;
#[endpoint(
method = DELETE,
path = "/ingest/v1/delete-file/{datasetRid}/file/{fileId}",
name = "deleteFile"
)]
async fn delete_file(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[path(
name = "datasetRid",
decoder = conjure_http::server::conjure::FromPlainDecoder,
log_as = "datasetRid",
safe
)]
dataset_rid: super::super::super::super::objects::api::rids::DatasetRid,
#[path(
name = "fileId",
decoder = conjure_http::server::conjure::FromPlainDecoder,
log_as = "fileId"
)]
file_id: conjure_object::Uuid,
) -> Result<(), conjure_http::private::Error>;
}
#[conjure_http::conjure_endpoints(
name = "IngestService",
use_legacy_error_serialization,
local
)]
pub trait LocalAsyncIngestService {
#[endpoint(
method = POST,
path = "/ingest/v1/ingest",
name = "ingest",
produces = conjure_http::server::StdResponseSerializer
)]
async fn ingest(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(
deserializer = conjure_http::server::StdRequestDeserializer,
log_as = "triggerIngest"
)]
trigger_ingest: super::super::super::super::objects::ingest::api::IngestRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestResponse,
conjure_http::private::Error,
>;
#[endpoint(
method = POST,
path = "/ingest/v1/re-ingest",
name = "rerunIngest",
produces = conjure_http::server::StdResponseSerializer
)]
async fn rerun_ingest(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
request: super::super::super::super::objects::ingest::api::RerunIngestRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestResponse,
conjure_http::private::Error,
>;
#[endpoint(
method = POST,
path = "/ingest/v1/ingest-run",
name = "ingestRun",
produces = conjure_http::server::StdResponseSerializer
)]
async fn ingest_run(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(deserializer = conjure_http::server::StdRequestDeserializer)]
request: super::super::super::super::objects::ingest::api::IngestRunRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestRunResponse,
conjure_http::private::Error,
>;
#[endpoint(
method = POST,
path = "/ingest/v1/ingest-video",
name = "ingestVideo",
produces = conjure_http::server::StdResponseSerializer
)]
async fn ingest_video(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(
deserializer = conjure_http::server::StdRequestDeserializer,
log_as = "ingestVideo"
)]
ingest_video: super::super::super::super::objects::ingest::api::IngestVideoRequest,
) -> Result<
super::super::super::super::objects::ingest::api::IngestVideoResponse,
conjure_http::private::Error,
>;
#[endpoint(
method = POST,
path = "/ingest/v1/reingest-dataset-files",
name = "reingestFromDatasets",
produces = conjure_http::server::StdResponseSerializer
)]
async fn reingest_from_datasets(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[body(deserializer = conjure_http::server::StdRequestDeserializer)]
request: super::super::super::super::objects::ingest::api::ReingestDatasetsRequest,
) -> Result<
super::super::super::super::objects::ingest::api::ReingestDatasetsResponse,
conjure_http::private::Error,
>;
#[endpoint(
method = DELETE,
path = "/ingest/v1/delete-file/{datasetRid}/file/{fileId}",
name = "deleteFile"
)]
async fn delete_file(
&self,
#[auth]
auth_: conjure_object::BearerToken,
#[path(
name = "datasetRid",
decoder = conjure_http::server::conjure::FromPlainDecoder,
log_as = "datasetRid",
safe
)]
dataset_rid: super::super::super::super::objects::api::rids::DatasetRid,
#[path(
name = "fileId",
decoder = conjure_http::server::conjure::FromPlainDecoder,
log_as = "fileId"
)]
file_id: conjure_object::Uuid,
) -> Result<(), conjure_http::private::Error>;
}