Class: Softlayer::Network::Gateway::Vlan

Inherits:
Model
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

all, all_request_for, create, find, parse, request, #request, #to_hash

Instance Attribute Details

#bypass_flagObject

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

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#network_gatewayObject

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_idObject

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_vlanObject

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_idObject

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(template_object = nil) ⇒ Object



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

def self.create_object(template_object = nil)
  message = {template_object: template_object}
  request(:create_object, Softlayer::Network::Gateway::Vlan, message)
end

.create_objects(template_objects = nil) ⇒ Object



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

def self.create_objects(template_objects = nil)
  message = {template_objects: template_objects}
  request(:create_objects, Array[Softlayer::Network::Gateway::Vlan], message)
end

.delete_objects(template_objects = nil) ⇒ Object



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

def self.delete_objects(template_objects = nil)
  message = {template_objects: template_objects}
  request(:delete_objects, Boolean, message)
end

Instance Method Details

#bypassObject



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

def bypass
  request(:bypass, nil)
end

#delete_objectObject



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

def delete_object
  request(:delete_object, nil)
end

#get_network_gatewayObject



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_vlanObject



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_objectObject



44
45
46
# File 'lib/softlayer/network/gateway/vlan.rb', line 44

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

#unbypassObject



48
49
50
# File 'lib/softlayer/network/gateway/vlan.rb', line 48

def unbypass
  request(:unbypass, nil)
end