Class: Softlayer::Network::Component

Inherits:
Entity show all
Defined in:
lib/softlayer/network/component.rb,
lib/softlayer/network/component/group.rb,
lib/softlayer/network/component/detail.rb,
lib/softlayer/network/component/duplex.rb,
lib/softlayer/network/component/uplink.rb,
lib/softlayer/network/component/network.rb,
lib/softlayer/network/component/firewall.rb,
lib/softlayer/network/component/ip_address.rb,
lib/softlayer/network/component/duplex/mode.rb,
lib/softlayer/network/component/network/vlan.rb,
lib/softlayer/network/component/firewall/rule.rb,
lib/softlayer/network/component/uplink/hardware.rb,
lib/softlayer/network/component/firewall/subnets.rb,
lib/softlayer/network/component/remote_management.rb,
lib/softlayer/network/component/network/vlan/trunk.rb

Direct Known Subclasses

RemoteManagement

Defined Under Namespace

Modules: Duplex, Network, Uplink Classes: Detail, Firewall, Group, IpAddress, RemoteManagement, Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Network_Component'

Instance Attribute 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

#active_commandObject

Returns the value of attribute active_command.



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

def active_command
  @active_command
end

Returns the value of attribute downlink_component.



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

def downlink_component
  @downlink_component
end

#duplex_modeObject

Returns the value of attribute duplex_mode.



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

def duplex_mode
  @duplex_mode
end

#duplex_mode_idObject

Returns the value of attribute duplex_mode_id.



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

def duplex_mode_id
  @duplex_mode_id
end

#hardwareObject

Returns the value of attribute hardware.



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

def hardware
  @hardware
end

#hardware_idObject

Returns the value of attribute hardware_id.



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

def hardware_id
  @hardware_id
end

#high_availability_firewall_flagObject

Returns the value of attribute high_availability_firewall_flag.



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

def high_availability_firewall_flag
  @high_availability_firewall_flag
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#interfaceObject

Returns the value of attribute interface.



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

def interface
  @interface
end

#ip_address_binding_countObject

Returns the value of attribute ip_address_binding_count.



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

def ip_address_binding_count
  @ip_address_binding_count
end

#ip_address_bindingsObject

Returns the value of attribute ip_address_bindings.



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

def ip_address_bindings
  @ip_address_bindings
end

#ip_address_countObject

Returns the value of attribute ip_address_count.



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

def ip_address_count
  @ip_address_count
end

#ip_addressesObject

Returns the value of attribute ip_addresses.



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

def ip_addresses
  @ip_addresses
end

#ipmi_ip_addressObject

Returns the value of attribute ipmi_ip_address.



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

def ipmi_ip_address
  @ipmi_ip_address
end

#ipmi_mac_addressObject

Returns the value of attribute ipmi_mac_address.



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

def ipmi_mac_address
  @ipmi_mac_address
end

#last_commandObject

Returns the value of attribute last_command.



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

def last_command
  @last_command
end

#mac_addressObject

Returns the value of attribute mac_address.



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

def mac_address
  @mac_address
end

#max_speedObject

Returns the value of attribute max_speed.



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

def max_speed
  @max_speed
end

#metric_tracking_objectObject

Returns the value of attribute metric_tracking_object.



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

def metric_tracking_object
  @metric_tracking_object
end

#modify_dateObject

Returns the value of attribute modify_date.



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

def modify_date
  @modify_date
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#network_component_firewallObject

Returns the value of attribute network_component_firewall.



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

def network_component_firewall
  @network_component_firewall
end

#network_component_groupObject

Returns the value of attribute network_component_group.



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

def network_component_group
  @network_component_group
end

#network_hardwareObject

Returns the value of attribute network_hardware.



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

def network_hardware
  @network_hardware
end

#network_hardware_countObject

Returns the value of attribute network_hardware_count.



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

def network_hardware_count
  @network_hardware_count
end

#network_vlanObject

Returns the value of attribute network_vlan.



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

def network_vlan
  @network_vlan
end

#network_vlan_idObject

Returns the value of attribute network_vlan_id.



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

def network_vlan_id
  @network_vlan_id
end

#network_vlan_trunk_countObject

Returns the value of attribute network_vlan_trunk_count.



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

