Sha256: 1084cfde847e9cac96d04ec1b6c6bb7037ec6424a5c8f45b964f4da0d8601958
Contents?: true
Size: 1018 Bytes
Versions: 1
Compression:
Stored size: 1018 Bytes
Contents
module Yao::Resources class LoadBalancerPool < Base friendly_attributes :lb_algorithm, :protocol, :description, :admin_state_up, :provisioning_status, :session_persistence, :operating_status, :name, def loadbalancers self["loadbalancers"].map do |loadbalancer| Yao::LoadBalancer.find loadbalancer["id"] end end def listeners self["listeners"].map do |listener| Yao::LoadBalancerListener.find listener["id"] end end def project Yao::Tenant.find self["project_id"] end def members self["members"].map do |member| Yao::LoadBalancerPoolMember.find(self,member["id"]) end end def healthmonitor Yao::LoadBalancerHealthMonitor.find self["healthmonitor_id"] end self.service = "load-balancer" self.api_version = "v2.0" self.resource_name = "pool" self.resources_name = "pools" self.resources_path = "lbaas/pools" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yao-0.3.7 | lib/yao/resources/loadbalancer_pool.rb |