Class: Softlayer::Account::Reports::Request

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/account/reports/request.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Account_Reports_Request'

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

#accountObject

Returns the value of attribute account.



20
21
22
# File 'lib/softlayer/account/reports/request.rb', line 20

def 
  @account
end

#account_contactObject

Returns the value of attribute account_contact.



21
22
23
# File 'lib/softlayer/account/reports/request.rb', line 21

def 
  @account_contact
end

#account_contact_idObject

Returns the value of attribute account_contact_id.



6
7
8
# File 'lib/softlayer/account/reports/request.rb', line 6

def 
  @account_contact_id
end

#account_idObject

Returns the value of attribute account_id.



7
8
9
# File 'lib/softlayer/account/reports/request.rb', line 7

def 
  @account_id
end

#compliance_report_type_idObject

Returns the value of attribute compliance_report_type_id.



8
9
10
# File 'lib/softlayer/account/reports/request.rb', line 8

def compliance_report_type_id
  @compliance_report_type_id
end

#create_dateObject

Returns the value of attribute create_date.



9
10
11
# File 'lib/softlayer/account/reports/request.rb', line 9

def create_date
  @create_date
end

#employee_record_idObject

Returns the value of attribute employee_record_id.



10
11
12
# File 'lib/softlayer/account/reports/request.rb', line 10

def employee_record_id
  @employee_record_id
end

#idObject

Returns the value of attribute id.



11
12
13
# File 'lib/softlayer/account/reports/request.rb', line 11

def id
  @id
end

#modify_dateObject

Returns the value of attribute modify_date.



12
13
14
# File 'lib/softlayer/account/reports/request.rb', line 12

def modify_date
  @modify_date
end

#ndaObject

Returns the value of attribute nda.



13
14
15
# File 'lib/softlayer/account/reports/request.rb', line 13

def nda
  @nda
end

#notesObject

Returns the value of attribute notes.



14
15
16
# File 'lib/softlayer/account/reports/request.rb', line 14

def notes
  @notes
end

#reportObject

Returns the value of attribute report.



15
16
17
# File 'lib/softlayer/account/reports/request.rb', line 15

def report
  @report
end

#report_typeObject

Returns the value of attribute report_type.



22
23
24
# File 'lib/softlayer/account/reports/request.rb', line 22

def report_type
  @report_type
end

#request_keyObject

Returns the value of attribute request_key.



16
17
18
# File 'lib/softlayer/account/reports/request.rb', line 16

def request_key
  @request_key
end

#statusObject

Returns the value of attribute status.



17
18
19
# File 'lib/softlayer/account/reports/request.rb', line 17

def status
  @status
end

#ticketObject

Returns the value of attribute ticket.



23
24
25
# File 'lib/softlayer/account/reports/request.rb', line 23

def ticket
  @ticket
end

#ticket_idObject

Returns the value of attribute ticket_id.



18
19
20
# File 'lib/softlayer/account/reports/request.rb', line 18

def ticket_id
  @ticket_id
end

#userObject

Returns the value of attribute user.



24
25
26
# File 'lib/softlayer/account/reports/request.rb', line 24

def user
  @user
end

#usr_record_idObject

Returns the value of attribute usr_record_id.



19
20
21
# File 'lib/softlayer/account/reports/request.rb', line 19

def usr_record_id
  @usr_record_id
end

Class Method Details

.create_request(message) ⇒ Object

contact reason report_type



29
30
31
# File 'lib/softlayer/account/reports/request.rb', line 29

def self.create_request(message)
  request(:create_request, Softlayer::Account::Reports::Request, message)
end

.get_all_objectsObject



41
42
43
# File 'lib/softlayer/account/reports/request.rb', line 41

def self.get_all_objects
  request(:get_all_objects, Softlayer::Account::Reports::Request)
end

.get_request_by_request_key(message) ⇒ Object

request_key



54
55
56
# File 'lib/softlayer/account/reports/request.rb', line 54

def self.get_request_by_request_key(message)
  request(:get_request_by_request_key, Softlayer::Account::Reports::Request, message)
end

.send_report_email(message) ⇒ Object

request



67
68
69
# File 'lib/softlayer/account/reports/request.rb', line 67

def self.send_report_email(message)
  request(:send_report_email, Boolean, message)
end

.update_ticket_on_decline(message) ⇒ Object

request



72
73
74
# File 'lib/softlayer/account/reports/request.rb', line 72

def self.update_ticket_on_decline(message)
  request(:update_ticket_on_decline, Boolean, message)
end

Instance Method Details

#get_accountObject



33
34
35
# File 'lib/softlayer/account/reports/request.rb', line 33

def 
  request(:get_account, Softlayer::Account)
end

#get_account_contactObject



37
38
39
# File 'lib/softlayer/account/reports/request.rb', line 37

def 
  request(:get_account_contact, Softlayer::Account::Contact)
end

#get_objectObject



45
46
47
# File 'lib/softlayer/account/reports/request.rb', line 45

def get_object
  request(:get_object, Softlayer::Account::Reports::Request)
end

#get_report_typeObject



49
50
51
# File 'lib/softlayer/account/reports/request.rb', line 49

def get_report_type
  request(:get_report_type, Softlayer::Compliance::Report::Type)
end

#get_ticketObject



58
59
60
# File 'lib/softlayer/account/reports/request.rb', line 58

def get_ticket
  request(:get_ticket, Softlayer::Ticket)
end

#get_userObject



62
63
64
# File 'lib/softlayer/account/reports/request.rb', line 62

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