Class: Softlayer::Scale::LoadBalancer

Inherits:
Entity show all
Defined in:
lib/softlayer/scale/load_balancer.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Scale_LoadBalancer'

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_percentObject

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_dateObject

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_flagObject

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_checkObject

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_idObject

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

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/softlayer/scale/load_balancer.rb', line 8

def id
  @id
end

#modify_dateObject

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

#portObject

Returns the value of attribute port.



10
11
12
# File 'lib/softlayer/scale/load_balancer.rb', line 10

def port
  @port
end

#routing_methodObject

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_typeObject

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_groupObject

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_idObject

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_idObject

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_serverObject

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_idObject

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_portObject

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(message)
  request(:create_object, Softlayer::Scale::LoadBalancer, message)
end

Instance Method Details

#delete_objectObject



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(message)
  request(:edit_object, Boolean, message)
end

#get_allocation_percentObject



36
37
38
# File 'lib/softlayer/scale/load_balancer.rb', line 36

def get_allocation_percent
  request(:get_allocation_percent, Integer)
end

#get_health_checkObject



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_objectObject



44
45
46
# File 'lib/softlayer/scale/load_balancer.rb', line 44

def get_object
  request(:get_object, Softlayer::Scale::LoadBalancer)
end

#get_routing_methodObject



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_typeObject



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_groupObject



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_idObject



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_serverObject



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_portObject



68
69
70
# File 'lib/softlayer/scale/load_balancer.rb', line 68

def get_virtual_server_port
  request(:get_virtual_server_port, Integer)
end