Class: Google::Apis::ComputeV1::LocalDisk
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::LocalDisk
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb
Instance Attribute Summary collapse
-
#disk_count ⇒ Fixnum
Specifies the number of such disks.
-
#disk_size_gb ⇒ Fixnum
Specifies the size of the disk in base-2 GB.
-
#disk_type ⇒ String
Specifies the desired disk type on the node.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LocalDisk
constructor
A new instance of LocalDisk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LocalDisk
Returns a new instance of LocalDisk.
16034 16035 16036 |
# File 'generated/google/apis/compute_v1/classes.rb', line 16034 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_count ⇒ Fixnum
Specifies the number of such disks.
Corresponds to the JSON property diskCount
16020 16021 16022 |
# File 'generated/google/apis/compute_v1/classes.rb', line 16020 def disk_count @disk_count end |
#disk_size_gb ⇒ Fixnum
Specifies the size of the disk in base-2 GB.
Corresponds to the JSON property diskSizeGb
16025 16026 16027 |
# File 'generated/google/apis/compute_v1/classes.rb', line 16025 def disk_size_gb @disk_size_gb end |
#disk_type ⇒ String
Specifies the desired disk type on the node. This disk type must be a local
storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be
the name of the disk type and not its URL.
Corresponds to the JSON property diskType
16032 16033 16034 |
# File 'generated/google/apis/compute_v1/classes.rb', line 16032 def disk_type @disk_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16039 16040 16041 16042 16043 |
# File 'generated/google/apis/compute_v1/classes.rb', line 16039 def update!(**args) @disk_count = args[:disk_count] if args.key?(:disk_count) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @disk_type = args[:disk_type] if args.key?(:disk_type) end |