Class: Google::Apis::GenomicsV1alpha2::Disk
- Inherits:
-
Object
- Object
- Google::Apis::GenomicsV1alpha2::Disk
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/genomics_v1alpha2/classes.rb,
generated/google/apis/genomics_v1alpha2/representations.rb,
generated/google/apis/genomics_v1alpha2/representations.rb
Overview
A Google Compute Engine disk resource specification.
Instance Attribute Summary collapse
-
#auto_delete ⇒ Boolean
(also: #auto_delete?)
Deprecated.
-
#mount_point ⇒ String
Required at create time and cannot be overridden at run time.
-
#name ⇒ String
Required.
-
#read_only ⇒ Boolean
(also: #read_only?)
Specifies how a sourced-base persistent disk will be mounted.
-
#size_gb ⇒ Fixnum
The size of the disk.
-
#source ⇒ String
The full or partial URL of the persistent disk to attach.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Disk
constructor
A new instance of Disk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Disk
Returns a new instance of Disk
289 290 291 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 289 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auto_delete ⇒ Boolean Also known as: auto_delete?
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.
Corresponds to the JSON property autoDelete
239 240 241 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 239 def auto_delete @auto_delete end |
#mount_point ⇒ 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
.
Corresponds to the JSON property mountPoint
250 251 252 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 250 def mount_point @mount_point end |
#name ⇒ String
Required. 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.
Corresponds to the JSON property name
257 258 259 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 257 def name @name end |
#read_only ⇒ Boolean Also known as: read_only?
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.
Corresponds to the JSON property readOnly
266 267 268 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 266 def read_only @read_only end |
#size_gb ⇒ Fixnum
The size of the disk. Defaults to 500 (GB).
This field is not applicable for local SSD.
Corresponds to the JSON property sizeGb
273 274 275 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 273 def size_gb @size_gb end |
#source ⇒ 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.
Corresponds to the JSON property source
282 283 284 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 282 def source @source end |
#type ⇒ String
Required. The type of the disk to create.
Corresponds to the JSON property type
287 288 289 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 287 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
294 295 296 297 298 299 300 301 302 |
# File 'generated/google/apis/genomics_v1alpha2/classes.rb', line 294 def update!(**args) @auto_delete = args[:auto_delete] if args.key?(:auto_delete) @mount_point = args[:mount_point] if args.key?(:mount_point) @name = args[:name] if args.key?(:name) @read_only = args[:read_only] if args.key?(:read_only) @size_gb = args[:size_gb] if args.key?(:size_gb) @source = args[:source] if args.key?(:source) @type = args[:type] if args.key?(:type) end |