Struct google_api_proto::google::cloud::edgenetwork::v1::Subnet
source · pub struct Subnet {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub description: String,
pub network: String,
pub ipv4_cidr: Vec<String>,
pub ipv6_cidr: Vec<String>,
pub vlan_id: i32,
pub bonding_type: i32,
pub state: i32,
}
Expand description
Message describing Subnet object
Fields§
§name: String
Required. The canonical resource name of the subnet.
create_time: Option<Timestamp>
Output only. The time when the subnet was created.
update_time: Option<Timestamp>
Output only. The time when the subnet was last updated.
labels: BTreeMap<String, String>
Labels associated with this resource.
description: String
Optional. A free-text description of the resource. Max length 1024 characters.
network: String
Required. The network that this subnetwork belongs to.
ipv4_cidr: Vec<String>
The ranges of ipv4 addresses that are owned by this subnetwork.
ipv6_cidr: Vec<String>
The ranges of ipv6 addresses that are owned by this subnetwork.
vlan_id: i32
Optional. VLAN id provided by user. If not specified we assign one automatically.
bonding_type: i32
Optional. A bonding type in the subnet creation specifies whether a VLAN being created will be present on Bonded or Non-Bonded or Both port types. In addition, this flag is to be used to set the specific network configuration which clusters can then use for their workloads based on the bonding choice.
state: i32
Output only. Current stage of the resource to the device by config push.
Implementations§
source§impl Subnet
impl Subnet
sourcepub fn state(&self) -> ResourceState
pub fn state(&self) -> ResourceState
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_state(&mut self, value: ResourceState)
pub fn set_state(&mut self, value: ResourceState)
Sets state
to the provided enum value.
sourcepub fn bonding_type(&self) -> BondingType
pub fn bonding_type(&self) -> BondingType
Returns the enum value of bonding_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_bonding_type(&mut self, value: BondingType)
pub fn set_bonding_type(&mut self, value: BondingType)
Sets bonding_type
to the provided enum value.
Trait Implementations§
source§impl Message for Subnet
impl Message for Subnet
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 Subnet
impl PartialEq for Subnet
impl StructuralPartialEq for Subnet
Auto Trait Implementations§
impl Freeze for Subnet
impl RefUnwindSafe for Subnet
impl Send for Subnet
impl Sync for Subnet
impl Unpin for Subnet
impl UnwindSafe for Subnet
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