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

Inherits:
Entity
  • 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, #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_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(message) ⇒ Object

template_object



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

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

.create_objects(message) ⇒ Object

template_objects



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

def self.create_objects(message)
  request(:create_objects, Array[Softlayer::Network::Gateway::Vlan], message)
end

.delete_objects(message) ⇒ Object

template_objects



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

def self.delete_objects(message)
  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