#[non_exhaustive]pub struct Autopilot {
pub enabled: bool,
pub workload_policy_config: Option<WorkloadPolicyConfig>,
pub privileged_admission_config: Option<PrivilegedAdmissionConfig>,
/* private fields */
}Expand description
Autopilot is the configuration for Autopilot settings on the cluster.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: boolEnable Autopilot
workload_policy_config: Option<WorkloadPolicyConfig>WorkloadPolicyConfig is the configuration related to GCW workload policy
privileged_admission_config: Option<PrivilegedAdmissionConfig>PrivilegedAdmissionConfig is the configuration related to privileged admission control.
Implementations§
Source§impl Autopilot
impl Autopilot
pub fn new() -> Self
Sourcepub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of enabled.
Sourcepub fn set_workload_policy_config<T>(self, v: T) -> Selfwhere
T: Into<WorkloadPolicyConfig>,
pub fn set_workload_policy_config<T>(self, v: T) -> Selfwhere
T: Into<WorkloadPolicyConfig>,
Sets the value of workload_policy_config.
Sourcepub fn set_or_clear_workload_policy_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkloadPolicyConfig>,
pub fn set_or_clear_workload_policy_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkloadPolicyConfig>,
Sets or clears the value of workload_policy_config.
Sourcepub fn set_privileged_admission_config<T>(self, v: T) -> Selfwhere
T: Into<PrivilegedAdmissionConfig>,
pub fn set_privileged_admission_config<T>(self, v: T) -> Selfwhere
T: Into<PrivilegedAdmissionConfig>,
Sets the value of privileged_admission_config.
Sourcepub fn set_or_clear_privileged_admission_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<PrivilegedAdmissionConfig>,
pub fn set_or_clear_privileged_admission_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<PrivilegedAdmissionConfig>,
Sets or clears the value of privileged_admission_config.
Trait Implementations§
impl StructuralPartialEq for Autopilot
Auto Trait Implementations§
impl Freeze for Autopilot
impl RefUnwindSafe for Autopilot
impl Send for Autopilot
impl Sync for Autopilot
impl Unpin for Autopilot
impl UnwindSafe for Autopilot
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