#[non_exhaustive]pub struct DiagnoseInstanceRequest {
pub name: String,
pub diagnostic_config: Option<DiagnosticConfig>,
pub timeout_minutes: i32,
/* private fields */
}Expand description
Request for creating a notebook instance diagnostic file.
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.name: StringRequired. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
diagnostic_config: Option<DiagnosticConfig>Required. Defines flags that are used to run the diagnostic tool
timeout_minutes: i32Optional. Maxmium amount of time in minutes before the operation times out.
Implementations§
Source§impl DiagnoseInstanceRequest
impl DiagnoseInstanceRequest
pub fn new() -> Self
Sourcepub fn set_diagnostic_config<T>(self, v: T) -> Selfwhere
T: Into<DiagnosticConfig>,
pub fn set_diagnostic_config<T>(self, v: T) -> Selfwhere
T: Into<DiagnosticConfig>,
Sets the value of diagnostic_config.
Sourcepub fn set_or_clear_diagnostic_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<DiagnosticConfig>,
pub fn set_or_clear_diagnostic_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<DiagnosticConfig>,
Sets or clears the value of diagnostic_config.
Sourcepub fn set_timeout_minutes<T: Into<i32>>(self, v: T) -> Self
pub fn set_timeout_minutes<T: Into<i32>>(self, v: T) -> Self
Sets the value of timeout_minutes.
Trait Implementations§
Source§impl Clone for DiagnoseInstanceRequest
impl Clone for DiagnoseInstanceRequest
Source§fn clone(&self) -> DiagnoseInstanceRequest
fn clone(&self) -> DiagnoseInstanceRequest
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 DiagnoseInstanceRequest
impl Debug for DiagnoseInstanceRequest
Source§impl Default for DiagnoseInstanceRequest
impl Default for DiagnoseInstanceRequest
Source§fn default() -> DiagnoseInstanceRequest
fn default() -> DiagnoseInstanceRequest
Returns the “default value” for a type. Read more
Source§impl Message for DiagnoseInstanceRequest
impl Message for DiagnoseInstanceRequest
Source§impl PartialEq for DiagnoseInstanceRequest
impl PartialEq for DiagnoseInstanceRequest
impl StructuralPartialEq for DiagnoseInstanceRequest
Auto Trait Implementations§
impl Freeze for DiagnoseInstanceRequest
impl RefUnwindSafe for DiagnoseInstanceRequest
impl Send for DiagnoseInstanceRequest
impl Sync for DiagnoseInstanceRequest
impl Unpin for DiagnoseInstanceRequest
impl UnwindSafe for DiagnoseInstanceRequest
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