Class: Softlayer::Network::Monitor::Version1::Query::Host
- Defined in:
- lib/softlayer/network/monitor/version1/query/host.rb,
lib/softlayer/network/monitor/version1/query/host/stratum.rb
Defined Under Namespace
Classes: Representer, Stratum
Constant Summary collapse
- SERVICE =
'SoftLayer_Network_Monitor_Version1_Query_Host'
Instance Attribute Summary collapse
-
#arg1_value ⇒ Object
Returns the value of attribute arg1_value.
-
#guest_id ⇒ Object
Returns the value of attribute guest_id.
-
#hardware ⇒ Object
Returns the value of attribute hardware.
-
#hardware_id ⇒ Object
Returns the value of attribute hardware_id.
-
#host_id ⇒ Object
Returns the value of attribute host_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#last_result ⇒ Object
Returns the value of attribute last_result.
-
#query_type ⇒ Object
Returns the value of attribute query_type.
-
#query_type_id ⇒ Object
Returns the value of attribute query_type_id.
-
#response_action ⇒ Object
Returns the value of attribute response_action.
-
#response_action_id ⇒ Object
Returns the value of attribute response_action_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#subnet ⇒ Object
Returns the value of attribute subnet.
-
#wait_cycles ⇒ Object
Returns the value of attribute wait_cycles.
Class Method Summary collapse
- .create_object(template_object = nil) ⇒ Object
- .create_objects(template_objects = nil) ⇒ Object
- .delete_objects(template_objects = nil) ⇒ Object
- .edit_objects(template_objects = nil) ⇒ Object
- .find_by_hardware_id(hardware_id = nil) ⇒ Object
Instance Method Summary collapse
- #delete_object ⇒ Object
- #edit_object(template_object = nil) ⇒ Object
- #get_hardware ⇒ Object
- #get_last_result ⇒ Object
- #get_object ⇒ Object
- #get_query_type ⇒ Object
- #get_response_action ⇒ Object
- #get_subnet ⇒ Object
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, request, #request, service_name, #service_name, #to_hash
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#arg1_value ⇒ Object
Returns the value of attribute arg1_value.
9 10 11 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 9 def arg1_value @arg1_value end |
#guest_id ⇒ Object
Returns the value of attribute guest_id.
10 11 12 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 10 def guest_id @guest_id end |
#hardware ⇒ Object
Returns the value of attribute hardware.
19 20 21 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 19 def hardware @hardware end |
#hardware_id ⇒ Object
Returns the value of attribute hardware_id.
11 12 13 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 11 def hardware_id @hardware_id end |
#host_id ⇒ Object
Returns the value of attribute host_id.
12 13 14 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 12 def host_id @host_id end |
#id ⇒ Object
Returns the value of attribute id.
13 14 15 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 13 def id @id end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
14 15 16 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 14 def ip_address @ip_address end |
#last_result ⇒ Object
Returns the value of attribute last_result.
20 21 22 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 20 def last_result @last_result end |
#query_type ⇒ Object
Returns the value of attribute query_type.
21 22 23 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 21 def query_type @query_type end |
#query_type_id ⇒ Object
Returns the value of attribute query_type_id.
15 16 17 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 15 def query_type_id @query_type_id end |
#response_action ⇒ Object
Returns the value of attribute response_action.
22 23 24 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 22 def response_action @response_action end |
#response_action_id ⇒ Object
Returns the value of attribute response_action_id.
16 17 18 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 16 def response_action_id @response_action_id end |
#status ⇒ Object
Returns the value of attribute status.
17 18 19 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 17 def status @status end |
#subnet ⇒ Object
Returns the value of attribute subnet.
23 24 25 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 23 def subnet @subnet end |
#wait_cycles ⇒ Object
Returns the value of attribute wait_cycles.
18 19 20 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 18 def wait_cycles @wait_cycles end |
Class Method Details
.create_object(template_object = nil) ⇒ Object
25 26 27 28 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 25 def self.create_object(template_object = nil) = {template_object: template_object} request(:create_object, Softlayer::Network::Monitor::Version1::Query::Host, ) end |
.create_objects(template_objects = nil) ⇒ Object
30 31 32 33 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 30 def self.create_objects(template_objects = nil) = {template_objects: template_objects} request(:create_objects, Array[Softlayer::Network::Monitor::Version1::Query::Host], ) end |
.delete_objects(template_objects = nil) ⇒ Object
39 40 41 42 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 39 def self.delete_objects(template_objects = nil) = {template_objects: template_objects} request(:delete_objects, Boolean, ) end |
.edit_objects(template_objects = nil) ⇒ Object
49 50 51 52 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 49 def self.edit_objects(template_objects = nil) = {template_objects: template_objects} request(:edit_objects, Boolean, ) end |
.find_by_hardware_id(hardware_id = nil) ⇒ Object
54 55 56 57 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 54 def self.find_by_hardware_id(hardware_id = nil) = {hardware_id: hardware_id} request(:find_by_hardware_id, Array[Softlayer::Network::Monitor::Version1::Query::Host], ) end |
Instance Method Details
#delete_object ⇒ Object
35 36 37 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 35 def delete_object request(:delete_object, Boolean) end |
#edit_object(template_object = nil) ⇒ Object
44 45 46 47 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 44 def edit_object(template_object = nil) = {template_object: template_object} request(:edit_object, Boolean, ) end |
#get_hardware ⇒ Object
59 60 61 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 59 def get_hardware request(:get_hardware, Softlayer::Hardware) end |
#get_last_result ⇒ Object
63 64 65 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 63 def get_last_result request(:get_last_result, Softlayer::Network::Monitor::Version1::Query::Result) end |
#get_object ⇒ Object
67 68 69 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 67 def get_object request(:get_object, Softlayer::Network::Monitor::Version1::Query::Host) end |
#get_query_type ⇒ Object
71 72 73 |
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 71 def get_query_type request(:get_query_type, Softlayer::Network::Monitor::Version1::Query::Type) end |