Class: Softlayer::Account::Reports::Request
- 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
-
#account ⇒ Object
Returns the value of attribute account.
-
#account_contact ⇒ Object
Returns the value of attribute account_contact.
-
#account_contact_id ⇒ Object
Returns the value of attribute account_contact_id.
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#compliance_report_type_id ⇒ Object
Returns the value of attribute compliance_report_type_id.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#employee_record_id ⇒ Object
Returns the value of attribute employee_record_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#modify_date ⇒ Object
Returns the value of attribute modify_date.
-
#nda ⇒ Object
Returns the value of attribute nda.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#report ⇒ Object
Returns the value of attribute report.
-
#report_type ⇒ Object
Returns the value of attribute report_type.
-
#request_key ⇒ Object
Returns the value of attribute request_key.
-
#status ⇒ Object
Returns the value of attribute status.
-
#ticket ⇒ Object
Returns the value of attribute ticket.
-
#ticket_id ⇒ Object
Returns the value of attribute ticket_id.
-
#user ⇒ Object
Returns the value of attribute user.
-
#usr_record_id ⇒ Object
Returns the value of attribute usr_record_id.
Class Method Summary collapse
- .create_request(contact = nil, reason = nil, report_type = nil) ⇒ Object
- .get_all_objects ⇒ Object
- .get_request_by_request_key(request_key = nil) ⇒ Object
- .send_report_email(request = nil) ⇒ Object
- .update_ticket_on_decline(request = nil) ⇒ Object
Instance Method Summary collapse
- #get_account ⇒ Object
- #get_account_contact ⇒ Object
- #get_object ⇒ Object
- #get_report_type ⇒ Object
- #get_ticket ⇒ Object
- #get_user ⇒ Object
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, request, #request, service_name, #service_name, #to_hash
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
20 21 22 |
# File 'lib/softlayer/account/reports/request.rb', line 20 def account @account end |
#account_contact ⇒ Object
Returns the value of attribute account_contact.
21 22 23 |
# File 'lib/softlayer/account/reports/request.rb', line 21 def account_contact @account_contact end |
#account_contact_id ⇒ Object
Returns the value of attribute account_contact_id.
6 7 8 |
# File 'lib/softlayer/account/reports/request.rb', line 6 def account_contact_id @account_contact_id end |
#account_id ⇒ Object
Returns the value of attribute account_id.
7 8 9 |
# File 'lib/softlayer/account/reports/request.rb', line 7 def account_id @account_id end |
#compliance_report_type_id ⇒ Object
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_date ⇒ Object
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_id ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
11 12 13 |
# File 'lib/softlayer/account/reports/request.rb', line 11 def id @id end |
#modify_date ⇒ Object
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 |
#nda ⇒ Object
Returns the value of attribute nda.
13 14 15 |
# File 'lib/softlayer/account/reports/request.rb', line 13 def nda @nda end |
#notes ⇒ Object
Returns the value of attribute notes.
14 15 16 |
# File 'lib/softlayer/account/reports/request.rb', line 14 def notes @notes end |
#report ⇒ Object
Returns the value of attribute report.
15 16 17 |
# File 'lib/softlayer/account/reports/request.rb', line 15 def report @report end |
#report_type ⇒ Object
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_key ⇒ Object
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 |
#status ⇒ Object
Returns the value of attribute status.
17 18 19 |
# File 'lib/softlayer/account/reports/request.rb', line 17 def status @status end |
#ticket ⇒ Object
Returns the value of attribute ticket.
23 24 25 |
# File 'lib/softlayer/account/reports/request.rb', line 23 def ticket @ticket end |
#ticket_id ⇒ Object
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 |
#user ⇒ Object
Returns the value of attribute user.
24 25 26 |
# File 'lib/softlayer/account/reports/request.rb', line 24 def user @user end |
#usr_record_id ⇒ Object
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(contact = nil, reason = nil, report_type = nil) ⇒ Object
26 27 28 29 |
# File 'lib/softlayer/account/reports/request.rb', line 26 def self.create_request(contact = nil, reason = nil, report_type = nil) = {contact: contact, reason: reason, report_type: report_type} request(:create_request, Softlayer::Account::Reports::Request, ) end |
.get_all_objects ⇒ Object
39 40 41 |
# File 'lib/softlayer/account/reports/request.rb', line 39 def self.get_all_objects request(:get_all_objects, Softlayer::Account::Reports::Request) end |
.get_request_by_request_key(request_key = nil) ⇒ Object
51 52 53 54 |
# File 'lib/softlayer/account/reports/request.rb', line 51 def self.get_request_by_request_key(request_key = nil) = {request_key: request_key} request(:get_request_by_request_key, Softlayer::Account::Reports::Request, ) end |
.send_report_email(request = nil) ⇒ Object
64 65 66 67 |
# File 'lib/softlayer/account/reports/request.rb', line 64 def self.send_report_email(request = nil) = {request: request} request(:send_report_email, Boolean, ) end |
.update_ticket_on_decline(request = nil) ⇒ Object
69 70 71 72 |
# File 'lib/softlayer/account/reports/request.rb', line 69 def self.update_ticket_on_decline(request = nil) = {request: request} request(:update_ticket_on_decline, Boolean, ) end |
Instance Method Details
#get_account ⇒ Object
31 32 33 |
# File 'lib/softlayer/account/reports/request.rb', line 31 def get_account request(:get_account, Softlayer::Account) end |
#get_account_contact ⇒ Object
35 36 37 |
# File 'lib/softlayer/account/reports/request.rb', line 35 def get_account_contact request(:get_account_contact, Softlayer::Account::Contact) end |
#get_object ⇒ Object
43 44 45 |
# File 'lib/softlayer/account/reports/request.rb', line 43 def get_object request(:get_object, Softlayer::Account::Reports::Request) end |
#get_report_type ⇒ Object
47 48 49 |
# File 'lib/softlayer/account/reports/request.rb', line 47 def get_report_type request(:get_report_type, Softlayer::Compliance::Report::Type) end |