pulumi_wasm_providers_gcp_mini::compute::region_disk

Struct RegionDiskArgsBuilder

source
pub struct RegionDiskArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> RegionDiskArgsBuilder<S>

source

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

Finish building and return the requested object

source

pub fn async_primary_disk( self, value: impl Into<Output<Option<RegionDiskAsyncPrimaryDisk>>>, ) -> RegionDiskArgsBuilder<SetAsyncPrimaryDisk<S>>
where S::AsyncPrimaryDisk: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::RegionDiskAsyncPrimaryDisk>,
> as Default>::default()

A nested object resource. Structure is documented below.

source

pub fn maybe_async_primary_disk( self, value: Option<impl Into<Output<Option<RegionDiskAsyncPrimaryDisk>>>>, ) -> RegionDiskArgsBuilder<SetAsyncPrimaryDisk<S>>
where S::AsyncPrimaryDisk: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::RegionDiskAsyncPrimaryDisk>,
> as Default>::default()

A nested object resource. Structure is documented below.

source

pub fn description( self, value: impl Into<Output<Option<String>>>, ) -> RegionDiskArgsBuilder<SetDescription<S>>
where S::Description: IsUnset,

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

An optional description of this resource. Provide this property when you create the resource.

source

pub fn maybe_description( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RegionDiskArgsBuilder<SetDescription<S>>
where S::Description: IsUnset,

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

An optional description of this resource. Provide this property when you create the resource.

source

pub fn disk_encryption_key( self, value: impl Into<Output<Option<RegionDiskDiskEncryptionKey>>>, ) -> RegionDiskArgsBuilder<SetDiskEncryptionKey<S>>
where S::DiskEncryptionKey: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::RegionDiskDiskEncryptionKey>,
> as Default>::default()

Encrypts the disk using a customer-supplied encryption key. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Structure is documented below.

source

pub fn maybe_disk_encryption_key( self, value: Option<impl Into<Output<Option<RegionDiskDiskEncryptionKey>>>>, ) -> RegionDiskArgsBuilder<SetDiskEncryptionKey<S>>
where S::DiskEncryptionKey: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::RegionDiskDiskEncryptionKey>,
> as Default>::default()

Encrypts the disk using a customer-supplied encryption key. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Structure is documented below.

source

pub fn guest_os_features( self, value: impl Into<Output<Option<Vec<RegionDiskGuestOsFeature>>>>, ) -> RegionDiskArgsBuilder<SetGuestOsFeatures<S>>
where S::GuestOsFeatures: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::compute::RegionDiskGuestOsFeature>>,
> as Default>::default()

A list of features to enable on the guest operating system. Applicable only for bootable disks. Structure is documented below.

source

pub fn maybe_guest_os_features( self, value: Option<impl Into<Output<Option<Vec<RegionDiskGuestOsFeature>>>>>, ) -> RegionDiskArgsBuilder<SetGuestOsFeatures<S>>
where S::GuestOsFeatures: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::compute::RegionDiskGuestOsFeature>>,
> as Default>::default()

A list of features to enable on the guest operating system. Applicable only for bootable disks. Structure is documented below.

source

pub fn interface( self, value: impl Into<Output<Option<String>>>, ) -> RegionDiskArgsBuilder<SetInterface<S>>
where S::Interface: IsUnset,

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

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI.

Warning: interface is deprecated and will be removed in a future major release. This field is no longer used and can be safely removed from your configurations; disk interfaces are automatically determined on attachment.

source

pub fn maybe_interface( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RegionDiskArgsBuilder<SetInterface<S>>
where S::Interface: IsUnset,

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

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI.

Warning: interface is deprecated and will be removed in a future major release. This field is no longer used and can be safely removed from your configurations; disk interfaces are automatically determined on attachment.

source

pub fn labels( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> RegionDiskArgsBuilder<SetLabels<S>>
where S::Labels: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

Labels to apply to this disk. A list of key->value pairs.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

source

pub fn maybe_labels( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> RegionDiskArgsBuilder<SetLabels<S>>
where S::Labels: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

Labels to apply to this disk. A list of key->value pairs.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

source

pub fn licenses( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> RegionDiskArgsBuilder<SetLicenses<S>>
where S::Licenses: IsUnset,

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

Any applicable license URI.

source

pub fn maybe_licenses( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> RegionDiskArgsBuilder<SetLicenses<S>>
where S::Licenses: IsUnset,

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

Any applicable license URI.

source

pub fn name( self, value: impl Into<Output<Option<String>>>, ) -> RegionDiskArgsBuilder<SetName<S>>
where S::Name: IsUnset,

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

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

source

pub fn maybe_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RegionDiskArgsBuilder<SetName<S>>
where S::Name: IsUnset,

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

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

source

pub fn physical_block_size_bytes( self, value: impl Into<Output<Option<i32>>>, ) -> RegionDiskArgsBuilder<SetPhysicalBlockSizeBytes<S>>
where S::PhysicalBlockSizeBytes: IsUnset,

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

Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller’s project.

source

pub fn maybe_physical_block_size_bytes( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> RegionDiskArgsBuilder<SetPhysicalBlockSizeBytes<S>>
where S::PhysicalBlockSizeBytes: IsUnset,

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

Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller’s project.

source

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

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

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

source

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

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

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

source

pub fn region( self, value: impl Into<Output<Option<String>>>, ) -> RegionDiskArgsBuilder<SetRegion<S>>
where S::Region: IsUnset,

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

A reference to the region where the disk resides.

source

pub fn maybe_region( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RegionDiskArgsBuilder<SetRegion<S>>
where S::Region: IsUnset,

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

A reference to the region where the disk resides.

source

pub fn replica_zones( self, value: impl Into<Output<Vec<String>>>, ) -> RegionDiskArgsBuilder<SetReplicaZones<S>>
where S::ReplicaZones: IsUnset,

Required.

URLs of the zones where the disk should be replicated to.


source

pub fn size( self, value: impl Into<Output<Option<i32>>>, ) -> RegionDiskArgsBuilder<SetSize<S>>
where S::Size: IsUnset,

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

Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot.

source

pub fn maybe_size( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> RegionDiskArgsBuilder<SetSize<S>>
where S::Size: IsUnset,

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

Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot.

source

pub fn snapshot( self, value: impl Into<Output<Option<String>>>, ) -> RegionDiskArgsBuilder<SetSnapshot<S>>
where S::Snapshot: IsUnset,

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

The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values:

  • https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
  • projects/project/global/snapshots/snapshot
  • global/snapshots/snapshot
source

pub fn maybe_snapshot( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RegionDiskArgsBuilder<SetSnapshot<S>>
where S::Snapshot: IsUnset,

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

The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values:

  • https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
  • projects/project/global/snapshots/snapshot
  • global/snapshots/snapshot
source

pub fn source_disk( self, value: impl Into<Output<Option<String>>>, ) -> RegionDiskArgsBuilder<SetSourceDisk<S>>
where S::SourceDisk: IsUnset,

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

The source disk used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values:

  • https://www.googleapis.com/compute/v1/projects/{project}/zones/{zone}/disks/{disk}
  • https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/disks/{disk}
  • projects/{project}/zones/{zone}/disks/{disk}
  • projects/{project}/regions/{region}/disks/{disk}
  • zones/{zone}/disks/{disk}
  • regions/{region}/disks/{disk}
source

pub fn maybe_source_disk( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RegionDiskArgsBuilder<SetSourceDisk<S>>
where S::SourceDisk: IsUnset,

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

The source disk used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values:

  • https://www.googleapis.com/compute/v1/projects/{project}/zones/{zone}/disks/{disk}
  • https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/disks/{disk}
  • projects/{project}/zones/{zone}/disks/{disk}
  • projects/{project}/regions/{region}/disks/{disk}
  • zones/{zone}/disks/{disk}
  • regions/{region}/disks/{disk}
source

pub fn source_snapshot_encryption_key( self, value: impl Into<Output<Option<RegionDiskSourceSnapshotEncryptionKey>>>, ) -> RegionDiskArgsBuilder<SetSourceSnapshotEncryptionKey<S>>
where S::SourceSnapshotEncryptionKey: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::RegionDiskSourceSnapshotEncryptionKey>,
> as Default>::default()

The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. Structure is documented below.

source

pub fn maybe_source_snapshot_encryption_key( self, value: Option<impl Into<Output<Option<RegionDiskSourceSnapshotEncryptionKey>>>>, ) -> RegionDiskArgsBuilder<SetSourceSnapshotEncryptionKey<S>>
where S::SourceSnapshotEncryptionKey: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::RegionDiskSourceSnapshotEncryptionKey>,
> as Default>::default()

The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. Structure is documented below.

source

pub fn type_( self, value: impl Into<Output<Option<String>>>, ) -> RegionDiskArgsBuilder<SetType<S>>
where S::Type: IsUnset,

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

URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.

source

pub fn maybe_type_( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RegionDiskArgsBuilder<SetType<S>>
where S::Type: IsUnset,

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

URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.

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.