Sha256: 4c56a4124328f999eb7b415359ae8cb1ca2e47add53ed3b8c4333a92e314ef99
Contents?: true
Size: 635 Bytes
Versions: 20
Compression:
Stored size: 635 Bytes
Contents
module Fog module OpenStack class ContainerInfra class Real def update_bay(uuid_or_name, params) request( :expects => [202, 200], :method => 'PATCH', :path => "bays/#{uuid_or_name}", :body => Fog::JSON.encode(params) ) end end class Mock def update_bay(_uuid_or_name, _params) response = Excon::Response.new response.status = 202 response.body = { "uuid" => "746e779a-751a-456b-a3e9-c883d734946f" } response end end end end end
Version data entries
20 entries across 20 versions & 3 rubygems