Class: Softlayer::Network::Application::Delivery::Controller::LoadBalancer::VirtualServer

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_VirtualServer'

Instance Attribute 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

#allocationObject

Returns the value of attribute allocation.



9
10
11
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 9

def allocation
  @allocation
end

#idObject

Returns the value of attribute id.



10
11
12
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 10

def id
  @id
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 11

def name
  @name
end

#notesObject

Returns the value of attribute notes.



12
13
14
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 12

def notes
  @notes
end

#portObject

Returns the value of attribute port.



13
14
15
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 13

def port
  @port
end

#routing_methodObject

Returns the value of attribute routing_method.



18
19
20
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 18

def routing_method
  @routing_method
end

#routing_method_idObject

Returns the value of attribute routing_method_id.



14
15
16
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 14

def routing_method_id
  @routing_method_id
end

#scale_load_balancer_countObject

Returns the value of attribute scale_load_balancer_count.



16
17
18
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 16

def scale_load_balancer_count
  @scale_load_balancer_count
end

#scale_load_balancersObject

Returns the value of attribute scale_load_balancers.



19
20
21
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 19

def scale_load_balancers
  @scale_load_balancers
end

#service_group_countObject

Returns the value of attribute service_group_count.



17
18
19
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 17

def service_group_count
  @service_group_count
end

#service_groupsObject

Returns the value of attribute service_groups.



20
21
22
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 20

def service_groups
  @service_groups
end

#virtual_ip_addressObject

Returns the value of attribute virtual_ip_address.



21
22
23
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 21

def virtual_ip_address
  @virtual_ip_address
end

#virtual_ip_address_idObject

Returns the value of attribute virtual_ip_address_id.



15
16
17
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 15

def virtual_ip_address_id
  @virtual_ip_address_id
end

Instance Method Details

#delete_objectObject



23
24
25
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 23

def delete_object
  request(:delete_object, Boolean)
end

#get_objectObject



27
28
29
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 27

def get_object
  request(:get_object, Softlayer::Network::Application::Delivery::Controller::LoadBalancer::VirtualServer)
end

#get_routing_methodObject



31
32
33
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 31

def get_routing_method
  request(:get_routing_method, Softlayer::Network::Application::Delivery::Controller::LoadBalancer::Routing::Method)
end

#get_scale_load_balancersObject



35
36
37
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 35

def get_scale_load_balancers
  request(:get_scale_load_balancers, Array[Softlayer::Scale::LoadBalancer])
end

#get_service_groupsObject



39
40
41
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 39

def get_service_groups
  request(:get_service_groups, Array[Softlayer::Network::Application::Delivery::Controller::LoadBalancer::Service::Group])
end

#get_virtual_ip_addressObject



43
44
45
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 43

def get_virtual_ip_address
  request(:get_virtual_ip_address, Softlayer::Network::Application::Delivery::Controller::LoadBalancer::VirtualIpAddress)
end

#start_sslObject



47
48
49
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 47

def start_ssl
  request(:start_ssl, Boolean)
end

#stop_sslObject



51
52
53
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/virtual_server.rb', line 51

def stop_ssl
  request(:stop_ssl, Boolean)
end