Sha256: 1429f62855a1446c4a53d413bfd4b144c400a86205e20f48ba1c6ecd942315a3

Contents?: true

Size: 702 Bytes

Versions: 18

Compression:

Stored size: 702 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
        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

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
fog-azure-rm-temp-0.0.3 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-0.3.3 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-temp-0.0.2 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-temp-0.0.1 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-0.3.2 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-downgraded-0.3.1 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-0.3.1 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-downgraded-0.3.0 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-0.3.0 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-0.2.7 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-0.2.6 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-0.2.5 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-0.2.4 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-0.2.3 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-0.2.2 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-0.2.1 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-0.2.0 lib/fog/azurerm/models/storage/data_disk.rb
fog-azure-rm-0.1.2 lib/fog/azurerm/models/storage/data_disk.rb