Class: Softlayer::Network::Vlan

Inherits:
Entity show all
Defined in:
lib/softlayer/network/vlan.rb,
lib/softlayer/network/vlan/type.rb,
lib/softlayer/network/vlan/firewall.rb,
lib/softlayer/network/vlan/firewall/rule.rb

Defined Under Namespace

Classes: Firewall, Representer, Type

Constant Summary collapse

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

#accountObject

Returns the value of attribute account.



34
35
36
# File 'lib/softlayer/network/vlan.rb', line 34

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



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

def 
  @account_id
end

#additional_primary_subnet_countObject

Returns the value of attribute additional_primary_subnet_count.



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

def additional_primary_subnet_count
  @additional_primary_subnet_count
end

#additional_primary_subnetsObject

Returns the value of attribute additional_primary_subnets.



35
36
37
# File 'lib/softlayer/network/vlan.rb', line 35

def additional_primary_subnets
  @additional_primary_subnets
end

#attached_network_gatewayObject

Returns the value of attribute attached_network_gateway.



36
37
38
# File 'lib/softlayer/network/vlan.rb', line 36

def attached_network_gateway
  @attached_network_gateway
end

#attached_network_gateway_flagObject

Returns the value of attribute attached_network_gateway_flag.



37
38
39
# File 'lib/softlayer/network/vlan.rb', line 37

def attached_network_gateway_flag
  @attached_network_gateway_flag
end

#attached_network_gateway_vlanObject

Returns the value of attribute attached_network_gateway_vlan.



38
39
40
# File 'lib/softlayer/network/vlan.rb', line 38

def attached_network_gateway_vlan
  @attached_network_gateway_vlan
end

#billing_itemObject

Returns the value of attribute billing_item.



39
40
41
# File 'lib/softlayer/network/vlan.rb', line 39

def billing_item
  @billing_item
end

#dedicated_firewall_flagObject

Returns the value of attribute dedicated_firewall_flag.



40
41
42
# File 'lib/softlayer/network/vlan.rb', line 40

def dedicated_firewall_flag
  @dedicated_firewall_flag
end

#extension_routerObject

Returns the value of attribute extension_router.



41
42
43
# File 'lib/softlayer/network/vlan.rb', line 41

def extension_router
  @extension_router
end

#firewall_guest_network_component_countObject

Returns the value of attribute firewall_guest_network_component_count.



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

def firewall_guest_network_component_count
  @firewall_guest_network_component_count
end

#firewall_guest_network_componentsObject

Returns the value of attribute firewall_guest_network_components.



42
43
44
# File 'lib/softlayer/network/vlan.rb', line 42

def firewall_guest_network_components
  @firewall_guest_network_components
end

#firewall_interface_countObject

Returns the value of attribute firewall_interface_count.



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

def firewall_interface_count
  @firewall_interface_count
end

#firewall_interfacesObject

Returns the value of attribute firewall_interfaces.



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

def firewall_interfaces
  @firewall_interfaces
end

#firewall_network_component_countObject

Returns the value of attribute firewall_network_component_count.



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

def firewall_network_component_count
  @firewall_network_component_count
end

#firewall_network_componentsObject

Returns the value of attribute firewall_network_components.



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

def firewall_network_components
  @firewall_network_components
end

#firewall_rule_countObject

Returns the value of attribute firewall_rule_count.



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

def firewall_rule_count
  @firewall_rule_count
end

#firewall_rulesObject

Returns the value of attribute firewall_rules.



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

def firewall_rules
  @firewall_rules
end

#guest_network_component_countObject

Returns the value of attribute guest_network_component_count.



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

def guest_network_component_count
  @guest_network_component_count
end

#guest_network_componentsObject

Returns the value of attribute guest_network_components.



46
47
48
# File 'lib/softlayer/network/vlan.rb', line 46

def guest_network_components
  @guest_network_components
end

#hardwareObject

Returns the value of attribute hardware.



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

def hardware
  @hardware
end

#hardware_countObject

Returns the value of attribute hardware_count.



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

def hardware_count
  @hardware_count
end

#high_availability_firewall_flagObject

Returns the value of attribute high_availability_firewall_flag.



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

def high_availability_firewall_flag
  @high_availability_firewall_flag
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#local_disk_storage_capability_flagObject

Returns the value of attribute local_disk_storage_capability_flag.



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

def local_disk_storage_capability_flag
  @local_disk_storage_capability_flag
end

