Interface LegacyAuthorizationsService


public interface LegacyAuthorizationsService
  • Method Details

    • deleteLegacyAuthorizationsID

      @DELETE("private/legacy/authorizations/{authID}") retrofit2.Call<Void> deleteLegacyAuthorizationsID(@Path("authID") String authID, @Header("Zap-Trace-Span") String zapTraceSpan)
      Delete a legacy authorization
      Parameters:
      authID - The ID of the legacy authorization to delete. (required)
      zapTraceSpan - OpenTracing span context (optional)
      Returns:
      Call<Void>
    • getLegacyAuthorizations

      @GET("private/legacy/authorizations") retrofit2.Call<Authorizations> getLegacyAuthorizations(@Header("Zap-Trace-Span") String zapTraceSpan, @Query("userID") String userID, @Query("user") String user, @Query("orgID") String orgID, @Query("org") String org, @Query("token") String token, @Query("authID") String authID)
      List all legacy authorizations
      Parameters:
      zapTraceSpan - OpenTracing span context (optional)
      userID - Only show legacy authorizations that belong to a user ID. (optional)
      user - Only show legacy authorizations that belong to a user name. (optional)
      orgID - Only show legacy authorizations that belong to an organization ID. (optional)
      org - Only show legacy authorizations that belong to a organization name. (optional)
      token - Only show legacy authorizations with a specified token (auth name). (optional)
      authID - Only show legacy authorizations with a specified auth ID. (optional)
      Returns:
      Call<Authorizations>
    • getLegacyAuthorizationsID

      @GET("private/legacy/authorizations/{authID}") retrofit2.Call<Authorization> getLegacyAuthorizationsID(@Path("authID") String authID, @Header("Zap-Trace-Span") String zapTraceSpan)
      Retrieve a legacy authorization
      Parameters:
      authID - The ID of the legacy authorization to get. (required)
      zapTraceSpan - OpenTracing span context (optional)
      Returns:
      Call<Authorization>
    • patchLegacyAuthorizationsID

      @Headers("Content-Type:application/json") @PATCH("private/legacy/authorizations/{authID}") retrofit2.Call<Authorization> patchLegacyAuthorizationsID(@Path("authID") String authID, @Body AuthorizationUpdateRequest authorizationUpdateRequest, @Header("Zap-Trace-Span") String zapTraceSpan)
      Update a legacy authorization to be active or inactive
      Parameters:
      authID - The ID of the legacy authorization to update. (required)
      authorizationUpdateRequest - Legacy authorization to update (required)
      zapTraceSpan - OpenTracing span context (optional)
      Returns:
      Call<Authorization>
    • postLegacyAuthorizations

      @Headers("Content-Type:application/json") @POST("private/legacy/authorizations") retrofit2.Call<Authorization> postLegacyAuthorizations(@Body LegacyAuthorizationPostRequest legacyAuthorizationPostRequest, @Header("Zap-Trace-Span") String zapTraceSpan)
      Create a legacy authorization
      Parameters:
      legacyAuthorizationPostRequest - Legacy authorization to create (required)
      zapTraceSpan - OpenTracing span context (optional)
      Returns:
      Call<Authorization>
    • postLegacyAuthorizationsIDPassword

      @Headers("Content-Type:application/json") @POST("private/legacy/authorizations/{authID}/password") retrofit2.Call<Void> postLegacyAuthorizationsIDPassword(@Path("authID") String authID, @Body PasswordResetBody passwordResetBody, @Header("Zap-Trace-Span") String zapTraceSpan)
      Set a legacy authorization password
      Parameters:
      authID - The ID of the legacy authorization to update. (required)
      passwordResetBody - New password (required)
      zapTraceSpan - OpenTracing span context (optional)
      Returns:
      Call<Void>