Class: Softlayer::Notification::Occurrence::User

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/notification/occurrence/user.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Notification_Occurrence_User'

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

#acknowledged_flagObject

Returns the value of attribute acknowledged_flag.



6
7
8
# File 'lib/softlayer/notification/occurrence/user.rb', line 6

def acknowledged_flag
  @acknowledged_flag
end

#activeObject

Returns the value of attribute active.



7
8
9
# File 'lib/softlayer/notification/occurrence/user.rb', line 7

def active
  @active
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/softlayer/notification/occurrence/user.rb', line 8

def id
  @id
end

#impacted_resource_countObject

Returns the value of attribute impacted_resource_count.



10
11
12
# File 'lib/softlayer/notification/occurrence/user.rb', line 10

def impacted_resource_count
  @impacted_resource_count
end

#impacted_resourcesObject

Returns the value of attribute impacted_resources.



11
12
13
# File 'lib/softlayer/notification/occurrence/user.rb', line 11

def impacted_resources
  @impacted_resources
end

#notification_occurrence_eventObject

Returns the value of attribute notification_occurrence_event.



12
13
14
# File 'lib/softlayer/notification/occurrence/user.rb', line 12

def notification_occurrence_event
  @notification_occurrence_event
end

#userObject

Returns the value of attribute user.



13
14
15
# File 'lib/softlayer/notification/occurrence/user.rb', line 13

def user
  @user
end

#usr_record_idObject

Returns the value of attribute usr_record_id.



9
10
11
# File 'lib/softlayer/notification/occurrence/user.rb', line 9

def usr_record_id
  @usr_record_id
end

Class Method Details

.get_all_objectsObject



19
20
21
# File 'lib/softlayer/notification/occurrence/user.rb', line 19

def self.get_all_objects
  request(:get_all_objects, Array[Softlayer::Notification::Occurrence::User])
end

Instance Method Details

#acknowledgeObject



15
16
17
# File 'lib/softlayer/notification/occurrence/user.rb', line 15

def acknowledge
  request(:acknowledge, Boolean)
end

#get_impacted_device_countObject



23
24
25
# File 'lib/softlayer/notification/occurrence/user.rb', line 23

def get_impacted_device_count
  request(:get_impacted_device_count, Integer)
end

#get_impacted_resourcesObject



27
28
29
# File 'lib/softlayer/notification/occurrence/user.rb', line 27

def get_impacted_resources
  request(:get_impacted_resources, Array[Softlayer::Notification::Occurrence::Resource])
end

#get_notification_occurrence_eventObject



31
32
33
# File 'lib/softlayer/notification/occurrence/user.rb', line 31

def get_notification_occurrence_event
  request(:get_notification_occurrence_event, Softlayer::Notification::Occurrence::Event)
end

#get_objectObject



35
36
37
# File 'lib/softlayer/notification/occurrence/user.rb', line 35

def get_object
  request(:get_object, Softlayer::Notification::Occurrence::User)
end

#get_userObject



39
40
41
# File 'lib/softlayer/notification/occurrence/user.rb', line 39

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