#[non_exhaustive]pub struct SubnetworkSecondaryRange {
pub ip_cidr_range: Option<String>,
pub range_name: Option<String>,
pub reserved_internal_range: Option<String>,
/* private fields */
}subnetworks only.Expand description
Represents a secondary IP range of a subnetwork.
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.ip_cidr_range: Option<String>The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, the range can be any range listed in theValid ranges list.
For IPv6:
The range must have a /64 prefix length.
The range must be omitted, for auto-allocation from Google-defined ULA
IPv6 range.
For BYOGUA internal IPv6 secondary range, the range may be specified
along with the ipCollection field.
If an ipCollection is specified, the requested ip_cidr_range must lie
within the range of the PDP referenced by the ipCollection field for
allocation.
If ipCollection field is specified, but ip_cidr_range is not,
the range is auto-allocated from the PDP referenced by the ipCollection
field.
range_name: Option<String>The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be unique within the subnetwork.
reserved_internal_range: Option<String>The URL of the reserved internal range. Only IPv4 is supported.
Implementations§
Source§impl SubnetworkSecondaryRange
impl SubnetworkSecondaryRange
pub fn new() -> Self
Sourcepub fn set_ip_cidr_range<T>(self, v: T) -> Self
pub fn set_ip_cidr_range<T>(self, v: T) -> Self
Sets the value of ip_cidr_range.
§Example
let x = SubnetworkSecondaryRange::new().set_ip_cidr_range("example");Sourcepub fn set_or_clear_ip_cidr_range<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ip_cidr_range<T>(self, v: Option<T>) -> Self
Sets or clears the value of ip_cidr_range.
§Example
let x = SubnetworkSecondaryRange::new().set_or_clear_ip_cidr_range(Some("example"));
let x = SubnetworkSecondaryRange::new().set_or_clear_ip_cidr_range(None::<String>);Sourcepub fn set_range_name<T>(self, v: T) -> Self
pub fn set_range_name<T>(self, v: T) -> Self
Sets the value of range_name.
§Example
let x = SubnetworkSecondaryRange::new().set_range_name("example");Sourcepub fn set_or_clear_range_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_range_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of range_name.
§Example
let x = SubnetworkSecondaryRange::new().set_or_clear_range_name(Some("example"));
let x = SubnetworkSecondaryRange::new().set_or_clear_range_name(None::<String>);Sourcepub fn set_reserved_internal_range<T>(self, v: T) -> Self
pub fn set_reserved_internal_range<T>(self, v: T) -> Self
Sets the value of reserved_internal_range.
§Example
let x = SubnetworkSecondaryRange::new().set_reserved_internal_range("example");Sourcepub fn set_or_clear_reserved_internal_range<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_reserved_internal_range<T>(self, v: Option<T>) -> Self
Sets or clears the value of reserved_internal_range.
§Example
let x = SubnetworkSecondaryRange::new().set_or_clear_reserved_internal_range(Some("example"));
let x = SubnetworkSecondaryRange::new().set_or_clear_reserved_internal_range(None::<String>);Trait Implementations§
Source§impl Clone for SubnetworkSecondaryRange
impl Clone for SubnetworkSecondaryRange
Source§fn clone(&self) -> SubnetworkSecondaryRange
fn clone(&self) -> SubnetworkSecondaryRange
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more