pulumi_wasm_providers_gcp_mini::compute::disk

Struct DiskArgsBuilder

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

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

Implementations§

source§

impl<S: State> DiskArgsBuilder<S>

source

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

Finish building and return the requested object

source

pub fn access_mode( self, value: impl Into<Output<Option<String>>>, ) -> DiskArgsBuilder<SetAccessMode<S>>
where S::AccessMode: IsUnset,

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

The accessMode of the disk. For example:

  • READ_WRITE_SINGLE
  • READ_WRITE_MANY
  • READ_ONLY_SINGLE
source

pub fn maybe_access_mode( self, value: Option<impl Into<Output<Option<String>>>>, ) -> DiskArgsBuilder<SetAccessMode<S>>
where S::AccessMode: IsUnset,

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

The accessMode of the disk. For example:

  • READ_WRITE_SINGLE
  • READ_WRITE_MANY
  • READ_ONLY_SINGLE
source

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

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::DiskAsyncPrimaryDisk>,
> 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<DiskAsyncPrimaryDisk>>>>, ) -> DiskArgsBuilder<SetAsyncPrimaryDisk<S>>
where S::AsyncPrimaryDisk: IsUnset,

Optional (Some / Option setters). Default:

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

A nested object resource. Structure is documented below.

source

pub fn description( self, value: impl Into<Output<Option<String>>>, ) -> DiskArgsBuilder<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>>>>, ) -> DiskArgsBuilder<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<DiskDiskEncryptionKey>>>, ) -> DiskArgsBuilder<SetDiskEncryptionKey<S>>
where S::DiskEncryptionKey: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::DiskDiskEncryptionKey>,
> 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<DiskDiskEncryptionKey>>>>, ) -> DiskArgsBuilder<SetDiskEncryptionKey<S>>
where S::DiskEncryptionKey: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::DiskDiskEncryptionKey>,
> 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 enable_confidential_compute( self, value: impl Into<Output<Option<bool>>>, ) -> DiskArgsBuilder<SetEnableConfidentialCompute<S>>
where S::EnableConfidentialCompute: IsUnset,

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

Whether this disk is using confidential compute mode. Note: Only supported on hyperdisk skus, disk_encryption_key is required when setting to true

source

pub fn maybe_enable_confidential_compute( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> DiskArgsBuilder<SetEnableConfidentialCompute<S>>
where S::EnableConfidentialCompute: IsUnset,

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

Whether this disk is using confidential compute mode. Note: Only supported on hyperdisk skus, disk_encryption_key is required when setting to true

source

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

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::compute::DiskGuestOsFeature>>,
> 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<DiskGuestOsFeature>>>>>, ) -> DiskArgsBuilder<SetGuestOsFeatures<S>>
where S::GuestOsFeatures: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::compute::DiskGuestOsFeature>>,
> 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 image( self, value: impl Into<Output<Option<String>>>, ) -> DiskArgsBuilder<SetImage<S>>
where S::Image: IsUnset,

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

The image from which to initialize this disk. This can be one of: the image’s self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}. If referred by family, the images names must include the family name. If they don’t, use the gcp.compute.Image data source. For instance, the image centos-6-v20180104 includes its family name centos-6. These images can be referred by family name here.

source

pub fn maybe_image( self, value: Option<impl Into<Output<Option<String>>>>, ) -> DiskArgsBuilder<SetImage<S>>
where S::Image: IsUnset,

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

The image from which to initialize this disk. This can be one of: the image’s self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}. If referred by family, the images names must include the family name. If they don’t, use the gcp.compute.Image data source. For instance, the image centos-6-v20180104 includes its family name centos-6. These images can be referred by family name here.

source

pub fn interface( self, value: impl Into<Output<Option<String>>>, ) -> DiskArgsBuilder<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>>>>, ) -> DiskArgsBuilder<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>>>>, ) -> DiskArgsBuilder<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>>>>>, ) -> DiskArgsBuilder<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>>>>, ) -> DiskArgsBuilder<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>>>>>, ) -> DiskArgsBuilder<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 multi_writer( self, value: impl Into<Output<Option<bool>>>, ) -> DiskArgsBuilder<SetMultiWriter<S>>
where S::MultiWriter: IsUnset,

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

Indicates whether or not the disk can be read/write attached to more than one instance.

source

pub fn maybe_multi_writer( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> DiskArgsBuilder<SetMultiWriter<S>>
where S::MultiWriter: IsUnset,

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

Indicates whether or not the disk can be read/write attached to more than one instance.

source

pub fn name( self, value: impl Into<Output<Option<String>>>, ) -> DiskArgsBuilder<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>>>>, ) -> DiskArgsBuilder<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>>>, ) -> DiskArgsBuilder<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>>>>, ) -> DiskArgsBuilder<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>>>, ) -> DiskArgsBuilder<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>>>>, ) -> DiskArgsBuilder<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 provisioned_iops( self, value: impl Into<Output<Option<i32>>>, ) -> DiskArgsBuilder<SetProvisionedIops<S>>
where S::ProvisionedIops: IsUnset,

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

Indicates how many IOPS must be provisioned for the disk. Note: Updating currently is only supported by hyperdisk skus without the need to delete and recreate the disk, hyperdisk allows for an update of IOPS every 4 hours. To update your hyperdisk more frequently, you’ll need to manually delete and recreate it

source

pub fn maybe_provisioned_iops( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> DiskArgsBuilder<SetProvisionedIops<S>>
where S::ProvisionedIops: IsUnset,

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

Indicates how many IOPS must be provisioned for the disk. Note: Updating currently is only supported by hyperdisk skus without the need to delete and recreate the disk, hyperdisk allows for an update of IOPS every 4 hours. To update your hyperdisk more frequently, you’ll need to manually delete and recreate it

source

pub fn provisioned_throughput( self, value: impl Into<Output<Option<i32>>>, ) -> DiskArgsBuilder<SetProvisionedThroughput<S>>
where S::ProvisionedThroughput: IsUnset,

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

Indicates how much Throughput must be provisioned for the disk. Note: Updating currently is only supported by hyperdisk skus without the need to delete and recreate the disk, hyperdisk allows for an update of Throughput every 4 hours. To update your hyperdisk more frequently, you’ll need to manually delete and recreate it

source

pub fn maybe_provisioned_throughput( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> DiskArgsBuilder<SetProvisionedThroughput<S>>
where S::ProvisionedThroughput: IsUnset,

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

Indicates how much Throughput must be provisioned for the disk. Note: Updating currently is only supported by hyperdisk skus without the need to delete and recreate the disk, hyperdisk allows for an update of Throughput every 4 hours. To update your hyperdisk more frequently, you’ll need to manually delete and recreate it

source

pub fn resource_policies( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> DiskArgsBuilder<SetResourcePolicies<S>>
where S::ResourcePolicies: IsUnset,

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

Resource policies applied to this disk for automatic snapshot creations. ~>NOTE This value does not support updating the resource policy, as resource policies can not be updated more than one at a time. Use gcp.compute.DiskResourcePolicyAttachment to allow for updating the resource policy attached to the disk.

source

pub fn maybe_resource_policies( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> DiskArgsBuilder<SetResourcePolicies<S>>
where S::ResourcePolicies: IsUnset,

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

Resource policies applied to this disk for automatic snapshot creations. ~>NOTE This value does not support updating the resource policy, as resource policies can not be updated more than one at a time. Use gcp.compute.DiskResourcePolicyAttachment to allow for updating the resource policy attached to the disk.

source

pub fn size( self, value: impl Into<Output<Option<i32>>>, ) -> DiskArgsBuilder<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 image or snapshot parameter, or specify it alone to create an empty persistent disk. If you specify this field along with image or snapshot, the value must not be less than the size of the image or the size of the snapshot. ~>NOTE If you change the size, the provider updates the disk size if upsizing is detected but recreates the disk if downsizing is requested. You can add lifecycle.prevent_destroy in the config to prevent destroying and recreating.

source

pub fn maybe_size( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> DiskArgsBuilder<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 image or snapshot parameter, or specify it alone to create an empty persistent disk. If you specify this field along with image or snapshot, the value must not be less than the size of the image or the size of the snapshot. ~>NOTE If you change the size, the provider updates the disk size if upsizing is detected but recreates the disk if downsizing is requested. You can add lifecycle.prevent_destroy in the config to prevent destroying and recreating.

source

pub fn snapshot( self, value: impl Into<Output<Option<String>>>, ) -> DiskArgsBuilder<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. If the snapshot is in another project than this disk, you must supply a full URL. 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>>>>, ) -> DiskArgsBuilder<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. If the snapshot is in another project than this disk, you must supply a full URL. 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>>>, ) -> DiskArgsBuilder<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>>>>, ) -> DiskArgsBuilder<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_image_encryption_key( self, value: impl Into<Output<Option<DiskSourceImageEncryptionKey>>>, ) -> DiskArgsBuilder<SetSourceImageEncryptionKey<S>>
where S::SourceImageEncryptionKey: IsUnset,

Optional (Some / Option setters). Default:

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

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

source

pub fn maybe_source_image_encryption_key( self, value: Option<impl Into<Output<Option<DiskSourceImageEncryptionKey>>>>, ) -> DiskArgsBuilder<SetSourceImageEncryptionKey<S>>
where S::SourceImageEncryptionKey: IsUnset,

Optional (Some / Option setters). Default:

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

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

source

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

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::DiskSourceSnapshotEncryptionKey>,
> 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<DiskSourceSnapshotEncryptionKey>>>>, ) -> DiskArgsBuilder<SetSourceSnapshotEncryptionKey<S>>
where S::SourceSnapshotEncryptionKey: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::DiskSourceSnapshotEncryptionKey>,
> 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 storage_pool( self, value: impl Into<Output<Option<String>>>, ) -> DiskArgsBuilder<SetStoragePool<S>>
where S::StoragePool: IsUnset,

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

The URL or the name of the storage pool in which the new disk is created. For example:

  • https://www.googleapis.com/compute/v1/projects/{project}/zones/{zone}/storagePools/{storagePool}
  • /projects/{project}/zones/{zone}/storagePools/{storagePool}
  • /zones/{zone}/storagePools/{storagePool}
  • /{storagePool}
source

pub fn maybe_storage_pool( self, value: Option<impl Into<Output<Option<String>>>>, ) -> DiskArgsBuilder<SetStoragePool<S>>
where S::StoragePool: IsUnset,

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

The URL or the name of the storage pool in which the new disk is created. For example:

  • https://www.googleapis.com/compute/v1/projects/{project}/zones/{zone}/storagePools/{storagePool}
  • /projects/{project}/zones/{zone}/storagePools/{storagePool}
  • /zones/{zone}/storagePools/{storagePool}
  • /{storagePool}
source

pub fn type_( self, value: impl Into<Output<Option<String>>>, ) -> DiskArgsBuilder<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>>>>, ) -> DiskArgsBuilder<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 zone( self, value: impl Into<Output<Option<String>>>, ) -> DiskArgsBuilder<SetZone<S>>
where S::Zone: IsUnset,

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

A reference to the zone where the disk resides.

source

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

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

A reference to the zone where the disk resides.

Auto Trait Implementations§

§

impl<S> Freeze for DiskArgsBuilder<S>

§

impl<S> RefUnwindSafe for DiskArgsBuilder<S>

§

impl<S> Send for DiskArgsBuilder<S>

§

impl<S> Sync for DiskArgsBuilder<S>

§

impl<S> Unpin for DiskArgsBuilder<S>

§

impl<S> UnwindSafe for DiskArgsBuilder<S>

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.