#[non_exhaustive]pub struct UsableSubnetwork {
pub subnetwork: String,
pub network: String,
pub ip_cidr_range: String,
pub secondary_ip_ranges: Vec<UsableSubnetworkSecondaryRange>,
pub status_message: String,
}Expand description
UsableSubnetwork resource returns the subnetwork name, its associated network and the primary CIDR range.
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.subnetwork: StringSubnetwork Name. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
network: StringNetwork Name. Example: projects/my-project/global/networks/my-network
ip_cidr_range: StringThe range of internal addresses that are owned by this subnetwork.
secondary_ip_ranges: Vec<UsableSubnetworkSecondaryRange>Secondary IP ranges.
status_message: StringA human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet. For example if the secondary_ip_ranges is empty due to a permission issue, an insufficient permission message will be given by status_message.
Implementations§
Source§impl UsableSubnetwork
impl UsableSubnetwork
Sourcepub fn set_subnetwork<T: Into<String>>(self, v: T) -> Self
pub fn set_subnetwork<T: Into<String>>(self, v: T) -> Self
Sets the value of subnetwork.
Sourcepub fn set_network<T: Into<String>>(self, v: T) -> Self
pub fn set_network<T: Into<String>>(self, v: T) -> Self
Sets the value of network.
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_status_message<T: Into<String>>(self, v: T) -> Self
pub fn set_status_message<T: Into<String>>(self, v: T) -> Self
Sets the value of status_message.
Sourcepub fn set_secondary_ip_ranges<T, V>(self, v: T) -> Self
pub fn set_secondary_ip_ranges<T, V>(self, v: T) -> Self
Sets the value of secondary_ip_ranges.
Trait Implementations§
Source§impl Clone for UsableSubnetwork
impl Clone for UsableSubnetwork
Source§fn clone(&self) -> UsableSubnetwork
fn clone(&self) -> UsableSubnetwork
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more