Class PermissionApi

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

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

    • PermissionApi

      public PermissionApi()
    • PermissionApi

      public PermissionApi(ApiClient apiClient)
  • Method Details

    • getApiException

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

      public PermissionCheckResponse permissionsCheck(String tenantId, CheckBody body) throws ApiException
      check api
      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:
      PermissionCheckResponse
      Throws:
      ApiException - if fails to make API call
    • permissionsCheckWithHttpInfo

      public ApiResponse<PermissionCheckResponse> permissionsCheckWithHttpInfo(String tenantId, CheckBody body) throws ApiException
      check api
      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<PermissionCheckResponse>
      Throws:
      ApiException - if fails to make API call
    • permissionsExpand

      public PermissionExpandResponse permissionsExpand(String tenantId, PermissionExpandBody body) throws ApiException
      expand api
      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:
      PermissionExpandResponse
      Throws:
      ApiException - if fails to make API call
    • permissionsExpandWithHttpInfo

      public ApiResponse<PermissionExpandResponse> permissionsExpandWithHttpInfo(String tenantId, PermissionExpandBody body) throws ApiException
      expand api
      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<PermissionExpandResponse>
      Throws:
      ApiException - if fails to make API call
    • permissionsLookupEntity

      public PermissionLookupEntityResponse permissionsLookupEntity(String tenantId, LookupEntityBody body) throws ApiException
      lookup entity
      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:
      PermissionLookupEntityResponse
      Throws:
      ApiException - if fails to make API call
    • permissionsLookupEntityWithHttpInfo

      public ApiResponse<PermissionLookupEntityResponse> permissionsLookupEntityWithHttpInfo(String tenantId, LookupEntityBody body) throws ApiException
      lookup entity
      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<PermissionLookupEntityResponse>
      Throws:
      ApiException - if fails to make API call
    • permissionsLookupEntityStream

      public StreamResultOfPermissionLookupEntityStreamResponse permissionsLookupEntityStream(String tenantId, LookupEntityStreamBody body) throws ApiException
      lookup entity stream
      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:
      StreamResultOfPermissionLookupEntityStreamResponse
      Throws:
      ApiException - if fails to make API call
    • permissionsLookupEntityStreamWithHttpInfo

      public ApiResponse<StreamResultOfPermissionLookupEntityStreamResponse> permissionsLookupEntityStreamWithHttpInfo(String tenantId, LookupEntityStreamBody body) throws ApiException
      lookup entity stream
      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<StreamResultOfPermissionLookupEntityStreamResponse>
      Throws:
      ApiException - if fails to make API call
    • permissionsLookupSubject

      public PermissionLookupSubjectResponse permissionsLookupSubject(String tenantId, LookupSubjectBody body) throws ApiException
      lookup-subject
      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:
      PermissionLookupSubjectResponse
      Throws:
      ApiException - if fails to make API call
    • permissionsLookupSubjectWithHttpInfo

      public ApiResponse<PermissionLookupSubjectResponse> permissionsLookupSubjectWithHttpInfo(String tenantId, LookupSubjectBody body) throws ApiException
      lookup-subject
      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<PermissionLookupSubjectResponse>
      Throws:
      ApiException - if fails to make API call
    • permissionsSubjectPermission

      public PermissionSubjectPermissionResponse permissionsSubjectPermission(String tenantId, SubjectPermissionBody body) throws ApiException
      subject permission
      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:
      PermissionSubjectPermissionResponse
      Throws:
      ApiException - if fails to make API call
    • permissionsSubjectPermissionWithHttpInfo

      public ApiResponse<PermissionSubjectPermissionResponse> permissionsSubjectPermissionWithHttpInfo(String tenantId, SubjectPermissionBody body) throws ApiException
      subject permission
      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<PermissionSubjectPermissionResponse>
      Throws:
      ApiException - if fails to make API call