Sha256: 585e089642c5cc62cb02a3f21c5f3bddd4b2f7419c56b35691c851742abc77ff

Contents?: true

Size: 556 Bytes

Versions: 4

Compression:

Stored size: 556 Bytes

Contents

module Fog
  module Baremetal
    class HuaweiCloud
      class Real
        def delete_chassis(chassis_uuid)
          data = {:chassis_uuid => chassis_uuid}
          request(
            :body    => Fog::JSON.encode(data),
            :expects => [200, 204],
            :method  => 'DELETE',
            :path    => 'chassis'
          )
        end
      end

      class Mock
        def delete_chassis(_chassis_uuid)
          response = Excon::Response.new
          response.status = 200
          response
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-huaweicloud-0.0.3 lib/fog/baremetal/huaweicloud/requests/delete_chassis.rb
fog-huaweicloud-0.0.2 lib/fog/baremetal/huaweicloud/requests/delete_chassis.rb
fog-huaweicloud-0.1.3 lib/fog/baremetal/huaweicloud/requests/delete_chassis.rb
fog-huaweicloud-0.1.2 lib/fog/baremetal/huaweicloud/requests/delete_chassis.rb