Class: Fog::Resources::AzureRM::AzureResource

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

Overview

This class is giving implementation of create/save and delete/destroy for resources.

Class Method Summary collapse

Class Method Details

.parse(resource) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/fog/azurerm/models/resources/azure_resource.rb', line 13

def self.parse(resource)
  hash = {}
  hash['id'] = resource.id
  hash['name'] = resource.name
  hash['type'] = resource.type
  hash['location'] = resource.location
  hash['tags'] = resource.tags
  hash
end