pub struct SetMaintenancePolicyRequest {
pub cluster_id: Option<String>,
pub maintenance_policy: Option<MaintenancePolicy>,
pub name: Option<String>,
pub project_id: Option<String>,
pub zone: Option<String>,
}
Expand description
SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields§
§cluster_id: Option<String>
Required. The name of the cluster to update.
maintenance_policy: Option<MaintenancePolicy>
Required. The maintenance policy to be set for the cluster. An empty field clears the existing maintenance policy.
name: Option<String>
The name (project, location, cluster name) of the cluster to set maintenance policy. Specified in the format projects/*/locations/*/clusters/*
.
project_id: Option<String>
Required. The Google Developers Console project ID or project number.
zone: Option<String>
Required. The name of the Google Compute Engine zone in which the cluster resides.
Trait Implementations§
source§impl Clone for SetMaintenancePolicyRequest
impl Clone for SetMaintenancePolicyRequest
source§fn clone(&self) -> SetMaintenancePolicyRequest
fn clone(&self) -> SetMaintenancePolicyRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SetMaintenancePolicyRequest
impl Debug for SetMaintenancePolicyRequest
source§impl Default for SetMaintenancePolicyRequest
impl Default for SetMaintenancePolicyRequest
source§fn default() -> SetMaintenancePolicyRequest
fn default() -> SetMaintenancePolicyRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SetMaintenancePolicyRequest
impl<'de> Deserialize<'de> for SetMaintenancePolicyRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
impl RequestValue for SetMaintenancePolicyRequest
Auto Trait Implementations§
impl RefUnwindSafe for SetMaintenancePolicyRequest
impl Send for SetMaintenancePolicyRequest
impl Sync for SetMaintenancePolicyRequest
impl Unpin for SetMaintenancePolicyRequest
impl UnwindSafe for SetMaintenancePolicyRequest
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
Mutably borrows from an owned value. Read more