Class: Bosh::Director::DeploymentPlan::DiskType
- Defined in:
- lib/bosh/director/deployment_plan/disk_type.rb
Defined Under Namespace
Classes: DiskTypesParser
Instance Attribute Summary collapse
-
#cloud_properties ⇒ Hash
readonly
Cloud properties to use when creating VMs.
-
#disk_size ⇒ Integer
readonly
Disk size (or nil).
-
#name ⇒ String
readonly
Disk types name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, disk_size, cloud_properties) ⇒ DiskType
constructor
A new instance of DiskType.
- #spec ⇒ Object
Constructor Details
#initialize(name, disk_size, cloud_properties) ⇒ DiskType
Returns a new instance of DiskType.
18 19 20 21 22 |
# File 'lib/bosh/director/deployment_plan/disk_type.rb', line 18 def initialize(name, disk_size, cloud_properties) @name = name @disk_size = disk_size @cloud_properties = cloud_properties end |
Instance Attribute Details
#cloud_properties ⇒ Hash (readonly)
Returns cloud properties to use when creating VMs.
12 13 14 |
# File 'lib/bosh/director/deployment_plan/disk_type.rb', line 12 def cloud_properties @cloud_properties end |
#disk_size ⇒ Integer (readonly)
Returns Disk size (or nil).
9 10 11 |
# File 'lib/bosh/director/deployment_plan/disk_type.rb', line 9 def disk_size @disk_size end |
#name ⇒ String (readonly)
Returns Disk types name.
6 7 8 |
# File 'lib/bosh/director/deployment_plan/disk_type.rb', line 6 def name @name end |
Class Method Details
.parse(dp_spec) ⇒ Object
14 15 16 |
# File 'lib/bosh/director/deployment_plan/disk_type.rb', line 14 def self.parse(dp_spec) DiskTypesParser.new.parse(dp_spec) end |
Instance Method Details
#spec ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/bosh/director/deployment_plan/disk_type.rb', line 24 def spec { 'name' => name, 'disk_size' => disk_size, 'cloud_properties' => cloud_properties, } end |