lib/smartdc/api/machine/snapshots.rb in smartdc-0.3.0 vs lib/smartdc/api/machine/snapshots.rb in smartdc-0.4.0
- old
+ new
@@ -14,24 +14,22 @@
end
def start
raise ArgumentError unless id
request.post('my/machines/' + @id1.to_s + '/snapshots/' + id.to_s)
- request.response.status == 202 ? true : false
end
def read
raise ArgumentError unless id
request.get('my/machines/' + @id1.to_s + '/snapshots/' + id.to_s)
end
def find(params={})
- request.get('my/machines/' + @id1.to_s + '/snapshots/', params)
+ request.get('my/machines/' + @id1.to_s + '/snapshots', params)
end
def delete
request.delete('my/machines/' + @id1.to_s + '/snapshots/' + id.to_s)
- request.response.status == 204 ? true : false
end
end
end
end
\ No newline at end of file