Class SchemaApi

java.lang.Object
co.permify.sdk.api.SchemaApi

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class SchemaApi extends Object
  • Constructor Details

    • SchemaApi

      public SchemaApi()
    • SchemaApi

      public SchemaApi(ApiClient apiClient)
  • Method Details

    • getApiException

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

      public SchemaListResponse schemasList(String tenantId, SchemaListBody body) throws ApiException
      list schema
      Parameters:
      tenantId - Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes. (required)
      body - (required)
      Returns:
      SchemaListResponse
      Throws:
      ApiException - if fails to make API call
    • schemasListWithHttpInfo

      public ApiResponse<SchemaListResponse> schemasListWithHttpInfo(String tenantId, SchemaListBody body) throws ApiException
      list schema
      Parameters:
      tenantId - Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes. (required)
      body - (required)
      Returns:
      ApiResponse<SchemaListResponse>
      Throws:
      ApiException - if fails to make API call
    • schemasPartialWrite

      public SchemaPartialWriteResponse schemasPartialWrite(String tenantId, PartialWriteBody body) throws ApiException
      partially update your authorization model
      Parameters:
      tenantId - tenant_id is a string that identifies the tenant. It must match the pattern \"[a-zA-Z0-9-,]+\", be a maximum of 64 bytes, and must not be empty. (required)
      body - (required)
      Returns:
      SchemaPartialWriteResponse
      Throws:
      ApiException - if fails to make API call
    • schemasPartialWriteWithHttpInfo

      public ApiResponse<SchemaPartialWriteResponse> schemasPartialWriteWithHttpInfo(String tenantId, PartialWriteBody body) throws ApiException
      partially update your authorization model
      Parameters:
      tenantId - tenant_id is a string that identifies the tenant. It must match the pattern \"[a-zA-Z0-9-,]+\", be a maximum of 64 bytes, and must not be empty. (required)
      body - (required)
      Returns:
      ApiResponse<SchemaPartialWriteResponse>
      Throws:
      ApiException - if fails to make API call
    • schemasRead

      public SchemaReadResponse schemasRead(String tenantId, SchemaReadBody body) throws ApiException
      read schema
      Parameters:
      tenantId - Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes. (required)
      body - (required)
      Returns:
      SchemaReadResponse
      Throws:
      ApiException - if fails to make API call
    • schemasReadWithHttpInfo

      public ApiResponse<SchemaReadResponse> schemasReadWithHttpInfo(String tenantId, SchemaReadBody body) throws ApiException
      read schema
      Parameters:
      tenantId - Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes. (required)
      body - (required)
      Returns:
      ApiResponse<SchemaReadResponse>
      Throws:
      ApiException - if fails to make API call
    • schemasWrite

      public SchemaWriteResponse schemasWrite(String tenantId, SchemaWriteBody body) throws ApiException
      write schema
      Parameters:
      tenantId - Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes. (required)
      body - (required)
      Returns:
      SchemaWriteResponse
      Throws:
      ApiException - if fails to make API call
    • schemasWriteWithHttpInfo

      public ApiResponse<SchemaWriteResponse> schemasWriteWithHttpInfo(String tenantId, SchemaWriteBody body) throws ApiException
      write schema
      Parameters:
      tenantId - Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes. (required)
      body - (required)
      Returns:
      ApiResponse<SchemaWriteResponse>
      Throws:
      ApiException - if fails to make API call