Interface NetworkConnectionsClient


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

    • list

      com.azure.core.http.rest.PagedIterable<NetworkConnectionInner> list()
      Lists network connections in a subscription.
      Returns:
      result of the network connection list operation as paginated response with PagedIterable.
      Throws:
      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<NetworkConnectionInner> list(Integer top, com.azure.core.util.Context context)
      Lists network connections in a subscription.
      Parameters:
      top - The maximum number of resources to return from the operation. Example: '$top=10'.
      context - The context to associate with this operation.
      Returns:
      result of the network connection list operation 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<NetworkConnectionInner> listByResourceGroup(String resourceGroupName)
      Lists network connections in a resource group.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      Returns:
      result of the network connection list operation 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<NetworkConnectionInner> listByResourceGroup(String resourceGroupName, Integer top, com.azure.core.util.Context context)
      Lists network connections in a resource group.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      top - The maximum number of resources to return from the operation. Example: '$top=10'.
      context - The context to associate with this operation.
      Returns:
      result of the network connection list operation 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.
    • getByResourceGroup

      NetworkConnectionInner getByResourceGroup(String resourceGroupName, String networkConnectionName)
      Gets a network connection resource.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      Returns:
      a network connection resource.
      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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<NetworkConnectionInner> getByResourceGroupWithResponse(String resourceGroupName, String networkConnectionName, com.azure.core.util.Context context)
      Gets a network connection resource.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      context - The context to associate with this operation.
      Returns:
      a network connection resource 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<NetworkConnectionInner>,NetworkConnectionInner> beginCreateOrUpdate(String resourceGroupName, String networkConnectionName, NetworkConnectionInner body)
      Creates or updates a Network Connections resource.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      body - Represents network connection.
      Returns:
      the SyncPoller for polling of network related settings.
      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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<NetworkConnectionInner>,NetworkConnectionInner> beginCreateOrUpdate(String resourceGroupName, String networkConnectionName, NetworkConnectionInner body, com.azure.core.util.Context context)
      Creates or updates a Network Connections resource.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      body - Represents network connection.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of network related settings.
      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

      NetworkConnectionInner createOrUpdate(String resourceGroupName, String networkConnectionName, NetworkConnectionInner body)
      Creates or updates a Network Connections resource.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      body - Represents network connection.
      Returns:
      network related settings.
      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

      NetworkConnectionInner createOrUpdate(String resourceGroupName, String networkConnectionName, NetworkConnectionInner body, com.azure.core.util.Context context)
      Creates or updates a Network Connections resource.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      body - Represents network connection.
      context - The context to associate with this operation.
      Returns:
      network related settings.
      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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<NetworkConnectionInner>,NetworkConnectionInner> beginUpdate(String resourceGroupName, String networkConnectionName, NetworkConnectionUpdate body)
      Partially updates a Network Connection.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      body - Represents network connection.
      Returns:
      the SyncPoller for polling of network related settings.
      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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<NetworkConnectionInner>,NetworkConnectionInner> beginUpdate(String resourceGroupName, String networkConnectionName, NetworkConnectionUpdate body, com.azure.core.util.Context context)
      Partially updates a Network Connection.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      body - Represents network connection.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of network related settings.
      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

      NetworkConnectionInner update(String resourceGroupName, String networkConnectionName, NetworkConnectionUpdate body)
      Partially updates a Network Connection.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      body - Represents network connection.
      Returns:
      network related settings.
      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

      NetworkConnectionInner update(String resourceGroupName, String networkConnectionName, NetworkConnectionUpdate body, com.azure.core.util.Context context)
      Partially updates a Network Connection.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      body - Represents network connection.
      context - The context to associate with this operation.
      Returns:
      network related settings.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String networkConnectionName)
      Deletes a Network Connections resource.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String networkConnectionName, com.azure.core.util.Context context)
      Deletes a Network Connections resource.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      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 networkConnectionName)
      Deletes a Network Connections resource.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      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 networkConnectionName, com.azure.core.util.Context context)
      Deletes a Network Connections resource.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      context - The context to associate with this operation.
      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.
    • listHealthDetails

      com.azure.core.http.rest.PagedIterable<HealthCheckStatusDetailsInner> listHealthDetails(String resourceGroupName, String networkConnectionName)
      Lists health check status details.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      Returns:
      result of the network health check list operation 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.
    • listHealthDetails

      com.azure.core.http.rest.PagedIterable<HealthCheckStatusDetailsInner> listHealthDetails(String resourceGroupName, String networkConnectionName, Integer top, com.azure.core.util.Context context)
      Lists health check status details.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      top - The maximum number of resources to return from the operation. Example: '$top=10'.
      context - The context to associate with this operation.
      Returns:
      result of the network health check list operation 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.
    • getHealthDetails

      HealthCheckStatusDetailsInner getHealthDetails(String resourceGroupName, String networkConnectionName)
      Gets health check status details.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      Returns:
      health check status details.
      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.
    • getHealthDetailsWithResponse

      com.azure.core.http.rest.Response<HealthCheckStatusDetailsInner> getHealthDetailsWithResponse(String resourceGroupName, String networkConnectionName, com.azure.core.util.Context context)
      Gets health check status details.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      context - The context to associate with this operation.
      Returns:
      health check status details 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.
    • runHealthChecks

      void runHealthChecks(String resourceGroupName, String networkConnectionName)
      Triggers a new health check run. The execution and health check result can be tracked via the network Connection health check details.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      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.
    • runHealthChecksWithResponse

      com.azure.core.http.rest.Response<Void> runHealthChecksWithResponse(String resourceGroupName, String networkConnectionName, com.azure.core.util.Context context)
      Triggers a new health check run. The execution and health check result can be tracked via the network Connection health check details.
      Parameters:
      resourceGroupName - Name of the resource group within the Azure subscription.
      networkConnectionName - Name of the Network Connection that can be applied to a Pool.
      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.