Class: Softlayer::Event::Log

Inherits:
Model
  • Object
show all
Defined in:
lib/softlayer/event/log.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Event_Log'

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, request, #request, service_name, #to_hash

Methods included from Model::Operations

extended, #filter, included, #limit, #mask, #request_headers

Instance Attribute Details

#account_idObject

Returns the value of attribute account_id.



5
6
7
# File 'lib/softlayer/event/log.rb', line 5

def 
  @account_id
end

#event_create_dateObject

Returns the value of attribute event_create_date.



6
7
8
# File 'lib/softlayer/event/log.rb', line 6

def event_create_date
  @event_create_date
end

#event_nameObject

Returns the value of attribute event_name.



7
8
9
# File 'lib/softlayer/event/log.rb', line 7

def event_name
  @event_name
end

#ip_addressObject

Returns the value of attribute ip_address.



8
9
10
# File 'lib/softlayer/event/log.rb', line 8

def ip_address
  @ip_address
end

#labelObject

Returns the value of attribute label.



9
10
11
# File 'lib/softlayer/event/log.rb', line 9

def label
  @label
end

#meta_dataObject

Returns the value of attribute meta_data.



10
11
12
# File 'lib/softlayer/event/log.rb', line 10

def 
  @meta_data
end

#object_idObject

Returns the value of attribute object_id.



11
12
13
# File 'lib/softlayer/event/log.rb', line 11

def object_id
  @object_id
end

#object_nameObject

Returns the value of attribute object_name.



12
13
14
# File 'lib/softlayer/event/log.rb', line 12

def object_name
  @object_name
end

#trace_idObject

Returns the value of attribute trace_id.



13
14
15
# File 'lib/softlayer/event/log.rb', line 13

def trace_id
  @trace_id
end

#userObject

Returns the value of attribute user.



17
18
19
# File 'lib/softlayer/event/log.rb', line 17

def user
  @user
end

#user_idObject

Returns the value of attribute user_id.



14
15
16
# File 'lib/softlayer/event/log.rb', line 14

def user_id
  @user_id
end

#user_typeObject

Returns the value of attribute user_type.



15
16
17
# File 'lib/softlayer/event/log.rb', line 15

def user_type
  @user_type
end

#usernameObject

Returns the value of attribute username.



16
17
18
# File 'lib/softlayer/event/log.rb', line 16

def username
  @username
end

Class Method Details

.get_all_event_names(object_name = nil) ⇒ Object



19
20
21
22
# File 'lib/softlayer/event/log.rb', line 19

def self.get_all_event_names(object_name = nil)
  message = {object_name: object_name}
  request(:get_all_event_names, Array[String], message)
end

.get_all_event_object_namesObject



24
25
26
# File 'lib/softlayer/event/log.rb', line 24

def self.get_all_event_object_names
  request(:get_all_event_object_names, Array[String])
end

.get_all_objectsObject



28
29
30
# File 'lib/softlayer/event/log.rb', line 28

def self.get_all_objects
  request(:get_all_objects, Array[Softlayer::Event::Log])
end

.get_all_user_typesObject



32
33
34
# File 'lib/softlayer/event/log.rb', line 32

def self.get_all_user_types
  request(:get_all_user_types, Array[String])
end

Instance Method Details

#get_userObject



36
37
38
# File 'lib/softlayer/event/log.rb', line 36

def get_user
  request(:get_user, Softlayer::User::Customer)
end