def network_vlan_trunk_count
  @network_vlan_trunk_count
end

#network_vlan_trunksObject

Returns the value of attribute network_vlan_trunks.



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

def network_vlan_trunks
  @network_vlan_trunks
end

#portObject

Returns the value of attribute port.



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

def port
  @port
end

#primary_ip_addressObject

Returns the value of attribute primary_ip_address.



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

def primary_ip_address
  @primary_ip_address
end

#primary_ip_address_recordObject

Returns the value of attribute primary_ip_address_record.



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

def primary_ip_address_record
  @primary_ip_address_record
end

#primary_subnetObject

Returns the value of attribute primary_subnet.



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

def primary_subnet
  @primary_subnet
end

#primary_version6_ip_address_recordObject

Returns the value of attribute primary_version6_ip_address_record.



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

def primary_version6_ip_address_record
  @primary_version6_ip_address_record
end

#recent_command_countObject

Returns the value of attribute recent_command_count.



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

def recent_command_count
  @recent_command_count
end

#recent_commandsObject

Returns the value of attribute recent_commands.



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

def recent_commands
  @recent_commands
end

#redundancy_capable_flagObject

Returns the value of attribute redundancy_capable_flag.



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

def redundancy_capable_flag
  @redundancy_capable_flag
end

#redundancy_enabled_flagObject

Returns the value of attribute redundancy_enabled_flag.



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

def redundancy_enabled_flag
  @redundancy_enabled_flag
end

#remote_management_user_countObject

Returns the value of attribute remote_management_user_count.



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

def remote_management_user_count
  @remote_management_user_count
end

#remote_management_usersObject

Returns the value of attribute remote_management_users.



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

def remote_management_users
  @remote_management_users
end

#routerObject

Returns the value of attribute router.



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

def router
  @router
end

#speedObject

Returns the value of attribute speed.



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

def speed
  @speed
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#storage_network_flagObject

Returns the value of attribute storage_network_flag.



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

def storage_network_flag
  @storage_network_flag
end

#subnet_countObject

Returns the value of attribute subnet_count.



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

def subnet_count
  @subnet_count
end

#subnetsObject

Returns the value of attribute subnets.



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

def subnets
  @subnets
end

Returns the value of attribute uplink_component.



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

def uplink_component
  @uplink_component
end

Returns the value of attribute uplink_duplex_mode.



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

def uplink_duplex_mode
  @uplink_duplex_mode
end

Instance Method Details

#add_network_vlan_trunks(message) ⇒ Object

network_vlans



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

def add_network_vlan_trunks(message)
  request(:add_network_vlan_trunks, Array[Softlayer::Network::Vlan], message)
end

#clear_network_vlan_trunksObject



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

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

#get_active_commandObject



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

def get_active_command
  request(:get_active_command, Softlayer::Hardware::Component::RemoteManagement::Command::Request)
end

#get_custom_bandwidth_data_by_date(message) ⇒ Object

graph_data



76
77
78
# File 'lib/softlayer/network/component.rb', line 76

def get_custom_bandwidth_data_by_date(message)
  request(:get_custom_bandwidth_data_by_date, Softlayer::Container::Graph, message)
end


80
81
82
# File 'lib/softlayer/network/component.rb', line 80

def get_downlink_component
  request(:get_downlink_component, Softlayer::Network::Component)
end

#get_duplex_modeObject



84
85
86
# File 'lib/softlayer/network/component.rb', line 84

def get_duplex_mode
  request(:get_duplex_mode, Softlayer::Network::Component::Duplex::Mode)
end

#get_hardwareObject



88
89
90
# File 'lib/softlayer/network/component.rb', line 88

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

#get_high_availability_firewall_flagObject



92
93
94
# File 'lib/softlayer/network/component.rb', line 92

def get_high_availability_firewall_flag
  request(:get_high_availability_firewall_flag, Boolean)
end

#get_interfaceObject



96
97
98
# File 'lib/softlayer/network/component.rb', line 96

def get_interface
  request(:get_interface, Softlayer::Network::Bandwidth::Version1::Interface)
end

#get_ip_address_bindingsObject



100
101
102
# File 'lib/softlayer/network/component.rb', line 100

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

