Sha256: 50884ded2e8f07608a4a656adb36d3203608d911f9a21b0a4f3c8674e04221a1
Contents?: true
Size: 1.13 KB
Versions: 38
Compression:
Stored size: 1.13 KB
Contents
module Fog module Volume class OpenStack module Real def list_backups_detailed(options = {}) request( :expects => 200, :method => 'GET', :path => 'backups/detail', :query => options ) end end module Mock def list_backups_detailed(_options = {}) response = Excon::Response.new response.status = 200 data[:backups] ||= [ { "id" => "1", "volume_id" => "2", "name" => "backup 1", "status" => "available", "size" => 1, "object_count" => 16, "container" => "testcontainer", }, { "id" => "2", "volume_id" => "2", "name" => "backup 2", "status" => "available", "size" => 1, "object_count" => 16, "container" => "testcontainer", } ] response.body = { 'backups' => data[:backups] } response end end end end end
Version data entries
38 entries across 36 versions & 3 rubygems