InstanceBootDiskInitializeParams class
Constructors
-
InstanceBootDiskInitializeParams({Input<String?>? architecture, Input<bool?>? enableConfidentialCompute, Input<String?>? image, Input<Map<String, String>?>? labels, Input<int?>? provisionedIops, Input<int?>? provisionedThroughput, Input<List<String>?>? replicaZones, Input<Map<String, String>?>? resourceManagerTags, Input<String?>? resourcePolicies, Input<int?>? size, Input<String?>? snapshot, Input<InstanceBootDiskInitializeParamsSourceImageEncryptionKey?>? sourceImageEncryptionKey, Input<InstanceBootDiskInitializeParamsSourceSnapshotEncryptionKey?>? sourceSnapshotEncryptionKey, Input<String?>? storagePool, Input<String?>? type})
-
Creates a new InstanceBootDiskInitializeParams.
architecture The architecture of the attached disk. Valid values are ARM64 or x8664.
enableConfidentialCompute Whether this disk is using confidential compute mode.
image The image from which to initialize this disk. This can be
labels A set of key/value label pairs assigned to the disk. This
provisionedIops Indicates how many IOPS to provision for the disk.
provisionedThroughput Indicates how much throughput to provision for the disk.
replicaZones A list of short names or selfLinks of zones in which to create the disk. Setting this field converts the disk to a regional disk. You must provide exactly two replica zones, and one zone must be the same as the instance zone.
resourceManagerTags A tag is a key-value pair that can be attached to a Google Cloud resource. You can use tags to conditionally allow or deny policies based on whether a resource has a specific tag. This value is not returned by the API. In Terraform, this value cannot be updated and changing it will recreate the resource.
resourcePolicies A list of selfLinks of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate, so any external values are not set until the user specifies this field. Currently a max of 1 resource policy is supported.
size The size of the image in gigabytes. If not specified, it
snapshot The snapshot from which to initialize this disk. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup
sourceImageEncryptionKey Encryption key used to decrypt the given image. Structure is documented below.
sourceSnapshotEncryptionKey Encryption key used to decrypt the given snapshot. Structure is documented below.
storagePool The URL or the name of the storage pool in which the new disk is created.
type The GCE disk type. Such as pd-standard, pd-balanced or pd-ssd.
const
-
InstanceBootDiskInitializeParams.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
architecture
→ Input<String?>?
-
The architecture of the attached disk. Valid values are
ARM64 or x8664.
final
-
enableConfidentialCompute
→ Input<bool?>?
-
Whether this disk is using confidential compute mode.
Note: Only supported on hyperdisk skus, diskEncryptionKey is required when setting to true.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
image
→ Input<String?>?
-
The image from which to initialize this disk. This can be
one of: the image's
selfLink, 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.
final
-
labels
→ Input<Map<String, String>?>?
-
A set of key/value label pairs assigned to the disk. This
field is only applicable for persistent disks.
final
-
provisionedIops
→ Input<int?>?
-
Indicates how many IOPS to provision for the disk.
This sets the number of I/O operations per second that the disk can handle.
For more details,see the Hyperdisk documentation.
Note: Updating currently is only supported for hyperdisk skus via disk update
api/gcloud 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.
final
-
provisionedThroughput
→ Input<int?>?
-
Indicates how much throughput to provision for the disk.
This sets the number of throughput mb per second that the disk can handle.
For more details,see the Hyperdisk documentation.
Note: Updating currently is only supported for hyperdisk skus via disk update
api/gcloud 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.
final
-
replicaZones
→ Input<List<String>?>?
-
A list of short names or selfLinks of zones in which to create the disk. Setting this field converts the disk to a regional disk. You must provide exactly two replica zones, and one zone must be the same as the instance zone.
final
-
resourceManagerTags
→ Input<Map<String, String>?>?
-
A tag is a key-value pair that can be attached to a Google Cloud resource. You can use tags to conditionally allow or deny policies based on whether a resource has a specific tag. This value is not returned by the API. In Terraform, this value cannot be updated and changing it will recreate the resource.
final
-
resourcePolicies
→ Input<String?>?
-
A list of selfLinks of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate, so any external values are not set until the user specifies this field. Currently a max of 1 resource policy is supported.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
size
→ Input<int?>?
-
The size of the image in gigabytes. If not specified, it
will inherit the size of its base image.
final
-
snapshot
→ Input<String?>?
-
The snapshot from which to initialize this disk. To create a disk with a snapshot that you created, specify the snapshot name in the following format:
global/snapshots/my-backup
final
-
sourceImageEncryptionKey
→ Input<InstanceBootDiskInitializeParamsSourceImageEncryptionKey?>?
-
Encryption key used to decrypt the given image. Structure is documented below.
final
-
sourceSnapshotEncryptionKey
→ Input<InstanceBootDiskInitializeParamsSourceSnapshotEncryptionKey?>?
-
Encryption key used to decrypt the given snapshot. Structure is documented below.
final
-
storagePool
→ Input<String?>?
-
The URL or the name of the storage pool in which the new disk is created.
For example:
final
-
type
→ Input<String?>?
-
The GCE disk type. Such as pd-standard, pd-balanced or pd-ssd.
final