Class OpaApiClient
public class OpaApiClient : IOpaApiClient
- Inheritance
-
OpaApiClient
- Implements
- Inherited Members
Constructors
OpaApiClient(string?, Func<string>?, int?, string?, Dictionary<string, string>?, ISpeakeasyHttpClient?, RetryConfig?)
public OpaApiClient(string? bearerAuth = null, Func<string>? bearerAuthSource = null, int? serverIndex = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null, RetryConfig? retryConfig = null)
Parameters
bearerAuth
stringbearerAuthSource
Func<string>serverIndex
int?serverUrl
stringurlParams
Dictionary<string, string>client
ISpeakeasyHttpClientretryConfig
RetryConfig
Properties
SDKConfiguration
public SDKConfig SDKConfiguration { get; }
Property Value
Methods
ExecuteBatchPolicyWithInputAsync(ExecuteBatchPolicyWithInputRequest)
Execute a policy given a batch of inputs
public Task<ExecuteBatchPolicyWithInputResponse> ExecuteBatchPolicyWithInputAsync(ExecuteBatchPolicyWithInputRequest request)
Parameters
Returns
ExecuteDefaultPolicyWithInputAsync(Input, bool?, GzipAcceptEncoding?)
Execute the default decision given an input
public Task<ExecuteDefaultPolicyWithInputResponse> ExecuteDefaultPolicyWithInputAsync(Input input, bool? pretty = null, GzipAcceptEncoding? acceptEncoding = null)
Parameters
input
Inputpretty
bool?acceptEncoding
GzipAcceptEncoding?
Returns
ExecutePolicyAsync(ExecutePolicyRequest)
Execute a policy
public Task<ExecutePolicyResponse> ExecutePolicyAsync(ExecutePolicyRequest request)
Parameters
request
ExecutePolicyRequest
Returns
ExecutePolicyWithInputAsync(ExecutePolicyWithInputRequest)
Execute a policy given an input
public Task<ExecutePolicyWithInputResponse> ExecutePolicyWithInputAsync(ExecutePolicyWithInputRequest request)
Parameters
request
ExecutePolicyWithInputRequest
Returns
HealthAsync(bool?, bool?, List<string>?)
Verify the server is operational
public Task<HealthResponse> HealthAsync(bool? bundles = null, bool? plugins = null, List<string>? excludePlugin = null)