class Fog::OracleCloud::Database::Backups

Public Instance Methods

all(db_name) click to toggle source
# File lib/fog/oraclecloud/models/database/backups.rb, line 10
def all(db_name)
  data = service.list_backups(db_name).body['backupList']
  load(data)
end
get(db_name, tag) click to toggle source

There is no get service for backups in the Oracle Cloud Call the list and extract the backup given a tag

# File lib/fog/oraclecloud/models/database/backups.rb, line 17
def get(db_name, tag)
  data = {}
  service.list_backups(db_name).body['backupList'].each { |b| 
    if b['dbTag'] == tag then
      data = b
    end
  }
  new(data)
end