#modify_dateObject

Returns the value of attribute modify_date.



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

def modify_date
  @modify_date
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#networkObject

Returns the value of attribute network.



50
51
52
# File 'lib/softlayer/network/vlan.rb', line 50

def network
  @network
end

#network_component_countObject

Returns the value of attribute network_component_count.



21
22
23
# File 'lib/softlayer/network/vlan.rb', line 21

def network_component_count
  @network_component_count
end

#network_component_trunk_countObject

Returns the value of attribute network_component_trunk_count.



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

def network_component_trunk_count
  @network_component_trunk_count
end

#network_component_trunksObject

Returns the value of attribute network_component_trunks.



51
52
53
# File 'lib/softlayer/network/vlan.rb', line 51

def network_component_trunks
  @network_component_trunks
end

#network_componentsObject

Returns the value of attribute network_components.



52
53
54
# File 'lib/softlayer/network/vlan.rb', line 52

def network_components
  @network_components
end

#network_spaceObject

Returns the value of attribute network_space.



53
54
55
# File 'lib/softlayer/network/vlan.rb', line 53

def network_space
  @network_space
end

#network_vlan_firewallObject

Returns the value of attribute network_vlan_firewall.



54
55
56
# File 'lib/softlayer/network/vlan.rb', line 54

def network_vlan_firewall
  @network_vlan_firewall
end

#noteObject

Returns the value of attribute note.



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

def note
  @note
end

#primary_routerObject

Returns the value of attribute primary_router.



55
56
57
# File 'lib/softlayer/network/vlan.rb', line 55

def primary_router
  @primary_router
end

#primary_subnetObject

Returns the value of attribute primary_subnet.



56
57
58
# File 'lib/softlayer/network/vlan.rb', line 56

def primary_subnet
  @primary_subnet
end

#primary_subnet_countObject

Returns the value of attribute primary_subnet_count.



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

def primary_subnet_count
  @primary_subnet_count
end

#primary_subnet_idObject

Returns the value of attribute primary_subnet_id.



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

def primary_subnet_id
  @primary_subnet_id
end

#primary_subnet_version6Object

Returns the value of attribute primary_subnet_version6.



57
58
59
# File 'lib/softlayer/network/vlan.rb', line 57

def primary_subnet_version6
  @primary_subnet_version6
end

#primary_subnetsObject

Returns the value of attribute primary_subnets.



58
59
60
# File 'lib/softlayer/network/vlan.rb', line 58

def primary_subnets
  @primary_subnets
end

#private_network_gateway_countObject

Returns the value of attribute private_network_gateway_count.



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

def private_network_gateway_count
  @private_network_gateway_count
end

#private_network_gatewaysObject

Returns the value of attribute private_network_gateways.



59
60
61
# File 'lib/softlayer/network/vlan.rb', line 59

def private_network_gateways
  @private_network_gateways
end

#protected_ip_address_countObject

Returns the value of attribute protected_ip_address_count.



25
26
27
# File 'lib/softlayer/network/vlan.rb', line 25

def protected_ip_address_count
  @protected_ip_address_count
end

#protected_ip_addressesObject

Returns the value of attribute protected_ip_addresses.



60
61
62
# File 'lib/softlayer/network/vlan.rb', line 60

def protected_ip_addresses
  @protected_ip_addresses
end

#public_network_gateway_countObject

Returns the value of attribute public_network_gateway_count.



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

def public_network_gateway_count
  @public_network_gateway_count
end

#public_network_gatewaysObject

Returns the value of attribute public_network_gateways.



61
62
63
# File 'lib/softlayer/network/vlan.rb', line 61

def public_network_gateways
  @public_network_gateways
end

#resource_group_countObject

Returns the value of attribute resource_group_count.



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

def resource_group_count
  @resource_group_count
end

#resource_group_memberObject

Returns the value of attribute resource_group_member.



62
63
64
# File 'lib/softlayer/network/vlan.rb', line 62

def resource_group_member
  @resource_group_member
end

#resource_group_member_countObject

Returns the value of attribute resource_group_member_count.



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

def resource_group_member_count
  @resource_group_member_count
end

#resource_groupsObject

Returns the value of attribute resource_groups.



63
64
65
# File 'lib/softlayer/network/vlan.rb', line 63

def resource_groups
  @resource_groups
end

#san_storage_capability_flagObject

Returns the value of attribute san_storage_capability_flag.



