Module: DPN::Client::Agent::Restore
- Included in:
- DPN::Client::Agent
- Defined in:
- lib/dpn/client/agent/restore.rb
Instance Method Summary collapse
-
#create_restore(request) {|Response| ... } ⇒ Response
Create a restore request.
-
#restore(restore_id) {|Response| ... } ⇒ Response
Get a specific restore request.
-
#restores(options = {page_size: 25}) {|Response| ... } ⇒ Object
Get the restore request index.
-
#update_restore(request) {|Response| ... } ⇒ Response
Update a restore request.
Instance Method Details
#create_restore(request) {|Response| ... } ⇒ Response
Create a restore request
44 45 46 |
# File 'lib/dpn/client/agent/restore.rb', line 44 def create_restore(request, &block) post "/restore/", request, &block end |
#restore(restore_id) {|Response| ... } ⇒ Response
Get a specific restore request.
35 36 37 |
# File 'lib/dpn/client/agent/restore.rb', line 35 def restore(restore_id, &block) get "/restore/#{restore_id}/", nil, &block end |
#restores(options = {page_size: 25}) {|Response| ... } ⇒ Object
Get the restore request index
26 27 28 |
# File 'lib/dpn/client/agent/restore.rb', line 26 def restores( = {page_size: 25}, &block) paginate_each "/restore/", , [:page_size], &block end |
#update_restore(request) {|Response| ... } ⇒ Response
Update a restore request
53 54 55 |
# File 'lib/dpn/client/agent/restore.rb', line 53 def update_restore(request, &block) put "/restore/#{request[:restore_id]}/", request, &block end |