Class: Softlayer::Scale::LoadBalancer
- Defined in:
- lib/softlayer/scale/load_balancer.rb
Defined Under Namespace
Classes: Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_Scale_LoadBalancer'
Instance Attribute Summary collapse
-
#allocation_percent ⇒ Object
Returns the value of attribute allocation_percent.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#delete_flag ⇒ Object
Returns the value of attribute delete_flag.
-
#health_check ⇒ Object
Returns the value of attribute health_check.
-
#health_check_id ⇒ Object
Returns the value of attribute health_check_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#modify_date ⇒ Object
Returns the value of attribute modify_date.
-
#port ⇒ Object
Returns the value of attribute port.
-
#routing_method ⇒ Object
Returns the value of attribute routing_method.
-
#routing_type ⇒ Object
Returns the value of attribute routing_type.
-
#scale_group ⇒ Object
Returns the value of attribute scale_group.
-
#scale_group_id ⇒ Object
Returns the value of attribute scale_group_id.
-
#virtual_ip_address_id ⇒ Object
Returns the value of attribute virtual_ip_address_id.
-
#virtual_server ⇒ Object
Returns the value of attribute virtual_server.
-
#virtual_server_id ⇒ Object
Returns the value of attribute virtual_server_id.
-
#virtual_server_port ⇒ Object
Returns the value of attribute virtual_server_port.
Class Method Summary collapse
-
.create_object(message) ⇒ Object
template_object.
Instance Method Summary collapse
- #delete_object ⇒ Object
-
#edit_object(message) ⇒ Object
template_object.
- #get_allocation_percent ⇒ Object
- #get_health_check ⇒ Object
- #get_object ⇒ Object
- #get_routing_method ⇒ Object
- #get_routing_type ⇒ Object
- #get_scale_group ⇒ Object
- #get_virtual_ip_address_id ⇒ Object
- #get_virtual_server ⇒ Object
- #get_virtual_server_port ⇒ Object
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, process_message, #request, request, service_name, #service_name, #to_hash, #to_softlayer
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#allocation_percent ⇒ Object
Returns the value of attribute allocation_percent.
13 14 15 |
# File 'lib/softlayer/scale/load_balancer.rb', line 13 def allocation_percent @allocation_percent end |
#create_date ⇒ Object
Returns the value of attribute create_date.
5 6 7 |
# File 'lib/softlayer/scale/load_balancer.rb', line 5 def create_date @create_date end |
#delete_flag ⇒ Object
Returns the value of attribute delete_flag.
6 7 8 |
# File 'lib/softlayer/scale/load_balancer.rb', line 6 def delete_flag @delete_flag end |
#health_check ⇒ Object
Returns the value of attribute health_check.
14 15 16 |
# File 'lib/softlayer/scale/load_balancer.rb', line 14 def health_check @health_check end |
#health_check_id ⇒ Object
Returns the value of attribute health_check_id.
7 8 9 |
# File 'lib/softlayer/scale/load_balancer.rb', line 7 def health_check_id @health_check_id end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/softlayer/scale/load_balancer.rb', line 8 def id @id end |
#modify_date ⇒ Object
Returns the value of attribute modify_date.
9 10 11 |
# File 'lib/softlayer/scale/load_balancer.rb', line 9 def modify_date @modify_date end |
#port ⇒ Object
Returns the value of attribute port.
10 11 12 |
# File 'lib/softlayer/scale/load_balancer.rb', line 10 def port @port end |
#routing_method ⇒ Object
Returns the value of attribute routing_method.
15 16 17 |
# File 'lib/softlayer/scale/load_balancer.rb', line 15 def routing_method @routing_method end |
#routing_type ⇒ Object
Returns the value of attribute routing_type.
16 17 18 |
# File 'lib/softlayer/scale/load_balancer.rb', line 16 def routing_type @routing_type end |
#scale_group ⇒ Object
Returns the value of attribute scale_group.
17 18 19 |
# File 'lib/softlayer/scale/load_balancer.rb', line 17 def scale_group @scale_group end |
#scale_group_id ⇒ Object
Returns the value of attribute scale_group_id.
11 12 13 |
# File 'lib/softlayer/scale/load_balancer.rb', line 11 def scale_group_id @scale_group_id end |
#virtual_ip_address_id ⇒ Object
Returns the value of attribute virtual_ip_address_id.
18 19 20 |
# File 'lib/softlayer/scale/load_balancer.rb', line 18 def virtual_ip_address_id @virtual_ip_address_id end |
#virtual_server ⇒ Object
Returns the value of attribute virtual_server.
19 20 21 |
# File 'lib/softlayer/scale/load_balancer.rb', line 19 def virtual_server @virtual_server end |
#virtual_server_id ⇒ Object
Returns the value of attribute virtual_server_id.
12 13 14 |
# File 'lib/softlayer/scale/load_balancer.rb', line 12 def virtual_server_id @virtual_server_id end |
#virtual_server_port ⇒ Object
Returns the value of attribute virtual_server_port.
20 21 22 |
# File 'lib/softlayer/scale/load_balancer.rb', line 20 def virtual_server_port @virtual_server_port end |
Class Method Details
.create_object(message) ⇒ Object
template_object
23 24 25 |
# File 'lib/softlayer/scale/load_balancer.rb', line 23 def self.create_object() request(:create_object, Softlayer::Scale::LoadBalancer, ) end |
Instance Method Details
#delete_object ⇒ Object
27 28 29 |
# File 'lib/softlayer/scale/load_balancer.rb', line 27 def delete_object request(:delete_object, Boolean) end |
#edit_object(message) ⇒ Object
template_object
32 33 34 |
# File 'lib/softlayer/scale/load_balancer.rb', line 32 def edit_object() request(:edit_object, Boolean, ) end |
#get_allocation_percent ⇒ Object
36 37 38 |
# File 'lib/softlayer/scale/load_balancer.rb', line 36 def get_allocation_percent request(:get_allocation_percent, Integer) end |
#get_health_check ⇒ Object
40 41 42 |
# File 'lib/softlayer/scale/load_balancer.rb', line 40 def get_health_check request(:get_health_check, Softlayer::Network::Application::Delivery::Controller::LoadBalancer::Health::Check) end |
#get_object ⇒ Object
44 45 46 |
# File 'lib/softlayer/scale/load_balancer.rb', line 44 def get_object request(:get_object, Softlayer::Scale::LoadBalancer) end |
#get_routing_method ⇒ Object
48 49 50 |
# File 'lib/softlayer/scale/load_balancer.rb', line 48 def get_routing_method request(:get_routing_method, Softlayer::Network::Application::Delivery::Controller::LoadBalancer::Routing::Method) end |
#get_routing_type ⇒ Object
52 53 54 |
# File 'lib/softlayer/scale/load_balancer.rb', line 52 def get_routing_type request(:get_routing_type, Softlayer::Network::Application::Delivery::Controller::LoadBalancer::Routing::Type) end |
#get_scale_group ⇒ Object
56 57 58 |
# File 'lib/softlayer/scale/load_balancer.rb', line 56 def get_scale_group request(:get_scale_group, Softlayer::Scale::Group) end |
#get_virtual_ip_address_id ⇒ Object
60 61 62 |
# File 'lib/softlayer/scale/load_balancer.rb', line 60 def get_virtual_ip_address_id request(:get_virtual_ip_address_id, Integer) end |
#get_virtual_server ⇒ Object
64 65 66 |
# File 'lib/softlayer/scale/load_balancer.rb', line 64 def get_virtual_server request(:get_virtual_server, Softlayer::Network::Application::Delivery::Controller::LoadBalancer::VirtualServer) end |
#get_virtual_server_port ⇒ Object
68 69 70 |
# File 'lib/softlayer/scale/load_balancer.rb', line 68 def get_virtual_server_port request(:get_virtual_server_port, Integer) end |