Class: Softlayer::Notification::Occurrence::Event

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/notification/occurrence/event.rb,
lib/softlayer/notification/occurrence/event/type.rb,
lib/softlayer/notification/occurrence/event/attachment.rb

Defined Under Namespace

Classes: Attachment, Representer, Type

Constant Summary collapse

SERVICE =
'SoftLayer_Notification_Occurrence_Event'

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

#attachment_countObject

Returns the value of attribute attachment_count.



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

def attachment_count
  @attachment_count
end

#attachmentsObject

Returns the value of attribute attachments.



22
23
24
# File 'lib/softlayer/notification/occurrence/event.rb', line 22

def attachments
  @attachments
end

#end_dateObject

Returns the value of attribute end_date.



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

def end_date
  @end_date
end

#first_updateObject

Returns the value of attribute first_update.



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

def first_update
  @first_update
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#impacted_account_countObject

Returns the value of attribute impacted_account_count.



18
19
20
# File 'lib/softlayer/notification/occurrence/event.rb', line 18

def 
  @impacted_account_count
end

#impacted_accountsObject

Returns the value of attribute impacted_accounts.



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

def impacted_accounts
  @impacted_accounts
end

#impacted_resource_countObject

Returns the value of attribute impacted_resource_count.



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

def impacted_resource_count
  @impacted_resource_count
end

#impacted_resourcesObject

Returns the value of attribute impacted_resources.



25
26
27
# File 'lib/softlayer/notification/occurrence/event.rb', line 25

def impacted_resources
  @impacted_resources
end

#impacted_user_countObject

Returns the value of attribute impacted_user_count.



20
21
22
# File 'lib/softlayer/notification/occurrence/event.rb', line 20

def impacted_user_count
  @impacted_user_count
end

#impacted_usersObject

Returns the value of attribute impacted_users.



26
27
28
# File 'lib/softlayer/notification/occurrence/event.rb', line 26

def impacted_users
  @impacted_users
end

#last_impacted_user_countObject

Returns the value of attribute last_impacted_user_count.



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

def last_impacted_user_count
  @last_impacted_user_count
end

#last_updateObject

Returns the value of attribute last_update.



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

def last_update
  @last_update
end

#modify_dateObject

Returns the value of attribute modify_date.



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

def modify_date
  @modify_date
end

#notification_occurrence_event_typeObject

Returns the value of attribute notification_occurrence_event_type.



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

def notification_occurrence_event_type
  @notification_occurrence_event_type
end

#recovery_timeObject

Returns the value of attribute recovery_time.



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

def recovery_time
  @recovery_time
end

#start_dateObject

Returns the value of attribute start_date.



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

def start_date
  @start_date
end

#status_codeObject

Returns the value of attribute status_code.



29
30
31
# File 'lib/softlayer/notification/occurrence/event.rb', line 29

def status_code
  @status_code
end

#subjectObject

Returns the value of attribute subject.



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

def subject
  @subject
end

#summaryObject

Returns the value of attribute summary.



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

def summary
  @summary
end

#system_ticket_idObject

Returns the value of attribute system_ticket_id.



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

def system_ticket_id
  @system_ticket_id
end

#update_countObject

Returns the value of attribute update_count.



21
22
23
# File 'lib/softlayer/notification/occurrence/event.rb', line 21

def update_count
  @update_count
end

#updatesObject

Returns the value of attribute updates.



30
31
32
# File 'lib/softlayer/notification/occurrence/event.rb', line 30

def updates
  @updates
end

Class Method Details

.get_all_objectsObject



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

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

Instance Method Details

#acknowledge_notificationObject



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

def acknowledge_notification
  request(:acknowledge_notification, Boolean)
end

#get_attached_file(message) ⇒ Object

attachment_id



41
42
43
# File 'lib/softlayer/notification/occurrence/event.rb', line 41

def get_attached_file(message)
  request(:get_attached_file, Softlayer::Base64Binary, message)
end

#get_attachmentsObject



45
46
47
# File 'lib/softlayer/notification/occurrence/event.rb', line 45

def get_attachments
  request(:get_attachments, Array[Softlayer::Notification::Occurrence::Event::Attachment])
end

#get_first_updateObject



49
50
51
# File 'lib/softlayer/notification/occurrence/event.rb', line 49

def get_first_update
  request(:get_first_update, Softlayer::Notification::Occurrence::Update)
end

#get_impacted_account_countObject



53
54
55
# File 'lib/softlayer/notification/occurrence/event.rb', line 53

def 
  request(:get_impacted_account_count, Integer)
end

#get_impacted_accountsObject



57
58
59
# File 'lib/softlayer/notification/occurrence/event.rb', line 57

def get_impacted_accounts
  request(:get_impacted_accounts, Array[Softlayer::Notification::Occurrence::Account])
end

#get_impacted_device_countObject



61
62
63
# File 'lib/softlayer/notification/occurrence/event.rb', line 61

def get_impacted_device_count
  request(:get_impacted_device_count, Integer)
end

#get_impacted_devicesObject



65
66
67
# File 'lib/softlayer/notification/occurrence/event.rb', line 65

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

#get_impacted_resourcesObject



69
70
71
# File 'lib/softlayer/notification/occurrence/event.rb', line 69

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

#get_impacted_usersObject



73
74
75
# File 'lib/softlayer/notification/occurrence/event.rb', line 73

def get_impacted_users
  request(:get_impacted_users, Array[Softlayer::Notification::Occurrence::User])
end

#get_last_updateObject



77
78
79
# File 'lib/softlayer/notification/occurrence/event.rb', line 77

def get_last_update
  request(:get_last_update, Softlayer::Notification::Occurrence::Update)
end

#get_notification_occurrence_event_typeObject



81
82
83
# File 'lib/softlayer/notification/occurrence/event.rb', line 81

def get_notification_occurrence_event_type
  request(:get_notification_occurrence_event_type, Softlayer::Notification::Occurrence::Event::Type)
end

#get_objectObject



85
86
87
# File 'lib/softlayer/notification/occurrence/event.rb', line 85

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

#get_status_codeObject



89
90
91
# File 'lib/softlayer/notification/occurrence/event.rb', line 89

def get_status_code
  request(:get_status_code, Softlayer::Notification::Occurrence::Status::Code)
end

#get_updatesObject



93
94
95
# File 'lib/softlayer/notification/occurrence/event.rb', line 93

def get_updates
  request(:get_updates, Array[Softlayer::Notification::Occurrence::Update])
end