class Fog::OracleCloud::Database::Recoveries
Public Instance Methods
all(db_name)
click to toggle source
# File lib/fog/oraclecloud/models/database/recoveries.rb, line 10 def all(db_name) data = service.list_recoveries(db_name).body['recoveryList'] load(data) end
get(db_name, type=nil, value=nil)
click to toggle source
There is no get service for recoveries in the Oracle Cloud Call the list and extract the recovery
# File lib/fog/oraclecloud/models/database/recoveries.rb, line 17 def get(db_name, type=nil, value=nil) clean_type = 'dbTag' if type == 'tag' clean_type, value = ['latest', true] if type.nil? data = service.list_recoveries(db_name).body['recoveryList'].find { |r| r[clean_type] == value } new(data) end