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