nominal-api-conjure 0.1331.0

Conjure HTTP API bindings for the Nominal platform
Documentation
/// A single transform within an ingest job: one unit of extraction/processing work. Surfaces
/// status, type, and error details so callers can monitor and alert on ingest pipelines.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct IngestTransform {
    #[serde(rename = "ingestTransformRid")]
    ingest_transform_rid: super::IngestTransformRid,
    #[serde(rename = "ingestJobRid")]
    ingest_job_rid: super::IngestJobRid,
    #[serde(rename = "transformType")]
    transform_type: super::IngestTransformType,
    #[serde(rename = "status")]
    status: super::IngestTransformStatus,
    #[serde(rename = "createdAt")]
    created_at: conjure_object::DateTime<conjure_object::Utc>,
    #[serde(rename = "updatedAt")]
    updated_at: conjure_object::DateTime<conjure_object::Utc>,
    #[builder(default, into)]
    #[serde(rename = "errorMessage", skip_serializing_if = "Option::is_none", default)]
    error_message: Option<String>,
    #[builder(default, into)]
    #[serde(rename = "finishedAt", skip_serializing_if = "Option::is_none", default)]
    finished_at: Option<conjure_object::DateTime<conjure_object::Utc>>,
    #[builder(default, into)]
    #[serde(rename = "extractorRid", skip_serializing_if = "Option::is_none", default)]
    extractor_rid: Option<super::ContainerizedExtractorRid>,
    #[builder(default, list(item(type = String, into)))]
    #[serde(rename = "sourcePaths", skip_serializing_if = "Vec::is_empty", default)]
    source_paths: Vec<String>,
}
impl IngestTransform {
    #[inline]
    pub fn ingest_transform_rid(&self) -> &super::IngestTransformRid {
        &self.ingest_transform_rid
    }
    /// The ingest job this transform belongs to.
    #[inline]
    pub fn ingest_job_rid(&self) -> &super::IngestJobRid {
        &self.ingest_job_rid
    }
    #[inline]
    pub fn transform_type(&self) -> &super::IngestTransformType {
        &self.transform_type
    }
    #[inline]
    pub fn status(&self) -> &super::IngestTransformStatus {
        &self.status
    }
    #[inline]
    pub fn created_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
        self.created_at
    }
    #[inline]
    pub fn updated_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
        self.updated_at
    }
    /// The failure detail recorded when the transform terminated. Present only for FAILED
    /// transforms. May contain customer-derived content and is therefore not safe to log.
    #[inline]
    pub fn error_message(&self) -> Option<&str> {
        self.error_message.as_ref().map(|o| &**o)
    }
    /// The time the transform reached a terminal status (COMPLETED or FAILED). Absent while the
    /// transform is still QUEUED or IN_PROGRESS.
    #[inline]
    pub fn finished_at(&self) -> Option<conjure_object::DateTime<conjure_object::Utc>> {
        self.finished_at.as_ref().map(|o| *o)
    }
    /// The containerized extractor running this transform. Present only for CONTAINERIZED transforms.
    #[inline]
    pub fn extractor_rid(&self) -> Option<&super::ContainerizedExtractorRid> {
        self.extractor_rid.as_ref().map(|o| &*o)
    }
    /// Locators of the transform's input file(s): S3/GCS paths, presigned URLs (query string
    /// stripped so no signing credentials are carried), or File Store file-revision rids.
    /// CONTAINERIZED transforms may have several inputs, ordered by the container environment
    /// variable they bind to; other types have exactly one. Empty when this server version
    /// cannot interpret the stored payload. May contain customer-derived content and is
    /// therefore not safe to log.
    #[inline]
    pub fn source_paths(&self) -> &[String] {
        &*self.source_paths
    }
}