Class: Softlayer::Network::LoadBalancer::Global::Account

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

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Network_LoadBalancer_Global_Account'

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

#accountObject

Returns the value of attribute account.



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

def 
  @account
end

#allowed_number_of_hostsObject

Returns the value of attribute allowed_number_of_hosts.



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

def allowed_number_of_hosts
  @allowed_number_of_hosts
end

#average_connections_per_secondObject

Returns the value of attribute average_connections_per_second.



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

def average_connections_per_second
  @average_connections_per_second
end

#billing_itemObject

Returns the value of attribute billing_item.



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

def billing_item
  @billing_item
end

#connections_per_secondObject

Returns the value of attribute connections_per_second.



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

def connections_per_second
  @connections_per_second
end

#fallback_ipObject

Returns the value of attribute fallback_ip.



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

def fallback_ip
  @fallback_ip
end

#host_countObject

Returns the value of attribute host_count.



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

def host_count
  @host_count
end

#hostnameObject

Returns the value of attribute hostname.



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

def hostname
  @hostname
end

#hostsObject

Returns the value of attribute hosts.



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

def hosts
  @hosts
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#load_balance_typeObject

Returns the value of attribute load_balance_type.



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

def load_balance_type
  @load_balance_type
end

#load_balance_type_idObject

Returns the value of attribute load_balance_type_id.



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

def load_balance_type_id
  @load_balance_type_id
end

#managed_resource_flagObject

Returns the value of attribute managed_resource_flag.



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

def managed_resource_flag
  @managed_resource_flag
end

#notesObject

Returns the value of attribute notes.



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

def notes
  @notes
end

Instance Method Details

#add_ns_recordObject



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

def add_ns_record
  request(:add_ns_record, Boolean)
end

#edit_object(message) ⇒ Object

template_object



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

def edit_object(message)
  request(:edit_object, Boolean, message)
end

#get_accountObject



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

def 
  request(:get_account, Softlayer::Account)
end

#get_billing_itemObject



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

def get_billing_item
  request(:get_billing_item, Softlayer::Billing::Item)
end

#get_hostsObject



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

def get_hosts
  request(:get_hosts, Array[Softlayer::Network::LoadBalancer::Global::Host])
end

#get_load_balance_typeObject



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

def get_load_balance_type
  request(:get_load_balance_type, Softlayer::Network::LoadBalancer::Global::Type)
end

#get_managed_resource_flagObject



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

def get_managed_resource_flag
  request(:get_managed_resource_flag, Boolean)
end

#get_objectObject



51
52
53
# File 'lib/softlayer/network/load_balancer/global/account.rb', line 51

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

#remove_ns_recordObject



55
56
57
# File 'lib/softlayer/network/load_balancer/global/account.rb', line 55

def remove_ns_record
  request(:remove_ns_record, Boolean)
end