Class: Softlayer::Network::Message::Queue::Node

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/network/message/queue/node.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Network_Message_Queue_Node'

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

#account_nameObject

Returns the value of attribute account_name.



7
8
9
# File 'lib/softlayer/network/message/queue/node.rb', line 7

def 
  @account_name
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/softlayer/network/message/queue/node.rb', line 8

def id
  @id
end

#message_queueObject

Returns the value of attribute message_queue.



12
13
14
# File 'lib/softlayer/network/message/queue/node.rb', line 12

def message_queue
  @message_queue
end

#message_queue_idObject

Returns the value of attribute message_queue_id.



9
10
11
# File 'lib/softlayer/network/message/queue/node.rb', line 9

def message_queue_id
  @message_queue_id
end

#metric_tracking_objectObject

Returns the value of attribute metric_tracking_object.



13
14
15
# File 'lib/softlayer/network/message/queue/node.rb', line 13

def metric_tracking_object
  @metric_tracking_object
end

#nameObject

Returns the value of attribute name.



10
11
12
# File 'lib/softlayer/network/message/queue/node.rb', line 10

def name
  @name
end

#notesObject

Returns the value of attribute notes.



11
12
13
# File 'lib/softlayer/network/message/queue/node.rb', line 11

def notes
  @notes
end

#service_resourceObject

Returns the value of attribute service_resource.



14
15
16
# File 'lib/softlayer/network/message/queue/node.rb', line 14

def service_resource
  @service_resource
end

Instance Method Details

#add_user(message) ⇒ Object

username



17
18
19
# File 'lib/softlayer/network/message/queue/node.rb', line 17

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

#delete_user(message) ⇒ Object

username



22
23
24
# File 'lib/softlayer/network/message/queue/node.rb', line 22

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

#get_all_usersObject



26
27
28
# File 'lib/softlayer/network/message/queue/node.rb', line 26

def get_all_users
  request(:get_all_users, Array[String])
end

#get_message_queueObject



30
31
32
# File 'lib/softlayer/network/message/queue/node.rb', line 30

def get_message_queue
  request(:get_message_queue, Softlayer::Network::Message::Queue)
end

#get_metric_tracking_objectObject



34
35
36
# File 'lib/softlayer/network/message/queue/node.rb', line 34

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

#get_objectObject



38
39
40
# File 'lib/softlayer/network/message/queue/node.rb', line 38

def get_object
  request(:get_object, Softlayer::Network::Message::Queue::Node)
end

#get_service_resourceObject



42
43
44
# File 'lib/softlayer/network/message/queue/node.rb', line 42

def get_service_resource
  request(:get_service_resource, Softlayer::Network::Service::Resource)
end

#get_usage(message) ⇒ Object

start_date end_date



48
49
50
# File 'lib/softlayer/network/message/queue/node.rb', line 48

def get_usage(message)
  request(:get_usage, Array[Softlayer::Metric::Tracking::Object::Data], message)
end

#get_usage_graph(message) ⇒ Object

graph_data



53
54
55
# File 'lib/softlayer/network/message/queue/node.rb', line 53

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