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/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: 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.



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

def active_command
  @active_command
end

Returns the value of attribute downlink_component.



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

def downlink_component
  @downlink_component
end

#duplex_modeObject

Returns the value of attribute duplex_mode.



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

def duplex_mode
  @duplex_mode
end

#duplex_mode_idObject

Returns the value of attribute duplex_mode_id.



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

def duplex_mode_id
  @duplex_mode_id
end

#hardwareObject

Returns the value of attribute hardware.



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

def hardware
  @hardware
end

#hardware_idObject

Returns the value of attribute hardware_id.



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

def hardware_id
  @hardware_id
end

#high_availability_firewall_flagObject

Returns the value of attribute high_availability_firewall_flag.



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

def high_availability_firewall_flag
  @high_availability_firewall_flag
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#interfaceObject

Returns the value of attribute interface.



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

def interface
  @interface
end

#ip_address_binding_countObject

Returns the value of attribute ip_address_binding_count.



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

def ip_address_binding_count
  @ip_address_binding_count
end

#ip_address_bindingsObject

Returns the value of attribute ip_address_bindings.



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

def ip_address_bindings
  @ip_address_bindings
end

#ip_address_countObject

Returns the value of attribute ip_address_count.



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

def ip_address_count
  @ip_address_count
end

#ip_addressesObject

Returns the value of attribute ip_addresses.



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

def ip_addresses
  @ip_addresses
end

#ipmi_ip_addressObject

Returns the value of attribute ipmi_ip_address.



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

def ipmi_ip_address
  @ipmi_ip_address
end

#ipmi_mac_addressObject

Returns the value of attribute ipmi_mac_address.



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

def ipmi_mac_address
  @ipmi_mac_address
end

#last_commandObject

Returns the value of attribute last_command.



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

def last_command
  @last_command
end

#mac_addressObject

Returns the value of attribute mac_address.



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

def mac_address
  @mac_address
end

#max_speedObject

Returns the value of attribute max_speed.



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

def max_speed
  @max_speed
end

#metric_tracking_objectObject

Returns the value of attribute metric_tracking_object.



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

def metric_tracking_object
  @metric_tracking_object
end

#modify_dateObject

Returns the value of attribute modify_date.



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

def modify_date
  @modify_date
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#network_component_firewallObject

Returns the value of attribute network_component_firewall.



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

def network_component_firewall
  @network_component_firewall
end

#network_component_groupObject

Returns the value of attribute network_component_group.



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

def network_component_group
  @network_component_group
end

#network_hardwareObject

Returns the value of attribute network_hardware.



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

def network_hardware
  @network_hardware
end

#network_hardware_countObject

Returns the value of attribute network_hardware_count.



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

def network_hardware_count
  @network_hardware_count
end

#network_vlanObject

Returns the value of attribute network_vlan.



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

def network_vlan
  @network_vlan
end

#network_vlan_idObject

Returns the value of attribute network_vlan_id.



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

def network_vlan_id
  @network_vlan_id
end

#network_vlan_trunk_countObject

Returns the value of attribute network_vlan_trunk_count.



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

def network_vlan_trunk_count
  @network_vlan_trunk_count
end

#network_vlan_trunksObject

Returns the value of attribute network_vlan_trunks.



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

def network_vlan_trunks
  @network_vlan_trunks
end

#portObject

Returns the value of attribute port.



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

def port
  @port
end

#primary_ip_addressObject

Returns the value of attribute primary_ip_address.



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

def primary_ip_address
  @primary_ip_address
end

#primary_ip_address_recordObject

Returns the value of attribute primary_ip_address_record.



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

def primary_ip_address_record
  @primary_ip_address_record
end

#primary_subnetObject

Returns the value of attribute primary_subnet.



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

def primary_subnet
  @primary_subnet
end

#primary_version6_ip_address_recordObject

Returns the value of attribute primary_version6_ip_address_record.



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

def primary_version6_ip_address_record
  @primary_version6_ip_address_record
end

#recent_command_countObject

Returns the value of attribute recent_command_count.



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

def recent_command_count
  @recent_command_count
end

#recent_commandsObject

Returns the value of attribute recent_commands.



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

def recent_commands
  @recent_commands
end

#redundancy_capable_flagObject

Returns the value of attribute redundancy_capable_flag.



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

def redundancy_capable_flag
  @redundancy_capable_flag
end

#redundancy_enabled_flagObject

Returns the value of attribute redundancy_enabled_flag.



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

def redundancy_enabled_flag
  @redundancy_enabled_flag
end

#remote_management_user_countObject

Returns the value of attribute remote_management_user_count.



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

def remote_management_user_count
  @remote_management_user_count
end

#remote_management_usersObject

Returns the value of attribute remote_management_users.



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

def remote_management_users
  @remote_management_users
end

#routerObject

Returns the value of attribute router.



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

def router
  @router
end

#speedObject

Returns the value of attribute speed.



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

def speed
  @speed
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#storage_network_flagObject

Returns the value of attribute storage_network_flag.



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

def storage_network_flag
  @storage_network_flag
end

#subnet_countObject

Returns the value of attribute subnet_count.



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

def subnet_count
  @subnet_count
end

#subnetsObject

Returns the value of attribute subnets.



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

def subnets
  @subnets
end

Returns the value of attribute uplink_component.



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

def uplink_component
  @uplink_component
end

Returns the value of attribute uplink_duplex_mode.



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

def uplink_duplex_mode
  @uplink_duplex_mode
end

Instance Method Details

#add_network_vlan_trunks(message) ⇒ Object

network_vlans



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

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

#clear_network_vlan_trunksObject



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

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

#get_active_commandObject



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

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



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

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


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

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

#get_duplex_modeObject



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

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

#get_hardwareObject



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

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

#get_high_availability_firewall_flagObject



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

def get_high_availability_firewall_flag
  request(:get_high_availability_firewall_flag, Boolean)
end

#get_interfaceObject



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

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

#get_ip_address_bindingsObject



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

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

#get_ip_addressesObject



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

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

#get_last_commandObject



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

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

#get_metric_tracking_objectObject



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

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

#get_network_component_firewallObject



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

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

#get_network_component_groupObject



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

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

#get_network_hardwareObject



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

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

#get_network_vlanObject



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

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

#get_network_vlan_trunksObject



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

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

#get_objectObject



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

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

#get_port_statisticsObject



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

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

#get_primary_ip_address_recordObject



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

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

#get_primary_subnetObject



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

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

#get_primary_version6_ip_address_recordObject



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

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

#get_recent_commandsObject



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

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

#get_redundancy_capable_flagObject



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

def get_redundancy_capable_flag
  request(:get_redundancy_capable_flag, Boolean)
end

#get_redundancy_enabled_flagObject



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

def get_redundancy_enabled_flag
  request(:get_redundancy_enabled_flag, Boolean)
end

#get_remote_management_usersObject



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

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

#get_routerObject



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

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

#get_storage_network_flagObject



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

def get_storage_network_flag
  request(:get_storage_network_flag, Boolean)
end

#get_subnetsObject



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

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


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

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


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

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

#remove_network_vlan_trunks(message) ⇒ Object

network_vlans



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

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