Sha256: d96542dc11e97bb3eb965c7b177819d09f7b780d47ba9a326d83f48eb4e08d37

Contents?: true

Size: 665 Bytes

Versions: 27

Compression:

Stored size: 665 Bytes

Contents

# coding: utf-8

module Fog
  module Volume
    class SakuraCloud
      class Real
        def delete_disk( id )
          request(
            :headers => {
              'Authorization' => "Basic #{@auth_encord}"
            },
            :expects  => [200],
            :method => 'DELETE',
            :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/disk/#{id}"
          )
        end
      end # Real

      class Mock
        def delete_disk( id )
          response = Excon::Response.new
          response.status = 200
          response.body = {
          }
          response
        end
      end
    end # SakuraCloud
  end # Volume
end # Fog

Version data entries

27 entries across 27 versions & 4 rubygems

Version Path
fog-sakuracloud-1.3.2 lib/fog/sakuracloud/requests/volume/delete_disk.rb
fog-sakuracloud-1.3.1 lib/fog/sakuracloud/requests/volume/delete_disk.rb
fog-sakuracloud-1.3.0 lib/fog/sakuracloud/requests/volume/delete_disk.rb
fog-sakuracloud-1.2.0 lib/fog/sakuracloud/requests/volume/delete_disk.rb
fog-sakuracloud-1.1.1 lib/fog/sakuracloud/requests/volume/delete_disk.rb
fog-sakuracloud-1.1.0 lib/fog/sakuracloud/requests/volume/delete_disk.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-sakuracloud-1.0.1/lib/fog/sakuracloud/requests/volume/delete_disk.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/sakuracloud/requests/volume/delete_disk.rb
fog-sakuracloud-1.0.1 lib/fog/sakuracloud/requests/volume/delete_disk.rb
fog-sakuracloud-1.0.0 lib/fog/sakuracloud/requests/volume/delete_disk.rb
fog-sakuracloud-0.1.2 lib/fog/sakuracloud/requests/volume/delete_disk.rb
fog-sakuracloud-0.1.1 lib/fog/sakuracloud/requests/volume/delete_disk.rb
fog-sakuracloud-0.1.0 lib/fog/sakuracloud/requests/volume/delete_disk.rb
fog-sakuracloud-0.0.4 lib/fog/sakuracloud/requests/volume/delete_disk.rb
fog-sakuracloud-0.0.3 lib/fog/sakuracloud/requests/volume/delete_disk.rb
fog-sakuracloud-0.0.1 lib/fog/sakuracloud/requests/volume/delete_disk.rb
ns-fog-1.22.11 lib/fog/sakuracloud/requests/volume/delete_disk.rb
ns-fog-1.22.10 lib/fog/sakuracloud/requests/volume/delete_disk.rb
ns-fog-1.22.9 lib/fog/sakuracloud/requests/volume/delete_disk.rb
ns-fog-1.22.8 lib/fog/sakuracloud/requests/volume/delete_disk.rb