# File lib/fog/sakuracloud/requests/network/create_switch.rb, line 7 def create_switch(options) body = { "Switch" => { "Name" => options[:name] } } request( :headers => { 'Authorization' => "Basic #{@auth_encode}" }, :expects => 201, :method => 'POST', :path => "#{Fog::SakuraCloud.build_endpoint(@api_zone)}/switch", :body => Fog::JSON.encode(body) ) end