Interface JobTargetGroupsClient


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

    • listByAgentAsync

      com.azure.core.http.rest.PagedFlux<JobTargetGroupInner> listByAgentAsync(String resourceGroupName, String serverName, String jobAgentName)
      Gets all target groups in an agent.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      Returns:
      all target groups in an agent as paginated response with PagedFlux.
      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.
    • listByAgent

      com.azure.core.http.rest.PagedIterable<JobTargetGroupInner> listByAgent(String resourceGroupName, String serverName, String jobAgentName)
      Gets all target groups in an agent.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      Returns:
      all target groups in an agent 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.
    • listByAgent

      com.azure.core.http.rest.PagedIterable<JobTargetGroupInner> listByAgent(String resourceGroupName, String serverName, String jobAgentName, com.azure.core.util.Context context)
      Gets all target groups in an agent.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      context - The context to associate with this operation.
      Returns:
      all target groups in an agent 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.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<JobTargetGroupInner>> getWithResponseAsync(String resourceGroupName, String serverName, String jobAgentName, String targetGroupName)
      Gets a target group.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      targetGroupName - The name of the target group.
      Returns:
      a target group along with Response on successful completion of Mono.
      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.
    • getAsync

      Mono<JobTargetGroupInner> getAsync(String resourceGroupName, String serverName, String jobAgentName, String targetGroupName)
      Gets a target group.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      targetGroupName - The name of the target group.
      Returns:
      a target group on successful completion of Mono.
      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<JobTargetGroupInner> getWithResponse(String resourceGroupName, String serverName, String jobAgentName, String targetGroupName, com.azure.core.util.Context context)
      Gets a target group.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      targetGroupName - The name of the target group.
      context - The context to associate with this operation.
      Returns:
      a target group 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

      JobTargetGroupInner get(String resourceGroupName, String serverName, String jobAgentName, String targetGroupName)
      Gets a target group.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      targetGroupName - The name of the target group.
      Returns:
      a target group.
      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.
    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<JobTargetGroupInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String jobAgentName, String targetGroupName, JobTargetGroupInner parameters)
      Creates or updates a target group.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      targetGroupName - The name of the target group.
      parameters - The requested state of the target group.
      Returns:
      a group of job targets along with Response on successful completion of Mono.
      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.
    • createOrUpdateAsync

      Mono<JobTargetGroupInner> createOrUpdateAsync(String resourceGroupName, String serverName, String jobAgentName, String targetGroupName, JobTargetGroupInner parameters)
      Creates or updates a target group.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      targetGroupName - The name of the target group.
      parameters - The requested state of the target group.
      Returns:
      a group of job targets on successful completion of Mono.
      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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<JobTargetGroupInner> createOrUpdateWithResponse(String resourceGroupName, String serverName, String jobAgentName, String targetGroupName, JobTargetGroupInner parameters, com.azure.core.util.Context context)
      Creates or updates a target group.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      targetGroupName - The name of the target group.
      parameters - The requested state of the target group.
      context - The context to associate with this operation.
      Returns:
      a group of job targets 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.
    • createOrUpdate

      JobTargetGroupInner createOrUpdate(String resourceGroupName, String serverName, String jobAgentName, String targetGroupName, JobTargetGroupInner parameters)
      Creates or updates a target group.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      targetGroupName - The name of the target group.
      parameters - The requested state of the target group.
      Returns:
      a group of job targets.
      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.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String resourceGroupName, String serverName, String jobAgentName, String targetGroupName)
      Deletes a target group.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      targetGroupName - The name of the target group.
      Returns:
      the Response on successful completion of Mono.
      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.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String serverName, String jobAgentName, String targetGroupName)
      Deletes a target group.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      targetGroupName - The name of the target group.
      Returns:
      A Mono that completes when a successful response is received.
      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 serverName, String jobAgentName, String targetGroupName, com.azure.core.util.Context context)
      Deletes a target group.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      targetGroupName - The name of the target group.
      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 serverName, String jobAgentName, String targetGroupName)
      Deletes a target group.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      jobAgentName - The name of the job agent.
      targetGroupName - The name of the target group.
      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.