Class SolutionInferenceClient

java.lang.Object
com.azure.verticals.agrifood.farming.SolutionInferenceClient

public final class SolutionInferenceClient extends Object
Initializes a new instance of the synchronous FarmBeatsClient type.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.azure.core.util.polling.SyncPoller<com.azure.core.util.BinaryData,com.azure.core.util.BinaryData>
    beginCreateOrUpdate(String solutionId, com.azure.core.util.BinaryData solutionInferenceRequest, com.azure.core.http.rest.RequestOptions requestOptions)
    Creates a job trigger for a solution.
    com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>
    cancelWithResponse(String solutionId, com.azure.core.util.BinaryData solutionInferenceRequest, com.azure.core.http.rest.RequestOptions requestOptions)
    Cancels a job for given solution id.
    com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>
    fetchWithResponse(String solutionId, com.azure.core.util.BinaryData solutionInferenceRequest, com.azure.core.http.rest.RequestOptions requestOptions)
    Fetches details of triggered job for a solution.

    Methods inherited from class java.lang.Object

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

    • cancelWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> cancelWithResponse(String solutionId, com.azure.core.util.BinaryData solutionInferenceRequest, com.azure.core.http.rest.RequestOptions requestOptions)
      Cancels a job for given solution id.

      Request Body Schema

      
       {
           requestPath: String (Required)
           partnerRequestBody (Optional): {
               String: Object (Optional)
           }
       }
       

      Response Body Schema

      
       {
           String: Object (Required)
       }
       
      Parameters:
      solutionId - Id of solution for which job is to be cancelled.
      solutionInferenceRequest - solutionInferenceRequest containing input needed for job request processing.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      dictionary of <any> along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • beginCreateOrUpdate

      public com.azure.core.util.polling.SyncPoller<com.azure.core.util.BinaryData,com.azure.core.util.BinaryData> beginCreateOrUpdate(String solutionId, com.azure.core.util.BinaryData solutionInferenceRequest, com.azure.core.http.rest.RequestOptions requestOptions)
      Creates a job trigger for a solution.

      Request Body Schema

      
       {
           requestPath: String (Required)
           partnerRequestBody (Optional): {
               String: Object (Optional)
           }
       }
       

      Response Body Schema

      
       {
           String: Object (Required)
       }
       
      Parameters:
      solutionId - Id of the solution resource.
      solutionInferenceRequest - solutionInferenceRequest containing input needed for job request processing.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      the SyncPoller for polling of dictionary of <any>.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.
    • fetchWithResponse

      public com.azure.core.http.rest.Response<com.azure.core.util.BinaryData> fetchWithResponse(String solutionId, com.azure.core.util.BinaryData solutionInferenceRequest, com.azure.core.http.rest.RequestOptions requestOptions)
      Fetches details of triggered job for a solution.

      Request Body Schema

      
       {
           requestPath: String (Required)
           partnerRequestBody (Optional): {
               String: Object (Optional)
           }
       }
       

      Response Body Schema

      
       {
           String: Object (Required)
       }
       
      Parameters:
      solutionId - Id of the solution.
      solutionInferenceRequest - solutionInferenceRequest containing input needed for job request processing.
      requestOptions - The options to configure the HTTP request before HTTP client sends it.
      Returns:
      dictionary of <any> along with Response.
      Throws:
      com.azure.core.exception.HttpResponseException - thrown if the request is rejected by server.
      com.azure.core.exception.ClientAuthenticationException - thrown if the request is rejected by server on status code 401.
      com.azure.core.exception.ResourceNotFoundException - thrown if the request is rejected by server on status code 404.
      com.azure.core.exception.ResourceModifiedException - thrown if the request is rejected by server on status code 409.