Sha256: 90fbaee9613f50825689b656dd385ea5cd1f71027366c14af6a6b6cfab5e81c9

Contents?: true

Size: 745 Bytes

Versions: 29

Compression:

Stored size: 745 Bytes

Contents

module Fog
  module Compute
    class AzureRM
      # CreationData model for Compute Service
      class CreationData < Fog::Model
        attribute :create_option
        attribute :storage_account_id
        attribute :source_uri
        attribute :source_resource_id
        attribute :image_reference

        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
      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/creation_data.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/models/compute/creation_data.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/models/compute/creation_data.rb
far-gem-0.5.6 lib/fog/azurerm/models/compute/creation_data.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/models/compute/creation_data.rb
far-gem-0.5.5 lib/fog/azurerm/models/compute/creation_data.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/models/compute/creation_data.rb
far-gem-0.5.4 lib/fog/azurerm/models/compute/creation_data.rb
far-gem-0.5.3 lib/fog/azurerm/models/compute/creation_data.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/models/compute/creation_data.rb
far-gem-0.5.2 lib/fog/azurerm/models/compute/creation_data.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/models/compute/creation_data.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/models/compute/creation_data.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/models/compute/creation_data.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/models/compute/creation_data.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/models/compute/creation_data.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/models/compute/creation_data.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/models/compute/creation_data.rb
far-gem-0.5.1 lib/fog/azurerm/models/compute/creation_data.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/models/compute/creation_data.rb