Class: Softlayer::Network::Component
- 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
Defined Under Namespace
Modules: Duplex, Network, Uplink Classes: 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.
33 34 35 |
# File 'lib/softlayer/network/component.rb', line 33 def active_command @active_command end |
#downlink_component ⇒ Object
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_mode ⇒ Object
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_id ⇒ Object
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 |
#hardware ⇒ Object
Returns the value of attribute hardware.
36 37 38 |
# File 'lib/softlayer/network/component.rb', line 36 def hardware @hardware end |
#hardware_id ⇒ Object
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_flag ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
14 15 16 |
# File 'lib/softlayer/network/component.rb', line 14 def id @id end |
#interface ⇒ Object
Returns the value of attribute interface.
38 39 40 |
# File 'lib/softlayer/network/component.rb', line 38 def interface @interface end |
#ip_address_binding_count ⇒ Object
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_bindings ⇒ Object
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_count ⇒ Object
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_addresses ⇒ Object
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_address ⇒ Object
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_address ⇒ Object
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_command ⇒ Object
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_address ⇒ Object
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_speed ⇒ Object
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_object ⇒ Object
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_date ⇒ Object
Returns the value of attribute modify_date.
19 20 21 |
# File 'lib/softlayer/network/component.rb', line 19 def modify_date @modify_date end |
#name ⇒ Object
Returns the value of attribute name.
20 21 22 |
# File 'lib/softlayer/network/component.rb', line 20 def name @name end |
#network_component_firewall ⇒ Object
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_group ⇒ Object
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_hardware ⇒ Object
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_count ⇒ Object
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_vlan ⇒ Object
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_id ⇒ Object
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_count ⇒ Object
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_trunks ⇒ Object
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 |
#port ⇒ Object
Returns the value of attribute port.
22 23 24 |
# File 'lib/softlayer/network/component.rb', line 22 def port @port end |
#primary_ip_address ⇒ Object
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_record ⇒ Object
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_subnet ⇒ Object
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_record ⇒ Object
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_count ⇒ Object
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_commands ⇒ Object
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_flag ⇒ Object
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_flag ⇒ Object
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_count ⇒ Object
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_users ⇒ Object
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 |
#router ⇒ Object
Returns the value of attribute router.
55 56 57 |
# File 'lib/softlayer/network/component.rb', line 55 def router @router end |
#speed ⇒ Object
Returns the value of attribute speed.
24 25 26 |
# File 'lib/softlayer/network/component.rb', line 24 def speed @speed end |
#status ⇒ Object
Returns the value of attribute status.
25 26 27 |
# File 'lib/softlayer/network/component.rb', line 25 def status @status end |
#storage_network_flag ⇒ Object
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_count ⇒ Object
Returns the value of attribute subnet_count.
32 33 34 |
# File 'lib/softlayer/network/component.rb', line 32 def subnet_count @subnet_count end |
#subnets ⇒ Object
Returns the value of attribute subnets.
57 58 59 |
# File 'lib/softlayer/network/component.rb', line 57 def subnets @subnets end |
#uplink_component ⇒ Object
Returns the value of attribute uplink_component.
58 59 60 |
# File 'lib/softlayer/network/component.rb', line 58 def uplink_component @uplink_component end |
#uplink_duplex_mode ⇒ Object
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() request(:add_network_vlan_trunks, Array[Softlayer::Network::Vlan], ) end |
#clear_network_vlan_trunks ⇒ Object
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_command ⇒ Object
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() request(:get_custom_bandwidth_data_by_date, Softlayer::Container::Graph, ) end |
#get_downlink_component ⇒ Object
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_mode ⇒ Object
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_hardware ⇒ Object
87 88 89 |
# File 'lib/softlayer/network/component.rb', line 87 def get_hardware request(:get_hardware, Softlayer::Hardware) end |
#get_high_availability_firewall_flag ⇒ Object
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_interface ⇒ Object
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_bindings ⇒ Object
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_addresses ⇒ Object
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_command ⇒ Object
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_object ⇒ Object
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_firewall ⇒ Object
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_group ⇒ Object
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_hardware ⇒ Object
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_vlan ⇒ Object
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_trunks ⇒ Object
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_object ⇒ Object
135 136 137 |
# File 'lib/softlayer/network/component.rb', line 135 def get_object request(:get_object, Softlayer::Network::Component) end |
#get_port_statistics ⇒ Object
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_record ⇒ Object
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_subnet ⇒ Object
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_record ⇒ Object
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_commands ⇒ Object
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_flag ⇒ Object
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_flag ⇒ Object
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_users ⇒ Object
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_router ⇒ Object
171 172 173 |
# File 'lib/softlayer/network/component.rb', line 171 def get_router request(:get_router, Softlayer::Hardware) end |
#get_storage_network_flag ⇒ Object
175 176 177 |
# File 'lib/softlayer/network/component.rb', line 175 def get_storage_network_flag request(:get_storage_network_flag, Boolean) end |
#get_subnets ⇒ Object
179 180 181 |
# File 'lib/softlayer/network/component.rb', line 179 def get_subnets request(:get_subnets, Array[Softlayer::Network::Subnet]) end |
#get_uplink_component ⇒ Object
183 184 185 |
# File 'lib/softlayer/network/component.rb', line 183 def get_uplink_component request(:get_uplink_component, Softlayer::Network::Component) end |