Sha256: edad404a355c27f445333b1a5886acde38ae4a1c3dc9b884082d0c9c5bbbf487
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
require "fog/brightbox/model" module Fog module Compute class Brightbox class DatabaseSnapshot < Fog::Brightbox::Model identity :id attribute :url attribute :resource_type attribute :name attribute :description attribute :state, :aliases => "status" attribute :database_engine attribute :database_version attribute :size attribute :created_at, :type => :time attribute :updated_at, :type => :time attribute :deleted_at, :type => :time def save options = { :name => name, :description => description } data = update_database_snapshot(options) merge_attributes(data) true end def ready? state == "available" end def destroy requires :identity merge_attributes(service.destroy_database_snapshot(identity)) true end private def update_database_snapshot(options) service.update_database_snaphot(identity, options) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-brightbox-0.1.1 | lib/fog/brightbox/models/compute/database_snapshot.rb |
fog-brightbox-0.1.0 | lib/fog/brightbox/models/compute/database_snapshot.rb |