#[non_exhaustive]pub struct WorkflowConfig {
pub name: String,
pub release_config: String,
pub invocation_config: Option<InvocationConfig>,
pub cron_schedule: String,
pub time_zone: String,
pub recent_scheduled_execution_records: Vec<ScheduledExecutionRecord>,
pub disabled: bool,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub internal_metadata: Option<String>,
/* private fields */
}Expand description
Represents a Dataform workflow configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIdentifier. The workflow config’s name.
release_config: StringRequired. The name of the release config whose release_compilation_result
should be executed. Must be in the format
projects/*/locations/*/repositories/*/releaseConfigs/*.
invocation_config: Option<InvocationConfig>Optional. If left unset, a default InvocationConfig will be used.
cron_schedule: StringOptional. Optional schedule (in cron format) for automatic execution of this workflow config.
time_zone: StringOptional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC.
recent_scheduled_execution_records: Vec<ScheduledExecutionRecord>Output only. Records of the 10 most recent scheduled execution attempts,
ordered in descending order of execution_time. Updated whenever automatic
creation of a workflow invocation is triggered by cron_schedule.
disabled: boolOptional. Disables automatic creation of workflow invocations.
create_time: Option<Timestamp>Output only. The timestamp of when the WorkflowConfig was created.
update_time: Option<Timestamp>Output only. The timestamp of when the WorkflowConfig was last updated.
internal_metadata: Option<String>Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string.
Implementations§
Source§impl WorkflowConfig
impl WorkflowConfig
pub fn new() -> Self
Sourcepub fn set_release_config<T: Into<String>>(self, v: T) -> Self
pub fn set_release_config<T: Into<String>>(self, v: T) -> Self
Sets the value of release_config.
Sourcepub fn set_invocation_config<T>(self, v: T) -> Selfwhere
T: Into<InvocationConfig>,
pub fn set_invocation_config<T>(self, v: T) -> Selfwhere
T: Into<InvocationConfig>,
Sets the value of invocation_config.
Sourcepub fn set_or_clear_invocation_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InvocationConfig>,
pub fn set_or_clear_invocation_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InvocationConfig>,
Sets or clears the value of invocation_config.
Sourcepub fn set_cron_schedule<T: Into<String>>(self, v: T) -> Self
pub fn set_cron_schedule<T: Into<String>>(self, v: T) -> Self
Sets the value of cron_schedule.
Sourcepub fn set_time_zone<T: Into<String>>(self, v: T) -> Self
pub fn set_time_zone<T: Into<String>>(self, v: T) -> Self
Sets the value of time_zone.
Sourcepub fn set_recent_scheduled_execution_records<T, V>(self, v: T) -> Self
pub fn set_recent_scheduled_execution_records<T, V>(self, v: T) -> Self
Sets the value of recent_scheduled_execution_records.
Sourcepub fn set_disabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_disabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of disabled.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_internal_metadata<T>(self, v: T) -> Self
pub fn set_internal_metadata<T>(self, v: T) -> Self
Sets the value of internal_metadata.
Sourcepub fn set_or_clear_internal_metadata<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_internal_metadata<T>(self, v: Option<T>) -> Self
Sets or clears the value of internal_metadata.
Trait Implementations§
Source§impl Clone for WorkflowConfig
impl Clone for WorkflowConfig
Source§fn clone(&self) -> WorkflowConfig
fn clone(&self) -> WorkflowConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more