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
👎Deprecated

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

source

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.

source

pub fn push_source_provenance_hash(&mut self, value: HashType)

Appends the provided enum value to source_provenance_hash.

source

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.

source

pub fn set_requested_verify_option(&mut self, value: VerifyOption)

Sets requested_verify_option to the provided enum value.

source

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.

source

pub fn set_machine_type(&mut self, value: MachineType)

Sets machine_type to the provided enum value.

source

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.

source

pub fn set_substitution_option(&mut self, value: SubstitutionOption)

Sets substitution_option to the provided enum value.

source

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.

source

pub fn set_log_streaming_option(&mut self, value: LogStreamingOption)

Sets log_streaming_option to the provided enum value.

source

pub fn logging(&self) -> LoggingMode

Returns the enum value of logging, or the default if the field is set to an invalid enum value.

source

pub fn set_logging(&mut self, value: LoggingMode)

Sets logging to the provided enum value.

source

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.

source

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

source§

fn clone(&self) -> BuildOptions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BuildOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for BuildOptions

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Message for BuildOptions

source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes a length-delimited instance of the message from the buffer.
source§

fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
source§

impl PartialEq for BuildOptions

source§

fn eq(&self, other: &BuildOptions) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for BuildOptions

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more