Class: Fog::Compute::AzureRM::CreationData
- Inherits:
-
Model
- Object
- Model
- Fog::Compute::AzureRM::CreationData
- Defined in:
- lib/fog/azurerm/models/compute/creation_data.rb
Overview
CreationData model for Compute Service
Class Method Summary collapse
Class Method Details
.parse(creation_data) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/fog/azurerm/models/compute/creation_data.rb', line 12 def self.parse(creation_data) data = get_hash_from_object(creation_data) unless creation_data.image_reference.nil? image_reference = Fog::Compute::AzureRM::ImageDiskReference.new data['image_reference'] = image_reference.merge_attributes(Fog::Compute::AzureRM::ImageDiskReference.parse(creation_data.image_reference)) end data end |