#[non_exhaustive]pub struct Group {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub description: String,
pub uid: String,
pub state: State,
pub auto_accept: Option<AutoAccept>,
pub route_table: String,
/* private fields */
}Expand description
A group represents a subset of spokes attached to a hub.
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.name: StringImmutable. The name of the group. Group names must be unique. They
use the following form:
projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}
create_time: Option<Timestamp>Output only. The time the group was created.
update_time: Option<Timestamp>Output only. The time the group was last updated.
labels: HashMap<String, String>Optional. Labels in key-value pair format. For more information about labels, see Requirements for labels.
description: StringOptional. The description of the group.
uid: StringOutput only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different unique_id.
state: StateOutput only. The current lifecycle state of this group.
auto_accept: Option<AutoAccept>Optional. The auto-accept setting for this group.
route_table: StringOutput only. The name of the route table that corresponds to this group.
They use the following form:
projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}
Implementations§
Source§impl Group
impl Group
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_auto_accept<T>(self, v: T) -> Selfwhere
T: Into<AutoAccept>,
pub fn set_auto_accept<T>(self, v: T) -> Selfwhere
T: Into<AutoAccept>,
Sets the value of auto_accept.
Sourcepub fn set_or_clear_auto_accept<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoAccept>,
pub fn set_or_clear_auto_accept<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutoAccept>,
Sets or clears the value of auto_accept.
Sourcepub fn set_route_table<T: Into<String>>(self, v: T) -> Self
pub fn set_route_table<T: Into<String>>(self, v: T) -> Self
Sets the value of route_table.