Class AssertionsApi

java.lang.Object
org.apache.syncope.ext.openfga.client.api.AssertionsApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-03-07T14:52:32.408381154+01:00[Europe/Rome]", comments="Generator version: 7.12.0") public class AssertionsApi extends Object
  • Constructor Details

    • AssertionsApi

      public AssertionsApi()
    • AssertionsApi

      public AssertionsApi(ApiClient apiClient)
  • Method Details

    • getApiException

      protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException
      Throws:
      IOException
    • readAssertions

      public ReadAssertionsResponse readAssertions(String storeId, String authorizationModelId) throws ApiException
      Read assertions for an authorization model ID The ReadAssertions API will return, for a given authorization model id, all the assertions stored for it.
      Parameters:
      storeId - (required)
      authorizationModelId - (required)
      Returns:
      ReadAssertionsResponse
      Throws:
      ApiException - if fails to make API call
    • readAssertionsWithHttpInfo

      public ApiResponse<ReadAssertionsResponse> readAssertionsWithHttpInfo(String storeId, String authorizationModelId) throws ApiException
      Read assertions for an authorization model ID The ReadAssertions API will return, for a given authorization model id, all the assertions stored for it.
      Parameters:
      storeId - (required)
      authorizationModelId - (required)
      Returns:
      ApiResponse<ReadAssertionsResponse>
      Throws:
      ApiException - if fails to make API call
    • writeAssertions

      public void writeAssertions(String storeId, String authorizationModelId, WriteAssertionsRequest body) throws ApiException
      Upsert assertions for an authorization model ID The WriteAssertions API will upsert new assertions for an authorization model id, or overwrite the existing ones. An assertion is an object that contains a tuple key, the expectation of whether a call to the Check API of that tuple key will return true or false, and optionally a list of contextual tuples.
      Parameters:
      storeId - (required)
      authorizationModelId - (required)
      body - (required)
      Throws:
      ApiException - if fails to make API call
    • writeAssertionsWithHttpInfo

      public ApiResponse<Void> writeAssertionsWithHttpInfo(String storeId, String authorizationModelId, WriteAssertionsRequest body) throws ApiException
      Upsert assertions for an authorization model ID The WriteAssertions API will upsert new assertions for an authorization model id, or overwrite the existing ones. An assertion is an object that contains a tuple key, the expectation of whether a call to the Check API of that tuple key will return true or false, and optionally a list of contextual tuples.
      Parameters:
      storeId - (required)
      authorizationModelId - (required)
      body - (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - if fails to make API call