#[non_exhaustive]pub struct Subnet {
pub name: String,
pub ip_cidr_range: String,
pub gateway_ip: String,
pub type: String,
pub state: State,
pub vlan_id: i32,
/* private fields */
}Expand description
Subnet in a private cloud. Either management subnets (such as vMotion) that
are read-only, or userDefined, which can also be updated.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. The resource name of this subnet.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet
ip_cidr_range: StringThe IP address range of the subnet in CIDR format ‘10.0.0.0/24’.
gateway_ip: StringThe IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
type: StringOutput only. The type of the subnet. For example “management” or “userDefined”.
state: StateOutput only. The state of the resource.
vlan_id: i32Output only. VLAN ID of the VLAN on which the subnet is configured
Implementations§
Source§impl Subnet
impl Subnet
pub fn new() -> Self
Sourcepub fn set_ip_cidr_range<T: Into<String>>(self, v: T) -> Self
pub fn set_ip_cidr_range<T: Into<String>>(self, v: T) -> Self
Sets the value of ip_cidr_range.
Sourcepub fn set_gateway_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_gateway_ip<T: Into<String>>(self, v: T) -> Self
Sets the value of gateway_ip.
Sourcepub fn set_vlan_id<T: Into<i32>>(self, v: T) -> Self
pub fn set_vlan_id<T: Into<i32>>(self, v: T) -> Self
Sets the value of vlan_id.