Interface VirtualNetworksClient


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

    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualNetworkInner>,VirtualNetworkInner> beginCreate(String resourceGroupName, String virtualNetworkName, VirtualNetworkInner body)
      Implements virtual network PUT method.

      Create Or Update virtual network.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualNetworkName - Name of the virtual network resource.
      body - Request payload.
      Returns:
      the SyncPoller for polling of define the virtualNetwork.
      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.
    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualNetworkInner>,VirtualNetworkInner> beginCreate(String resourceGroupName, String virtualNetworkName, VirtualNetworkInner body, com.azure.core.util.Context context)
      Implements virtual network PUT method.

      Create Or Update virtual network.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualNetworkName - Name of the virtual network resource.
      body - Request payload.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of define the virtualNetwork.
      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

      VirtualNetworkInner create(String resourceGroupName, String virtualNetworkName, VirtualNetworkInner body)
      Implements virtual network PUT method.

      Create Or Update virtual network.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualNetworkName - Name of the virtual network resource.
      body - Request payload.
      Returns:
      define the virtualNetwork.
      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

      VirtualNetworkInner create(String resourceGroupName, String virtualNetworkName)
      Implements virtual network PUT method.

      Create Or Update virtual network.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualNetworkName - Name of the virtual network resource.
      Returns:
      define the virtualNetwork.
      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

      VirtualNetworkInner create(String resourceGroupName, String virtualNetworkName, VirtualNetworkInner body, com.azure.core.util.Context context)
      Implements virtual network PUT method.

      Create Or Update virtual network.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualNetworkName - Name of the virtual network resource.
      body - Request payload.
      context - The context to associate with this operation.
      Returns:
      define the virtualNetwork.
      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

      VirtualNetworkInner getByResourceGroup(String resourceGroupName, String virtualNetworkName)
      Gets a virtual network.

      Implements virtual network GET method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualNetworkName - Name of the virtual network resource.
      Returns:
      define the virtualNetwork.
      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<VirtualNetworkInner> getByResourceGroupWithResponse(String resourceGroupName, String virtualNetworkName, com.azure.core.util.Context context)
      Gets a virtual network.

      Implements virtual network GET method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualNetworkName - Name of the virtual network resource.
      context - The context to associate with this operation.
      Returns:
      define the virtualNetwork 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

      VirtualNetworkInner update(String resourceGroupName, String virtualNetworkName)
      Updates a virtual network.

      API to update certain properties of the virtual network resource.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualNetworkName - Name of the virtual network resource.
      Returns:
      define the virtualNetwork.
      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<VirtualNetworkInner> updateWithResponse(String resourceGroupName, String virtualNetworkName, ResourcePatch body, com.azure.core.util.Context context)
      Updates a virtual network.

      API to update certain properties of the virtual network resource.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualNetworkName - Name of the virtual network resource.
      body - Resource properties to update.
      context - The context to associate with this operation.
      Returns:
      define the virtualNetwork 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String virtualNetworkName, Boolean force)
      Deletes an virtual network.

      Implements virtual network DELETE method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualNetworkName - Name of the virtual network resource.
      force - Whether force delete was specified.
      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 virtualNetworkName, Boolean force, com.azure.core.util.Context context)
      Deletes an virtual network.

      Implements virtual network DELETE method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualNetworkName - Name of the virtual network resource.
      force - Whether force delete was specified.
      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 virtualNetworkName, Boolean force)
      Deletes an virtual network.

      Implements virtual network DELETE method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualNetworkName - Name of the virtual network resource.
      force - Whether force delete was specified.
      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 virtualNetworkName)
      Deletes an virtual network.

      Implements virtual network DELETE method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualNetworkName - Name of the virtual network 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.
    • delete

      void delete(String resourceGroupName, String virtualNetworkName, Boolean force, com.azure.core.util.Context context)
      Deletes an virtual network.

      Implements virtual network DELETE method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualNetworkName - Name of the virtual network resource.
      force - Whether force delete was specified.
      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.
    • list

      com.azure.core.http.rest.PagedIterable<VirtualNetworkInner> list()
      Implements GET virtualNetworks in a subscription.

      List of virtualNetworks in a subscription.

      Returns:
      list of VirtualNetworks 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<VirtualNetworkInner> list(com.azure.core.util.Context context)
      Implements GET virtualNetworks in a subscription.

      List of virtualNetworks in a subscription.

      Parameters:
      context - The context to associate with this operation.
      Returns:
      list of VirtualNetworks 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<VirtualNetworkInner> listByResourceGroup(String resourceGroupName)
      Implements GET virtualNetworks in a resource group.

      List of virtualNetworks in a resource group.

      Parameters:
      resourceGroupName - The Resource Group Name.
      Returns:
      list of VirtualNetworks 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<VirtualNetworkInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Implements GET virtualNetworks in a resource group.

      List of virtualNetworks in a resource group.

      Parameters:
      resourceGroupName - The Resource Group Name.
      context - The context to associate with this operation.
      Returns:
      list of VirtualNetworks 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.