Sha256: f8062aa5f6769f4b5d8f54c1d95d938fdff7608ce65997be305332be421335c9
Contents?: true
Size: 722 Bytes
Versions: 10
Compression:
Stored size: 722 Bytes
Contents
require 'fog/core/collection' module Fog module OracleCloud class Database class Backups < Fog::Collection model Fog::OracleCloud::Database::Backup def all(db_name) data = service.list_backups(db_name).body['backupList'] load(data) end # There is no get service for backups in the Oracle Cloud # Call the list and extract the backup given a tag 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 end end end end
Version data entries
10 entries across 10 versions & 1 rubygems