com.cloudesire.platform.apiclient.api.DiskSpacePricingApi Maven / Gradle / Ivy
The newest version!
package com.cloudesire.platform.apiclient.api;
import com.cloudesire.platform.apiclient.dto.model.dto.DiskSpacePricingDTO;
import com.cloudesire.platform.apiclient.dto.model.dto.PricingPatchDTO;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.PATCH;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Path;
import retrofit2.http.Query;
import java.util.List;
public interface DiskSpacePricingApi
{
@POST( "diskSpacePricing" )
Call create( @Body DiskSpacePricingDTO resource );
@GET( "diskSpacePricing" )
Call> getAll( @Query( "cloudProvider" ) int cloudProvider );
@GET( "diskSpacePricing/{id}" )
Call get( @Path( "id" ) int id );
@PUT( "diskSpacePricing/{id}" )
Call update( @Path( "id" ) int id, @Body DiskSpacePricingDTO pricing );
/**
* @deprecated use {@link #update(int, DiskSpacePricingDTO)}
*/
@Deprecated
@PATCH( "diskSpacePricing/{id}" )
Call patch( @Path( "id" ) int id, @Body PricingPatchDTO price );
@DELETE( "diskSpacePricing/{id}" )
Call delete( @Path( "id" ) int id );
}