Class: Softlayer::Scale::Network::Vlan

Inherits:
Entity show all
Defined in:
lib/softlayer/scale/network/vlan.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Scale_Network_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

#create_dateObject

Returns the value of attribute create_date.



6
7
8
# File 'lib/softlayer/scale/network/vlan.rb', line 6

def create_date
  @create_date
end

#delete_flagObject

Returns the value of attribute delete_flag.



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

def delete_flag
  @delete_flag
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#network_vlanObject

Returns the value of attribute network_vlan.



11
12
13
# File 'lib/softlayer/scale/network/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/scale/network/vlan.rb', line 9

def network_vlan_id
  @network_vlan_id
end

#scale_groupObject

Returns the value of attribute scale_group.



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

def scale_group
  @scale_group
end

#scale_group_idObject

Returns the value of attribute scale_group_id.



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

def scale_group_id
  @scale_group_id
end

Class Method Details

.create_object(message) ⇒ Object

template_object



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

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

Instance Method Details

#delete_objectObject



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

def delete_object
  request(:delete_object, Boolean)
end

#get_network_vlanObject



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

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

#get_objectObject



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

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

#get_scale_groupObject



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

def get_scale_group
  request(:get_scale_group, Softlayer::Scale::Group)
end