Class: Fog::Network::AzureRM::ExpressRouteServiceProvider
- Inherits:
-
Model
- Object
- Model
- Fog::Network::AzureRM::ExpressRouteServiceProvider
- Defined in:
- lib/fog/azurerm/models/network/express_route_service_provider.rb
Overview
Express Route Service Provider model class for Network Service
Class Method Summary collapse
Class Method Details
.parse(service_provider) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/fog/azurerm/models/network/express_route_service_provider.rb', line 11 def self.parse(service_provider) hash = {} hash['id'] = service_provider.id hash['name'] = service_provider.name hash['peering_locations'] = [] service_provider.peering_locations.each do |peering_location| hash['peering_locations'] << peering_location end unless service_provider.peering_locations.nil? hash['bandwidths_offered'] = [] service_provider.bandwidths_offered.each do |bandwidth_offered| hash['bandwidths_offered'] << bandwidth_offered end unless service_provider.bandwidths_offered.nil? hash end |