Sha256: eedd6841083940033e1cc24ba65aa2c917773257a9521e8a326ac54d6552b758
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
module Fog module TrafficManager class AzureRM # Traffic Manager End Point Collection for TrafficManager Service class TrafficManagerEndPoints < Fog::Collection attribute :resource_group attribute :traffic_manager_profile_name model Fog::TrafficManager::AzureRM::TrafficManagerEndPoint def all requires :resource_group, :traffic_manager_profile_name end_points = service.get_traffic_manager_profile(resource_group, traffic_manager_profile_name).endpoints traffic_manager_endpoints = end_points.map { |endpoint| Fog::TrafficManager::AzureRM::TrafficManagerEndPoint.parse(endpoint) } load(traffic_manager_endpoints) end 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_fog = Fog::TrafficManager::AzureRM::TrafficManagerEndPoint.new(service: service) endpoint_fog.merge_attributes(Fog::TrafficManager::AzureRM::TrafficManagerEndPoint.parse(endpoint)) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.1.1 | lib/fog/azurerm/models/traffic_manager/traffic_manager_end_points.rb |