Struct google_api_proto::google::devtools::cloudbuild::v1::BuildOptions
source · pub struct BuildOptions {Show 15 fields
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 dynamic_substitutions: bool,
pub automap_substitutions: bool,
pub log_streaming_option: i32,
pub worker_pool: String,
pub pool: Option<PoolOption>,
pub logging: i32,
pub env: Vec<String>,
pub secret_env: Vec<String>,
pub volumes: Vec<Volume>,
pub default_logs_bucket_behavior: i32,
}
Expand description
Optional arguments to enable specific features of builds.
Fields§
§source_provenance_hash: Vec<i32>
Requested hash for SourceProvenance.
requested_verify_option: i32
Requested verifiability options.
machine_type: i32
Compute Engine machine type on which to run the build.
disk_size_gb: i64
Requested 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 2000GB; builds that request more than the maximum are rejected with an error.
substitution_option: i32
Option to specify behavior when there is an error in the substitution checks.
NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file.
dynamic_substitutions: bool
Option to specify whether or not to apply bash style string operations to the substitutions.
NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.
automap_substitutions: bool
Option to include built-in and custom substitutions as env variables for all build steps.
log_streaming_option: i32
Option to define build log streaming behavior to Cloud Storage.
worker_pool: String
This field deprecated; please use pool.name
instead.
pool: Option<PoolOption>
Optional. Specification for execution on a WorkerPool
.
See running builds in a private pool for more information.
logging: i32
Option to specify the logging mode, which determines if and where build 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.
default_logs_bucket_behavior: i32
Optional. Option to specify how default logs buckets are setup.
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.
sourcepub fn default_logs_bucket_behavior(&self) -> DefaultLogsBucketBehavior
pub fn default_logs_bucket_behavior(&self) -> DefaultLogsBucketBehavior
Returns the enum value of default_logs_bucket_behavior
, or the default if the field is set to an invalid enum value.
sourcepub fn set_default_logs_bucket_behavior(
&mut self,
value: DefaultLogsBucketBehavior,
)
pub fn set_default_logs_bucket_behavior( &mut self, value: DefaultLogsBucketBehavior, )
Sets default_logs_bucket_behavior
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
.source§impl PartialEq for BuildOptions
impl PartialEq for BuildOptions
source§fn eq(&self, other: &BuildOptions) -> bool
fn eq(&self, other: &BuildOptions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BuildOptions
Auto Trait Implementations§
impl Freeze for BuildOptions
impl RefUnwindSafe for BuildOptions
impl Send for BuildOptions
impl Sync for BuildOptions
impl Unpin for BuildOptions
impl UnwindSafe for BuildOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request