Sha256: 561dbbdf66fd72b13d2c5940e9e66f96db4976251a0984c71bbdefbca57e19f9
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 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.2 | lib/fog/azurerm/models/traffic_manager/traffic_manager_end_points.rb |