pub struct BuildOptions {
pub source_provenance_hash: Vec<i32>,
pub requested_verify_option: i32,
pub machine_type: i32,
pub disk_size_gb: i64,
pub substitution_option: i32,
pub log_streaming_option: i32,
pub worker_pool: String,
pub logging: i32,
pub env: Vec<String>,
pub secret_env: Vec<String>,
pub volumes: Vec<Volume>,
}Expand description
Optional arguments to enable specific features of builds.
Fields§
§source_provenance_hash: Vec<i32>Requested hash for SourceProvenance.
requested_verify_option: i32Requested verifiability options.
machine_type: i32Compute Engine machine type on which to run the build.
disk_size_gb: i64Requested disk size for the VM that runs the build. Note that this is NOT “disk free”; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build – the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
substitution_option: i32Option to specify behavior when there is an error in the substitution checks.
log_streaming_option: i32Option to define build log streaming behavior to Google Cloud Storage.
worker_pool: StringOption to specify a WorkerPool for the build.
Format: projects/{project}/locations/{location}/workerPools/{workerPool}
logging: i32Option to specify the logging mode, which determines where the logs are stored.
env: Vec<String>A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value.
The elements are of the form “KEY=VALUE” for the environment variable “KEY” being given the value “VALUE”.
secret_env: Vec<String>A list of global environment variables, which are encrypted using a Cloud
Key Management Service crypto key. These values must be specified in the
build’s Secret. These variables will be available to all build steps
in this build.
volumes: Vec<Volume>Global list of volumes to mount for ALL build steps
Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step.
Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration.
Implementations§
Source§impl BuildOptions
impl BuildOptions
Sourcepub fn source_provenance_hash(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<HashType>>
pub fn source_provenance_hash( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<HashType>>
Returns an iterator which yields the valid enum values contained in source_provenance_hash.
Sourcepub fn push_source_provenance_hash(&mut self, value: HashType)
pub fn push_source_provenance_hash(&mut self, value: HashType)
Appends the provided enum value to source_provenance_hash.
Sourcepub fn requested_verify_option(&self) -> VerifyOption
pub fn requested_verify_option(&self) -> VerifyOption
Returns the enum value of requested_verify_option, or the default if the field is set to an invalid enum value.
Sourcepub fn set_requested_verify_option(&mut self, value: VerifyOption)
pub fn set_requested_verify_option(&mut self, value: VerifyOption)
Sets requested_verify_option to the provided enum value.
Sourcepub fn machine_type(&self) -> MachineType
pub fn machine_type(&self) -> MachineType
Returns the enum value of machine_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_machine_type(&mut self, value: MachineType)
pub fn set_machine_type(&mut self, value: MachineType)
Sets machine_type to the provided enum value.
Sourcepub fn substitution_option(&self) -> SubstitutionOption
pub fn substitution_option(&self) -> SubstitutionOption
Returns the enum value of substitution_option, or the default if the field is set to an invalid enum value.
Sourcepub fn set_substitution_option(&mut self, value: SubstitutionOption)
pub fn set_substitution_option(&mut self, value: SubstitutionOption)
Sets substitution_option to the provided enum value.
Sourcepub fn log_streaming_option(&self) -> LogStreamingOption
pub fn log_streaming_option(&self) -> LogStreamingOption
Returns the enum value of log_streaming_option, or the default if the field is set to an invalid enum value.
Sourcepub fn set_log_streaming_option(&mut self, value: LogStreamingOption)
pub fn set_log_streaming_option(&mut self, value: LogStreamingOption)
Sets log_streaming_option to the provided enum value.
Sourcepub fn logging(&self) -> LoggingMode
pub fn logging(&self) -> LoggingMode
Returns the enum value of logging, or the default if the field is set to an invalid enum value.
Sourcepub fn set_logging(&mut self, value: LoggingMode)
pub fn set_logging(&mut self, value: LoggingMode)
Sets logging to the provided enum value.
Trait Implementations§
Source§impl Clone for BuildOptions
impl Clone for BuildOptions
Source§fn clone(&self) -> BuildOptions
fn clone(&self) -> BuildOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BuildOptions
impl Debug for BuildOptions
Source§impl Default for BuildOptions
impl Default for BuildOptions
Source§impl Message for BuildOptions
impl Message for BuildOptions
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.