Sha256: 4140bfcafe746fabeb54084b5aa1b484a1405c2a320545f6d4d17fbf3378b81d
Contents?: true
Size: 568 Bytes
Versions: 58
Compression:
Stored size: 568 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 data = service.list_snapshots["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
58 entries across 58 versions & 4 rubygems