Class: Softlayer::Network::Component
- 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
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
-
#active_command ⇒ Object
Returns the value of attribute active_command.
-
#downlink_component ⇒ Object
Returns the value of attribute downlink_component.
-
#duplex_mode ⇒ Object
Returns the value of attribute duplex_mode.
-
#duplex_mode_id ⇒ Object
Returns the value of attribute duplex_mode_id.
-
#hardware ⇒ Object
Returns the value of attribute hardware.
-
#hardware_id ⇒ Object
Returns the value of attribute hardware_id.
-
#high_availability_firewall_flag ⇒ Object
Returns the value of attribute high_availability_firewall_flag.
-
#id ⇒ Object
Returns the value of attribute id.
-
#interface ⇒ Object
Returns the value of attribute interface.
-
#ip_address_binding_count ⇒ Object
Returns the value of attribute ip_address_binding_count.
-
#ip_address_bindings ⇒ Object
Returns the value of attribute ip_address_bindings.
-
#ip_address_count ⇒ Object
Returns the value of attribute ip_address_count.
-
#ip_addresses ⇒ Object
Returns the value of attribute ip_addresses.
-
#ipmi_ip_address ⇒ Object
Returns the value of attribute ipmi_ip_address.
-
#ipmi_mac_address ⇒ Object
Returns the value of attribute ipmi_mac_address.
-
#last_command ⇒ Object
Returns the value of attribute last_command.
-
#mac_address ⇒ Object
Returns the value of attribute mac_address.
-
#max_speed ⇒ Object
Returns the value of attribute max_speed.
-
#metric_tracking_object ⇒ Object
Returns the value of attribute metric_tracking_object.
-
#modify_date ⇒ Object
Returns the value of attribute modify_date.
-
#name ⇒ Object
Returns the value of attribute name.
-
#network_component_firewall ⇒ Object
Returns the value of attribute network_component_firewall.
-
#network_component_group ⇒ Object
Returns the value of attribute network_component_group.
-
#network_hardware ⇒ Object
Returns the value of attribute network_hardware.
-
#network_hardware_count ⇒ Object
Returns the value of attribute network_hardware_count.
-
#network_vlan ⇒ Object
Returns the value of attribute network_vlan.
-
#network_vlan_id ⇒ Object
Returns the value of attribute network_vlan_id.
-
#network_vlan_trunk_count ⇒ Object
Returns the value of attribute network_vlan_trunk_count.
-
#network_vlan_trunks ⇒ Object
Returns the value of attribute network_vlan_trunks.
-
#port ⇒ Object
Returns the value of attribute port.
-
#primary_ip_address ⇒ Object
Returns the value of attribute primary_ip_address.
-
#primary_ip_address_record ⇒ Object
Returns the value of attribute primary_ip_address_record.
-
#primary_subnet ⇒ Object
Returns the value of attribute primary_subnet.
-
#primary_version6_ip_address_record ⇒ Object
Returns the value of attribute primary_version6_ip_address_record.
-
#recent_command_count ⇒ Object
Returns the value of attribute recent_command_count.
-
#recent_commands ⇒ Object
Returns the value of attribute recent_commands.
-
#redundancy_capable_flag ⇒ Object
Returns the value of attribute redundancy_capable_flag.
-
#redundancy_enabled_flag ⇒ Object
Returns the value of attribute redundancy_enabled_flag.
-
#remote_management_user_count ⇒ Object
Returns the value of attribute remote_management_user_count.
-
#remote_management_users ⇒ Object
Returns the value of attribute remote_management_users.
-
#router ⇒ Object
Returns the value of attribute router.
-
#speed ⇒ Object
Returns the value of attribute speed.
-
#status ⇒ Object
Returns the value of attribute status.
-
#storage_network_flag ⇒ Object
Returns the value of attribute storage_network_flag.
-
#subnet_count ⇒ Object
Returns the value of attribute subnet_count.
-
#subnets ⇒ Object
Returns the value of attribute subnets.
-
#uplink_component ⇒ Object
Returns the value of attribute uplink_component.
-
#uplink_duplex_mode ⇒ Object
Returns the value of attribute uplink_duplex_mode.
Instance Method Summary collapse
-
#add_network_vlan_trunks(message) ⇒ Object
network_vlans.
- #clear_network_vlan_trunks ⇒ Object
- #get_active_command ⇒ Object
-
#get_custom_bandwidth_data_by_date(message) ⇒ Object
graph_data.
- #get_downlink_component ⇒ Object
- #get_duplex_mode ⇒ Object
- #get_hardware ⇒ Object
- #get_high_availability_firewall_flag ⇒ Object
- #get_interface ⇒ Object
- #get_ip_address_bindings ⇒ Object
- #get_ip_addresses ⇒ Object
- #get_last_command ⇒ Object
- #get_metric_tracking_object ⇒ Object
- #get_network_component_firewall ⇒ Object
- #get_network_component_group ⇒ Object
- #get_network_hardware ⇒ Object
- #get_network_vlan ⇒ Object
- #get_network_vlan_trunks ⇒ Object
- #get_object ⇒ Object
- #get_port_statistics ⇒ Object
- #get_primary_ip_address_record ⇒ Object
- #get_primary_subnet ⇒ Object
- #get_primary_version6_ip_address_record ⇒ Object
- #get_recent_commands ⇒ Object
- #get_redundancy_capable_flag ⇒ Object
- #get_redundancy_enabled_flag ⇒ Object
- #get_remote_management_users ⇒ Object
- #get_router ⇒ Object
- #get_storage_network_flag ⇒ Object
- #get_subnets ⇒ Object
- #get_uplink_component ⇒ Object
- #get_uplink_duplex_mode ⇒ Object
-
#remove_network_vlan_trunks(message) ⇒ Object
network_vlans.
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_command ⇒ Object
Returns the value of attribute active_command.
34 35 36 |
# File 'lib/softlayer/network/component.rb', line 34 def active_command @active_command end |
#downlink_component ⇒ Object
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_mode ⇒ Object
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_id ⇒ Object
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 |
#hardware ⇒ Object
Returns the value of attribute hardware.
37 38 39 |
# File 'lib/softlayer/network/component.rb', line 37 def hardware @hardware end |
#hardware_id ⇒ Object
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_flag ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
15 16 17 |
# File 'lib/softlayer/network/component.rb', line 15 def id @id end |
#interface ⇒ Object
Returns the value of attribute interface.
39 40 41 |
# File 'lib/softlayer/network/component.rb', line 39 def interface @interface end |
#ip_address_binding_count ⇒ Object
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_bindings ⇒ Object
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_count ⇒ Object
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_addresses ⇒ Object
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_address ⇒ Object
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_address ⇒ Object
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_command ⇒ Object
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_address ⇒ Object
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_speed ⇒ Object
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_object ⇒ Object
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_date ⇒ Object
Returns the value of attribute modify_date.
20 21 22 |
# File 'lib/softlayer/network/component.rb', line 20 def modify_date @modify_date end |
#name ⇒ Object
Returns the value of attribute name.
21 22 23 |
# File 'lib/softlayer/network/component.rb', line 21 def name @name end |
#network_component_firewall ⇒ Object
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_group ⇒ Object
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_hardware ⇒ Object
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_count ⇒ Object
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_vlan ⇒ Object
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_id ⇒ Object
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_count ⇒ Object
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_trunks ⇒ Object
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 |
#port ⇒ Object
Returns the value of attribute port.
23 24 25 |
# File 'lib/softlayer/network/component.rb', line 23 def port @port end |
#primary_ip_address ⇒ Object
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_record ⇒ Object
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_subnet ⇒ Object
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_record ⇒ Object
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_count ⇒ Object
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_commands ⇒ Object
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_flag ⇒ Object
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_flag ⇒ Object
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_count ⇒ Object
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_users ⇒ Object
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 |
#router ⇒ Object
Returns the value of attribute router.
56 57 58 |
# File 'lib/softlayer/network/component.rb', line 56 def router @router end |
#speed ⇒ Object
Returns the value of attribute speed.
25 26 27 |
# File 'lib/softlayer/network/component.rb', line 25 def speed @speed end |
#status ⇒ Object
Returns the value of attribute status.
26 27 28 |
# File 'lib/softlayer/network/component.rb', line 26 def status @status end |
#storage_network_flag ⇒ Object
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_count ⇒ Object
Returns the value of attribute subnet_count.
33 34 35 |
# File 'lib/softlayer/network/component.rb', line 33 def subnet_count @subnet_count end |
#subnets ⇒ Object
Returns the value of attribute subnets.
58 59 60 |
# File 'lib/softlayer/network/component.rb', line 58 def subnets @subnets end |
#uplink_component ⇒ Object
Returns the value of attribute uplink_component.
59 60 61 |
# File 'lib/softlayer/network/component.rb', line 59 def uplink_component @uplink_component end |
#uplink_duplex_mode ⇒ Object
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() request(:add_network_vlan_trunks, Array[Softlayer::Network::Vlan], ) end |
#clear_network_vlan_trunks ⇒ Object
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_command ⇒ Object
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() request(:get_custom_bandwidth_data_by_date, Softlayer::Container::Graph, ) end |
#get_downlink_component ⇒ Object
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_mode ⇒ Object
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_hardware ⇒ Object
88 89 90 |
# File 'lib/softlayer/network/component.rb', line 88 def get_hardware request(:get_hardware, Softlayer::Hardware) end |
#get_high_availability_firewall_flag ⇒ Object
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_interface ⇒ Object
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_bindings ⇒ Object
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_addresses ⇒ Object
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_command ⇒ Object
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_object ⇒ Object
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_firewall ⇒ Object
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_group ⇒ Object
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_hardware ⇒ Object
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_vlan ⇒ Object
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_trunks ⇒ Object
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_object ⇒ Object
136 137 138 |
# File 'lib/softlayer/network/component.rb', line 136 def get_object request(:get_object, Softlayer::Network::Component) end |
#get_port_statistics ⇒ Object
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_record ⇒ Object
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_subnet ⇒ Object
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_record ⇒ Object
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_commands ⇒ Object
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_flag ⇒ Object
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_flag ⇒ Object
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_users ⇒ Object
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_router ⇒ Object
172 173 174 |
# File 'lib/softlayer/network/component.rb', line 172 def get_router request(:get_router, Softlayer::Hardware) end |
#get_storage_network_flag ⇒ Object
176 177 178 |
# File 'lib/softlayer/network/component.rb', line 176 def get_storage_network_flag request(:get_storage_network_flag, Boolean) end |
#get_subnets ⇒ Object
180 181 182 |
# File 'lib/softlayer/network/component.rb', line 180 def get_subnets request(:get_subnets, Array[Softlayer::Network::Subnet]) end |
#get_uplink_component ⇒ Object
184 185 186 |
# File 'lib/softlayer/network/component.rb', line 184 def get_uplink_component request(:get_uplink_component, Softlayer::Network::Component) end |
#get_uplink_duplex_mode ⇒ Object
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() request(:remove_network_vlan_trunks, Array[Softlayer::Network::Vlan], ) end |