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

#acknowledged_flagObject

Returns the value of attribute acknowledged_flag.



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

def acknowledged_flag
  @acknowledged_flag
end

#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.



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

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.



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

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.



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

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.



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

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.



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

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.



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

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.



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

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.



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

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.



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

def updates
  @updates
end

Class Method Details

.get_all_objectsObject



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

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

Instance Method Details

#acknowledge_notificationObject



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

def acknowledge_notification
  request(:acknowledge_notification, Boolean)
end

#get_acknowledged_flagObject



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

def get_acknowledged_flag
  request(:get_acknowledged_flag, Boolean)
end

#get_attached_file(message) ⇒ Object

attachment_id



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

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

#get_attachmentsObject



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

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

#get_first_updateObject



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

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

#get_impacted_account_countObject



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

def 
  request(:get_impacted_account_count, Integer)
end

#get_impacted_accountsObject



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

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

#get_impacted_device_countObject



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

def get_impacted_device_count
  request(:get_impacted_device_count, Integer)
end

#get_impacted_devicesObject



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

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

#get_impacted_resourcesObject



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

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

#get_impacted_usersObject



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

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

#get_last_updateObject



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

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

#get_notification_occurrence_event_typeObject



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

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

#get_objectObject



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

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

#get_status_codeObject



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

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

#get_updatesObject



98
99
100
# File 'lib/softlayer/notification/occurrence/event.rb', line 98

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