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> void delete​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri)
    Executes a DELETE operation against the partner service.
    <T> T get​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, Link link)
    Executes a GET operation against the partner service.
    <T> T get​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri)
    Executes a GET operation against the partner service.
    <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.
    <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.
    InputStream getFileContents​(IPartner rootPartnerOperations, String relativeUri, String acceptType)
    Executes a file content request against the partner service.
    <T> T head​(IPartner rootPartnerOperations, com.fasterxml.jackson.core.type.TypeReference<T> responseType, String relativeUri)
    Executes a HEAD operation against the partner service.
    <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.
    <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.
    <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.
    <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.

    Methods inherited from class com.microsoft.rest.ServiceClient

    httpClient, restClient, retrofit, serializerAdapter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PartnerServiceClient

      public PartnerServiceClient​(String baseUrl)
      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:
      get in interface IPartnerServiceClient
      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:
      get in interface IPartnerServiceClient
      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:
      get in interface IPartnerServiceClient
      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:
      getFileContents in interface IPartnerServiceClient
      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:
      get in interface IPartnerServiceClient
      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:
      head in interface IPartnerServiceClient
      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:
      patch in interface IPartnerServiceClient
      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:
      post in interface IPartnerServiceClient
      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:
      post in interface IPartnerServiceClient
      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:
      put in interface IPartnerServiceClient
      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:
      delete in interface IPartnerServiceClient
      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.