Struct google_api_proto::google::cloud::dataproc::v1::ExecutionConfig
source · pub struct ExecutionConfig {
pub service_account: String,
pub network_tags: Vec<String>,
pub kms_key: String,
pub idle_ttl: Option<Duration>,
pub ttl: Option<Duration>,
pub staging_bucket: String,
pub network: Option<Network>,
}
Expand description
Execution configuration for a workload.
Fields§
§service_account: String
Optional. Service account that used to execute workload.
Optional. Tags used for network traffic control.
kms_key: String
Optional. The Cloud KMS key to use for encryption.
idle_ttl: Option<Duration>
Optional. Applies to sessions only. The duration to keep the session alive
while it’s idling. Exceeding this threshold causes the session to
terminate. This field cannot be set on a batch workload. Minimum value is
10 minutes; maximum value is 14 days (see JSON representation of
Duration).
Defaults to 1 hour if not set.
If both ttl
and idle_ttl
are specified for an interactive session,
the conditions are treated as OR
conditions: the workload will be
terminated when it has been idle for idle_ttl
or when ttl
has been
exceeded, whichever occurs first.
ttl: Option<Duration>
Optional. The duration after which the workload will be terminated,
specified as the JSON representation for
Duration.
When the workload exceeds this duration, it will be unconditionally
terminated without waiting for ongoing work to finish. If ttl
is not
specified for a batch workload, the workload will be allowed to run until
it exits naturally (or run forever without exiting). If ttl
is not
specified for an interactive session, it defaults to 24 hours. If ttl
is
not specified for a batch that uses 2.1+ runtime version, it defaults to 4
hours. Minimum value is 10 minutes; maximum value is 14 days. If both ttl
and idle_ttl
are specified (for an interactive session), the conditions
are treated as OR
conditions: the workload will be terminated when it has
been idle for idle_ttl
or when ttl
has been exceeded, whichever occurs
first.
staging_bucket: String
Optional. A Cloud Storage bucket used to stage workload dependencies,
config files, and store workload output and other ephemeral data, such as
Spark history files. If you do not specify a staging bucket, Cloud Dataproc
will determine a Cloud Storage location according to the region where your
workload is running, and then create and manage project-level, per-location
staging and temporary buckets.
This field requires a Cloud Storage bucket name, not a gs://...
URI to
a Cloud Storage bucket.
network: Option<Network>
Network configuration for workload execution.
Trait Implementations§
source§impl Clone for ExecutionConfig
impl Clone for ExecutionConfig
source§fn clone(&self) -> ExecutionConfig
fn clone(&self) -> ExecutionConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExecutionConfig
impl Debug for ExecutionConfig
source§impl Default for ExecutionConfig
impl Default for ExecutionConfig
source§impl Message for ExecutionConfig
impl Message for ExecutionConfig
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 ExecutionConfig
impl PartialEq for ExecutionConfig
source§fn eq(&self, other: &ExecutionConfig) -> bool
fn eq(&self, other: &ExecutionConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExecutionConfig
Auto Trait Implementations§
impl Freeze for ExecutionConfig
impl RefUnwindSafe for ExecutionConfig
impl Send for ExecutionConfig
impl Sync for ExecutionConfig
impl Unpin for ExecutionConfig
impl UnwindSafe for ExecutionConfig
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