Class: Softlayer::Network::Gateway

Inherits:
Entity show all
Defined in:
lib/softlayer/network/gateway.rb,
lib/softlayer/network/gateway/vlan.rb,
lib/softlayer/network/gateway/member.rb,
lib/softlayer/network/gateway/status.rb

Defined Under Namespace

Classes: Member, Representer, Status, Vlan

Constant Summary collapse

SERVICE =
'SoftLayer_Network_Gateway'

Instance Attribute Summary collapse

Class Method 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.



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

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



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

def 
  @account_id
end

#group_numberObject

Returns the value of attribute group_number.



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

def group_number
  @group_number
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#inside_vlan_countObject

Returns the value of attribute inside_vlan_count.



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

def inside_vlan_count
  @inside_vlan_count
end

#inside_vlansObject

Returns the value of attribute inside_vlans.



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

def inside_vlans
  @inside_vlans
end

#member_countObject

Returns the value of attribute member_count.



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

def member_count
  @member_count
end

#membersObject

Returns the value of attribute members.



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

def members
  @members
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#network_spaceObject

Returns the value of attribute network_space.



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

def network_space
  @network_space
end

#private_ip_addressObject

Returns the value of attribute private_ip_address.



24
25
26
# File 'lib/softlayer/network/gateway.rb', line 24

def private_ip_address
  @private_ip_address
end

#private_ip_address_idObject

Returns the value of attribute private_ip_address_id.



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

def private_ip_address_id
  @private_ip_address_id
end

#private_vlanObject

Returns the value of attribute private_vlan.



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

def private_vlan
  @private_vlan
end

#private_vlan_idObject

Returns the value of attribute private_vlan_id.



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

def private_vlan_id
  @private_vlan_id
end

#public_ip_addressObject

Returns the value of attribute public_ip_address.



26
27
28
# File 'lib/softlayer/network/gateway.rb', line 26

def public_ip_address
  @public_ip_address
end

#public_ip_address_idObject

Returns the value of attribute public_ip_address_id.



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

def public_ip_address_id
  @public_ip_address_id
end

#public_ipv6_addressObject

Returns the value of attribute public_ipv6_address.



27
28
29
# File 'lib/softlayer/network/gateway.rb', line 27

def public_ipv6_address
  @public_ipv6_address
end

#public_ipv6_address_idObject

Returns the value of attribute public_ipv6_address_id.



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

def public_ipv6_address_id
  @public_ipv6_address_id
end

#public_vlanObject

Returns the value of attribute public_vlan.



28
29
30
# File 'lib/softlayer/network/gateway.rb', line 28

def public_vlan
  @public_vlan
end

#public_vlan_idObject

Returns the value of attribute public_vlan_id.



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

def public_vlan_id
  @public_vlan_id
end

#statusObject

Returns the value of attribute status.



29
30
31
# File 'lib/softlayer/network/gateway.rb', line 29

def status
  @status
end

#status_idObject

Returns the value of attribute status_id.



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

def status_id
  @status_id
end

Class Method Details

.create_object(message) ⇒ Object

template_object



41
42
43
# File 'lib/softlayer/network/gateway.rb', line 41

def self.create_object(message)
  request(:create_object, Softlayer::Network::Gateway, message)
end

Instance Method Details

#bypass_all_vlansObject



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

def bypass_all_vlans
  request(:bypass_all_vlans, nil)
end

#bypass_vlans(message) ⇒ Object

vlans



36
37
38
# File 'lib/softlayer/network/gateway.rb', line 36

def bypass_vlans(message)
  request(:bypass_vlans, nil, message)
end

#edit_object(message) ⇒ Object

template_object



46
47
48
# File 'lib/softlayer/network/gateway.rb', line 46

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

#get_accountObject



50
51
52
# File 'lib/softlayer/network/gateway.rb', line 50

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

#get_inside_vlansObject



54
55
56
# File 'lib/softlayer/network/gateway.rb', line 54

def get_inside_vlans
  request(:get_inside_vlans, Array[Softlayer::Network::Gateway::Vlan])
end

#get_membersObject



58
59
60
# File 'lib/softlayer/network/gateway.rb', line 58

def get_members
  request(:get_members, Array[Softlayer::Network::Gateway::Member])
end

#get_objectObject



62
63
64
# File 'lib/softlayer/network/gateway.rb', line 62

def get_object
  request(:get_object, Softlayer::Network::Gateway)
end

#get_possible_inside_vlansObject



66
67
68
# File 'lib/softlayer/network/gateway.rb', line 66

def get_possible_inside_vlans
  request(:get_possible_inside_vlans, Array[Softlayer::Network::Vlan])
end

#get_private_ip_addressObject



70
71
72
# File 'lib/softlayer/network/gateway.rb', line 70

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

#get_private_vlanObject



74
75
76
# File 'lib/softlayer/network/gateway.rb', line 74

def get_private_vlan
  request(:get_private_vlan, Softlayer::Network::Vlan)
end

#get_public_ip_addressObject



78
79
80
# File 'lib/softlayer/network/gateway.rb', line 78

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

#get_public_ipv6_addressObject



82
83
84
# File 'lib/softlayer/network/gateway.rb', line 82

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

#get_public_vlanObject



86
87
88
# File 'lib/softlayer/network/gateway.rb', line 86

def get_public_vlan
  request(:get_public_vlan, Softlayer::Network::Vlan)
end

#get_statusObject



90
91
92
# File 'lib/softlayer/network/gateway.rb', line 90

def get_status
  request(:get_status, Softlayer::Network::Gateway::Status)
end

#unbypass_all_vlansObject



94
95
96
# File 'lib/softlayer/network/gateway.rb', line 94

def unbypass_all_vlans
  request(:unbypass_all_vlans, nil)
end

#unbypass_vlans(message) ⇒ Object

vlans



99
100
101
# File 'lib/softlayer/network/gateway.rb', line 99

def unbypass_vlans(message)
  request(:unbypass_vlans, nil, message)
end