com.cloudesire.platform.apiclient.api.CloudCredentialApi Maven / Gradle / Ivy
The newest version!
package com.cloudesire.platform.apiclient.api;
import com.cloudesire.platform.apiclient.dto.model.dto.CloudCredentialDTO;
import com.cloudesire.platform.apiclient.dto.model.patch.CloudCredentialPatchDTO;
import com.cloudesire.platform.apiclient.query.CloudCredentialQuery;
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 CloudCredentialApi
{
@POST( "cloudCredential" )
Call create( @Body CloudCredentialDTO resource );
@GET( "cloudCredential/{id}" )
Call get( @Path( "id" ) int id );
@GET( "cloudCredential" )
Call> getAll();
@GET( "cloudCredential" )
Call> getAll( @QueryMap CloudCredentialQuery query );
/**
* @deprecated by {@link #getAll(CloudCredentialQuery)}
*/
@Deprecated
@GET( "cloudCredential" )
Call> getAll(
@Query( "providerId" ) Integer providerId,
@Query( "userCompanyId" ) Integer userCompanyId,
@Query( "userId" ) Integer userId
);
@PATCH( "cloudCredential/{id}" )
Call partialUpdate( @Path( "id" ) int id, @Body CloudCredentialPatchDTO input );
@DELETE( "cloudCredential/{id}" )
Call delete( @Path( "id" ) int id );
@GET( "cloudCredential/{id}/metadata" )
Call