#[non_exhaustive]pub struct ReleaseConfig {
pub name: String,
pub git_commitish: String,
pub code_compilation_config: Option<CodeCompilationConfig>,
pub cron_schedule: String,
pub time_zone: String,
pub recent_scheduled_release_records: Vec<ScheduledReleaseRecord>,
pub release_compilation_result: String,
pub disabled: bool,
pub internal_metadata: Option<String>,
/* private fields */
}Expand description
Represents a Dataform release 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 release config’s name.
git_commitish: StringRequired. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples:
- a commit SHA:
12ade345 - a tag:
tag1 - a branch name:
branch1
code_compilation_config: Option<CodeCompilationConfig>Optional. If set, fields of code_compilation_config override the default
compilation settings that are specified in dataform.json.
cron_schedule: StringOptional. Optional schedule (in cron format) for automatic creation of compilation results.
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_release_records: Vec<ScheduledReleaseRecord>Output only. Records of the 10 most recent scheduled release attempts,
ordered in descending order of release_time. Updated whenever automatic
creation of a compilation result is triggered by cron_schedule.
release_compilation_result: StringOptional. The name of the currently released compilation result for this
release config. This value is updated when a compilation result is
automatically created from this release config (using cron_schedule), or
when this resource is updated by API call (perhaps to roll back to an
earlier release). The compilation result must have been created using this
release config. Must be in the format
projects/*/locations/*/repositories/*/compilationResults/*.
disabled: boolOptional. Disables automatic creation of compilation results.
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 ReleaseConfig
impl ReleaseConfig
pub fn new() -> Self
Sourcepub fn set_git_commitish<T: Into<String>>(self, v: T) -> Self
pub fn set_git_commitish<T: Into<String>>(self, v: T) -> Self
Sets the value of git_commitish.
Sourcepub fn set_code_compilation_config<T>(self, v: T) -> Selfwhere
T: Into<CodeCompilationConfig>,
pub fn set_code_compilation_config<T>(self, v: T) -> Selfwhere
T: Into<CodeCompilationConfig>,
Sets the value of code_compilation_config.
Sourcepub fn set_or_clear_code_compilation_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CodeCompilationConfig>,
pub fn set_or_clear_code_compilation_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CodeCompilationConfig>,
Sets or clears the value of code_compilation_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_release_records<T, V>(self, v: T) -> Self
pub fn set_recent_scheduled_release_records<T, V>(self, v: T) -> Self
Sets the value of recent_scheduled_release_records.
Sourcepub fn set_release_compilation_result<T: Into<String>>(self, v: T) -> Self
pub fn set_release_compilation_result<T: Into<String>>(self, v: T) -> Self
Sets the value of release_compilation_result.
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_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 ReleaseConfig
impl Clone for ReleaseConfig
Source§fn clone(&self) -> ReleaseConfig
fn clone(&self) -> ReleaseConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more