Class: Fog::OracleCloud::Database::Backups
- Inherits:
-
Collection
- Object
- Collection
- Fog::OracleCloud::Database::Backups
- Defined in:
- lib/fog/oraclecloud/models/database/backups.rb
Instance Method Summary collapse
- #all(db_name) ⇒ Object
-
#get(db_name, tag) ⇒ Object
There is no get service for backups in the Oracle Cloud Call the list and extract the backup given a tag.
Instance Method Details
#all(db_name) ⇒ Object
10 11 12 13 |
# 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) ⇒ Object
There is no get service for backups in the Oracle Cloud Call the list and extract the backup given a tag
17 18 19 20 21 22 23 24 25 |
# 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 |