pub struct Vpc {
pub name: String,
pub urn: String,
pub ipv4_cidr_block: String,
pub ipv6_cidr_block: String,
pub subnet_ipv4_prefix_length: i32,
pub available_subnet_count: i32,
pub dns_policy: String,
pub internet_gateway: String,
pub project_default: bool,
pub create_time: Option<Timestamp>,
pub creator: String,
pub tags: BTreeMap<String, String>,
}Expand description
A private network in one region.
Fields§
§name: StringThe VPC’s resource name.
urn: StringThe VPC’s URN, the identifier access policies and the audit log use.
ipv4_cidr_block: StringThe private IPv4 range (RFC 1918), from /16 to /28. A free /16
of the 172.16 private block when left empty. Subnets are carved from
it in equal sizes.
ipv6_cidr_block: StringThe IPv6 range the platform assigned, a /56. Each subnet gets a
/72 of it.
subnet_ipv4_prefix_length: i32The prefix length of every subnet’s IPv4 range.
available_subnet_count: i32How many more subnets the VPC’s address space holds.
dns_policy: StringThe DNS policy the VPC’s resolver relays through, as the VPC’s DNS
policy association (a DnsPolicyAssociation) sets it. Empty while it
has none: the VPC then relays through the project’s default DNS policy
in its region.
internet_gateway: StringThe VPC’s internet gateway; empty while it has none.
project_default: boolWhether this is the project’s default VPC. Unlike a VPC you create, the
platform creates it with defaults: an internet gateway, and a security
group, an ACL and a main route table marked as created with the VPC
(vpc_default on the group and the ACL, main on the route table).
create_time: Option<Timestamp>When the VPC was created.
creator: StringThe principal that created the VPC, 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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vpc
impl<'de> Deserialize<'de> for Vpc
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 Vpc
impl Message for Vpc
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.