#[non_exhaustive]pub struct ListInstancePartitionsRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub instance_partition_deadline: Option<Timestamp>,
/* private fields */
}
Expand description
The request for ListInstancePartitions.
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: String
Required. The instance whose instance partitions should be listed. Values
are of the form projects/<project>/instances/<instance>
. Use {instance} = '-'
to list instance partitions for all Instances in a project, e.g.,
projects/myproject/instances/-
.
page_size: i32
Number of instance partitions to be returned in the response. If 0 or less, defaults to the server’s maximum allowed page size.
page_token: String
If non-empty, page_token
should contain a
next_page_token
from a previous
ListInstancePartitionsResponse.
instance_partition_deadline: Option<Timestamp>
Optional. Deadline used while retrieving metadata for instance partitions. Instance partitions whose metadata cannot be retrieved within this deadline will be added to unreachable in ListInstancePartitionsResponse.
Implementations§
Source§impl ListInstancePartitionsRequest
impl ListInstancePartitionsRequest
pub fn new() -> Self
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_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.
Sourcepub fn set_instance_partition_deadline<T>(self, v: T) -> Self
pub fn set_instance_partition_deadline<T>(self, v: T) -> Self
Sets the value of instance_partition_deadline.
Sourcepub fn set_or_clear_instance_partition_deadline<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_instance_partition_deadline<T>(self, v: Option<T>) -> Self
Sets or clears the value of instance_partition_deadline.
Trait Implementations§
Source§impl Clone for ListInstancePartitionsRequest
impl Clone for ListInstancePartitionsRequest
Source§fn clone(&self) -> ListInstancePartitionsRequest
fn clone(&self) -> ListInstancePartitionsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for ListInstancePartitionsRequest
impl Default for ListInstancePartitionsRequest
Source§fn default() -> ListInstancePartitionsRequest
fn default() -> ListInstancePartitionsRequest
Source§impl PartialEq for ListInstancePartitionsRequest
impl PartialEq for ListInstancePartitionsRequest
Source§fn eq(&self, other: &ListInstancePartitionsRequest) -> bool
fn eq(&self, other: &ListInstancePartitionsRequest) -> bool
self
and other
values to be equal, and is used by ==
.