Interface ReplicationsService


public interface ReplicationsService
  • Method Details

    • deleteReplicationByID

      @DELETE("api/v2/replications/{replicationID}") retrofit2.Call<Void> deleteReplicationByID(@Path("replicationID") String replicationID, @Header("Zap-Trace-Span") String zapTraceSpan)
      Delete a replication
      Parameters:
      replicationID - (required)
      zapTraceSpan - OpenTracing span context (optional)
      Returns:
      Call<Void>
    • getReplicationByID

      @GET("api/v2/replications/{replicationID}") retrofit2.Call<Replication> getReplicationByID(@Path("replicationID") String replicationID, @Header("Zap-Trace-Span") String zapTraceSpan)
      Retrieve a replication
      Parameters:
      replicationID - (required)
      zapTraceSpan - OpenTracing span context (optional)
      Returns:
      Call<Replication>
    • getReplications

      @GET("api/v2/replications") retrofit2.Call<Replications> getReplications(@Query("orgID") String orgID, @Header("Zap-Trace-Span") String zapTraceSpan, @Query("name") String name, @Query("remoteID") String remoteID, @Query("localBucketID") String localBucketID)
      List all replications
      Parameters:
      orgID - The organization ID. (required)
      zapTraceSpan - OpenTracing span context (optional)
      name - (optional)
      remoteID - (optional)
      localBucketID - (optional)
      Returns:
      Call<Replications>
    • patchReplicationByID

      @Headers("Content-Type:application/json") @PATCH("api/v2/replications/{replicationID}") retrofit2.Call<Replication> patchReplicationByID(@Path("replicationID") String replicationID, @Body ReplicationUpdateRequest replicationUpdateRequest, @Header("Zap-Trace-Span") String zapTraceSpan, @Query("validate") Boolean validate)
      Update a replication
      Parameters:
      replicationID - (required)
      replicationUpdateRequest - (required)
      zapTraceSpan - OpenTracing span context (optional)
      validate - If true, validate the updated information, but don't save it. (optional, default to false)
      Returns:
      Call<Replication>
    • postReplication

      @Headers("Content-Type:application/json") @POST("api/v2/replications") retrofit2.Call<Replication> postReplication(@Body ReplicationCreationRequest replicationCreationRequest, @Header("Zap-Trace-Span") String zapTraceSpan, @Query("validate") Boolean validate)
      Register a new replication
      Parameters:
      replicationCreationRequest - (required)
      zapTraceSpan - OpenTracing span context (optional)
      validate - If true, validate the replication, but don't save it. (optional, default to false)
      Returns:
      Call<Replication>
    • postValidateReplicationByID

      @POST("api/v2/replications/{replicationID}/validate") retrofit2.Call<Void> postValidateReplicationByID(@Path("replicationID") String replicationID, @Header("Zap-Trace-Span") String zapTraceSpan)
      Validate a replication
      Parameters:
      replicationID - (required)
      zapTraceSpan - OpenTracing span context (optional)
      Returns:
      Call<Void>