#[non_exhaustive]pub struct ListUsableSubnetworksRequest {
pub parent: String,
pub filter: String,
pub page_size: i32,
pub page_token: String,
}Expand description
ListUsableSubnetworksRequest requests the list of usable subnetworks available to a user for creating clusters.
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.parent: StringThe parent project where subnetworks are usable.
Specified in the format projects/*.
filter: StringFiltering currently only supports equality on the networkProjectId and must
be in the form: “networkProjectId=[PROJECTID]”, where networkProjectId
is the project which owns the listed subnetworks. This defaults to the
parent project ID.
page_size: i32The max number of results per page that should be returned. If the number
of available results is larger than page_size, a next_page_token is
returned which can be used to get the next page of results in subsequent
requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
page_token: StringSpecifies a page token to use. Set this to the nextPageToken returned by previous list requests to get the next page of results.
Implementations§
Source§impl ListUsableSubnetworksRequest
impl ListUsableSubnetworksRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of filter.
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of page_size.
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
Trait Implementations§
Source§impl Clone for ListUsableSubnetworksRequest
impl Clone for ListUsableSubnetworksRequest
Source§fn clone(&self) -> ListUsableSubnetworksRequest
fn clone(&self) -> ListUsableSubnetworksRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListUsableSubnetworksRequest
impl Debug for ListUsableSubnetworksRequest
Source§impl Default for ListUsableSubnetworksRequest
impl Default for ListUsableSubnetworksRequest
Source§fn default() -> ListUsableSubnetworksRequest
fn default() -> ListUsableSubnetworksRequest
Source§impl<'de> Deserialize<'de> for ListUsableSubnetworksRequestwhere
ListUsableSubnetworksRequest: Default,
impl<'de> Deserialize<'de> for ListUsableSubnetworksRequestwhere
ListUsableSubnetworksRequest: Default,
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 PartialEq for ListUsableSubnetworksRequest
impl PartialEq for ListUsableSubnetworksRequest
Source§fn eq(&self, other: &ListUsableSubnetworksRequest) -> bool
fn eq(&self, other: &ListUsableSubnetworksRequest) -> bool
self and other values to be equal, and is used by ==.