Class: Fog::Compute::Gridscale::SnapshotSchedules
Instance Method Summary
collapse
#next_page, #previous_page
Instance Method Details
#all(filters = {}) ⇒ Object
9
10
11
12
13
|
# File 'lib/fog/compute/gridscale/models/snapshot_schedules.rb', line 9
def all(filters={})
data = service.snapshot_schedules_get(filters)
snapshot_schedules = data.body["snapshot_schedules"].values
load(snapshot_schedules)
end
|
#get(payload) ⇒ Object
15
16
17
18
19
20
|
# File 'lib/fog/compute/gridscale/models/snapshot_schedules.rb', line 15
def get(payload)
snapshot_schedule = service.snapshot_schedule_get(payload).body['snapshot_schedule']
new(snapshot_schedule) if snapshot_schedule
rescue Fog::Errors::NotFound
nil
end
|