Sha256: e2d0b07a12b023afd223fb89ec9e110ad76023dc61c836deaa44fb52f54f84a5
Contents?: true
Size: 871 Bytes
Versions: 1
Compression:
Stored size: 871 Bytes
Contents
module Fog module Resources class AzureRM # Dependency model class class Dependency < Fog::Model attribute :id attribute :resource_name attribute :resource_type attribute :depends_on def self.parse(dependency) hash = {} hash['id'] = dependency['id'] hash['resource_name'] = dependency['resourceName'] hash['resource_type'] = dependency['resourceType'] hash['depends_on'] = [] dependency['dependsOn'].each do |sub_dependency| dependency_obj = Fog::Resources::AzureRM::Dependency.new hash['depends_on'] << dependency_obj.merge_attributes(Fog::Resources::AzureRM::Dependency.parse(sub_dependency)) end unless dependency['dependsOn'].nil? hash end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.4 | lib/fog/azurerm/models/resources/dependency.rb |