Sha256: 77ed823cef4f9ccad9e82611dff948b4faf02ccff7fe79496a5ab52ed3df99ab

Contents?: true

Size: 510 Bytes

Versions: 4

Compression:

Stored size: 510 Bytes

Contents

module Fog
  module ContainerInfra
    class HuaweiCloud
      class Real
        def delete_bay_model(uuid_or_name)
          request(
            :expects => [204],
            :method  => 'DELETE',
            :path    => "baymodels/#{uuid_or_name}"
          )
        end
      end

      class Mock
        def delete_bay_model(_uuid_or_name)
          response = Excon::Response.new
          response.status = 204
          response.body = {}
          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/container_infra/huaweicloud/requests/delete_bay_model.rb
fog-huaweicloud-0.0.2 lib/fog/container_infra/huaweicloud/requests/delete_bay_model.rb
fog-huaweicloud-0.1.3 lib/fog/container_infra/huaweicloud/requests/delete_bay_model.rb
fog-huaweicloud-0.1.2 lib/fog/container_infra/huaweicloud/requests/delete_bay_model.rb