Sha256: 1319faa420dd2b5ee1c62e0b4528d56f7efacde71b427d923de7b545291aee83
Contents?: true
Size: 896 Bytes
Versions: 12
Compression:
Stored size: 896 Bytes
Contents
module Fog module Compute class OracleCloud class Real def create_security_application(name, protocol, options={}) body_data = { 'name' => name, 'protocol' => protocol, 'dport' => options[:dport], 'icmptype' => options[:icmptype], 'icmpcode' => options[:icmpcode], 'description' => options[:description] } body_data = body_data.reject {|key, value| value.nil?} request( :method => 'POST', :expects => 201, :path => "/secapplication/", :body => Fog::JSON.encode(body_data), :headers => { 'Content-Type' => 'application/oracle-compute-v3+json' } ) end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems