Sha256: 52bda9e1de582f032c07a8c73cd577da1c3b3216b50b3cdf065fbd8651637d3c
Contents?: true
Size: 704 Bytes
Versions: 1
Compression:
Stored size: 704 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 :vhd_uri attribute :caching attribute :create_option def self.parse(vm) hash = {} hash['name'] = vm['name'] hash['disk_size_gb'] = vm['diskSizeGB'] hash['lun'] = vm['lun'] hash['vhd_uri'] = vm['vhd']['uri'] hash['caching'] = vm['caching'] unless vm['caching'].nil? hash['create_option'] = vm['createOption'] hash end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.3 | lib/fog/azurerm/models/compute/data_disk.rb |