#[non_exhaustive]pub struct CreateStoragePoolRequest {
pub parent: String,
pub storage_pool_id: String,
pub storage_pool: Option<StoragePool>,
/* private fields */
}Expand description
CreateStoragePoolRequest creates a Storage Pool.
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: StringRequired. Value for parent.
storage_pool_id: StringRequired. Id of the requesting storage pool. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
storage_pool: Option<StoragePool>Required. The required parameters to create a new storage pool.
Implementations§
Source§impl CreateStoragePoolRequest
impl CreateStoragePoolRequest
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_storage_pool_id<T: Into<String>>(self, v: T) -> Self
pub fn set_storage_pool_id<T: Into<String>>(self, v: T) -> Self
Sets the value of storage_pool_id.
§Example
ⓘ
let x = CreateStoragePoolRequest::new().set_storage_pool_id("example");Sourcepub fn set_storage_pool<T>(self, v: T) -> Selfwhere
T: Into<StoragePool>,
pub fn set_storage_pool<T>(self, v: T) -> Selfwhere
T: Into<StoragePool>,
Sets the value of storage_pool.
§Example
ⓘ
use google_cloud_netapp_v1::model::StoragePool;
let x = CreateStoragePoolRequest::new().set_storage_pool(StoragePool::default()/* use setters */);Sourcepub fn set_or_clear_storage_pool<T>(self, v: Option<T>) -> Selfwhere
T: Into<StoragePool>,
pub fn set_or_clear_storage_pool<T>(self, v: Option<T>) -> Selfwhere
T: Into<StoragePool>,
Sets or clears the value of storage_pool.
§Example
ⓘ
use google_cloud_netapp_v1::model::StoragePool;
let x = CreateStoragePoolRequest::new().set_or_clear_storage_pool(Some(StoragePool::default()/* use setters */));
let x = CreateStoragePoolRequest::new().set_or_clear_storage_pool(None::<StoragePool>);Trait Implementations§
Source§impl Clone for CreateStoragePoolRequest
impl Clone for CreateStoragePoolRequest
Source§fn clone(&self) -> CreateStoragePoolRequest
fn clone(&self) -> CreateStoragePoolRequest
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 CreateStoragePoolRequest
impl Debug for CreateStoragePoolRequest
Source§impl Default for CreateStoragePoolRequest
impl Default for CreateStoragePoolRequest
Source§fn default() -> CreateStoragePoolRequest
fn default() -> CreateStoragePoolRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateStoragePoolRequest
impl Message for CreateStoragePoolRequest
Source§impl PartialEq for CreateStoragePoolRequest
impl PartialEq for CreateStoragePoolRequest
impl StructuralPartialEq for CreateStoragePoolRequest
Auto Trait Implementations§
impl Freeze for CreateStoragePoolRequest
impl RefUnwindSafe for CreateStoragePoolRequest
impl Send for CreateStoragePoolRequest
impl Sync for CreateStoragePoolRequest
impl Unpin for CreateStoragePoolRequest
impl UnwindSafe for CreateStoragePoolRequest
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