com.cloudesire.platform.apiclient.api.CloudProviderApi Maven / Gradle / Ivy
The newest version!
package com.cloudesire.platform.apiclient.api;
import com.cloudesire.platform.apiclient.dto.model.dto.CloudProviderDTO;
import com.cloudesire.platform.apiclient.dto.model.enums.CloudProviderTags;
import com.cloudesire.platform.apiclient.dto.model.enums.ProductType;
import com.cloudesire.platform.apiclient.dto.model.patch.CloudProviderPatchDTO;
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;
import java.util.Map;
public interface CloudProviderApi
{
@POST( "cloudProvider" )
Call create( @Body CloudProviderDTO resource );
@DELETE( "cloudProvider/{id}" )
Call delete( @Path( "id" ) Integer id );
@GET( "cloudProvider" )
Call> getAll();
@GET( "cloudProvider" )
Call> getAll(
@Query( "excluding" ) List excluding,
@Query( "withDisabled" ) Boolean withDisabled,
@Query( "enabled" ) Boolean enabled,
@Query( "productType" ) ProductType productType,
@Query( "feature" ) CloudProviderTags feature
);
@GET( "cloudProvider/{id}" )
Call get( @Path( "id" ) Integer id );
@GET( "cloudProvider/cloudProviderTags" )
Call