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>
impl<S: State> RegionDiskArgsBuilder<S>
sourcepub fn build_struct(self) -> RegionDiskArgswhere
S: IsComplete,
pub fn build_struct(self) -> RegionDiskArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn async_primary_disk(
self,
value: impl Into<Output<Option<RegionDiskAsyncPrimaryDisk>>>,
) -> RegionDiskArgsBuilder<SetAsyncPrimaryDisk<S>>where
S::AsyncPrimaryDisk: IsUnset,
pub fn async_primary_disk(
self,
value: impl Into<Output<Option<RegionDiskAsyncPrimaryDisk>>>,
) -> RegionDiskArgsBuilder<SetAsyncPrimaryDisk<S>>where
S::AsyncPrimaryDisk: IsUnset,
sourcepub fn maybe_async_primary_disk(
self,
value: Option<impl Into<Output<Option<RegionDiskAsyncPrimaryDisk>>>>,
) -> RegionDiskArgsBuilder<SetAsyncPrimaryDisk<S>>where
S::AsyncPrimaryDisk: IsUnset,
pub fn maybe_async_primary_disk(
self,
value: Option<impl Into<Output<Option<RegionDiskAsyncPrimaryDisk>>>>,
) -> RegionDiskArgsBuilder<SetAsyncPrimaryDisk<S>>where
S::AsyncPrimaryDisk: IsUnset,
sourcepub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> RegionDiskArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> RegionDiskArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RegionDiskArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RegionDiskArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn disk_encryption_key(
self,
value: impl Into<Output<Option<RegionDiskDiskEncryptionKey>>>,
) -> RegionDiskArgsBuilder<SetDiskEncryptionKey<S>>where
S::DiskEncryptionKey: IsUnset,
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.
sourcepub fn maybe_disk_encryption_key(
self,
value: Option<impl Into<Output<Option<RegionDiskDiskEncryptionKey>>>>,
) -> RegionDiskArgsBuilder<SetDiskEncryptionKey<S>>where
S::DiskEncryptionKey: IsUnset,
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.
sourcepub fn guest_os_features(
self,
value: impl Into<Output<Option<Vec<RegionDiskGuestOsFeature>>>>,
) -> RegionDiskArgsBuilder<SetGuestOsFeatures<S>>where
S::GuestOsFeatures: IsUnset,
pub fn guest_os_features(
self,
value: impl Into<Output<Option<Vec<RegionDiskGuestOsFeature>>>>,
) -> RegionDiskArgsBuilder<SetGuestOsFeatures<S>>where
S::GuestOsFeatures: IsUnset,
sourcepub fn maybe_guest_os_features(
self,
value: Option<impl Into<Output<Option<Vec<RegionDiskGuestOsFeature>>>>>,
) -> RegionDiskArgsBuilder<SetGuestOsFeatures<S>>where
S::GuestOsFeatures: IsUnset,
pub fn maybe_guest_os_features(
self,
value: Option<impl Into<Output<Option<Vec<RegionDiskGuestOsFeature>>>>>,
) -> RegionDiskArgsBuilder<SetGuestOsFeatures<S>>where
S::GuestOsFeatures: IsUnset,
sourcepub fn interface(
self,
value: impl Into<Output<Option<String>>>,
) -> RegionDiskArgsBuilder<SetInterface<S>>where
S::Interface: IsUnset,
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.
sourcepub fn maybe_interface(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RegionDiskArgsBuilder<SetInterface<S>>where
S::Interface: IsUnset,
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.
sourcepub fn labels(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> RegionDiskArgsBuilder<SetLabels<S>>where
S::Labels: IsUnset,
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.
sourcepub fn maybe_labels(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> RegionDiskArgsBuilder<SetLabels<S>>where
S::Labels: IsUnset,
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.
sourcepub fn licenses(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> RegionDiskArgsBuilder<SetLicenses<S>>where
S::Licenses: IsUnset,
pub fn licenses(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> RegionDiskArgsBuilder<SetLicenses<S>>where
S::Licenses: IsUnset,
sourcepub fn maybe_licenses(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> RegionDiskArgsBuilder<SetLicenses<S>>where
S::Licenses: IsUnset,
pub fn maybe_licenses(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> RegionDiskArgsBuilder<SetLicenses<S>>where
S::Licenses: IsUnset,
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> RegionDiskArgsBuilder<SetName<S>>where
S::Name: IsUnset,
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.
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RegionDiskArgsBuilder<SetName<S>>where
S::Name: IsUnset,
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.
sourcepub fn physical_block_size_bytes(
self,
value: impl Into<Output<Option<i32>>>,
) -> RegionDiskArgsBuilder<SetPhysicalBlockSizeBytes<S>>where
S::PhysicalBlockSizeBytes: IsUnset,
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.
sourcepub fn maybe_physical_block_size_bytes(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> RegionDiskArgsBuilder<SetPhysicalBlockSizeBytes<S>>where
S::PhysicalBlockSizeBytes: IsUnset,
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.
sourcepub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> RegionDiskArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> RegionDiskArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
sourcepub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RegionDiskArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RegionDiskArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
sourcepub fn region(
self,
value: impl Into<Output<Option<String>>>,
) -> RegionDiskArgsBuilder<SetRegion<S>>where
S::Region: IsUnset,
pub fn region(
self,
value: impl Into<Output<Option<String>>>,
) -> RegionDiskArgsBuilder<SetRegion<S>>where
S::Region: IsUnset,
sourcepub fn maybe_region(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RegionDiskArgsBuilder<SetRegion<S>>where
S::Region: IsUnset,
pub fn maybe_region(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RegionDiskArgsBuilder<SetRegion<S>>where
S::Region: IsUnset,
sourcepub fn replica_zones(
self,
value: impl Into<Output<Vec<String>>>,
) -> RegionDiskArgsBuilder<SetReplicaZones<S>>where
S::ReplicaZones: IsUnset,
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.
sourcepub fn size(
self,
value: impl Into<Output<Option<i32>>>,
) -> RegionDiskArgsBuilder<SetSize<S>>where
S::Size: IsUnset,
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.
sourcepub fn maybe_size(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> RegionDiskArgsBuilder<SetSize<S>>where
S::Size: IsUnset,
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.
sourcepub fn snapshot(
self,
value: impl Into<Output<Option<String>>>,
) -> RegionDiskArgsBuilder<SetSnapshot<S>>where
S::Snapshot: IsUnset,
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
sourcepub fn maybe_snapshot(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RegionDiskArgsBuilder<SetSnapshot<S>>where
S::Snapshot: IsUnset,
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
sourcepub fn source_disk(
self,
value: impl Into<Output<Option<String>>>,
) -> RegionDiskArgsBuilder<SetSourceDisk<S>>where
S::SourceDisk: IsUnset,
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}
sourcepub fn maybe_source_disk(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> RegionDiskArgsBuilder<SetSourceDisk<S>>where
S::SourceDisk: IsUnset,
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}
sourcepub fn source_snapshot_encryption_key(
self,
value: impl Into<Output<Option<RegionDiskSourceSnapshotEncryptionKey>>>,
) -> RegionDiskArgsBuilder<SetSourceSnapshotEncryptionKey<S>>where
S::SourceSnapshotEncryptionKey: IsUnset,
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.
sourcepub fn maybe_source_snapshot_encryption_key(
self,
value: Option<impl Into<Output<Option<RegionDiskSourceSnapshotEncryptionKey>>>>,
) -> RegionDiskArgsBuilder<SetSourceSnapshotEncryptionKey<S>>where
S::SourceSnapshotEncryptionKey: IsUnset,
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.