Class: Softlayer::Network::Gateway::Vlan
- Defined in:
- lib/softlayer/network/gateway/vlan.rb
Defined Under Namespace
Classes: Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_Network_Gateway_Vlan'
Instance Attribute Summary collapse
-
#bypass_flag ⇒ Object
Returns the value of attribute bypass_flag.
-
#id ⇒ Object
Returns the value of attribute id.
-
#network_gateway ⇒ Object
Returns the value of attribute network_gateway.
-
#network_gateway_id ⇒ Object
Returns the value of attribute network_gateway_id.
-
#network_vlan ⇒ Object
Returns the value of attribute network_vlan.
-
#network_vlan_id ⇒ Object
Returns the value of attribute network_vlan_id.
Class Method Summary collapse
-
.create_object(message) ⇒ Object
template_object.
-
.create_objects(message) ⇒ Object
template_objects.
-
.delete_objects(message) ⇒ Object
template_objects.
Instance Method Summary collapse
- #bypass ⇒ Object
- #delete_object ⇒ Object
- #get_network_gateway ⇒ Object
- #get_network_vlan ⇒ Object
- #get_object ⇒ Object
- #unbypass ⇒ Object
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
#bypass_flag ⇒ Object
Returns the value of attribute bypass_flag.
6 7 8 |
# File 'lib/softlayer/network/gateway/vlan.rb', line 6 def bypass_flag @bypass_flag end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/softlayer/network/gateway/vlan.rb', line 7 def id @id end |
#network_gateway ⇒ Object
Returns the value of attribute network_gateway.
10 11 12 |
# File 'lib/softlayer/network/gateway/vlan.rb', line 10 def network_gateway @network_gateway end |
#network_gateway_id ⇒ Object
Returns the value of attribute network_gateway_id.
8 9 10 |
# File 'lib/softlayer/network/gateway/vlan.rb', line 8 def network_gateway_id @network_gateway_id end |
#network_vlan ⇒ Object
Returns the value of attribute network_vlan.
11 12 13 |
# File 'lib/softlayer/network/gateway/vlan.rb', line 11 def network_vlan @network_vlan end |
#network_vlan_id ⇒ Object
Returns the value of attribute network_vlan_id.
9 10 11 |
# File 'lib/softlayer/network/gateway/vlan.rb', line 9 def network_vlan_id @network_vlan_id end |
Class Method Details
.create_object(message) ⇒ Object
template_object
18 19 20 |
# File 'lib/softlayer/network/gateway/vlan.rb', line 18 def self.create_object() request(:create_object, Softlayer::Network::Gateway::Vlan, ) end |
.create_objects(message) ⇒ Object
template_objects
23 24 25 |
# File 'lib/softlayer/network/gateway/vlan.rb', line 23 def self.create_objects() request(:create_objects, Array[Softlayer::Network::Gateway::Vlan], ) end |
.delete_objects(message) ⇒ Object
template_objects
32 33 34 |
# File 'lib/softlayer/network/gateway/vlan.rb', line 32 def self.delete_objects() request(:delete_objects, Boolean, ) end |
Instance Method Details
#bypass ⇒ Object
13 14 15 |
# File 'lib/softlayer/network/gateway/vlan.rb', line 13 def bypass request(:bypass, nil) end |
#delete_object ⇒ Object
27 28 29 |
# File 'lib/softlayer/network/gateway/vlan.rb', line 27 def delete_object request(:delete_object, nil) end |
#get_network_gateway ⇒ Object
36 37 38 |
# File 'lib/softlayer/network/gateway/vlan.rb', line 36 def get_network_gateway request(:get_network_gateway, Softlayer::Network::Gateway) end |
#get_network_vlan ⇒ Object
40 41 42 |
# File 'lib/softlayer/network/gateway/vlan.rb', line 40 def get_network_vlan request(:get_network_vlan, Softlayer::Network::Vlan) end |
#get_object ⇒ Object
44 45 46 |
# File 'lib/softlayer/network/gateway/vlan.rb', line 44 def get_object request(:get_object, Softlayer::Network::Gateway::Vlan) end |
#unbypass ⇒ Object
48 49 50 |
# File 'lib/softlayer/network/gateway/vlan.rb', line 48 def unbypass request(:unbypass, nil) end |