Class: Google::Apis::LifesciencesV2beta::PersistentDisk
- Inherits:
-
Object
- Object
- Google::Apis::LifesciencesV2beta::PersistentDisk
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/lifesciences_v2beta/classes.rb,
lib/google/apis/lifesciences_v2beta/representations.rb,
lib/google/apis/lifesciences_v2beta/representations.rb
Overview
Configuration for a persistent disk to be attached to the VM. See https:// cloud.google.com/compute/docs/disks/performance for more information about disk type, size, and performance considerations.
Instance Attribute Summary collapse
-
#size_gb ⇒ Fixnum
The size, in GB, of the disk to attach.
-
#source_image ⇒ String
An image to put on the disk before attaching it to the VM.
-
#type ⇒ String
The Compute Engine disk type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PersistentDisk
constructor
A new instance of PersistentDisk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PersistentDisk
Returns a new instance of PersistentDisk.
933 934 935 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 933 def initialize(**args) update!(**args) end |
Instance Attribute Details
#size_gb ⇒ Fixnum
The size, in GB, of the disk to attach. If the size is not specified, a
default is chosen to ensure reasonable I/O performance. If the disk type is
specified as local-ssd
, multiple local drives are automatically combined to
provide the requested size. Note, however, that each physical SSD is 375GB in
size, and no more than 8 drives can be attached to a single instance.
Corresponds to the JSON property sizeGb
921 922 923 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 921 def size_gb @size_gb end |
#source_image ⇒ String
An image to put on the disk before attaching it to the VM.
Corresponds to the JSON property sourceImage
926 927 928 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 926 def source_image @source_image end |
#type ⇒ String
The Compute Engine disk type. If unspecified, pd-standard
is used.
Corresponds to the JSON property type
931 932 933 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 931 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
938 939 940 941 942 |
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 938 def update!(**args) @size_gb = args[:size_gb] if args.key?(:size_gb) @source_image = args[:source_image] if args.key?(:source_image) @type = args[:type] if args.key?(:type) end |