Sha256: 15dd89480ac85fe6914678cec84d8f44ba414c7680dcecf51a88f2fd1d9d508a

Contents?: true

Size: 910 Bytes

Versions: 62

Compression:

Stored size: 910 Bytes

Contents

module Fog
  module Resources
    class AzureRM
      # Provider model class
      class Provider < Fog::Model
        attribute :id
        attribute :namespace
        attribute :registration_state
        attribute :resource_types

        def self.parse(provider)
          hash = {}
          hash['id'] = provider.id
          hash['namespace'] = provider.namespace
          hash['registration_state'] = provider.registration_state if provider.respond_to?('registration_state')

          hash['resource_types'] = []
          provider.resource_types.each do |provider_resource_type|
            provider_resource_type_obj = Fog::Resources::AzureRM::ProviderResourceType.new
            hash['resource_types'] << provider_resource_type_obj.merge_attributes(Fog::Resources::AzureRM::ProviderResourceType.parse(provider_resource_type))
          end
          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/provider.rb
gitlab-fog-azure-rm-1.7.0 lib/fog/azurerm/models/resources/provider.rb
gitlab-fog-azure-rm-1.6.0 lib/fog/azurerm/models/resources/provider.rb
gitlab-fog-azure-rm-1.5.0 lib/fog/azurerm/models/resources/provider.rb
gitlab-fog-azure-rm-1.4.0 lib/fog/azurerm/models/resources/provider.rb
gitlab-fog-azure-rm-1.3.0 lib/fog/azurerm/models/resources/provider.rb
fog-azure-rm-0.6.0 lib/fog/azurerm/models/resources/provider.rb
gitlab-fog-azure-rm-1.2.0 lib/fog/azurerm/models/resources/provider.rb
gitlab-fog-azure-rm-1.1.1 lib/fog/azurerm/models/resources/provider.rb
gitlab-fog-azure-rm-1.0.1 lib/fog/azurerm/models/resources/provider.rb
gitlab-fog-azure-rm-1.0.0 lib/fog/azurerm/models/resources/provider.rb
gitlab-fog-azure-rm-0.9.0 lib/fog/azurerm/models/resources/provider.rb
gitlab-fog-azure-rm-0.8.1 lib/fog/azurerm/models/resources/provider.rb
gitlab-fog-azure-rm-0.8.0 lib/fog/azurerm/models/resources/provider.rb
gitlab-fog-azure-rm-0.7.0 lib/fog/azurerm/models/resources/provider.rb
gitlab-fog-azure-rm-0.6.0 lib/fog/azurerm/models/resources/provider.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/models/resources/provider.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/models/resources/provider.rb
far-gem-0.5.6 lib/fog/azurerm/models/resources/provider.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/models/resources/provider.rb