Sha256: 1f215d2f1fda164fb57fe2bcc3ea97677b74228d4a9a295d119f7abe0d43b6e2
Contents?: true
Size: 624 Bytes
Versions: 27
Compression:
Stored size: 624 Bytes
Contents
require 'fog/core/collection' require 'fog/cloudstack/models/compute/snapshot' module Fog module Compute class Cloudstack class Snapshots < Fog::Collection model Fog::Compute::Cloudstack::Snapshot def all(attributes = {}) response = service.list_snapshots(attributes) data = response["listsnapshotsresponse"]["snapshot"] || [] load(data) end def get(snapshot_id) snapshot = service.list_snapshots('id' => snapshot_id)["listsnapshotsresponse"]["snapshot"].first new(snapshot) if snapshot end end end end end
Version data entries
27 entries across 25 versions & 4 rubygems