Sha256: b80b2d4a8b78bbeb96a7ea3bc32aca8ba9f4935376fa1493a21e41722730ed64

Contents?: true

Size: 597 Bytes

Versions: 4

Compression:

Stored size: 597 Bytes

Contents

module Fog
  module Compute
    class Gridscale
      class Real

        def snapshot_delete(object_uuid)

          storage_uuid = object_uuid[:storage_uuid]
          snapshot_uuid = object_uuid[:snapshot_uuid]

          request(
              :expects         => [204],
              :headers         => {
                  'Content-Type' => "application/json; charset=UTF-8",
              },
              :method          => 'DELETE',
              :path            => "objects/storages/#{storage_uuid}/snapshots/#{snapshot_uuid}",
              )
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-gridscale-0.1.5 lib/fog/compute/gridscale/requests/snapshot_delete.rb
fog-gridscale-0.1.4 lib/fog/compute/gridscale/requests/snapshot_delete.rb
fog-gridscale-0.1.3 lib/fog/compute/gridscale/requests/snapshot_delete.rb
fog-gridscale-0.1.2 lib/fog/compute/gridscale/requests/snapshot_delete.rb