lib/fog/azurerm/models/storage/data_disk.rb in fog-azure-rm-0.1.1 vs lib/fog/azurerm/models/storage/data_disk.rb in fog-azure-rm-0.1.2

- old
+ new

@@ -1,27 +1,27 @@ -module Fog - module Storage - class AzureRM - # DataDisk Model for Storage Service - class DataDisk < Fog::Model - identity :name - attribute :disk_size_gb - attribute :lun - attribute :vhd_uri - attribute :caching - attribute :create_option - attribute :file_path - - def self.parse(disk) - hash = {} - 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 -end +module Fog + module Storage + class AzureRM + # DataDisk Model for Storage Service + class DataDisk < Fog::Model + identity :name + attribute :disk_size_gb + attribute :lun + attribute :vhd_uri + attribute :caching + attribute :create_option + attribute :file_path + + def self.parse(disk) + hash = {} + 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 +end