All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cloudesire.platform.apiclient.api.InstancePricingApi Maven / Gradle / Ivy

The newest version!
package com.cloudesire.platform.apiclient.api;

import com.cloudesire.platform.apiclient.dto.model.dto.InstancePricingDTO;
import com.cloudesire.platform.apiclient.dto.model.dto.InstancePricingPatchDTO;
import com.liberologico.cloudesire.common.enums.OSType;
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 InstancePricingApi
{
    @POST( "instancePricing" )
    Call create( @Body InstancePricingDTO outres );

    @GET( "instancePricing/{id}" )
    Call get( @Path( "id" ) int id );

    @GET( "instancePricing" )
    Call> getAll( @Query( "cloudProvider" ) int cloudProvider );

    @GET( "instancePricing" )
    Call> getAll(
            @Query( "cloudProvider" ) int cloudProvider, @Query( "productVersion" ) Integer productVersionId
    );

    @GET( "instancePricing" )
    Call> getAll(
            @Query( "cloudProvider" ) int cloudProvider, @Query( "deprecated" ) Boolean deprecated
    );

    @GET( "instancePricing" )
    Call> getCompatible(
            @Query( "cloudProvider" ) int cloudProvider,
            @Query( "virtualMachineConfiguration" ) int virtualMachineConfiguration,
            @Query( "osType" ) OSType osType
    );

    @PUT( "instancePricing/{id}" )
    Call update( @Path( "id" ) int id, @Body InstancePricingDTO resource );

    /**
     * @deprecated use {@link #update(int, InstancePricingDTO)}
     */
    @Deprecated
    @PATCH( "instancePricing/{id}" )
    Call patch( @Path( "id" ) int id, @Body InstancePricingPatchDTO input );

    @DELETE( "instancePricing/{id}" )
    Call delete( @Path( "id" ) int id );
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy