Sha256: fcd8437fccc28f918728fa8ef9564cbbc7e51313c07bb952535d2772be7de830
Contents?: true
Size: 648 Bytes
Versions: 4
Compression:
Stored size: 648 Bytes
Contents
module Fog module ContainerInfra class HuaweiCloud class Real def update_cluster(uuid_or_name, params) request( :expects => [202, 200], :method => 'PATCH', :path => "clusters/#{uuid_or_name}", :body => Fog::JSON.encode(params) ) end end class Mock def update_cluster(_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
4 entries across 4 versions & 1 rubygems