Method: Inspec::Resources::AzureGenericResource#parse_resource

Defined in:
lib/resources/azure/azure_generic_resource.rb

#parse_resource(resource) ⇒ Object



44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/resources/azure/azure_generic_resource.rb', line 44

def parse_resource(resource)
  # return a hash of information
  parsed = {
    'location' => resource.location,
    'name' => resource.name,
    'type' => resource.type,
    'exist?' => true,
    'properties' => AzureResourceProbe.new(resource.properties),
  }

  parsed
end