PartnerServiceClient Class

  • java.lang.Object
    • com.microsoft.rest.ServiceClient
      • com.microsoft.store.partnercenter.network.PartnerServiceClient

Implements

public class PartnerServiceClient extends ServiceClient implements IPartnerServiceClient

Constructor Summary

Constructor Description
PartnerServiceClient(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 and Description
U <T,U>patch(IPartner rootPartnerOperations, TypeReference<U> responseType, String relativeUri, T content)

Executes a PATCH operation against the partner service.

U <T,U>post(IPartner rootPartnerOperations, TypeReference<U> responseType, String relativeUri, T content)

Executes a POST operation against the partner service.

U <T,U>post(IPartner rootPartnerOperations, TypeReference<U> responseType, String relativeUri, T content, Collection<KeyValuePair<String,String>> parameters)

Executes a POST operation against the partner service.

U <T,U>put(IPartner rootPartnerOperations, TypeReference<U> responseType, String relativeUri, T content)

Executes a PUT operation against the partner service.

void <T>delete(IPartner rootPartnerOperations, TypeReference<T> responseType, String relativeUri)

Executes a DELETE operation against the partner service.

T <T>get(IPartner rootPartnerOperations, TypeReference<T> responseType, Link link)

Executes a GET operation against the partner service.

T <T>get(IPartner rootPartnerOperations, TypeReference<T> responseType, String relativeUri)

Executes a GET operation against the partner service.

T <T>get(IPartner rootPartnerOperations, TypeReference<T> responseType, String relativeUri, Collection<KeyValuePair<String,String>> parameters)

Executes a GET operation against the partner service.

T <T>get(IPartner rootPartnerOperations, TypeReference<T> responseType, String relativeUri, Map<String,String> headers, Collection<KeyValuePair<String,String>> parameters)

Executes a GET operation against the partner service.

T <T>head(IPartner rootPartnerOperations, TypeReference<T> responseType, String relativeUri)

Executes a HEAD operation against the partner service.

java.io.InputStream getFileContents(IPartner rootPartnerOperations, String relativeUri, String acceptType)

Executes a file content request against the partner service.

Inherited Members

com.microsoft.rest.ServiceClient.httpClient() com.microsoft.rest.ServiceClient.restClient() com.microsoft.rest.ServiceClient.retrofit() com.microsoft.rest.ServiceClient.serializerAdapter() java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

PartnerServiceClient

public PartnerServiceClient(RestClient restClient)

Initializes a new instance of the ServiceClient class.

Parameters:

restClient - The client for performing REST operations.

PartnerServiceClient

public PartnerServiceClient(String baseUrl)

Initializes a new instance of the PartnerServiceClient class.

Parameters:

baseUrl - The base service endpoint address.

Method Details

<T,U>patch

public U patch(IPartner rootPartnerOperations, TypeReference responseType, String relativeUri, T content)

Executes a PATCH operation against the partner service.

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.

<T,U>post

public U post(IPartner rootPartnerOperations, TypeReference responseType, String relativeUri, T content)

Executes a POST operation against the partner service.

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.

<T,U>post

public U post(IPartner rootPartnerOperations, TypeReference responseType, String relativeUri, T content, Collection> parameters)

Executes a POST operation against the partner service.

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.

<T,U>put

public U put(IPartner rootPartnerOperations, TypeReference responseType, String relativeUri, T content)

Executes a PUT operation against the partner service.

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.

<T>delete

public void delete(IPartner rootPartnerOperations, TypeReference responseType, String relativeUri)

Executes a DELETE operation against the partner service.

Parameters:

rootPartnerOperations - An instance of the partner operations.
responseType - The type of object to be returned.
relativeUri - The relative address fo the request.

<T>get

public T get(IPartner rootPartnerOperations, TypeReference responseType, Link link)

Executes a GET operation against the partner service.

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.

<T>get

public T get(IPartner rootPartnerOperations, TypeReference responseType, String relativeUri)

Executes a GET operation against the partner service.

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.

<T>get

public T get(IPartner rootPartnerOperations, TypeReference responseType, String relativeUri, Collection> parameters)

Executes a GET operation against the partner service.

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.

<T>get

public T get(IPartner rootPartnerOperations, TypeReference responseType, String relativeUri, Map headers, Collection> parameters)

Executes a GET operation against the partner service.

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.

<T>head

public T head(IPartner rootPartnerOperations, TypeReference responseType, String relativeUri)

Executes a HEAD operation against the partner service.

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.

getFileContents

public InputStream getFileContents(IPartner rootPartnerOperations, String relativeUri, String acceptType)

Executes a file content request against the partner service.

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.

Applies to