Sha256: 6d4aab0376a079edb79ac37b4a1d06a36543c4241c5539afb414627d83fd800c

Contents?: true

Size: 839 Bytes

Versions: 62

Compression:

Stored size: 839 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.resource_name
          hash['resource_type'] = dependency.resource_type

          hash['depends_on'] = []
          dependency.depends_on.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 if dependency.respond_to?('depends_on')
          hash
        end
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 5 rubygems

Version Path
gitlab-fog-azure-rm-1.8.0 lib/fog/azurerm/models/resources/dependency.rb
gitlab-fog-azure-rm-1.7.0 lib/fog/azurerm/models/resources/dependency.rb
gitlab-fog-azure-rm-1.6.0 lib/fog/azurerm/models/resources/dependency.rb
gitlab-fog-azure-rm-1.5.0 lib/fog/azurerm/models/resources/dependency.rb
gitlab-fog-azure-rm-1.4.0 lib/fog/azurerm/models/resources/dependency.rb
gitlab-fog-azure-rm-1.3.0 lib/fog/azurerm/models/resources/dependency.rb
fog-azure-rm-0.6.0 lib/fog/azurerm/models/resources/dependency.rb
gitlab-fog-azure-rm-1.2.0 lib/fog/azurerm/models/resources/dependency.rb
gitlab-fog-azure-rm-1.1.1 lib/fog/azurerm/models/resources/dependency.rb
gitlab-fog-azure-rm-1.0.1 lib/fog/azurerm/models/resources/dependency.rb
gitlab-fog-azure-rm-1.0.0 lib/fog/azurerm/models/resources/dependency.rb
gitlab-fog-azure-rm-0.9.0 lib/fog/azurerm/models/resources/dependency.rb
gitlab-fog-azure-rm-0.8.1 lib/fog/azurerm/models/resources/dependency.rb
gitlab-fog-azure-rm-0.8.0 lib/fog/azurerm/models/resources/dependency.rb
gitlab-fog-azure-rm-0.7.0 lib/fog/azurerm/models/resources/dependency.rb
gitlab-fog-azure-rm-0.6.0 lib/fog/azurerm/models/resources/dependency.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/models/resources/dependency.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/models/resources/dependency.rb
far-gem-0.5.6 lib/fog/azurerm/models/resources/dependency.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/models/resources/dependency.rb