Class: Softlayer::Account::Lockdown::Request
- Defined in:
- lib/softlayer/account/lockdown/request.rb
Defined Under Namespace
Classes: Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_Account_Lockdown_Request'
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#action ⇒ Object
Returns the value of attribute action.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#modify_date ⇒ Object
Returns the value of attribute modify_date.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
- .disconnect_compute(account_id = nil, disconnect_date = nil) ⇒ Object
- .get_account_history(account_id = nil) ⇒ Object
Instance Method Summary collapse
- #cancel_request ⇒ Object
- #disable_locked_account(disable_date = nil) ⇒ Object
- #get_object ⇒ Object
- #reconnect_compute(reconnect_date = nil) ⇒ 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_id ⇒ Object
Returns the value of attribute account_id.
6 7 8 |
# File 'lib/softlayer/account/lockdown/request.rb', line 6 def account_id @account_id end |
#action ⇒ Object
Returns the value of attribute action.
7 8 9 |
# File 'lib/softlayer/account/lockdown/request.rb', line 7 def action @action end |
#create_date ⇒ Object
Returns the value of attribute create_date.
8 9 10 |
# File 'lib/softlayer/account/lockdown/request.rb', line 8 def create_date @create_date end |
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/softlayer/account/lockdown/request.rb', line 9 def id @id end |
#modify_date ⇒ Object
Returns the value of attribute modify_date.
10 11 12 |
# File 'lib/softlayer/account/lockdown/request.rb', line 10 def modify_date @modify_date end |
#status ⇒ Object
Returns the value of attribute status.
11 12 13 |
# File 'lib/softlayer/account/lockdown/request.rb', line 11 def status @status end |
Class Method Details
.disconnect_compute(account_id = nil, disconnect_date = nil) ⇒ Object
22 23 24 25 |
# File 'lib/softlayer/account/lockdown/request.rb', line 22 def self.disconnect_compute(account_id = nil, disconnect_date = nil) = {account_id: account_id, disconnect_date: disconnect_date} request(:disconnect_compute, Integer, ) end |
Instance Method Details
#cancel_request ⇒ Object
13 14 15 |
# File 'lib/softlayer/account/lockdown/request.rb', line 13 def cancel_request request(:cancel_request, nil) end |
#disable_locked_account(disable_date = nil) ⇒ Object
17 18 19 20 |
# File 'lib/softlayer/account/lockdown/request.rb', line 17 def disable_locked_account(disable_date = nil) = {disable_date: disable_date} request(:disable_locked_account, Integer, ) end |
#get_object ⇒ Object
32 33 34 |
# File 'lib/softlayer/account/lockdown/request.rb', line 32 def get_object request(:get_object, Softlayer::Account::Lockdown::Request) end |
#reconnect_compute(reconnect_date = nil) ⇒ Object
36 37 38 39 |
# File 'lib/softlayer/account/lockdown/request.rb', line 36 def reconnect_compute(reconnect_date = nil) = {reconnect_date: reconnect_date} request(:reconnect_compute, Integer, ) end |