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

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

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

import com.cloudesire.platform.apiclient.dto.model.dto.VirtualMachineConfigurationDTO;
import com.cloudesire.platform.apiclient.dto.model.enums.AssociationType;
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 retrofit2.http.QueryMap;

import java.util.List;
import java.util.Map;

public interface VirtualMachineConfigurationApi
{
    @POST( "virtualMachineConfiguration" )
    Call create( @Body VirtualMachineConfigurationDTO inputVmc );

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

    @PATCH( "virtualMachineConfiguration/{id}" )
    Call partialUpdate( @Path( "id" ) int id, @Body Object input );

    @GET( "virtualMachineConfiguration" )
    Call> getAll( @QueryMap Map pageRequest );

    @GET( "virtualMachineConfiguration" )
    Call> getAll(
            @Query( "applicationFileAssociationType" ) AssociationType applicationFileAssociationType,
            @QueryMap Map pageRequest
    );

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

    @PUT( "virtualMachineConfiguration/{id}" )
    Call update( @Path( "id" ) int id, @Body VirtualMachineConfigurationDTO vmc );
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy