lib/fog/azurerm/models/storage/data_disk.rb in fog-azure-rm-0.0.4 vs lib/fog/azurerm/models/storage/data_disk.rb in fog-azure-rm-0.0.5
- old
+ new
@@ -10,15 +10,15 @@
attribute :caching
attribute :create_option
def self.parse(disk)
hash = {}
- hash['name'] = disk['name']
- hash['disk_size_gb'] = disk['diskSizeGB']
- hash['lun'] = disk['lun']
- hash['vhd_uri'] = disk['vhd']['uri']
- hash['caching'] = disk['caching'] unless disk['caching'].nil?
- hash['create_option'] = disk['createOption']
+ hash['name'] = disk.name
+ hash['disk_size_gb'] = disk.disk_size_gb
+ hash['lun'] = disk.lun
+ hash['vhd_uri'] = disk.vhd.uri
+ hash['caching'] = disk.caching unless disk.caching.nil?
+ hash['create_option'] = disk.create_option
hash
end
end
end
end