#[non_exhaustive]pub struct AssignNotebookRuntimeRequest {
pub parent: String,
pub notebook_runtime_template: String,
pub notebook_runtime: Option<NotebookRuntime>,
pub notebook_runtime_id: String,
/* private fields */
}
Expand description
Request message for NotebookService.AssignNotebookRuntime.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.parent: String
Required. The resource name of the Location to get the NotebookRuntime
assignment. Format: projects/{project}/locations/{location}
notebook_runtime_template: String
Required. The resource name of the NotebookRuntimeTemplate based on which a NotebookRuntime will be assigned (reuse or create a new one).
notebook_runtime: Option<NotebookRuntime>
Required. Provide runtime specific information (e.g. runtime owner, notebook id) used for NotebookRuntime assignment.
notebook_runtime_id: String
Optional. User specified ID for the notebook runtime.
Implementations§
Source§impl AssignNotebookRuntimeRequest
impl AssignNotebookRuntimeRequest
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_notebook_runtime_template<T: Into<String>>(self, v: T) -> Self
pub fn set_notebook_runtime_template<T: Into<String>>(self, v: T) -> Self
Sets the value of notebook_runtime_template.
Sourcepub fn set_notebook_runtime<T>(self, v: T) -> Selfwhere
T: Into<NotebookRuntime>,
pub fn set_notebook_runtime<T>(self, v: T) -> Selfwhere
T: Into<NotebookRuntime>,
Sets the value of notebook_runtime.
Sourcepub fn set_or_clear_notebook_runtime<T>(self, v: Option<T>) -> Selfwhere
T: Into<NotebookRuntime>,
pub fn set_or_clear_notebook_runtime<T>(self, v: Option<T>) -> Selfwhere
T: Into<NotebookRuntime>,
Sets or clears the value of notebook_runtime.
Sourcepub fn set_notebook_runtime_id<T: Into<String>>(self, v: T) -> Self
pub fn set_notebook_runtime_id<T: Into<String>>(self, v: T) -> Self
Sets the value of notebook_runtime_id.
Trait Implementations§
Source§impl Clone for AssignNotebookRuntimeRequest
impl Clone for AssignNotebookRuntimeRequest
Source§fn clone(&self) -> AssignNotebookRuntimeRequest
fn clone(&self) -> AssignNotebookRuntimeRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AssignNotebookRuntimeRequest
impl Debug for AssignNotebookRuntimeRequest
Source§impl Default for AssignNotebookRuntimeRequest
impl Default for AssignNotebookRuntimeRequest
Source§fn default() -> AssignNotebookRuntimeRequest
fn default() -> AssignNotebookRuntimeRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for AssignNotebookRuntimeRequest
impl PartialEq for AssignNotebookRuntimeRequest
Source§fn eq(&self, other: &AssignNotebookRuntimeRequest) -> bool
fn eq(&self, other: &AssignNotebookRuntimeRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AssignNotebookRuntimeRequest
Auto Trait Implementations§
impl Freeze for AssignNotebookRuntimeRequest
impl RefUnwindSafe for AssignNotebookRuntimeRequest
impl Send for AssignNotebookRuntimeRequest
impl Sync for AssignNotebookRuntimeRequest
impl Unpin for AssignNotebookRuntimeRequest
impl UnwindSafe for AssignNotebookRuntimeRequest
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
Mutably borrows from an owned value. Read more