Sha256: e90c668c9d800b31a7bf69b2cb2fa83f89487d4543c00a9480a63e6436f5a77f
Contents?: true
Size: 839 Bytes
Versions: 39
Compression:
Stored size: 839 Bytes
Contents
require 'fog/openstack/models/collection' require 'fog/network/openstack/models/lb_health_monitor' module Fog module Network class OpenStack class LbHealthMonitors < Fog::OpenStack::Collection attribute :filters model Fog::Network::OpenStack::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::Network::OpenStack::NotFound nil end end end end end
Version data entries
39 entries across 37 versions & 3 rubygems