Class: Fog::Resources::AzureRM::ResourceGroups

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

Overview

This class is giving implementation of all/list, get and check name availability for resource groups.

Instance Method Summary collapse

Instance Method Details

#allObject



12
13
14
# File 'lib/fog/azurerm/models/resources/resource_groups.rb', line 12

def all
  load(service.list_resource_groups)
end

#get(identity) ⇒ Object



16
17
18
# File 'lib/fog/azurerm/models/resources/resource_groups.rb', line 16

def get(identity)
  all.find { |f| f.name == identity }
end