Class PartnerServiceClient
java.lang.Object
com.microsoft.rest.ServiceClient
com.microsoft.store.partnercenter.network.PartnerServiceClient
- All Implemented Interfaces:
IPartnerServiceClient
public class PartnerServiceClient extends com.microsoft.rest.ServiceClient implements IPartnerServiceClient
-
Constructor Summary
Constructors Constructor Description PartnerServiceClient(com.microsoft.rest.RestClient restClient)Initializes a new instance of the ServiceClient class.PartnerServiceClient(String baseUrl)Initializes a new instance of the PartnerServiceClient class. -
Method Summary
Modifier and Type Method Description <T> voiddelete(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri)Executes a DELETE operation against the partner service.<T> Tget(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, Link link)Executes a GET operation against the partner service.<T> Tget(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri)Executes a GET operation against the partner service.<T> Tget(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri, Collection<KeyValuePair<String,String>> parameters)Executes a GET operation against the partner service.<T> Tget(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri, Map<String,String> headers, Collection<KeyValuePair<String,String>> parameters)Executes a GET operation against the partner service.InputStreamgetFileContents(IPartner rootPartnerOperations, String relativeUri, String acceptType)Executes a file content request against the partner service.<T> Thead(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri)Executes a HEAD operation against the partner service.<T, U> Upatch(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<U> responseType, String relativeUri, T content)Executes a PATCH operation against the partner service.<T, U> Upost(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<U> responseType, String relativeUri, T content)Executes a POST operation against the partner service.<T, U> Upost(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<U> responseType, String relativeUri, T content, Collection<KeyValuePair<String,String>> parameters)Executes a POST operation against the partner service.<T, U> Uput(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<U> responseType, String relativeUri, T content)Executes a PUT operation against the partner service.
-
Constructor Details
-
PartnerServiceClient
Initializes a new instance of the PartnerServiceClient class.- Parameters:
baseUrl- The base service endpoint address.
-
PartnerServiceClient
public PartnerServiceClient(com.microsoft.rest.RestClient restClient)Initializes a new instance of the ServiceClient class.- Parameters:
restClient- The client for performing REST operations.
-
-
Method Details
-
get
public <T> T get(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, Link link)Executes a GET operation against the partner service.- Specified by:
getin interfaceIPartnerServiceClient- Type Parameters:
T- The type of the response.- Parameters:
rootPartnerOperations- An instance of the partner operations.responseType- The type of object to be returned.link- A link object that represents the action for accessing the resource.- Returns:
- The response from the GET operation.
-
get
public <T> T get(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri)Executes a GET operation against the partner service.- Specified by:
getin interfaceIPartnerServiceClient- Type Parameters:
T- The type of the response.- Parameters:
rootPartnerOperations- An instance of the partner operations.responseType- The type of object to be returned.relativeUri- The relative address of the request.- Returns:
- The response from the GET operation.
-
get
public <T> T get(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri, Map<String,String> headers, Collection<KeyValuePair<String,String>> parameters)Executes a GET operation against the partner service.- Specified by:
getin interfaceIPartnerServiceClient- Type Parameters:
T- The type of the response.- Parameters:
rootPartnerOperations- An instance of the partner operations.responseType- The type of object to be returned.relativeUri- The relative address of the request.headers- Headers to be added to the request.parameters- Parameters to be added to the request.- Returns:
- The response from the GET operation.
-
getFileContents
public InputStream getFileContents(IPartner rootPartnerOperations, String relativeUri, String acceptType)Executes a file content request against the partner service.- Specified by:
getFileContentsin interfaceIPartnerServiceClient- Parameters:
rootPartnerOperations- An instance of the partner operations.relativeUri- The relative address of the request.acceptType- The value for the accept type header.- Returns:
- The response from the file content request.
-
get
public <T> T get(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri, Collection<KeyValuePair<String,String>> parameters)Executes a GET operation against the partner service.- Specified by:
getin interfaceIPartnerServiceClient- Type Parameters:
T- The type of the response.- Parameters:
rootPartnerOperations- An instance of the partner operations.responseType- The type of object to be returned.relativeUri- The relative address of the request.parameters- Parameters to be added to the request.- Returns:
- The response from the GET operation.
-
head
public <T> T head(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri)Executes a HEAD operation against the partner service.- Specified by:
headin interfaceIPartnerServiceClient- Type Parameters:
T- The type of the response.- Parameters:
rootPartnerOperations- An instance of the partner operations.responseType- The type of object to be returned.relativeUri- The relative address of the request.- Returns:
- The response from the HEAD operation.
-
patch
public <T, U> U patch(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<U> responseType, String relativeUri, T content)Executes a PATCH operation against the partner service.- Specified by:
patchin interfaceIPartnerServiceClient- Type Parameters:
T- The type of the request.U- The type of the response.- Parameters:
rootPartnerOperations- An instance of the partner operations.responseType- The type of object to be returned.relativeUri- The relative address of the request.content- The content for the body of the request.- Returns:
- The response from the PATCH operation.
-
post
public <T, U> U post(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<U> responseType, String relativeUri, T content)Executes a POST operation against the partner service.- Specified by:
postin interfaceIPartnerServiceClient- Type Parameters:
T- The type of the request.U- The type of the response.- Parameters:
rootPartnerOperations- An instance of the partner operations.responseType- The type of object to be returned.relativeUri- The relative address fo the request.content- The content for the body of the request.- Returns:
- The response from the POST operation.
-
post
public <T, U> U post(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<U> responseType, String relativeUri, T content, Collection<KeyValuePair<String,String>> parameters)Executes a POST operation against the partner service.- Specified by:
postin interfaceIPartnerServiceClient- Type Parameters:
T- The type of the request.U- The type of the response.- Parameters:
rootPartnerOperations- An instance of the partner operations.responseType- The type of object to be returned.relativeUri- The relative address fo the request.content- The content for the body of the request.parameters- Parameters to be added to the request.- Returns:
- The response from the POST operation.
-
put
public <T, U> U put(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<U> responseType, String relativeUri, T content)Executes a PUT operation against the partner service.- Specified by:
putin interfaceIPartnerServiceClient- Type Parameters:
T- The type of the request.U- The type of the response.- Parameters:
rootPartnerOperations- An instance of the partner operations.responseType- The type of object to be returned.relativeUri- The relative address fo the request.content- The content for the body of the request.- Returns:
- The response from the POST operation.
-
delete
public <T> void delete(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri)Executes a DELETE operation against the partner service.- Specified by:
deletein interfaceIPartnerServiceClient- Type Parameters:
T- The type of the response.- Parameters:
rootPartnerOperations- An instance of the partner operations.responseType- The type of object to be returned.relativeUri- The relative address fo the request.
-