pub struct InternalRange {Show 13 fields
pub create_time: Option<DateTime<Utc>>,
pub description: Option<String>,
pub ip_cidr_range: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub name: Option<String>,
pub network: Option<String>,
pub overlaps: Option<Vec<String>>,
pub peering: Option<String>,
pub prefix_length: Option<i32>,
pub target_cidr_range: Option<Vec<String>>,
pub update_time: Option<DateTime<Utc>>,
pub usage: Option<String>,
pub users: Option<Vec<String>>,
}Expand description
The internal range resource for IPAM operations within a VPC network. Used to represent a private address range along with behavioral characterstics of that range (its usage and peering behavior). Networking resources can link to this range if they are created as belonging to it.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations internal ranges create projects (request)
- locations internal ranges get projects (response)
- locations internal ranges patch projects (request)
Fields§
§create_time: Option<DateTime<Utc>>Time when the internal range was created.
description: Option<String>A description of this resource.
ip_cidr_range: Option<String>The IP range that this internal range defines.
labels: Option<HashMap<String, String>>User-defined labels.
name: Option<String>Immutable. The name of an internal range. Format: projects/{project}/locations/{location}/internalRanges/{internal_range} See: https://google.aip.dev/122#fields-representing-resource-names
network: Option<String>The URL or resource ID of the network in which to reserve the internal range. The network cannot be deleted if there are any reserved internal ranges referring to it. Legacy networks are not supported. For example: https://www.googleapis.com/compute/v1/projects/{project}/locations/global/networks/{network} projects/{project}/locations/global/networks/{network} {network}
overlaps: Option<Vec<String>>Optional. Types of resources that are allowed to overlap with the current internal range.
peering: Option<String>The type of peering set for this internal range.
prefix_length: Option<i32>An alternate to ip_cidr_range. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ip_cidr_range and prefix_length are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size.
target_cidr_range: Option<Vec<String>>Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the “10.0.0.0/8” address space. This can be used to search in other rfc-1918 address spaces like “172.16.0.0/12” and “192.168.0.0/16” or non-rfc-1918 address spaces used in the VPC.
update_time: Option<DateTime<Utc>>Time when the internal range was updated.
usage: Option<String>The type of usage set for this InternalRange.
users: Option<Vec<String>>Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty.
Trait Implementations§
Source§impl Clone for InternalRange
impl Clone for InternalRange
Source§fn clone(&self) -> InternalRange
fn clone(&self) -> InternalRange
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InternalRange
impl Debug for InternalRange
Source§impl Default for InternalRange
impl Default for InternalRange
Source§fn default() -> InternalRange
fn default() -> InternalRange
Source§impl<'de> Deserialize<'de> for InternalRange
impl<'de> Deserialize<'de> for InternalRange
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 Serialize for InternalRange
impl Serialize for InternalRange
impl RequestValue for InternalRange
impl ResponseResult for InternalRange
Auto Trait Implementations§
impl Freeze for InternalRange
impl RefUnwindSafe for InternalRange
impl Send for InternalRange
impl Sync for InternalRange
impl Unpin for InternalRange
impl UnwindSafe for InternalRange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more