Struct google_api_proto::google::cloud::networkconnectivity::v1::Spoke
source · pub struct Spoke {Show 15 fields
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<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 unique_id: String,
pub state: i32,
pub reasons: Vec<StateReason>,
pub spoke_type: i32,
}
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§
§name: String
Immutable. 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: BTreeMap<String, String>
Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
description: String
An optional description of the spoke.
hub: String
Immutable. The name of the hub that this spoke is attached to.
group: String
Optional. 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.
unique_id: String
Output 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: i32
Output 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: i32
Output only. The type of resource associated with the spoke.
Implementations§
source§impl Spoke
impl Spoke
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn spoke_type(&self) -> SpokeType
pub fn spoke_type(&self) -> SpokeType
Returns the enum value of spoke_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_spoke_type(&mut self, value: SpokeType)
pub fn set_spoke_type(&mut self, value: SpokeType)
Sets spoke_type
to the provided enum value.
Trait Implementations§
source§impl Message for Spoke
impl Message for Spoke
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Spoke
impl PartialEq for Spoke
impl StructuralPartialEq for Spoke
Auto Trait Implementations§
impl Freeze for Spoke
impl RefUnwindSafe for Spoke
impl Send for Spoke
impl Sync for Spoke
impl Unpin for Spoke
impl UnwindSafe for Spoke
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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