Class: Fog::Resources::AzureRM::ProviderResourceType

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/azurerm/models/resources/provider_resource_type.rb

Overview

ProviderResourceType model class

Class Method Summary collapse

Class Method Details

.parse(provider_resource_type) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/fog/azurerm/models/resources/provider_resource_type.rb', line 11

def self.parse(provider_resource_type)
  hash = {}
  hash['resource_type'] = provider_resource_type.resource_type
  hash['locations'] = provider_resource_type.locations
  hash['api_versions'] = provider_resource_type.api_versions if provider_resource_type.respond_to?('api_versions')
  hash['properties'] = provider_resource_type.properties if provider_resource_type.respond_to?('properties')
  hash
end