pub struct AttachedDiskArgs {
pub device_name: Output<Option<String>>,
pub disk: Output<String>,
pub instance: Output<String>,
pub interface: Output<Option<String>>,
pub mode: Output<Option<String>>,
pub project: Output<Option<String>>,
pub zone: Output<Option<String>>,
}
Fields§
§device_name: Output<Option<String>>
Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance.
If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disks-x, where x is a number assigned by Google Compute Engine.
disk: Output<String>
name
or self_link
of the disk that will be attached.
instance: Output<String>
name
or self_link
of the compute instance that the disk will be attached to.
If the self_link
is provided then zone
and project
are extracted from the
self link. If only the name is used then zone
and project
must be defined
as properties on the resource or provider.
interface: Output<Option<String>>
The disk interface used for attaching this disk.
This field is only used for specific cases, please don’t specify this field without advice from Google. Not specifying the field will allow the the server to assign the correct interface.
Possible values: “SCSI” “NVME”
mode: Output<Option<String>>
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.
Possible values: “READ_ONLY” “READ_WRITE”
project: Output<Option<String>>
The project that the referenced compute instance is a part of. If instance
is referenced by its
self_link
the project defined in the link will take precedence.
zone: Output<Option<String>>
The zone that the referenced compute instance is located within. If instance
is referenced by its
self_link
the zone defined in the link will take precedence.
Implementations§
source§impl AttachedDiskArgs
impl AttachedDiskArgs
sourcepub fn builder() -> AttachedDiskArgsBuilder
pub fn builder() -> AttachedDiskArgsBuilder
Create an instance of AttachedDiskArgs
using the builder syntax
Trait Implementations§
source§impl Clone for AttachedDiskArgs
impl Clone for AttachedDiskArgs
source§fn clone(&self) -> AttachedDiskArgs
fn clone(&self) -> AttachedDiskArgs
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for AttachedDiskArgs
impl RefUnwindSafe for AttachedDiskArgs
impl Send for AttachedDiskArgs
impl Sync for AttachedDiskArgs
impl Unpin for AttachedDiskArgs
impl UnwindSafe for AttachedDiskArgs
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)