#[non_exhaustive]pub struct UpdateWorkerPoolRequest {
pub update_mask: Option<FieldMask>,
pub worker_pool: Option<WorkerPool>,
pub validate_only: bool,
pub allow_missing: bool,
pub force_new_revision: bool,
/* private fields */
}Expand description
Request message for updating a worker pool.
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.update_mask: Option<FieldMask>Optional. The list of fields to be updated.
worker_pool: Option<WorkerPool>Required. The WorkerPool to be updated.
validate_only: boolOptional. Indicates that the request should be validated and default values populated, without persisting the request or updating any resources.
allow_missing: boolOptional. If set to true, and if the WorkerPool does not exist, it will create a new one. The caller must have ‘run.workerpools.create’ permissions if this is set to true and the WorkerPool does not exist.
force_new_revision: boolOptional. If set to true, a new revision will be created from the template even if the system doesn’t detect any changes from the previously deployed revision.
This may be useful for cases where the underlying resources need to be recreated or reinitialized. For example if the image is specified by label, but the underlying image digest has changed) or if the container performs deployment initialization work that needs to be performed again.
Implementations§
Source§impl UpdateWorkerPoolRequest
impl UpdateWorkerPoolRequest
pub fn new() -> Self
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
use wkt::FieldMask;
let x = UpdateWorkerPoolRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
use wkt::FieldMask;
let x = UpdateWorkerPoolRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateWorkerPoolRequest::new().set_or_clear_update_mask(None::<FieldMask>);Sourcepub fn set_worker_pool<T>(self, v: T) -> Selfwhere
T: Into<WorkerPool>,
pub fn set_worker_pool<T>(self, v: T) -> Selfwhere
T: Into<WorkerPool>,
Sets the value of worker_pool.
§Example
use google_cloud_run_v2::model::WorkerPool;
let x = UpdateWorkerPoolRequest::new().set_worker_pool(WorkerPool::default()/* use setters */);Sourcepub fn set_or_clear_worker_pool<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkerPool>,
pub fn set_or_clear_worker_pool<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkerPool>,
Sets or clears the value of worker_pool.
§Example
use google_cloud_run_v2::model::WorkerPool;
let x = UpdateWorkerPoolRequest::new().set_or_clear_worker_pool(Some(WorkerPool::default()/* use setters */));
let x = UpdateWorkerPoolRequest::new().set_or_clear_worker_pool(None::<WorkerPool>);Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
§Example
let x = UpdateWorkerPoolRequest::new().set_validate_only(true);Sourcepub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
Sets the value of allow_missing.
§Example
let x = UpdateWorkerPoolRequest::new().set_allow_missing(true);Sourcepub fn set_force_new_revision<T: Into<bool>>(self, v: T) -> Self
pub fn set_force_new_revision<T: Into<bool>>(self, v: T) -> Self
Sets the value of force_new_revision.
§Example
let x = UpdateWorkerPoolRequest::new().set_force_new_revision(true);Trait Implementations§
Source§impl Clone for UpdateWorkerPoolRequest
impl Clone for UpdateWorkerPoolRequest
Source§fn clone(&self) -> UpdateWorkerPoolRequest
fn clone(&self) -> UpdateWorkerPoolRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more