Sha256: 55b5bde6a949dec8eab07a4c33d679d5ab32202608164663d0741292d28593c1

Contents?: true

Size: 493 Bytes

Versions: 4

Compression:

Stored size: 493 Bytes

Contents

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

      class Mock
        def delete_bay(_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.rb
fog-huaweicloud-0.0.2 lib/fog/container_infra/huaweicloud/requests/delete_bay.rb
fog-huaweicloud-0.1.3 lib/fog/container_infra/huaweicloud/requests/delete_bay.rb
fog-huaweicloud-0.1.2 lib/fog/container_infra/huaweicloud/requests/delete_bay.rb