Interface ApplicationsClient


public interface ApplicationsClient
An instance of this class provides access to all the operations defined in ApplicationsClient.
  • Method Details

    • createWithResponse

      com.azure.core.http.rest.Response<ApplicationInner> createWithResponse(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters, com.azure.core.util.Context context)
      Adds an application to the specified Batch account.
      Parameters:
      resourceGroupName - The name of the resource group that contains the Batch account.
      accountName - The name of the Batch account.
      applicationName - The name of the application. This must be unique within the account.
      parameters - The parameters for the request.
      context - The context to associate with this operation.
      Returns:
      contains information about an application in a Batch account along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • create

      ApplicationInner create(String resourceGroupName, String accountName, String applicationName)
      Adds an application to the specified Batch account.
      Parameters:
      resourceGroupName - The name of the resource group that contains the Batch account.
      accountName - The name of the Batch account.
      applicationName - The name of the application. This must be unique within the account.
      Returns:
      contains information about an application in a Batch account.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String accountName, String applicationName, com.azure.core.util.Context context)
      Deletes an application.
      Parameters:
      resourceGroupName - The name of the resource group that contains the Batch account.
      accountName - The name of the Batch account.
      applicationName - The name of the application. This must be unique within the account.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String accountName, String applicationName)
      Deletes an application.
      Parameters:
      resourceGroupName - The name of the resource group that contains the Batch account.
      accountName - The name of the Batch account.
      applicationName - The name of the application. This must be unique within the account.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponse

      com.azure.core.http.rest.Response<ApplicationInner> getWithResponse(String resourceGroupName, String accountName, String applicationName, com.azure.core.util.Context context)
      Gets information about the specified application.
      Parameters:
      resourceGroupName - The name of the resource group that contains the Batch account.
      accountName - The name of the Batch account.
      applicationName - The name of the application. This must be unique within the account.
      context - The context to associate with this operation.
      Returns:
      information about the specified application along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      ApplicationInner get(String resourceGroupName, String accountName, String applicationName)
      Gets information about the specified application.
      Parameters:
      resourceGroupName - The name of the resource group that contains the Batch account.
      accountName - The name of the Batch account.
      applicationName - The name of the application. This must be unique within the account.
      Returns:
      information about the specified application.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateWithResponse

      com.azure.core.http.rest.Response<ApplicationInner> updateWithResponse(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters, com.azure.core.util.Context context)
      Updates settings for the specified application.
      Parameters:
      resourceGroupName - The name of the resource group that contains the Batch account.
      accountName - The name of the Batch account.
      applicationName - The name of the application. This must be unique within the account.
      parameters - The parameters for the request.
      context - The context to associate with this operation.
      Returns:
      contains information about an application in a Batch account along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      ApplicationInner update(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters)
      Updates settings for the specified application.
      Parameters:
      resourceGroupName - The name of the resource group that contains the Batch account.
      accountName - The name of the Batch account.
      applicationName - The name of the application. This must be unique within the account.
      parameters - The parameters for the request.
      Returns:
      contains information about an application in a Batch account.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<ApplicationInner> list(String resourceGroupName, String accountName)
      Lists all of the applications in the specified account.
      Parameters:
      resourceGroupName - The name of the resource group that contains the Batch account.
      accountName - The name of the Batch account.
      Returns:
      the result of performing list applications as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<ApplicationInner> list(String resourceGroupName, String accountName, Integer maxresults, com.azure.core.util.Context context)
      Lists all of the applications in the specified account.
      Parameters:
      resourceGroupName - The name of the resource group that contains the Batch account.
      accountName - The name of the Batch account.
      maxresults - The maximum number of items to return in the response.
      context - The context to associate with this operation.
      Returns:
      the result of performing list applications as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.