Module: Terminal::Modules::CreateAndManageSnapshots
Instance Method Summary collapse
-
#count_snapshots(options = {}) ⇒ Hash
Returns a count of all your snapshots, filtered by options.
-
#delete_snapshot(snapshot_id) ⇒ Hash
Delete a snapshot by id.
-
#edit_snapshot(snapshot_id, options = {}) ⇒ Object
Edit the metadata of a snapshot owned by your account.
-
#list_snapshots(options = {}) ⇒ Hash
Returns a list of all your snapshots, filtered by options.
-
#snapshot_terminal(container_key, options = {}) ⇒ Hash
Create a snapshot of a terminal instance, but it actually makes no sense.
Instance Method Details
#count_snapshots(options = {}) ⇒ Hash
Returns a count of all your snapshots, filtered by options
38 39 40 41 |
# File 'lib/terminal/modules/create_and_manage_snapshots.rb', line 38 def count_snapshots( = {}) [:auth] = true perform(:post, 'count_snapshots', ) end |
#delete_snapshot(snapshot_id) ⇒ Hash
Delete a snapshot by id
49 50 51 52 53 54 |
# File 'lib/terminal/modules/create_and_manage_snapshots.rb', line 49 def delete_snapshot(snapshot_id) = {} [:auth] = true [:snapshot_id] = snapshot_id perform(:post, 'delete_snapshot', ) end |
#edit_snapshot(snapshot_id, options = {}) ⇒ Object
Edit the metadata of a snapshot owned by your account.
67 68 69 70 71 |
# File 'lib/terminal/modules/create_and_manage_snapshots.rb', line 67 def edit_snapshot(snapshot_id, ={}) [:auth] = true [:snapshot_id] = snapshot_id perform(:post, 'edit_snapshot', ) end |
#list_snapshots(options = {}) ⇒ Hash
Returns a list of all your snapshots, filtered by options
23 24 25 26 |
# File 'lib/terminal/modules/create_and_manage_snapshots.rb', line 23 def list_snapshots( = {}) [:auth] = true perform(:post, 'list_snapshots', ) end |
#snapshot_terminal(container_key, options = {}) ⇒ Hash
Create a snapshot of a terminal instance, but it actually makes no sense
81 82 83 84 85 |
# File 'lib/terminal/modules/create_and_manage_snapshots.rb', line 81 def snapshot_terminal(container_key, = {}) [:auth] = true [:container_key] = container_key perform(:post, 'snapshot_terminal', ) end |