Sha256: fdeef0c488f2a02df79e8269e5aca53d78a4f622f865de9c9dd6facb2149118a
Contents?: true
Size: 813 Bytes
Versions: 1
Compression:
Stored size: 813 Bytes
Contents
module Fog module Resources class AzureRM # This class is giving implementation of all/list, get and # check name availability for resource groups. class ResourceGroups < Fog::Collection model ResourceGroup def all resource_groups = [] service.list_resource_groups.each do |resource_group| resource_groups.push(ResourceGroup.parse(resource_group)) end load(resource_groups) end def get(resource_group_name) resource_group = service.get_resource_group(resource_group_name) resource_group_object = ResourceGroup.new(service: service) resource_group_object.merge_attributes(ResourceGroup.parse(resource_group)) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.1.0 | lib/fog/azurerm/models/resources/resource_groups.rb |