pub struct Vpc {
pub name: String,
pub ipv4_cidr_block: String,
pub ipv6_cidr_block: String,
pub subnet_ipv4_prefix_length: i32,
pub available_subnet_count: i32,
pub resolver_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.
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 private IPv6 range, unique local space (RFC 4193) from /48 to
/60, overlapping none of the organization’s other VPCs. A globally
routable /56 from the zone’s pool when left empty. Each subnet gets a
range 16 bits longer: a /64 of a /48, a /72 of a /56.
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.
resolver_policy: StringThe full name of the resolver policy the VPC’s resolver relays through, as
the VPC’s resolver policy association (a ResolverPolicyAssociation) sets
it. Empty while it has none: the VPC then relays through the project’s
default resolver policy in its region.
internet_gateway: StringThe full name of the 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, by its full name on iam:
//iam.origincloudapis.eu/users/{user},
//iam.origincloudapis.eu/organizations/{organization}/serviceAccounts/{service_account},
or a platform service agent’s or service’s name when the platform did.
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.