Struct gapi_grpc::google::devtools::cloudbuild::v1::BuildOptions [−][src]
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 1000GB; 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.
log_streaming_option: i32
Option to define build log streaming behavior to Google Cloud Storage.
worker_pool: String
Option to specify a WorkerPool
for the build.
Format: projects/{project}/locations/{location}/workerPools/{workerPool}
This field is experimental.
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.
Implementations
impl BuildOptions
[src]
pub fn source_provenance_hash(
&self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<HashType>>
[src]
&self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<HashType>>
Returns an iterator which yields the valid enum values contained in source_provenance_hash
.
pub fn push_source_provenance_hash(&mut self, value: HashType)
[src]
Appends the provided enum value to source_provenance_hash
.
pub fn requested_verify_option(&self) -> VerifyOption
[src]
Returns the enum value of requested_verify_option
, or the default if the field is set to an invalid enum value.
pub fn set_requested_verify_option(&mut self, value: VerifyOption)
[src]
Sets requested_verify_option
to the provided enum value.
pub fn machine_type(&self) -> MachineType
[src]
Returns the enum value of machine_type
, or the default if the field is set to an invalid enum value.
pub fn set_machine_type(&mut self, value: MachineType)
[src]
Sets machine_type
to the provided enum value.
pub fn substitution_option(&self) -> SubstitutionOption
[src]
Returns the enum value of substitution_option
, or the default if the field is set to an invalid enum value.
pub fn set_substitution_option(&mut self, value: SubstitutionOption)
[src]
Sets substitution_option
to the provided enum value.
pub fn log_streaming_option(&self) -> LogStreamingOption
[src]
Returns the enum value of log_streaming_option
, or the default if the field is set to an invalid enum value.
pub fn set_log_streaming_option(&mut self, value: LogStreamingOption)
[src]
Sets log_streaming_option
to the provided enum value.
pub fn logging(&self) -> LoggingMode
[src]
Returns the enum value of logging
, or the default if the field is set to an invalid enum value.
pub fn set_logging(&mut self, value: LoggingMode)
[src]
Sets logging
to the provided enum value.
Trait Implementations
impl Clone for BuildOptions
[src]
fn clone(&self) -> BuildOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BuildOptions
[src]
impl Default for BuildOptions
[src]
fn default() -> BuildOptions
[src]
impl Message for BuildOptions
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
pub fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<BuildOptions> for BuildOptions
[src]
fn eq(&self, other: &BuildOptions) -> bool
[src]
fn ne(&self, other: &BuildOptions) -> bool
[src]
impl StructuralPartialEq for BuildOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for BuildOptions
impl Send for BuildOptions
impl Sync for BuildOptions
impl Unpin for BuildOptions
impl UnwindSafe for BuildOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,