#[non_exhaustive]pub struct GkeService {
pub project_id: String,
pub location: String,
pub cluster_name: String,
pub namespace_name: String,
pub service_name: String,
}Expand description
GKE Service. The “service” here represents a
Kubernetes service
object.
The field names correspond to the resource labels on k8s_service
monitored
resources.
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.project_id: StringOutput only. The project this resource lives in. For legacy services
migrated from the Custom type, this may be a distinct project from the
one parenting the service itself.
location: StringThe location of the parent cluster. This may be a zone or region.
cluster_name: StringThe name of the parent cluster.
namespace_name: StringThe name of the parent namespace.
service_name: StringThe name of this service.
Implementations§
Source§impl GkeService
impl GkeService
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
Sourcepub fn set_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sets the value of location.
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.
Sourcepub fn set_namespace_name<T: Into<String>>(self, v: T) -> Self
pub fn set_namespace_name<T: Into<String>>(self, v: T) -> Self
Sets the value of namespace_name.
Sourcepub fn set_service_name<T: Into<String>>(self, v: T) -> Self
pub fn set_service_name<T: Into<String>>(self, v: T) -> Self
Sets the value of service_name.
Trait Implementations§
Source§impl Clone for GkeService
impl Clone for GkeService
Source§fn clone(&self) -> GkeService
fn clone(&self) -> GkeService
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 GkeService
impl Debug for GkeService
Source§impl Default for GkeService
impl Default for GkeService
Source§fn default() -> GkeService
fn default() -> GkeService
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GkeServicewhere
GkeService: Default,
impl<'de> Deserialize<'de> for GkeServicewhere
GkeService: Default,
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
Source§impl PartialEq for GkeService
impl PartialEq for GkeService
Source§impl Serialize for GkeService
impl Serialize for GkeService
impl StructuralPartialEq for GkeService
Auto Trait Implementations§
impl Freeze for GkeService
impl RefUnwindSafe for GkeService
impl Send for GkeService
impl Sync for GkeService
impl Unpin for GkeService
impl UnwindSafe for GkeService
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