Sha256: 58b69b267efed7734171d58b4c5a38f0ebd084d993c54ebd8ae882b77d73d21b
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
require 'fog/core/collection' require 'fog/azurerm/models/network/express_route_circuit_authorization' module Fog module Network class AzureRM # ExpressRouteCircuitAuthorization collection class for Network Service class ExpressRouteCircuitAuthorizations < Fog::Collection model ExpressRouteCircuitAuthorization attribute :resource_group attribute :circuit_name def all requires :resource_group requires :circuit_name circuit_authorizations = [] service.list_express_route_circuit_authorizations(resource_group, circuit_name).each do |circuit_authorization| circuit_authorizations << ExpressRouteCircuitAuthorization.parse(circuit_authorization) end load(circuit_authorizations) end def get(resource_group_name, circuit_name, authorization_name) circuit_authorization = service.get_express_route_circuit_authorization(resource_group_name, circuit_name, authorization_name) express_route_circuit_authorization = ExpressRouteCircuitAuthorization.new(service: service) express_route_circuit_authorization.merge_attributes(ExpressRouteCircuitAuthorization.parse(circuit_authorization)) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.8 | lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb |
fog-azure-rm-0.0.6 | lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb |