Class: Fog::Network::AzureRM::ExpressRouteCircuitAuthorizations

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

Overview

ExpressRouteCircuitAuthorization collection class for Network Service

Instance Method Summary collapse

Instance Method Details

#allObject



10
11
12
13
14
# File 'lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb', line 10

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

#check_express_route_cir_auth_exists(resource_group_name, circuit_name, authorization_name) ⇒ Object



22
23
24
# File 'lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb', line 22

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

#get(resource_group_name, circuit_name, authorization_name) ⇒ Object



16
17
18
19
20
# File 'lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb', line 16

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