Sha256: 7d899daa108837ede38caf64976748cca933f085e73ee3163e6342d84a93d220

Contents?: true

Size: 699 Bytes

Versions: 4

Compression:

Stored size: 699 Bytes

Contents

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

        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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-azure-rm-0.0.9 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-0.0.8 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-0.0.6 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-0.0.5 lib/fog/azurerm/models/storage/data_disk.rb