Class: Fog::OracleCloud::Database::Snapshots
- Inherits:
-
Collection
- Object
- Collection
- Fog::OracleCloud::Database::Snapshots
- Defined in:
- lib/fog/oraclecloud/models/database/snapshots.rb
Instance Method Summary collapse
Instance Method Details
#all(db_name) ⇒ Object
10 11 12 13 |
# File 'lib/fog/oraclecloud/models/database/snapshots.rb', line 10 def all(db_name) data = service.list_snapshots(db_name).body load(data) end |
#get(db_name, snapshot_name) ⇒ Object
15 16 17 |
# File 'lib/fog/oraclecloud/models/database/snapshots.rb', line 15 def get(db_name, snapshot_name) new(service.get_snapshot(db_name, snapshot_name).body) end |