Sha256: f3a20425260b020489cdfcd4508d472cbe287ce47f7a603c528d412b10f873f6
Contents?: true
Size: 1.13 KB
Versions: 20
Compression:
Stored size: 1.13 KB
Contents
module Fog module OpenStack class Volume 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
20 entries across 20 versions & 3 rubygems