Class: Softlayer::Network::LoadBalancer::Service

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/network/load_balancer/service.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Network_LoadBalancer_Service'

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

#connection_limitObject

Returns the value of attribute connection_limit.



6
7
8
# File 'lib/softlayer/network/load_balancer/service.rb', line 6

def connection_limit
  @connection_limit
end

#create_dateObject

Returns the value of attribute create_date.



7
8
9
# File 'lib/softlayer/network/load_balancer/service.rb', line 7

def create_date
  @create_date
end

#destination_ip_addressObject

Returns the value of attribute destination_ip_address.



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

def destination_ip_address
  @destination_ip_address
end

#destination_portObject

Returns the value of attribute destination_port.



9
10
11
# File 'lib/softlayer/network/load_balancer/service.rb', line 9

def destination_port
  @destination_port
end

#enabledObject

Returns the value of attribute enabled.



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

def enabled
  @enabled
end

#health_checkObject

Returns the value of attribute health_check.



11
12
13
# File 'lib/softlayer/network/load_balancer/service.rb', line 11

def health_check
  @health_check
end

#health_check_urlObject

Returns the value of attribute health_check_url.



12
13
14
# File 'lib/softlayer/network/load_balancer/service.rb', line 12

def health_check_url
  @health_check_url
end

#health_responseObject

Returns the value of attribute health_response.



13
14
15
# File 'lib/softlayer/network/load_balancer/service.rb', line 13

def health_response
  @health_response
end

#idObject

Returns the value of attribute id.



14
15
16
# File 'lib/softlayer/network/load_balancer/service.rb', line 14

def id
  @id
end

#modify_dateObject

Returns the value of attribute modify_date.



15
16
17
# File 'lib/softlayer/network/load_balancer/service.rb', line 15

def modify_date
  @modify_date
end

#nameObject

Returns the value of attribute name.



16
17
18
# File 'lib/softlayer/network/load_balancer/service.rb', line 16

def name
  @name
end

#notesObject

Returns the value of attribute notes.



17
18
19
# File 'lib/softlayer/network/load_balancer/service.rb', line 17

def notes
  @notes
end

#peak_connectionsObject

Returns the value of attribute peak_connections.



18
19
20
# File 'lib/softlayer/network/load_balancer/service.rb', line 18

def peak_connections
  @peak_connections
end

#source_portObject

Returns the value of attribute source_port.



19
20
21
# File 'lib/softlayer/network/load_balancer/service.rb', line 19

def source_port
  @source_port
end

#typeObject

Returns the value of attribute type.



20
21
22
# File 'lib/softlayer/network/load_balancer/service.rb', line 20

def type
  @type
end

#vipObject

Returns the value of attribute vip.



23
24
25
# File 'lib/softlayer/network/load_balancer/service.rb', line 23

def vip
  @vip
end

#vip_idObject

Returns the value of attribute vip_id.



21
22
23
# File 'lib/softlayer/network/load_balancer/service.rb', line 21

def vip_id
  @vip_id
end

#weightObject

Returns the value of attribute weight.



22
23
24
# File 'lib/softlayer/network/load_balancer/service.rb', line 22

def weight
  @weight
end

Instance Method Details

#delete_objectObject



25
26
27
# File 'lib/softlayer/network/load_balancer/service.rb', line 25

def delete_object
  request(:delete_object, Boolean)
end

#get_graph_image(message) ⇒ Object

graph_type metric



31
32
33
# File 'lib/softlayer/network/load_balancer/service.rb', line 31

def get_graph_image(message)
  request(:get_graph_image, Softlayer::Base64Binary, message)
end

#get_objectObject



35
36
37
# File 'lib/softlayer/network/load_balancer/service.rb', line 35

def get_object
  request(:get_object, Softlayer::Network::LoadBalancer::Service)
end

#get_statusObject



39
40
41
# File 'lib/softlayer/network/load_balancer/service.rb', line 39

def get_status
  request(:get_status, Array[Softlayer::Container::Network::LoadBalancer::StatusEntry])
end

#get_vipObject



43
44
45
# File 'lib/softlayer/network/load_balancer/service.rb', line 43

def get_vip
  request(:get_vip, Softlayer::Network::LoadBalancer::VirtualIpAddress)
end

#reset_peak_connectionsObject



47
48
49
# File 'lib/softlayer/network/load_balancer/service.rb', line 47

def reset_peak_connections
  request(:reset_peak_connections, Boolean)
end