#[non_exhaustive]pub struct RunTaskRequest {
pub name: String,
pub labels: HashMap<String, String>,
pub args: HashMap<String, String>,
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. The resource name of the task:
projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}.
labels: HashMap<String, String>Optional. User-defined labels for the task. If the map is left empty, the task will run with existing labels from task definition. If the map contains an entry with a new key, the same will be added to existing set of labels. If the map contains an entry with an existing label key in task definition, the task will run with new label value for that entry. Clearing an existing label will require label value to be explicitly set to a hyphen “-”. The label value cannot be empty.
args: HashMap<String, String>Optional. Execution spec arguments. If the map is left empty, the task will run with existing execution spec args from task definition. If the map contains an entry with a new key, the same will be added to existing set of args. If the map contains an entry with an existing arg key in task definition, the task will run with new arg value for that entry. Clearing an existing arg will require arg value to be explicitly set to a hyphen “-”. The arg value cannot be empty.
Implementations§
Source§impl RunTaskRequest
impl RunTaskRequest
pub fn new() -> Self
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Trait Implementations§
Source§impl Clone for RunTaskRequest
impl Clone for RunTaskRequest
Source§fn clone(&self) -> RunTaskRequest
fn clone(&self) -> RunTaskRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more