Disk constructor

const Disk({
  1. Input<bool>? autoDelete,
  2. Input<String>? mountPoint,
  3. required Input<String> name,
  4. Input<bool>? readOnly,
  5. Input<int>? sizeGb,
  6. Input<String>? source,
  7. 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.

Implementation

const Disk({
  this.autoDelete,
  this.mountPoint,
  required this.name,
  this.readOnly,
  this.sizeGb,
  this.source,
  required this.type,
});