Class: Softlayer::Network::Monitor::Version1::Query::Host

Inherits:
Entity
  • Object
show all
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

Class Method 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

#arg1_valueObject

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_idObject

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

#hardwareObject

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_idObject

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_idObject

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

#idObject

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_addressObject

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_resultObject

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_typeObject

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_idObject

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_actionObject

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_idObject

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

#statusObject

Returns the value of attribute status.



17
18
19
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 17

def status
  @status
end

#wait_cyclesObject

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(message) ⇒ Object

template_object



25
26
27
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 25

def self.create_object(message)
  request(:create_object, Softlayer::Network::Monitor::Version1::Query::Host, message)
end

.create_objects(message) ⇒ Object

template_objects



30
31
32
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 30

def self.create_objects(message)
  request(:create_objects, Array[Softlayer::Network::Monitor::Version1::Query::Host], message)
end

.delete_objects(message) ⇒ Object

template_objects



39
40
41
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 39

def self.delete_objects(message)
  request(:delete_objects, Boolean, message)
end

.edit_objects(message) ⇒ Object

template_objects



49
50
51
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 49

def self.edit_objects(message)
  request(:edit_objects, Boolean, message)
end

.find_by_hardware_id(message) ⇒ Object

hardware_id



54
55
56
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 54

def self.find_by_hardware_id(message)
  request(:find_by_hardware_id, Array[Softlayer::Network::Monitor::Version1::Query::Host], message)
end

Instance Method Details

#delete_objectObject



34
35
36
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 34

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



44
45
46
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 44

def edit_object(message)
  request(:edit_object, Boolean, message)
end

#get_hardwareObject



58
59
60
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 58

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

#get_last_resultObject



62
63
64
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 62

def get_last_result
  request(:get_last_result, Softlayer::Network::Monitor::Version1::Query::Result)
end

#get_objectObject



66
67
68
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 66

def get_object
  request(:get_object, Softlayer::Network::Monitor::Version1::Query::Host)
end

#get_query_typeObject



70
71
72
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 70

def get_query_type
  request(:get_query_type, Softlayer::Network::Monitor::Version1::Query::Type)
end

#get_response_actionObject



74
75
76
# File 'lib/softlayer/network/monitor/version1/query/host.rb', line 74

def get_response_action
  request(:get_response_action, Softlayer::Network::Monitor::Version1::Query::ResponseType)
end