#get_ip_addressesObject



104
105
106
# File 'lib/softlayer/network/component.rb', line 104

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

#get_last_commandObject



108
109
110
# File 'lib/softlayer/network/component.rb', line 108

def get_last_command
  request(:get_last_command, Softlayer::Hardware::Component::RemoteManagement::Command::Request)
end

#get_metric_tracking_objectObject



112
113
114
# File 'lib/softlayer/network/component.rb', line 112

def get_metric_tracking_object
  request(:get_metric_tracking_object, Softlayer::Metric::Tracking::Object)
end

#get_network_component_firewallObject



116
117
118
# File 'lib/softlayer/network/component.rb', line 116

def get_network_component_firewall
  request(:get_network_component_firewall, Softlayer::Network::Component::Firewall)
end

#get_network_component_groupObject



120
121
122
# File 'lib/softlayer/network/component.rb', line 120

def get_network_component_group
  request(:get_network_component_group, Softlayer::Network::Component::Group)
end

#get_network_hardwareObject



124
125
126
# File 'lib/softlayer/network/component.rb', line 124

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

#get_network_vlanObject



128
129
130
# File 'lib/softlayer/network/component.rb', line 128

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

#get_network_vlan_trunksObject



132
133
134
# File 'lib/softlayer/network/component.rb', line 132

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

#get_objectObject



136
137
138
# File 'lib/softlayer/network/component.rb', line 136

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

#get_port_statisticsObject



140
141
142
# File 'lib/softlayer/network/component.rb', line 140

def get_port_statistics
  request(:get_port_statistics, Softlayer::Container::Network::Port::Statistic)
end

#get_primary_ip_address_recordObject



144
145
146
# File 'lib/softlayer/network/component.rb', line 144

def get_primary_ip_address_record
  request(:get_primary_ip_address_record, Softlayer::Network::Subnet::IpAddress)
end

#get_primary_subnetObject



148
149
150
# File 'lib/softlayer/network/component.rb', line 148

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

#get_primary_version6_ip_address_recordObject



152
153
154
# File 'lib/softlayer/network/component.rb', line 152

def get_primary_version6_ip_address_record
  request(:get_primary_version6_ip_address_record, Softlayer::Network::Subnet::IpAddress)
end

#get_recent_commandsObject



156
157
158
# File 'lib/softlayer/network/component.rb', line 156

def get_recent_commands
  request(:get_recent_commands, Array[Softlayer::Hardware::Component::RemoteManagement::Command::Request])
end

#get_redundancy_capable_flagObject



160
161
162
# File 'lib/softlayer/network/component.rb', line 160

def get_redundancy_capable_flag
  request(:get_redundancy_capable_flag, Boolean)
end

#get_redundancy_enabled_flagObject



164
165
166
# File 'lib/softlayer/network/component.rb', line 164

def get_redundancy_enabled_flag
  request(:get_redundancy_enabled_flag, Boolean)
end

#get_remote_management_usersObject



168
169
170
# File 'lib/softlayer/network/component.rb', line 168

def get_remote_management_users
  request(:get_remote_management_users, Array[Softlayer::Hardware::Component::RemoteManagement::User])
end

#get_routerObject



172
173
174
# File 'lib/softlayer/network/component.rb', line 172

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

#get_storage_network_flagObject



176
177
178
# File 'lib/softlayer/network/component.rb', line 176

def get_storage_network_flag
  request(:get_storage_network_flag, Boolean)
end

#get_subnetsObject



180
181
182
# File 'lib/softlayer/network/component.rb', line 180

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


184
185
186
# File 'lib/softlayer/network/component.rb', line 184

def get_uplink_component
  request(:get_uplink_component, Softlayer::Network::Component)
end


188
189
190
# File 'lib/softlayer/network/component.rb', line 188

def get_uplink_duplex_mode
  request(:get_uplink_duplex_mode, Softlayer::Network::Component::Duplex::Mode)
end

#remove_network_vlan_trunks(message) ⇒ Object

network_vlans



193
194
195
# File 'lib/softlayer/network/component.rb', line 193

def remove_network_vlan_trunks(message)
  request(:remove_network_vlan_trunks, Array[Softlayer::Network::Vlan], message)
end