Sha256: e0fc3e55e533a714328186c6a68744872845d3e7d5b71c9bd0b1d54aefac04ec
Contents?: true
Size: 770 Bytes
Versions: 1
Compression:
Stored size: 770 Bytes
Contents
module Fog module OracleCloud class Database class Real def list_access_rules(db_name) response = request( :expects => 200, :method => 'GET', :path => "/paas/api/v1.1/instancemgmt/#{@identity_domain}/services/dbaas/instances/#{db_name}/accessrules" ) response end end class Mock def list_access_rules(db_name) response = Excon::Response.new if !self.data[:access_rules][db_name] then self.data[:access_rules][db_name] = [] end access_rules = self.data[:access_rules][db_name] response.body = { 'accessRules' => access_rules } response end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-oraclecloud-0.1.17 | lib/fog/oraclecloud/requests/database/list_access_rules.rb |