Sha256: 971723b25a40cbc5f34d983fbe3836bb6b7086ba31cdab5dfb93d4914cff6249
Contents?: true
Size: 665 Bytes
Versions: 1
Compression:
Stored size: 665 Bytes
Contents
module Larrow module Qingcloud class Snapshot < Base attr_accessor :resource destroy_action 'DeleteSnapshots' def self.list() describe([],{:'status.1' => :available}) do |hash| new(hash['snapshot_id'], {'status' => hash['status'], 'resource' => hash['resource']} ) end end def self.create resource_id result = conn.get 'CreateSnapshots', :'resources.1' => resource_id info "snapshot added: #{result}" result['snapshots'].map do |id| promise(timeout:90){ new(id).wait_for :available } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
larrow-qingcloud-0.0.2 | lib/larrow/qingcloud/snapshot.rb |