pub struct GoogleCloudDataplexV1TaskExecutionSpec {
pub args: Option<HashMap<String, String>>,
pub kms_key: Option<String>,
pub max_job_execution_lifetime: Option<Duration>,
pub project: Option<String>,
pub service_account: Option<String>,
}
Expand description
Execution related settings, like retry and service_account.
This type is not used in any activity, and only used as part of another schema.
Fields§
§args: Option<HashMap<String, String>>
Optional. The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${task_id} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.
kms_key: Option<String>
Optional. The Cloud KMS key to use for encryption, of the form: projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}.
max_job_execution_lifetime: Option<Duration>
Optional. The maximum duration after which the job execution is expired.
project: Option<String>
Optional. The project in which jobs are run. By default, the project containing the Lake is used. If a project is provided, the ExecutionSpec.service_account must belong to this project.
service_account: Option<String>
Required. Service account to use to execute a task. If not provided, the default Compute service account for the project is used.
Trait Implementations§
Source§impl Clone for GoogleCloudDataplexV1TaskExecutionSpec
impl Clone for GoogleCloudDataplexV1TaskExecutionSpec
Source§fn clone(&self) -> GoogleCloudDataplexV1TaskExecutionSpec
fn clone(&self) -> GoogleCloudDataplexV1TaskExecutionSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDataplexV1TaskExecutionSpec
impl Default for GoogleCloudDataplexV1TaskExecutionSpec
Source§fn default() -> GoogleCloudDataplexV1TaskExecutionSpec
fn default() -> GoogleCloudDataplexV1TaskExecutionSpec
Source§impl<'de> Deserialize<'de> for GoogleCloudDataplexV1TaskExecutionSpec
impl<'de> Deserialize<'de> for GoogleCloudDataplexV1TaskExecutionSpec
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>,
impl Part for GoogleCloudDataplexV1TaskExecutionSpec
Auto Trait Implementations§
impl Freeze for GoogleCloudDataplexV1TaskExecutionSpec
impl RefUnwindSafe for GoogleCloudDataplexV1TaskExecutionSpec
impl Send for GoogleCloudDataplexV1TaskExecutionSpec
impl Sync for GoogleCloudDataplexV1TaskExecutionSpec
impl Unpin for GoogleCloudDataplexV1TaskExecutionSpec
impl UnwindSafe for GoogleCloudDataplexV1TaskExecutionSpec
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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