Sha256: 82e66dec12fe6cc48cbc40864cf644b653114904af666c2a050622cc8ab23d45
Contents?: true
Size: 634 Bytes
Versions: 33
Compression:
Stored size: 634 Bytes
Contents
module Fog module ContainerInfra class OpenStack 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
33 entries across 31 versions & 3 rubygems