Sha256: d9fc1e66b4fe36bcfa44d6fee3fd4cfbd8637d76f7799c98c01c47213116ade1
Contents?: true
Size: 839 Bytes
Versions: 21
Compression:
Stored size: 839 Bytes
Contents
require 'fog/openstack/models/collection' require 'fog/openstack/network/models/lb_health_monitor' module Fog module OpenStack class Network class LbHealthMonitors < Fog::OpenStack::Collection attribute :filters model Fog::OpenStack::Network::LbHealthMonitor def initialize(attributes) self.filters ||= {} super end def all(filters_arg = filters) filters = filters_arg load_response(service.list_lb_health_monitors(filters), 'health_monitors') end def get(health_monitor_id) if health_monitor = service.get_lb_health_monitor(health_monitor_id).body['health_monitor'] new(health_monitor) end rescue Fog::OpenStack::Network::NotFound nil end end end end end
Version data entries
21 entries across 21 versions & 3 rubygems