Interface JobTargetGroupsClient


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

      • 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.
        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.
        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.
        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.
        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.
        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.
      • 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.
        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,
                                                                                                     List<JobTarget> members)
        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.
        members - Members 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.
      • createOrUpdateAsync

        Mono<JobTargetGroupInner> createOrUpdateAsync​(String resourceGroupName,
                                                      String serverName,
                                                      String jobAgentName,
                                                      String targetGroupName,
                                                      List<JobTarget> members)
        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.
        members - Members 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.
      • createOrUpdateAsync

        Mono<JobTargetGroupInner> createOrUpdateAsync​(String resourceGroupName,
                                                      String serverName,
                                                      String jobAgentName,
                                                      String targetGroupName)
        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.
        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.
      • createOrUpdate

        JobTargetGroupInner createOrUpdate​(String resourceGroupName,
                                           String serverName,
                                           String jobAgentName,
                                           String targetGroupName)
        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.
        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.
      • createOrUpdateWithResponse

        com.azure.core.http.rest.Response<JobTargetGroupInner> createOrUpdateWithResponse​(String resourceGroupName,
                                                                                          String serverName,
                                                                                          String jobAgentName,
                                                                                          String targetGroupName,
                                                                                          List<JobTarget> members,
                                                                                          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.
        members - Members of the target group.
        context - The context to associate with this operation.
        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 completion.
        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:
        the completion.
        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.
      • 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.