Sha256: d2bea577b828cd37d368f333cb3356d052de450d3a546dd14d7f1f9c88c683a3
Contents?: true
Size: 995 Bytes
Versions: 5
Compression:
Stored size: 995 Bytes
Contents
require 'fog/core/model' module Fog module OracleCloud class Database class Recovery < Fog::Model attribute :db_tag, :aliases=>'dbTag' attribute :recovery_start_date, :aliases=>'recoveryStartDate' attribute :recovery_complete_date, :aliases=>'recoveryCompleteDate' attribute :status attribute :latest attribute :timestamp attribute :database_id def completed? status == "COMPLETED" end private def reload requires :database_id data = begin if !db_tag.nil? then collection.get(database_id, 'tag', db_tag) else collection.get(database_id) end rescue Excon::Errors::SocketError nil end return unless data new_attributes = data.attributes merge_attributes(new_attributes) self end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems