Method: Inspec::Resources::AzureGenericResource#parse_resource

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

#parse_resource(resource) ⇒ Object



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

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