Class: Fog::TrafficManager::AzureRM::TrafficManagerEndPoints
- Inherits:
-
Collection
- Object
- Collection
- Fog::TrafficManager::AzureRM::TrafficManagerEndPoints
- Defined in:
- lib/fog/azurerm/models/traffic_manager/traffic_manager_end_points.rb
Overview
Traffic Manager End Point Collection for TrafficManager 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/traffic_manager/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.endpoints end_points.each do |endpoint| traffic_manager_endpoints << Fog::TrafficManager::AzureRM::TrafficManagerEndPoint.parse(endpoint) end load(traffic_manager_endpoints) end |
#get(resource_group, traffic_manager_profile_name, end_point_name, type) ⇒ Object
23 24 25 26 27 |
# File 'lib/fog/azurerm/models/traffic_manager/traffic_manager_end_points.rb', line 23 def get(resource_group, traffic_manager_profile_name, end_point_name, type) endpoint = service.get_traffic_manager_end_point(resource_group, traffic_manager_profile_name, end_point_name, type) endpoint_obj = Fog::TrafficManager::AzureRM::TrafficManagerEndPoint.new(service: service) endpoint_obj.merge_attributes(Fog::TrafficManager::AzureRM::TrafficManagerEndPoint.parse(endpoint)) end |