Class: Softlayer::Network::Gateway
- 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
-
#account ⇒ Object
Returns the value of attribute account.
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#group_number ⇒ Object
Returns the value of attribute group_number.
-
#id ⇒ Object
Returns the value of attribute id.
-
#inside_vlan_count ⇒ Object
Returns the value of attribute inside_vlan_count.
-
#inside_vlans ⇒ Object
Returns the value of attribute inside_vlans.
-
#member_count ⇒ Object
Returns the value of attribute member_count.
-
#members ⇒ Object
Returns the value of attribute members.
-
#name ⇒ Object
Returns the value of attribute name.
-
#network_space ⇒ Object
Returns the value of attribute network_space.
-
#private_ip_address ⇒ Object
Returns the value of attribute private_ip_address.
-
#private_ip_address_id ⇒ Object
Returns the value of attribute private_ip_address_id.
-
#private_vlan ⇒ Object
Returns the value of attribute private_vlan.
-
#private_vlan_id ⇒ Object
Returns the value of attribute private_vlan_id.
-
#public_ip_address ⇒ Object
Returns the value of attribute public_ip_address.
-
#public_ip_address_id ⇒ Object
Returns the value of attribute public_ip_address_id.
-
#public_ipv6_address ⇒ Object
Returns the value of attribute public_ipv6_address.
-
#public_ipv6_address_id ⇒ Object
Returns the value of attribute public_ipv6_address_id.
-
#public_vlan ⇒ Object
Returns the value of attribute public_vlan.
-
#public_vlan_id ⇒ Object
Returns the value of attribute public_vlan_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_id ⇒ Object
Returns the value of attribute status_id.
Class Method Summary collapse
-
.create_object(message) ⇒ Object
template_object.
Instance Method Summary collapse
- #bypass_all_vlans ⇒ Object
-
#bypass_vlans(message) ⇒ Object
vlans.
-
#edit_object(message) ⇒ Object
template_object.
- #get_account ⇒ Object
- #get_inside_vlans ⇒ Object
- #get_members ⇒ Object
- #get_object ⇒ Object
- #get_possible_inside_vlans ⇒ Object
- #get_private_ip_address ⇒ Object
- #get_private_vlan ⇒ Object
- #get_public_ip_address ⇒ Object
- #get_public_ipv6_address ⇒ Object
- #get_public_vlan ⇒ Object
- #get_status ⇒ Object
- #unbypass_all_vlans ⇒ Object
-
#unbypass_vlans(message) ⇒ Object
vlans.
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
#account ⇒ Object
Returns the value of attribute account.
21 22 23 |
# File 'lib/softlayer/network/gateway.rb', line 21 def account @account end |
#account_id ⇒ Object
Returns the value of attribute account_id.
8 9 10 |
# File 'lib/softlayer/network/gateway.rb', line 8 def account_id @account_id end |
#group_number ⇒ Object
Returns the value of attribute group_number.
9 10 11 |
# File 'lib/softlayer/network/gateway.rb', line 9 def group_number @group_number end |
#id ⇒ Object
Returns the value of attribute id.
10 11 12 |
# File 'lib/softlayer/network/gateway.rb', line 10 def id @id end |
#inside_vlan_count ⇒ Object
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_vlans ⇒ Object
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_count ⇒ Object
Returns the value of attribute member_count.
20 21 22 |
# File 'lib/softlayer/network/gateway.rb', line 20 def member_count @member_count end |
#members ⇒ Object
Returns the value of attribute members.
23 24 25 |
# File 'lib/softlayer/network/gateway.rb', line 23 def members @members end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/softlayer/network/gateway.rb', line 11 def name @name end |
#network_space ⇒ Object
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_address ⇒ Object
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_id ⇒ Object
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_vlan ⇒ Object
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_id ⇒ Object
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_address ⇒ Object
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_id ⇒ Object
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_address ⇒ Object
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_id ⇒ Object
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_vlan ⇒ Object
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_id ⇒ Object
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 |
#status ⇒ Object
Returns the value of attribute status.
29 30 31 |
# File 'lib/softlayer/network/gateway.rb', line 29 def status @status end |
#status_id ⇒ Object
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
Instance Method Details
#bypass_all_vlans ⇒ Object
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() request(:bypass_vlans, nil, ) end |
#edit_object(message) ⇒ Object
template_object
46 47 48 |
# File 'lib/softlayer/network/gateway.rb', line 46 def edit_object() request(:edit_object, Boolean, ) end |
#get_account ⇒ Object
50 51 52 |
# File 'lib/softlayer/network/gateway.rb', line 50 def get_account request(:get_account, Softlayer::Account) end |
#get_inside_vlans ⇒ Object
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_members ⇒ Object
58 59 60 |
# File 'lib/softlayer/network/gateway.rb', line 58 def get_members request(:get_members, Array[Softlayer::Network::Gateway::Member]) end |
#get_object ⇒ Object
62 63 64 |
# File 'lib/softlayer/network/gateway.rb', line 62 def get_object request(:get_object, Softlayer::Network::Gateway) end |
#get_possible_inside_vlans ⇒ Object
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_address ⇒ Object
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_vlan ⇒ Object
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_address ⇒ Object
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_address ⇒ Object
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_vlan ⇒ Object
86 87 88 |
# File 'lib/softlayer/network/gateway.rb', line 86 def get_public_vlan request(:get_public_vlan, Softlayer::Network::Vlan) end |
#get_status ⇒ Object
90 91 92 |
# File 'lib/softlayer/network/gateway.rb', line 90 def get_status request(:get_status, Softlayer::Network::Gateway::Status) end |
#unbypass_all_vlans ⇒ Object
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() request(:unbypass_vlans, nil, ) end |