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>
impl<S: State> DiskArgsBuilder<S>
sourcepub fn build_struct(self) -> DiskArgswhere
S: IsComplete,
pub fn build_struct(self) -> DiskArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn access_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskArgsBuilder<SetAccessMode<S>>where
S::AccessMode: IsUnset,
pub fn access_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskArgsBuilder<SetAccessMode<S>>where
S::AccessMode: IsUnset,
sourcepub fn maybe_access_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskArgsBuilder<SetAccessMode<S>>where
S::AccessMode: IsUnset,
pub fn maybe_access_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskArgsBuilder<SetAccessMode<S>>where
S::AccessMode: IsUnset,
sourcepub fn async_primary_disk(
self,
value: impl Into<Output<Option<DiskAsyncPrimaryDisk>>>,
) -> DiskArgsBuilder<SetAsyncPrimaryDisk<S>>where
S::AsyncPrimaryDisk: IsUnset,
pub fn async_primary_disk(
self,
value: impl Into<Output<Option<DiskAsyncPrimaryDisk>>>,
) -> DiskArgsBuilder<SetAsyncPrimaryDisk<S>>where
S::AsyncPrimaryDisk: IsUnset,
sourcepub fn maybe_async_primary_disk(
self,
value: Option<impl Into<Output<Option<DiskAsyncPrimaryDisk>>>>,
) -> DiskArgsBuilder<SetAsyncPrimaryDisk<S>>where
S::AsyncPrimaryDisk: IsUnset,
pub fn maybe_async_primary_disk(
self,
value: Option<impl Into<Output<Option<DiskAsyncPrimaryDisk>>>>,
) -> DiskArgsBuilder<SetAsyncPrimaryDisk<S>>where
S::AsyncPrimaryDisk: IsUnset,
sourcepub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn disk_encryption_key(
self,
value: impl Into<Output<Option<DiskDiskEncryptionKey>>>,
) -> DiskArgsBuilder<SetDiskEncryptionKey<S>>where
S::DiskEncryptionKey: IsUnset,
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.
sourcepub fn maybe_disk_encryption_key(
self,
value: Option<impl Into<Output<Option<DiskDiskEncryptionKey>>>>,
) -> DiskArgsBuilder<SetDiskEncryptionKey<S>>where
S::DiskEncryptionKey: IsUnset,
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.
sourcepub fn enable_confidential_compute(
self,
value: impl Into<Output<Option<bool>>>,
) -> DiskArgsBuilder<SetEnableConfidentialCompute<S>>where
S::EnableConfidentialCompute: IsUnset,
pub fn enable_confidential_compute(
self,
value: impl Into<Output<Option<bool>>>,
) -> DiskArgsBuilder<SetEnableConfidentialCompute<S>>where
S::EnableConfidentialCompute: IsUnset,
sourcepub fn maybe_enable_confidential_compute(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> DiskArgsBuilder<SetEnableConfidentialCompute<S>>where
S::EnableConfidentialCompute: IsUnset,
pub fn maybe_enable_confidential_compute(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> DiskArgsBuilder<SetEnableConfidentialCompute<S>>where
S::EnableConfidentialCompute: IsUnset,
sourcepub fn guest_os_features(
self,
value: impl Into<Output<Option<Vec<DiskGuestOsFeature>>>>,
) -> DiskArgsBuilder<SetGuestOsFeatures<S>>where
S::GuestOsFeatures: IsUnset,
pub fn guest_os_features(
self,
value: impl Into<Output<Option<Vec<DiskGuestOsFeature>>>>,
) -> DiskArgsBuilder<SetGuestOsFeatures<S>>where
S::GuestOsFeatures: IsUnset,
sourcepub fn maybe_guest_os_features(
self,
value: Option<impl Into<Output<Option<Vec<DiskGuestOsFeature>>>>>,
) -> DiskArgsBuilder<SetGuestOsFeatures<S>>where
S::GuestOsFeatures: IsUnset,
pub fn maybe_guest_os_features(
self,
value: Option<impl Into<Output<Option<Vec<DiskGuestOsFeature>>>>>,
) -> DiskArgsBuilder<SetGuestOsFeatures<S>>where
S::GuestOsFeatures: IsUnset,
sourcepub fn image(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskArgsBuilder<SetImage<S>>where
S::Image: IsUnset,
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.
sourcepub fn maybe_image(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskArgsBuilder<SetImage<S>>where
S::Image: IsUnset,
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.
sourcepub fn interface(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskArgsBuilder<SetInterface<S>>where
S::Interface: IsUnset,
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.
sourcepub fn maybe_interface(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskArgsBuilder<SetInterface<S>>where
S::Interface: IsUnset,
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.
sourcepub fn labels(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> DiskArgsBuilder<SetLabels<S>>where
S::Labels: IsUnset,
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.
sourcepub fn maybe_labels(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> DiskArgsBuilder<SetLabels<S>>where
S::Labels: IsUnset,
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.
sourcepub fn licenses(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> DiskArgsBuilder<SetLicenses<S>>where
S::Licenses: IsUnset,
pub fn licenses(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> DiskArgsBuilder<SetLicenses<S>>where
S::Licenses: IsUnset,
sourcepub fn maybe_licenses(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> DiskArgsBuilder<SetLicenses<S>>where
S::Licenses: IsUnset,
pub fn maybe_licenses(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> DiskArgsBuilder<SetLicenses<S>>where
S::Licenses: IsUnset,
sourcepub fn multi_writer(
self,
value: impl Into<Output<Option<bool>>>,
) -> DiskArgsBuilder<SetMultiWriter<S>>where
S::MultiWriter: IsUnset,
pub fn multi_writer(
self,
value: impl Into<Output<Option<bool>>>,
) -> DiskArgsBuilder<SetMultiWriter<S>>where
S::MultiWriter: IsUnset,
sourcepub fn maybe_multi_writer(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> DiskArgsBuilder<SetMultiWriter<S>>where
S::MultiWriter: IsUnset,
pub fn maybe_multi_writer(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> DiskArgsBuilder<SetMultiWriter<S>>where
S::MultiWriter: IsUnset,
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskArgsBuilder<SetName<S>>where
S::Name: IsUnset,
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.
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskArgsBuilder<SetName<S>>where
S::Name: IsUnset,
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.
sourcepub fn physical_block_size_bytes(
self,
value: impl Into<Output<Option<i32>>>,
) -> DiskArgsBuilder<SetPhysicalBlockSizeBytes<S>>where
S::PhysicalBlockSizeBytes: IsUnset,
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.
sourcepub fn maybe_physical_block_size_bytes(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> DiskArgsBuilder<SetPhysicalBlockSizeBytes<S>>where
S::PhysicalBlockSizeBytes: IsUnset,
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.
sourcepub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
sourcepub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
sourcepub fn provisioned_iops(
self,
value: impl Into<Output<Option<i32>>>,
) -> DiskArgsBuilder<SetProvisionedIops<S>>where
S::ProvisionedIops: IsUnset,
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
sourcepub fn maybe_provisioned_iops(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> DiskArgsBuilder<SetProvisionedIops<S>>where
S::ProvisionedIops: IsUnset,
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
sourcepub fn provisioned_throughput(
self,
value: impl Into<Output<Option<i32>>>,
) -> DiskArgsBuilder<SetProvisionedThroughput<S>>where
S::ProvisionedThroughput: IsUnset,
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
sourcepub fn maybe_provisioned_throughput(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> DiskArgsBuilder<SetProvisionedThroughput<S>>where
S::ProvisionedThroughput: IsUnset,
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
sourcepub fn resource_policies(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> DiskArgsBuilder<SetResourcePolicies<S>>where
S::ResourcePolicies: IsUnset,
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.
sourcepub fn maybe_resource_policies(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> DiskArgsBuilder<SetResourcePolicies<S>>where
S::ResourcePolicies: IsUnset,
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.
sourcepub fn size(
self,
value: impl Into<Output<Option<i32>>>,
) -> DiskArgsBuilder<SetSize<S>>where
S::Size: IsUnset,
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.
sourcepub fn maybe_size(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> DiskArgsBuilder<SetSize<S>>where
S::Size: IsUnset,
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.
sourcepub fn snapshot(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskArgsBuilder<SetSnapshot<S>>where
S::Snapshot: IsUnset,
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
sourcepub fn maybe_snapshot(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskArgsBuilder<SetSnapshot<S>>where
S::Snapshot: IsUnset,
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
sourcepub fn source_disk(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskArgsBuilder<SetSourceDisk<S>>where
S::SourceDisk: IsUnset,
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}
sourcepub fn maybe_source_disk(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskArgsBuilder<SetSourceDisk<S>>where
S::SourceDisk: IsUnset,
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}
sourcepub fn source_image_encryption_key(
self,
value: impl Into<Output<Option<DiskSourceImageEncryptionKey>>>,
) -> DiskArgsBuilder<SetSourceImageEncryptionKey<S>>where
S::SourceImageEncryptionKey: IsUnset,
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.
sourcepub fn maybe_source_image_encryption_key(
self,
value: Option<impl Into<Output<Option<DiskSourceImageEncryptionKey>>>>,
) -> DiskArgsBuilder<SetSourceImageEncryptionKey<S>>where
S::SourceImageEncryptionKey: IsUnset,
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.
sourcepub fn source_snapshot_encryption_key(
self,
value: impl Into<Output<Option<DiskSourceSnapshotEncryptionKey>>>,
) -> DiskArgsBuilder<SetSourceSnapshotEncryptionKey<S>>where
S::SourceSnapshotEncryptionKey: IsUnset,
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.
sourcepub fn maybe_source_snapshot_encryption_key(
self,
value: Option<impl Into<Output<Option<DiskSourceSnapshotEncryptionKey>>>>,
) -> DiskArgsBuilder<SetSourceSnapshotEncryptionKey<S>>where
S::SourceSnapshotEncryptionKey: IsUnset,
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.
sourcepub fn storage_pool(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskArgsBuilder<SetStoragePool<S>>where
S::StoragePool: IsUnset,
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}
sourcepub fn maybe_storage_pool(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskArgsBuilder<SetStoragePool<S>>where
S::StoragePool: IsUnset,
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}