Sha256: e3fbed77a66db00b1b3e8c0538ac119e9b620665d2df0dd60dac0e847906eebf

Contents?: true

Size: 504 Bytes

Versions: 4

Compression:

Stored size: 504 Bytes

Contents

module Fog
  module Image
    class HuaweiCloud
      class V1
        class Real
          def delete_image(image_id)
            request(
              :expects => 200,
              :method  => 'DELETE',
              :path    => "images/#{image_id}"
            )
          end
        end

        class Mock
          def delete_image(_image_id)
            response = Excon::Response.new
            response.status = 200
            response
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-huaweicloud-0.0.3 lib/fog/image/huaweicloud/v1/requests/delete_image.rb
fog-huaweicloud-0.0.2 lib/fog/image/huaweicloud/v1/requests/delete_image.rb
fog-huaweicloud-0.1.3 lib/fog/image/huaweicloud/v1/requests/delete_image.rb
fog-huaweicloud-0.1.2 lib/fog/image/huaweicloud/v1/requests/delete_image.rb