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

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/network/application/delivery/controller/load_balancer/service.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/service/group.rb,
lib/softlayer/network/application/delivery/controller/load_balancer/service/group/cross_reference.rb

Defined Under Namespace

Classes: Group, Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Network_Application_Delivery_Controller_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

#enabledObject

Returns the value of attribute enabled.



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

def enabled
  @enabled
end

#group_countObject

Returns the value of attribute group_count.



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

def group_count
  @group_count
end

#group_reference_countObject

Returns the value of attribute group_reference_count.



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

def group_reference_count
  @group_reference_count
end

#group_referencesObject

Returns the value of attribute group_references.



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

def group_references
  @group_references
end

#groupsObject

Returns the value of attribute groups.



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

def groups
  @groups
end

#health_check_countObject

Returns the value of attribute health_check_count.



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

def health_check_count
  @health_check_count
end

#health_checksObject

Returns the value of attribute health_checks.



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

def health_checks
  @health_checks
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#ip_addressObject

Returns the value of attribute ip_address.



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

def ip_address
  @ip_address
end

#ip_address_idObject

Returns the value of attribute ip_address_id.



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

def ip_address_id
  @ip_address_id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#notesObject

Returns the value of attribute notes.



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

def notes
  @notes
end

#portObject

Returns the value of attribute port.



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

def port
  @port
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

Instance Method Details

#delete_objectObject



25
26
27
# File 'lib/softlayer/network/application/delivery/controller/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/application/delivery/controller/load_balancer/service.rb', line 31

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

#get_group_referencesObject



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

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

#get_groupsObject



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

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

#get_health_checksObject



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

def get_health_checks
  request(:get_health_checks, Array[Softlayer::Network::Application::Delivery::Controller::LoadBalancer::Health::Check])
end

#get_ip_addressObject



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

def get_ip_address
  request(:get_ip_address, Softlayer::Network::Subnet::IpAddress)
end

#get_objectObject



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

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

#toggle_statusObject



55
56
57
# File 'lib/softlayer/network/application/delivery/controller/load_balancer/service.rb', line 55

def toggle_status
  request(:toggle_status, Boolean)
end