Class: Fog::Network::AzureRM::TrafficManagerProfiles

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

Overview

Traffic Manager Profile Collection for Network Service

Instance Method Summary collapse

Instance Method Details

#allObject



9
10
11
12
13
14
15
16
# File 'lib/fog/azurerm/models/network/traffic_manager_profiles.rb', line 9

def all
  requires :resource_group
  traffic_manager_profiles = []
  service.list_traffic_manager_profiles(resource_group).each do |profile|
    traffic_manager_profiles << Fog::Network::AzureRM::TrafficManagerProfile.parse(profile)
  end
  load(traffic_manager_profiles)
end

#get(identity) ⇒ Object



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

def get(identity)
  all.find { |profile| profile.name == identity }
end