Sha256: 4c674ecfc968e6b672eb3c9b8901bd6d489a94dd93b30d33576e54b933deb67a
Contents?: true
Size: 745 Bytes
Versions: 4
Compression:
Stored size: 745 Bytes
Contents
module Fog module OracleCloud class Java class Real def create_access_rule(service_name, params) request( :method => 'POST', :expects => 202, :path => "/paas/api/v1.1/instancemgmt/#{@identity_domain}/services/jaas/instances/#{service_name}/accessrules", :body => Fog::JSON.encode(params) ) end end class Mock def create_access_rule(service_name, params) response = Excon::Response.new params.delete(:service_name) self.data[:access_rules][service_name] << params.collect{|k,v| [k.to_s, v]}.to_h response.status = 202 response end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems