Struct google_cloudbuild1::BuildOptions
source · pub struct BuildOptions {
pub substitution_option: Option<String>,
pub machine_type: Option<String>,
pub volumes: Option<Vec<Volume>>,
pub source_provenance_hash: Option<Vec<String>>,
pub log_streaming_option: Option<String>,
pub secret_env: Option<Vec<String>>,
pub disk_size_gb: Option<String>,
pub env: Option<Vec<String>>,
pub requested_verify_option: Option<String>,
pub logging: Option<String>,
}Expand description
Optional arguments to enable specific features of builds.
This type is not used in any activity, and only used as part of another schema.
Fields§
§substitution_option: Option<String>Option to specify behavior when there is an error in the substitution checks.
machine_type: Option<String>Compute Engine machine type on which to run the build.
volumes: Option<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.
source_provenance_hash: Option<Vec<String>>Requested hash for SourceProvenance.
log_streaming_option: Option<String>Option to define build log streaming behavior to Google Cloud Storage.
secret_env: Option<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.
disk_size_gb: Option<String>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 1000GB; builds that request more than the maximum are rejected with an error.
env: Option<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”.
requested_verify_option: Option<String>Requested verifiability options.
logging: Option<String>Option to specify the logging mode, which determines where the logs are stored.
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§fn default() -> BuildOptions
fn default() -> BuildOptions
source§impl<'de> Deserialize<'de> for BuildOptions
impl<'de> Deserialize<'de> for BuildOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for BuildOptions
impl Serialize for BuildOptions
impl Part 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more