64
65
66
# File 'lib/softlayer/network/vlan.rb', line 64

def san_storage_capability_flag
  @san_storage_capability_flag
end

#scale_vlan_countObject

Returns the value of attribute scale_vlan_count.



29
30
31
# File 'lib/softlayer/network/vlan.rb', line 29

def scale_vlan_count
  @scale_vlan_count
end

#scale_vlansObject

Returns the value of attribute scale_vlans.



65
66
67
# File 'lib/softlayer/network/vlan.rb', line 65

def scale_vlans
  @scale_vlans
end

#secondary_routerObject

Returns the value of attribute secondary_router.



66
67
68
# File 'lib/softlayer/network/vlan.rb', line 66

def secondary_router
  @secondary_router
end

#secondary_subnet_countObject

Returns the value of attribute secondary_subnet_count.



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

def secondary_subnet_count
  @secondary_subnet_count
end

#secondary_subnetsObject

Returns the value of attribute secondary_subnets.



67
68
69
# File 'lib/softlayer/network/vlan.rb', line 67

def secondary_subnets
  @secondary_subnets
end

#subnet_countObject

Returns the value of attribute subnet_count.



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

def subnet_count
  @subnet_count
end

#subnetsObject

Returns the value of attribute subnets.



68
69
70
# File 'lib/softlayer/network/vlan.rb', line 68

def subnets
  @subnets
end

#tag_reference_countObject

Returns the value of attribute tag_reference_count.



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

def tag_reference_count
  @tag_reference_count
end

#tag_referencesObject

Returns the value of attribute tag_references.



69
70
71
# File 'lib/softlayer/network/vlan.rb', line 69

def tag_references
  @tag_references
end

#total_primary_ip_address_countObject

Returns the value of attribute total_primary_ip_address_count.



70
71
72
# File 'lib/softlayer/network/vlan.rb', line 70

def total_primary_ip_address_count
  @total_primary_ip_address_count
end

#typeObject

Returns the value of attribute type.



71
72
73
# File 'lib/softlayer/network/vlan.rb', line 71

def type
  @type
end

#virtual_guest_countObject

Returns the value of attribute virtual_guest_count.



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

def virtual_guest_count
  @virtual_guest_count
end

#virtual_guestsObject

Returns the value of attribute virtual_guests.



72
73
74
# File 'lib/softlayer/network/vlan.rb', line 72

def virtual_guests
  @virtual_guests
end

#vlan_numberObject

Returns the value of attribute vlan_number.



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

def vlan_number
  @vlan_number
end

Class Method Details

.get_private_vlan_by_ip_address(message) ⇒ Object

ip_address



204
205
206
# File 'lib/softlayer/network/vlan.rb', line 204

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

.get_public_vlan_by_fqdn(message) ⇒ Object

fqdn



217
218
219
# File 'lib/softlayer/network/vlan.rb', line 217

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

.get_vlan_for_ip_address(message) ⇒ Object

ip_address



270
271
272
# File 'lib/softlayer/network/vlan.rb', line 270

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

Instance Method Details

#edit_object(message) ⇒ Object

template_object



75
76
77
# File 'lib/softlayer/network/vlan.rb', line 75

def edit_object(message)
  request(:edit_object, Boolean, message)
end

#get_accountObject



79
80
81
# File 'lib/softlayer/network/vlan.rb', line 79

def 
  request(:get_account, Softlayer::Account)
end

#get_additional_primary_subnetsObject



83
84
85
# File 'lib/softlayer/network/vlan.rb', line 83

def get_additional_primary_subnets
  request(:get_additional_primary_subnets, Array[Softlayer::Network::Subnet])
end

#get_attached_network_gatewayObject



87
88
89
# File 'lib/softlayer/network/vlan.rb', line 87

def get_attached_network_gateway
  request(:get_attached_network_gateway, Softlayer::Network::Gateway)
end

#get_attached_network_gateway_flagObject



91
92
93
# File 'lib/softlayer/network/vlan.rb', line 91

def get_attached_network_gateway_flag
  request(:get_attached_network_gateway_flag, Boolean)
end

#get_attached_network_gateway_vlanObject



95
96
97
# File 'lib/softlayer/network/vlan.rb', line 95

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

#get_billing_itemObject



99
100
101
# File 'lib/softlayer/network/vlan.rb', line 99

def get_billing_item
  request(:get_billing_item, Softlayer::Billing::Item)
end

#get_cancel_failure_reasonsObject



