Sha256: 20ef17e31e27c2d88782a29de354d6fce99ace5ba9df734aa32db3c1ec92adf1
Contents?: true
Size: 595 Bytes
Versions: 4
Compression:
Stored size: 595 Bytes
Contents
module Fog module ContainerInfra class HuaweiCloud class Real def create_bay(params) request( :expects => [202, 201, 200], :method => 'POST', :path => "bays", :body => Fog::JSON.encode(params) ) end end class Mock def create_bay(_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
4 entries across 4 versions & 1 rubygems