nominal-api-conjure 0.1440.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// Ingest automations are temporarily restricted to the sandbox workspace while the
/// "Quick look" upload mode is gated (see the Quick look upon ingest RFC). Lifting the
/// restriction removes this validation.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash,
    conjure_object::log_safety::derive::LogSafe
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct WorkspaceNotSandbox {
    #[serde(rename = "workspaceRid")]
    workspace_rid: super::super::super::super::objects::api::rids::WorkspaceRid,
}
impl WorkspaceNotSandbox {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        workspace_rid: super::super::super::super::objects::api::rids::WorkspaceRid,
    ) -> Self {
        Self::builder().workspace_rid(workspace_rid).build()
    }
    #[inline]
    pub fn workspace_rid(
        &self,
    ) -> &super::super::super::super::objects::api::rids::WorkspaceRid {
        &self.workspace_rid
    }
}
impl conjure_error::ErrorType for WorkspaceNotSandbox {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "IngestAutomation:WorkspaceNotSandbox"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["workspaceRid"]
    }
}