Sha256: 65af55fe29442ad8a1adab56b8b57b2703d0ebc07d83c6675eb552d6682271ca
Contents?: true
Size: 924 Bytes
Versions: 3
Compression:
Stored size: 924 Bytes
Contents
module Fog module Compute class OracleCloud class Real def create_security_rule(name, src_list, dst_list, application, action, options={}) body_data = { 'name' => name, 'src_list' => src_list, 'dst_list' => dst_list, 'application' => application, 'action' => action, 'description' => options[:description], 'disabled' => options[:disabled] } body_data = body_data.reject {|key, value| value.nil?} request( :method => 'POST', :expects => 201, :path => "/secrule/", :body => Fog::JSON.encode(body_data), :headers => { 'Content-Type' => 'application/oracle-compute-v3+json' } ) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems