Sha256: 4e9fe51ea0c204de07a39b766bd8342125d2d11c5ec9800ee30351a8680f8af3
Contents?: true
Size: 945 Bytes
Versions: 2
Compression:
Stored size: 945 Bytes
Contents
module Fog module Network class AzureRM # LoadBalancers collection class for Network Service class LoadBalancers < Fog::Collection model Fog::Network::AzureRM::LoadBalancer attribute :resource_group def all requires :resource_group load_balancers = [] service.list_load_balancers(resource_group).each do |load_balancer| load_balancers << Fog::Network::AzureRM::LoadBalancer.parse(load_balancer) end load(load_balancers) end def get(resource_group_name, load_balancer_name) load_balancer = service.get_load_balancer(resource_group_name, load_balancer_name) load_balancer_fog = Fog::Network::AzureRM::LoadBalancer.new(service: service) load_balancer_fog.merge_attributes(Fog::Network::AzureRM::LoadBalancer.parse(load_balancer)) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.1.2 | lib/fog/azurerm/models/network/load_balancers.rb |
fog-azure-rm-0.1.1 | lib/fog/azurerm/models/network/load_balancers.rb |