Class: Yao::Resources::LoadBalancerPool
- Inherits:
-
Base
- Object
- Base
- Yao::Resources::LoadBalancerPool
show all
- Defined in:
- lib/yao/resources/loadbalancer_pool.rb
Instance Attribute Summary
#service
Instance Method Summary
collapse
Methods inherited from Base
#[], #[]=, add_instantiation_name_list, #destroy, friendly_attributes, #id, #initialize, instantiation?, map_attribute_to_attribute, map_attribute_to_resource, map_attribute_to_resources, map_attributes_to_time, #to_hash, #update
#admin=, #api_version, #api_version=, #as_member, #client, #create, #destroy, extended, #find_by_name, #get, #get!, #list, #resources_path, #resources_path=, #return_single_on_querying, #return_single_on_querying=, #update
Instance Method Details
37
38
39
40
41
|
# File 'lib/yao/resources/loadbalancer_pool.rb', line 37
def healthmonitor
@healthmonitor ||= if healthmonitor_id = self["healthmonitor_id"]
Yao::LoadBalancerHealthMonitor.get(healthmonitor_id)
end
end
|
15
16
17
18
19
|
# File 'lib/yao/resources/loadbalancer_pool.rb', line 15
def listeners
@listeners ||= self["listeners"].map do |listener|
Yao::LoadBalancerListener.get(listener["id"])
end
end
|
30
31
32
33
34
|
# File 'lib/yao/resources/loadbalancer_pool.rb', line 30
def members
@members ||= self["members"].map do |member|
Yao::LoadBalancerPoolMember.get(self, member["id"])
end
end
|
22
23
24
25
26
|
# File 'lib/yao/resources/loadbalancer_pool.rb', line 22
def project
if project_id = self["project_id"]
Yao::Tenant.find project_id
end
end
|