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

Version Path
fog-openstack-1.1.3 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-1.1.2 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-fork-99 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-1.1.0 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-1.1.0.pre lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-apibank-1.0.102 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-1.0.11 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-apibank-1.0.101 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-1.0.10 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-1.0.9 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-1.0.8 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-1.0.7 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-1.0.6 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-1.0.5 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-1.0.4 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-1.0.3 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-1.0.2 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-1.0.1 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-1.0.0 lib/fog/openstack/volume/requests/list_backups_detailed.rb
fog-openstack-0.3.1 lib/fog/openstack/volume/requests/list_backups_detailed.rb