Sha256: e651a2b7dd9b9a4c64baa61518f16deb9cc4d2cabfc75740cdfe7302606c8bd3

Contents?: true

Size: 758 Bytes

Versions: 29

Compression:

Stored size: 758 Bytes

Contents

module Fog
  module Compute
    class AzureRM
      # DataDisk Model for Compute Service
      class DataDisk < Fog::Model
        identity  :name
        attribute :disk_size_gb
        attribute :lun
        attribute :caching
        attribute :create_option
        # For these composite objects we ONLY need one field
        attribute :vhd_uri
        attribute :image_uri
        attribute :managed_disk_id

        def self.parse(disk)
          disk_hash = get_hash_from_object(disk)
          disk_hash['vhd_uri'] = disk.vhd.uri if disk.vhd
          disk_hash['image_uri'] = disk.image.uri if disk.image
          disk_hash['managed_disk_id'] = disk.managed_disk.id if disk.managed_disk
          disk_hash
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
fog-azure-rm-0.6.0 lib/fog/azurerm/models/compute/data_disk.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/models/compute/data_disk.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/models/compute/data_disk.rb
far-gem-0.5.6 lib/fog/azurerm/models/compute/data_disk.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/models/compute/data_disk.rb
far-gem-0.5.5 lib/fog/azurerm/models/compute/data_disk.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/models/compute/data_disk.rb
far-gem-0.5.4 lib/fog/azurerm/models/compute/data_disk.rb
far-gem-0.5.3 lib/fog/azurerm/models/compute/data_disk.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/models/compute/data_disk.rb
far-gem-0.5.2 lib/fog/azurerm/models/compute/data_disk.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/models/compute/data_disk.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/models/compute/data_disk.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/models/compute/data_disk.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/models/compute/data_disk.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/models/compute/data_disk.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/models/compute/data_disk.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/models/compute/data_disk.rb
far-gem-0.5.1 lib/fog/azurerm/models/compute/data_disk.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/models/compute/data_disk.rb