#[non_exhaustive]pub struct Resources {
pub cpu: f64,
pub disk_gb: f64,
pub memory_gb: f64,
pub volumes: Vec<Volume>,
pub kms_key_reference: String,
/* private fields */
}
Expand description
Machine resources for a version.
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.cpu: f64
Number of CPU cores needed.
disk_gb: f64
Disk size (GB) needed.
memory_gb: f64
Memory (GB) needed.
volumes: Vec<Volume>
User specified volumes.
kms_key_reference: String
The name of the encryption key that is stored in Google Cloud KMS. Only should be used by Cloud Composer to encrypt the vm disk
Implementations§
Source§impl Resources
impl Resources
pub fn new() -> Self
Sourcepub fn set_disk_gb<T: Into<f64>>(self, v: T) -> Self
pub fn set_disk_gb<T: Into<f64>>(self, v: T) -> Self
Sets the value of disk_gb.
Sourcepub fn set_memory_gb<T: Into<f64>>(self, v: T) -> Self
pub fn set_memory_gb<T: Into<f64>>(self, v: T) -> Self
Sets the value of memory_gb.
Sourcepub fn set_volumes<T, V>(self, v: T) -> Self
pub fn set_volumes<T, V>(self, v: T) -> Self
Sets the value of volumes.
Sourcepub fn set_kms_key_reference<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_key_reference<T: Into<String>>(self, v: T) -> Self
Sets the value of kms_key_reference.
Trait Implementations§
impl StructuralPartialEq for Resources
Auto Trait Implementations§
impl Freeze for Resources
impl RefUnwindSafe for Resources
impl Send for Resources
impl Sync for Resources
impl Unpin for Resources
impl UnwindSafe for Resources
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