#[non_exhaustive]pub struct ManagedCluster {
pub cluster_name: String,
pub config: Option<ClusterConfig>,
pub labels: HashMap<String, String>,
/* private fields */
}Expand description
Cluster that is managed by the workflow.
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.cluster_name: StringRequired. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.
The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters.
config: Option<ClusterConfig>Required. The cluster configuration.
labels: HashMap<String, String>Optional. The labels to associate with this cluster.
Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
No more than 32 labels can be associated with a given cluster.
Implementations§
Source§impl ManagedCluster
impl ManagedCluster
Sourcepub fn set_cluster_name<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_name<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_name.
§Example
let x = ManagedCluster::new().set_cluster_name("example");Sourcepub fn set_config<T>(self, v: T) -> Selfwhere
T: Into<ClusterConfig>,
pub fn set_config<T>(self, v: T) -> Selfwhere
T: Into<ClusterConfig>,
Sourcepub fn set_or_clear_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ClusterConfig>,
pub fn set_or_clear_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ClusterConfig>,
Trait Implementations§
Source§impl Clone for ManagedCluster
impl Clone for ManagedCluster
Source§fn clone(&self) -> ManagedCluster
fn clone(&self) -> ManagedCluster
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ManagedCluster
impl Debug for ManagedCluster
Source§impl Default for ManagedCluster
impl Default for ManagedCluster
Source§fn default() -> ManagedCluster
fn default() -> ManagedCluster
Source§impl Message for ManagedCluster
impl Message for ManagedCluster
Source§impl PartialEq for ManagedCluster
impl PartialEq for ManagedCluster
impl StructuralPartialEq for ManagedCluster
Auto Trait Implementations§
impl Freeze for ManagedCluster
impl RefUnwindSafe for ManagedCluster
impl Send for ManagedCluster
impl Sync for ManagedCluster
impl Unpin for ManagedCluster
impl UnsafeUnpin for ManagedCluster
impl UnwindSafe for ManagedCluster
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request