nominal-api-conjure 0.1452.0

Conjure HTTP API bindings for the Nominal platform
Documentation
use conjure_http::endpoint;
/// Creates and reports on ingest automations: server-side workflows that take an upload (one or
/// more files) through asset/dataset/data-scope/run creation, ingest, and channel availability. Backs
/// the upload wizard's "Quick look" mode; the frontend creates the accompanying workbook. All
/// endpoints validate that the target workspace is the sandbox workspace while the feature is
/// gated. Resources are created as the requesting user.
#[conjure_http::conjure_endpoints(
    name = "IngestAutomationService",
    use_legacy_error_serialization
)]
pub trait IngestAutomationService {
    /// Creates the automation and starts its workflow, returning immediately. Poll
    /// getIngestAutomation for progress. Throws WorkspaceNotSandbox outside the sandbox
    /// workspace while the feature is gated.
    #[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,
    >;
    /// Returns the automation's current status and the RIDs of every resource created so far.
    #[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,
    >;
}
/// Creates and reports on ingest automations: server-side workflows that take an upload (one or
/// more files) through asset/dataset/data-scope/run creation, ingest, and channel availability. Backs
/// the upload wizard's "Quick look" mode; the frontend creates the accompanying workbook. All
/// endpoints validate that the target workspace is the sandbox workspace while the feature is
/// gated. Resources are created as the requesting user.
#[conjure_http::conjure_endpoints(
    name = "IngestAutomationService",
    use_legacy_error_serialization
)]
pub trait AsyncIngestAutomationService {
    /// Creates the automation and starts its workflow, returning immediately. Poll
    /// getIngestAutomation for progress. Throws WorkspaceNotSandbox outside the sandbox
    /// workspace while the feature is gated.
    #[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,
    >;
    /// Returns the automation's current status and the RIDs of every resource created so far.
    #[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,
    >;
}
/// Creates and reports on ingest automations: server-side workflows that take an upload (one or
/// more files) through asset/dataset/data-scope/run creation, ingest, and channel availability. Backs
/// the upload wizard's "Quick look" mode; the frontend creates the accompanying workbook. All
/// endpoints validate that the target workspace is the sandbox workspace while the feature is
/// gated. Resources are created as the requesting user.
#[conjure_http::conjure_endpoints(
    name = "IngestAutomationService",
    use_legacy_error_serialization,
    local
)]
pub trait LocalAsyncIngestAutomationService {
    /// Creates the automation and starts its workflow, returning immediately. Poll
    /// getIngestAutomation for progress. Throws WorkspaceNotSandbox outside the sandbox
    /// workspace while the feature is gated.
    #[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,
    >;
    /// Returns the automation's current status and the RIDs of every resource created so far.
    #[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,
    >;
}