Sha256: 4d42700bb9aba251be77c9f1e9324976ca7144ecd58b0ab1fb59fbd96e71d5b7

Contents?: true

Size: 1.39 KB

Versions: 46

Compression:

Stored size: 1.39 KB

Contents

module Fog
  module Network
    class AzureRM
      # ExpressRouteCircuitAuthorization collection class for Network Service
      class ExpressRouteCircuitAuthorizations < Fog::Collection
        model Fog::Network::AzureRM::ExpressRouteCircuitAuthorization
        attribute :resource_group
        attribute :circuit_name

        def all
          requires :resource_group, :circuit_name
          circuit_authorizations = service.list_express_route_circuit_authorizations(resource_group, circuit_name).map { |circuit_authorization| Fog::Network::AzureRM::ExpressRouteCircuitAuthorization.parse(circuit_authorization) }
          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 = Fog::Network::AzureRM::ExpressRouteCircuitAuthorization.new(service: service)
          express_route_circuit_authorization.merge_attributes(Fog::Network::AzureRM::ExpressRouteCircuitAuthorization.parse(circuit_authorization))
        end

        def check_express_route_cir_auth_exists(resource_group_name, circuit_name, authorization_name)
          service.check_express_route_cir_auth_exists(resource_group_name, circuit_name, authorization_name)
        end
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
far-gem-0.5.6 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
far-gem-0.5.5 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
far-gem-0.5.4 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
far-gem-0.5.3 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
far-gem-0.5.2 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
far-gem-0.5.1 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb