Class: Fog::Network::AzureRM::TrafficManagerEndPoints
- Inherits:
-
Collection
- Object
- Collection
- Fog::Network::AzureRM::TrafficManagerEndPoints
- Defined in:
- lib/fog/azurerm/models/network/traffic_manager_end_points.rb
Overview
Traffic Manager End Point Collection for Network Service
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/azurerm/models/network/traffic_manager_end_points.rb', line 10 def all requires :resource_group requires :traffic_manager_profile_name traffic_manager_endpoints = [] profile = service.get_traffic_manager_profile(resource_group, traffic_manager_profile_name) end_points = profile['properties']['endpoints'] end_points.each do |endpoint| traffic_manager_endpoints << Fog::Network::AzureRM::TrafficManagerEndPoint.parse(endpoint) end load(traffic_manager_endpoints) end |
#get(identity) ⇒ Object
23 24 25 |
# File 'lib/fog/azurerm/models/network/traffic_manager_end_points.rb', line 23 def get(identity) all.find { |endpoint| endpoint.name == identity } end |