#[non_exhaustive]pub struct Spoke {Show 16 fields
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub description: String,
pub hub: String,
pub group: String,
pub linked_vpn_tunnels: Option<LinkedVpnTunnels>,
pub linked_interconnect_attachments: Option<LinkedInterconnectAttachments>,
pub linked_router_appliance_instances: Option<LinkedRouterApplianceInstances>,
pub linked_vpc_network: Option<LinkedVpcNetwork>,
pub linked_producer_vpc_network: Option<LinkedProducerVpcNetwork>,
pub unique_id: String,
pub state: State,
pub reasons: Vec<StateReason>,
pub spoke_type: SpokeType,
}Expand description
A Network Connectivity Center spoke represents one or more network connectivity resources.
When you create a spoke, you associate it with a hub. You must also identify a value for exactly one of the following fields:
- linked_vpn_tunnels
- linked_interconnect_attachments
- linked_router_appliance_instances
- linked_vpc_network
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 spoke. Spoke names must be unique. They use the
following form:
projects/{project_number}/locations/{region}/spokes/{spoke_id}
create_time: Option<Timestamp>Output only. The time the spoke was created.
update_time: Option<Timestamp>Output only. The time the spoke was last updated.
labels: HashMap<String, String>Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
description: StringAn optional description of the spoke.
hub: StringImmutable. The name of the hub that this spoke is attached to.
group: StringOptional. The name of the group that this spoke is associated with.
linked_vpn_tunnels: Option<LinkedVpnTunnels>VPN tunnels that are associated with the spoke.
linked_interconnect_attachments: Option<LinkedInterconnectAttachments>VLAN attachments that are associated with the spoke.
linked_router_appliance_instances: Option<LinkedRouterApplianceInstances>Router appliance instances that are associated with the spoke.
linked_vpc_network: Option<LinkedVpcNetwork>Optional. VPC network that is associated with the spoke.
linked_producer_vpc_network: Option<LinkedProducerVpcNetwork>Optional. The linked producer VPC that is associated with the spoke.
unique_id: StringOutput only. The Google-generated UUID for the spoke. This value is unique
across all spoke resources. If a spoke is deleted and another with the same
name is created, the new spoke is assigned a different unique_id.
state: StateOutput only. The current lifecycle state of this spoke.
reasons: Vec<StateReason>Output only. The reasons for current state of the spoke. Only present when
the spoke is in the INACTIVE state.
spoke_type: SpokeTypeOutput only. The type of resource associated with the spoke.
Implementations§
Source§impl Spoke
impl Spoke
pub fn new() -> Self
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of update_time.
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_linked_vpn_tunnels<T: Into<Option<LinkedVpnTunnels>>>(
self,
v: T,
) -> Self
pub fn set_linked_vpn_tunnels<T: Into<Option<LinkedVpnTunnels>>>( self, v: T, ) -> Self
Sets the value of linked_vpn_tunnels.
Sourcepub fn set_linked_interconnect_attachments<T: Into<Option<LinkedInterconnectAttachments>>>(
self,
v: T,
) -> Self
pub fn set_linked_interconnect_attachments<T: Into<Option<LinkedInterconnectAttachments>>>( self, v: T, ) -> Self
Sets the value of linked_interconnect_attachments.
Sourcepub fn set_linked_router_appliance_instances<T: Into<Option<LinkedRouterApplianceInstances>>>(
self,
v: T,
) -> Self
pub fn set_linked_router_appliance_instances<T: Into<Option<LinkedRouterApplianceInstances>>>( self, v: T, ) -> Self
Sets the value of linked_router_appliance_instances.
Sourcepub fn set_linked_vpc_network<T: Into<Option<LinkedVpcNetwork>>>(
self,
v: T,
) -> Self
pub fn set_linked_vpc_network<T: Into<Option<LinkedVpcNetwork>>>( self, v: T, ) -> Self
Sets the value of linked_vpc_network.
Sourcepub fn set_linked_producer_vpc_network<T: Into<Option<LinkedProducerVpcNetwork>>>(
self,
v: T,
) -> Self
pub fn set_linked_producer_vpc_network<T: Into<Option<LinkedProducerVpcNetwork>>>( self, v: T, ) -> Self
Sets the value of linked_producer_vpc_network.
Sourcepub fn set_unique_id<T: Into<String>>(self, v: T) -> Self
pub fn set_unique_id<T: Into<String>>(self, v: T) -> Self
Sets the value of unique_id.
Sourcepub fn set_spoke_type<T: Into<SpokeType>>(self, v: T) -> Self
pub fn set_spoke_type<T: Into<SpokeType>>(self, v: T) -> Self
Sets the value of spoke_type.
Sourcepub fn set_reasons<T, V>(self, v: T) -> Self
pub fn set_reasons<T, V>(self, v: T) -> Self
Sets the value of reasons.
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.