103
104
105
# File 'lib/softlayer/network/vlan.rb', line 103

def get_cancel_failure_reasons
  request(:get_cancel_failure_reasons, Array[String])
end

#get_dedicated_firewall_flagObject



107
108
109
# File 'lib/softlayer/network/vlan.rb', line 107

def get_dedicated_firewall_flag
  request(:get_dedicated_firewall_flag, Integer)
end

#get_extension_routerObject



111
112
113
# File 'lib/softlayer/network/vlan.rb', line 111

def get_extension_router
  request(:get_extension_router, Softlayer::Hardware::Router)
end

#get_firewall_guest_network_componentsObject



115
116
117
# File 'lib/softlayer/network/vlan.rb', line 115

def get_firewall_guest_network_components
  request(:get_firewall_guest_network_components, Array[Softlayer::Network::Component::Firewall])
end

#get_firewall_interfacesObject



119
120
121
# File 'lib/softlayer/network/vlan.rb', line 119

def get_firewall_interfaces
  request(:get_firewall_interfaces, Array[Softlayer::Network::Firewall::Module::Context::Interface])
end

#get_firewall_network_componentsObject



123
124
125
# File 'lib/softlayer/network/vlan.rb', line 123

def get_firewall_network_components
  request(:get_firewall_network_components, Array[Softlayer::Network::Component::Firewall])
end

#get_firewall_protectable_ip_addressesObject



127
128
129
# File 'lib/softlayer/network/vlan.rb', line 127

def get_firewall_protectable_ip_addresses
  request(:get_firewall_protectable_ip_addresses, Array[Softlayer::Network::Subnet::IpAddress])
end

#get_firewall_protectable_subnetsObject



131
132
133
# File 'lib/softlayer/network/vlan.rb', line 131

def get_firewall_protectable_subnets
  request(:get_firewall_protectable_subnets, Array[Softlayer::Network::Subnet])
end

#get_firewall_rulesObject



135
136
137
# File 'lib/softlayer/network/vlan.rb', line 135

def get_firewall_rules
  request(:get_firewall_rules, Array[Softlayer::Network::Vlan::Firewall::Rule])
end

#get_guest_network_componentsObject



139
140
141
# File 'lib/softlayer/network/vlan.rb', line 139

def get_guest_network_components
  request(:get_guest_network_components, Array[Softlayer::Virtual::Guest::Network::Component])
end

#get_hardwareObject



143
144
145
# File 'lib/softlayer/network/vlan.rb', line 143

def get_hardware
  request(:get_hardware, Array[Softlayer::Hardware])
end

#get_high_availability_firewall_flagObject



147
148
149
# File 'lib/softlayer/network/vlan.rb', line 147

def get_high_availability_firewall_flag
  request(:get_high_availability_firewall_flag, Boolean)
end

#get_local_disk_storage_capability_flagObject



151
152
153
# File 'lib/softlayer/network/vlan.rb', line 151

def get_local_disk_storage_capability_flag
  request(:get_local_disk_storage_capability_flag, Boolean)
end

#get_networkObject



155
156
157
# File 'lib/softlayer/network/vlan.rb', line 155

def get_network
  request(:get_network, Softlayer::Network)
end

#get_network_component_trunksObject



159
160
161
# File 'lib/softlayer/network/vlan.rb', line 159

def get_network_component_trunks
  request(:get_network_component_trunks, Array[Softlayer::Network::Component::Network::Vlan::Trunk])
end

#get_network_componentsObject



163
164
165
# File 'lib/softlayer/network/vlan.rb', line 163

def get_network_components
  request(:get_network_components, Array[Softlayer::Network::Component])
end

#get_network_spaceObject



167
168
169
# File 'lib/softlayer/network/vlan.rb', line 167

def get_network_space
  request(:get_network_space, String)
end

#get_network_vlan_firewallObject



171
172
173
# File 'lib/softlayer/network/vlan.rb', line 171

def get_network_vlan_firewall
  request(:get_network_vlan_firewall, Softlayer::Network::Vlan::Firewall)
end

#get_objectObject



175
176
177
# File 'lib/softlayer/network/vlan.rb', line 175

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

#get_primary_routerObject



179
180
181
# File 'lib/softlayer/network/vlan.rb', line 179

def get_primary_router
  request(:get_primary_router, Softlayer::Hardware::Router)
end

#get_primary_subnetObject



183
184
185
# File 'lib/softlayer/network/vlan.rb', line 183

