pub struct AttachedDiskArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> AttachedDiskArgsBuilder<S>
impl<S: State> AttachedDiskArgsBuilder<S>
sourcepub fn build_struct(self) -> AttachedDiskArgswhere
S: IsComplete,
pub fn build_struct(self) -> AttachedDiskArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn device_name(
self,
value: impl Into<Output<Option<String>>>,
) -> AttachedDiskArgsBuilder<SetDeviceName<S>>where
S::DeviceName: IsUnset,
pub fn device_name(
self,
value: impl Into<Output<Option<String>>>,
) -> AttachedDiskArgsBuilder<SetDeviceName<S>>where
S::DeviceName: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
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.
sourcepub fn maybe_device_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> AttachedDiskArgsBuilder<SetDeviceName<S>>where
S::DeviceName: IsUnset,
pub fn maybe_device_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> AttachedDiskArgsBuilder<SetDeviceName<S>>where
S::DeviceName: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
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.
sourcepub fn disk(
self,
value: impl Into<Output<String>>,
) -> AttachedDiskArgsBuilder<SetDisk<S>>where
S::Disk: IsUnset,
pub fn disk(
self,
value: impl Into<Output<String>>,
) -> AttachedDiskArgsBuilder<SetDisk<S>>where
S::Disk: IsUnset,
Required.
name
or self_link
of the disk that will be attached.
sourcepub fn instance(
self,
value: impl Into<Output<String>>,
) -> AttachedDiskArgsBuilder<SetInstance<S>>where
S::Instance: IsUnset,
pub fn instance(
self,
value: impl Into<Output<String>>,
) -> AttachedDiskArgsBuilder<SetInstance<S>>where
S::Instance: IsUnset,
Required.
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.
sourcepub fn interface(
self,
value: impl Into<Output<Option<String>>>,
) -> AttachedDiskArgsBuilder<SetInterface<S>>where
S::Interface: IsUnset,
pub fn interface(
self,
value: impl Into<Output<Option<String>>>,
) -> AttachedDiskArgsBuilder<SetInterface<S>>where
S::Interface: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
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”
sourcepub fn maybe_interface(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> AttachedDiskArgsBuilder<SetInterface<S>>where
S::Interface: IsUnset,
pub fn maybe_interface(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> AttachedDiskArgsBuilder<SetInterface<S>>where
S::Interface: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
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”