pulumi_wasm_providers_gcp_mini::compute::attached_disk

Struct AttachedDiskArgsBuilder

source
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>

source

pub fn build_struct(self) -> AttachedDiskArgs
where S: IsComplete,

Finish building and return the requested object

source

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.

source

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.

source

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.


source

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.

source

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”

source

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”

source

pub fn mode( self, value: impl Into<Output<Option<String>>>, ) -> AttachedDiskArgsBuilder<SetMode<S>>
where S::Mode: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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”

source

pub fn maybe_mode( self, value: Option<impl Into<Output<Option<String>>>>, ) -> AttachedDiskArgsBuilder<SetMode<S>>
where S::Mode: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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”

source

pub fn project( self, value: impl Into<Output<Option<String>>>, ) -> AttachedDiskArgsBuilder<SetProject<S>>
where S::Project: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_project( self, value: Option<impl Into<Output<Option<String>>>>, ) -> AttachedDiskArgsBuilder<SetProject<S>>
where S::Project: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn zone( self, value: impl Into<Output<Option<String>>>, ) -> AttachedDiskArgsBuilder<SetZone<S>>
where S::Zone: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_zone( self, value: Option<impl Into<Output<Option<String>>>>, ) -> AttachedDiskArgsBuilder<SetZone<S>>
where S::Zone: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.