def get_primary_subnet
  request(:get_primary_subnet, Softlayer::Network::Subnet)
end

#get_primary_subnet_version6Object



187
188
189
# File 'lib/softlayer/network/vlan.rb', line 187

def get_primary_subnet_version6
  request(:get_primary_subnet_version6, Softlayer::Network::Subnet)
end

#get_primary_subnetsObject



191
192
193
# File 'lib/softlayer/network/vlan.rb', line 191

def get_primary_subnets
  request(:get_primary_subnets, Array[Softlayer::Network::Subnet])
end

#get_private_network_gatewaysObject



195
196
197
# File 'lib/softlayer/network/vlan.rb', line 195

def get_private_network_gateways
  request(:get_private_network_gateways, Array[Softlayer::Network::Gateway])
end

#get_private_vlanObject



199
200
201
# File 'lib/softlayer/network/vlan.rb', line 199

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

#get_protected_ip_addressesObject



208
209
210
# File 'lib/softlayer/network/vlan.rb', line 208

def get_protected_ip_addresses
  request(:get_protected_ip_addresses, Array[Softlayer::Network::Subnet::IpAddress])
end

#get_public_network_gatewaysObject



212
213
214
# File 'lib/softlayer/network/vlan.rb', line 212

def get_public_network_gateways
  request(:get_public_network_gateways, Array[Softlayer::Network::Gateway])
end

#get_resource_group_memberObject



221
222
223
# File 'lib/softlayer/network/vlan.rb', line 221

def get_resource_group_member
  request(:get_resource_group_member, Array[Softlayer::Resource::Group::Member])
end

#get_resource_groupsObject



225
226
227
# File 'lib/softlayer/network/vlan.rb', line 225

def get_resource_groups
  request(:get_resource_groups, Array[Softlayer::Resource::Group])
end

#get_reverse_domain_recordsObject



229
230
231
# File 'lib/softlayer/network/vlan.rb', line 229

def get_reverse_domain_records
  request(:get_reverse_domain_records, Array[Softlayer::Dns::Domain])
end

#get_san_storage_capability_flagObject



233
234
235
# File 'lib/softlayer/network/vlan.rb', line 233

def get_san_storage_capability_flag
  request(:get_san_storage_capability_flag, Boolean)
end

#get_scale_vlansObject



237
238
239
# File 'lib/softlayer/network/vlan.rb', line 237

def get_scale_vlans
  request(:get_scale_vlans, Array[Softlayer::Scale::Network::Vlan])
end

#get_secondary_routerObject



241
242
243
# File 'lib/softlayer/network/vlan.rb', line 241

def get_secondary_router
  request(:get_secondary_router, Softlayer::Hardware)
end

#get_secondary_subnetsObject



245
246
247
# File 'lib/softlayer/network/vlan.rb', line 245

def get_secondary_subnets
  request(:get_secondary_subnets, Array[Softlayer::Network::Subnet])
end

#get_subnetsObject



249
250
251
# File 'lib/softlayer/network/vlan.rb', line 249

def get_subnets
  request(:get_subnets, Array[Softlayer::Network::Subnet])
end

#get_tag_referencesObject



253
254
255
# File 'lib/softlayer/network/vlan.rb', line 253

def get_tag_references
  request(:get_tag_references, Array[Softlayer::Tag::Reference])
end

#get_total_primary_ip_address_countObject



257
258
259
# File 'lib/softlayer/network/vlan.rb', line 257

def get_total_primary_ip_address_count
  request(:get_total_primary_ip_address_count, Integer)
end

#get_typeObject



261
262
263
# File 'lib/softlayer/network/vlan.rb', line 261

def get_type
  request(:get_type, Softlayer::Network::Vlan::Type)
end

#get_virtual_guestsObject



265
266
267
# File 'lib/softlayer/network/vlan.rb', line 265

def get_virtual_guests
  request(:get_virtual_guests, Array[Softlayer::Virtual::Guest])
end

#set_tags(message) ⇒ Object

tags



275
276
277
# File 'lib/softlayer/network/vlan.rb', line 275

def set_tags(message)
  request(:set_tags, Boolean, message)
end

#update_firewall_intra_vlan_communication(message) ⇒ Object

enabled



280
281
282
# File 'lib/softlayer/network/vlan.rb', line 280

def update_firewall_intra_vlan_communication(message)
  request(:update_firewall_intra_vlan_communication, nil, message)
end