Class: Softlayer::Network::LoadBalancer::Global::Host

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

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Network_LoadBalancer_Global_Host'

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

#destination_ipObject

Returns the value of attribute destination_ip.



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

def destination_ip
  @destination_ip
end

#destination_portObject

Returns the value of attribute destination_port.



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

def destination_port
  @destination_port
end

#enabledObject

Returns the value of attribute enabled.



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

def enabled
  @enabled
end

#health_checkObject

Returns the value of attribute health_check.



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

def health_check
  @health_check
end

#hitsObject

Returns the value of attribute hits.



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

def hits
  @hits
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#load_balance_orderObject

Returns the value of attribute load_balance_order.



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

def load_balance_order
  @load_balance_order
end

#load_balancer_accountObject

Returns the value of attribute load_balancer_account.



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

def 
  @load_balancer_account
end

#locationObject

Returns the value of attribute location.



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

def location
  @location
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#weightObject

Returns the value of attribute weight.



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

def weight
  @weight
end

Instance Method Details

#delete_objectObject



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

def delete_object
  request(:delete_object, Boolean)
end

#get_load_balancer_accountObject



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

def 
  request(:get_load_balancer_account, Softlayer::Network::LoadBalancer::Global::Account)
end

#get_objectObject



27
28
29
# File 'lib/softlayer/network/load_balancer/global/host.rb', line 27

def get_object
  request(:get_object, Softlayer::Network::LoadBalancer::Global::Host)
end