pub struct NetworkInterface {
pub name: String,
pub urn: String,
pub subnet: String,
pub security_groups: Vec<String>,
pub source_address_check: Option<bool>,
pub ipv4_address: String,
pub ipv6_address: String,
pub state: i32,
pub instance: String,
pub create_time: Option<Timestamp>,
pub creator: String,
pub tags: BTreeMap<String, String>,
}Expand description
A network interface: private addresses in one subnet, filtered by security groups.
Fields§
§name: StringThe interface’s resource name.
urn: StringThe interface’s URN, the identifier access policies and the audit log use.
subnet: StringThe subnet the interface has its addresses in, in the same project and zone.
security_groups: Vec<String>The security groups that filter the interface’s traffic, as its
security group associations (each a SecurityGroupAssociation) set
them. The interface admits the traffic any of them allows. With none,
it admits and sends nothing except replies to its own traffic and
address resolution (ARP and IPv6 neighbor discovery): it is closed.
source_address_check: Option<bool>Whether a packet the instance sends must carry the interface’s own
MAC and IP address as its source; true when left unset. Turn it off
for an instance that forwards traffic for other addresses, such as a
router, a NAT instance or a shared virtual IP.
ipv4_address: StringThe interface’s private IPv4 address.
ipv6_address: StringThe interface’s IPv6 address.
state: i32Whether the interface is in use.
instance: StringThe instance the interface is attached to; empty while it is
network_interface::State::Available. An instance attaches interfaces when it is launched.
create_time: Option<Timestamp>When the network interface was created.
creator: StringThe principal that created the network interface, such as user:<id>
or service_account:<id>; empty for one the platform created.
Labels of your own, at most 50. The origin:name tag is the name the
console shows.
Implementations§
Source§impl NetworkInterface
impl NetworkInterface
Trait Implementations§
Source§impl Clone for NetworkInterface
impl Clone for NetworkInterface
Source§impl Debug for NetworkInterface
impl Debug for NetworkInterface
Source§impl Default for NetworkInterface
impl Default for NetworkInterface
Source§impl<'de> Deserialize<'de> for NetworkInterface
impl<'de> Deserialize<'de> for NetworkInterface
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>,
Source§impl Message for NetworkInterface
impl Message for NetworkInterface
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.