Sha256: 819ea26c77a5f7bfa4a7626fadf59c3c1d2787675f44eefac715b42c73b72ab9

Contents?: true

Size: 464 Bytes

Versions: 10

Compression:

Stored size: 464 Bytes

Contents

require 'fog/core/collection'

module Fog
  module OracleCloud
    class Database
      class Snapshots < Fog::Collection

        model Fog::OracleCloud::Database::Snapshot

        def all(db_name)
          data = service.list_snapshots(db_name).body
          load(data)
        end
        
        def get(db_name, snapshot_name)
          new(service.get_snapshot(db_name, snapshot_name).body)
        end

      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/models/database/snapshots.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/models/database/snapshots.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/models/database/snapshots.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/models/database/snapshots.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/models/database/snapshots.rb
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/models/database/snapshots.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/models/database/snapshots.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/models/database/snapshots.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/models/database/snapshots.rb
fog-oraclecloud-0.1.3 lib/fog/oraclecloud/models/database/snapshots.rb