Disk class

A Google Compute Engine disk resource specification.

Constructors

Disk({Input<bool>? autoDelete, Input<String>? mountPoint, required Input<String> name, Input<bool>? readOnly, Input<int>? sizeGb, Input<String>? source, required Input<DiskType> type})
Creates a new Disk. autoDelete Deprecated. Disks created by the Pipelines API will be deleted at the end of the pipeline run, regardless of what this field is set to. mountPoint Required at create time and cannot be overridden at run time. Specifies the path in the docker container where files on this disk should be located. For example, if mountPoint is /mnt/disk, and the parameter has localPath inputs/file.txt, the docker container can access the data at /mnt/disk/inputs/file.txt. name The name of the disk that can be used in the pipeline parameters. Must be 1 - 63 characters. The name "boot" is reserved for system use. readOnly Specifies how a sourced-base persistent disk will be mounted. See https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances for more details. Can only be set at create time. sizeGb The size of the disk. Defaults to 500 (GB). This field is not applicable for local SSD. source The full or partial URL of the persistent disk to attach. See https://cloud.google.com/compute/docs/reference/latest/instances#resource and https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots for more details. type The type of the disk to create.
const
Disk.fromMap(Map<String, dynamic> map)
factory

Properties

autoDelete → Input<bool>?
Deprecated. Disks created by the Pipelines API will be deleted at the end of the pipeline run, regardless of what this field is set to.
final
hashCode → int
The hash code for this object.
no setterinherited
mountPoint → Input<String>?
Required at create time and cannot be overridden at run time. Specifies the path in the docker container where files on this disk should be located. For example, if mountPoint is /mnt/disk, and the parameter has localPath inputs/file.txt, the docker container can access the data at /mnt/disk/inputs/file.txt.
final
name → Input<String>
The name of the disk that can be used in the pipeline parameters. Must be 1 - 63 characters. The name "boot" is reserved for system use.
final
readOnly → Input<bool>?
Specifies how a sourced-base persistent disk will be mounted. See https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances for more details. Can only be set at create time.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizeGb → Input<int>?
The size of the disk. Defaults to 500 (GB). This field is not applicable for local SSD.
final
source → Input<String>?
The full or partial URL of the persistent disk to attach. See https://cloud.google.com/compute/docs/reference/latest/instances#resource and https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots for more details.
final
type → Input<DiskType>
The type of the disk to create.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited