Sha256: 4fc09b06889598a737b4fabfe1940d6d734b0afce0b8653502124a92451566f2

Contents?: true

Size: 677 Bytes

Versions: 4

Compression:

Stored size: 677 Bytes

Contents

module Fog
  module OracleCloud
    class Java
      class Real
      	def list_access_rules(service_name)
          response = request(
            :expects  => 200,
            :method   => 'GET',
            :path     => "/paas/api/v1.1/instancemgmt/#{@identity_domain}/services/jaas/instances/#{service_name}/accessrules"
          )
          response
        end
      end

      class Mock
        def list_access_rules(service_name)
          response = Excon::Response.new

          rules = self.data[:access_rules][service_name]

          response.body =  {
            'accessRules' => rules
          }

          response
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.17 lib/fog/oraclecloud/requests/java/list_access_rules.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/requests/java/list_access_rules.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/requests/java/list_access_rules.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/requests/java/list_access_rules.rb