#[non_exhaustive]pub struct ListNotebookRuntimesRequest {
pub parent: String,
pub filter: String,
pub page_size: i32,
pub page_token: String,
pub read_mask: Option<FieldMask>,
pub order_by: String,
/* private fields */
}notebook-service only.Expand description
Request message for NotebookService.ListNotebookRuntimes.
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: StringRequired. The resource name of the Location from which to list the
NotebookRuntimes.
Format: projects/{project}/locations/{location}
filter: StringOptional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported.
notebookRuntimesupports = and !=.notebookRuntimerepresents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime’s [resource name] [google.cloud.aiplatform.v1.NotebookRuntime.name].displayNamesupports = and != and regex.notebookRuntimeTemplatesupports = and !=.notebookRuntimeTemplaterepresents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate’s [resource name] [google.cloud.aiplatform.v1.NotebookRuntimeTemplate.name].healthStatesupports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED].runtimeStatesupports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED, ERROR, INVALID].runtimeUsersupports = and !=.- API version is UI only:
uiStatesupports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. notebookRuntimeTypesupports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK].machineTypesupports = and !=.acceleratorTypesupports = and !=.
Some examples:
notebookRuntime="notebookRuntime123"displayName="myDisplayName"anddisplayName=~"myDisplayNameRegex"notebookRuntimeTemplate="notebookRuntimeTemplate321"healthState=HEALTHYruntimeState=RUNNINGruntimeUser="test@google.com"uiState=UI_RESOURCE_STATE_BEING_DELETEDnotebookRuntimeType=USER_DEFINEDmachineType=e2-standard-4acceleratorType=NVIDIA_TESLA_T4
page_size: i32Optional. The standard list page size.
page_token: StringOptional. The standard list page token. Typically obtained via ListNotebookRuntimesResponse.next_page_token of the previous NotebookService.ListNotebookRuntimes call.
read_mask: Option<FieldMask>Optional. Mask specifying which fields to read.
order_by: StringOptional. A comma-separated list of fields to order by, sorted in ascending order. Use “desc” after a field name for descending. Supported fields:
display_namecreate_timeupdate_time
Example: display_name, create_time desc.
Implementations§
Source§impl ListNotebookRuntimesRequest
impl ListNotebookRuntimesRequest
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
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
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.
§Example
let x = ListNotebookRuntimesRequest::new().set_page_token("example");Sourcepub fn set_read_mask<T>(self, v: T) -> Self
pub fn set_read_mask<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_read_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_read_mask<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for ListNotebookRuntimesRequest
impl Clone for ListNotebookRuntimesRequest
Source§fn clone(&self) -> ListNotebookRuntimesRequest
fn clone(&self) -> ListNotebookRuntimesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more