nominal-api-conjure 0.1432.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_client(name = "IngestAutomationService")]
pub trait IngestAutomationService<
    #[response_body]
    I: Iterator<
            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
        >,
> {
    /// 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",
        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,
    >;
    /// 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",
        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,
    >;
}
/// 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_client(name = "IngestAutomationService")]
pub trait AsyncIngestAutomationService<
    #[response_body]
    I: conjure_http::private::Stream<
            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
        >,
> {
    /// 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",
        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,
    >;
    /// 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",
        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,
    >;
}
/// 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_client(name = "IngestAutomationService", local)]
pub trait LocalAsyncIngestAutomationService<
    #[response_body]
    I: conjure_http::private::Stream<
            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
        >,
> {
    /// 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",
        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,
    >;
    /// 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",
        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,
    >;
}