Sha256: 718f142fd2e19e8dd36ff67ebbde75dd98e7c6362a9574ad9e96e42dc0803187
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
module Fog module TrafficManager class AzureRM # Traffic Manager Profile Collection for TrafficManager Service class TrafficManagerProfiles < Fog::Collection attribute :resource_group model Fog::TrafficManager::AzureRM::TrafficManagerProfile def all requires :resource_group traffic_manager_profiles = [] service.list_traffic_manager_profiles(resource_group).each do |profile| traffic_manager_profiles << Fog::TrafficManager::AzureRM::TrafficManagerProfile.parse(profile) end load(traffic_manager_profiles) end def get(resource_group, traffic_manager_profile_name) profile = service.get_traffic_manager_profile(resource_group, traffic_manager_profile_name) profile_obj = Fog::TrafficManager::AzureRM::TrafficManagerProfile.new(service: service) profile_obj.merge_attributes(Fog::TrafficManager::AzureRM::TrafficManagerProfile.parse(profile)) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems