#[non_exhaustive]pub struct ListInstancesRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub filter: String,
pub instance_deadline: Option<Timestamp>,
/* private fields */
}
Expand description
The request for ListInstances.
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 name of the project for which a list of instances is
requested. Values are of the form projects/<project>
.
page_size: i32
Number of instances 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
ListInstancesResponse.
filter: String
An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are:
name
display_name
labels.key
where key is the name of a label
Some examples of using filters are:
name:*
–> The instance has a name.name:Howl
–> The instance’s name contains the string “howl”.name:HOWL
–> Equivalent to above.NAME:howl
–> Equivalent to above.labels.env:*
–> The instance has the label “env”.labels.env:dev
–> The instance has the label “env” and the value of the label contains the string “dev”.name:howl labels.env:dev
–> The instance’s name contains “howl” and it has the label “env” with its value containing “dev”.
instance_deadline: Option<Timestamp>
Deadline used while retrieving metadata for instances. Instances whose metadata cannot be retrieved within this deadline will be added to unreachable in ListInstancesResponse.
Implementations§
Source§impl ListInstancesRequest
impl ListInstancesRequest
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_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_instance_deadline<T>(self, v: T) -> Self
pub fn set_instance_deadline<T>(self, v: T) -> Self
Sets the value of instance_deadline.
Sourcepub fn set_or_clear_instance_deadline<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_instance_deadline<T>(self, v: Option<T>) -> Self
Sets or clears the value of instance_deadline.
Trait Implementations§
Source§impl Clone for ListInstancesRequest
impl Clone for ListInstancesRequest
Source§fn clone(&self) -> ListInstancesRequest
fn clone(&self) -> ListInstancesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more