Interface VirtualNetworks
public interface VirtualNetworks
Resource collection API of VirtualNetworks.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new VirtualNetwork resource.void
Deletes an virtual network.void
Deletes an virtual network.void
delete
(String resourceGroupName, String virtualNetworkName, Boolean force, com.azure.core.util.Context context) Deletes an virtual network.void
deleteById
(String id) Deletes an virtual network.void
deleteByIdWithResponse
(String id, Boolean force, com.azure.core.util.Context context) Deletes an virtual network.Gets a virtual network.com.azure.core.http.rest.Response<VirtualNetwork>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets a virtual network.getByResourceGroup
(String resourceGroupName, String virtualNetworkName) Gets a virtual network.com.azure.core.http.rest.Response<VirtualNetwork>
getByResourceGroupWithResponse
(String resourceGroupName, String virtualNetworkName, com.azure.core.util.Context context) Gets a virtual network.com.azure.core.http.rest.PagedIterable<VirtualNetwork>
list()
Implements GET virtualNetworks in a subscription.com.azure.core.http.rest.PagedIterable<VirtualNetwork>
list
(com.azure.core.util.Context context) Implements GET virtualNetworks in a subscription.com.azure.core.http.rest.PagedIterable<VirtualNetwork>
listByResourceGroup
(String resourceGroupName) Implements GET virtualNetworks in a resource group.com.azure.core.http.rest.PagedIterable<VirtualNetwork>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Implements GET virtualNetworks in a resource group.
-
Method Details
-
getByResourceGroup
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<VirtualNetwork> 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.
-
delete
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
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<VirtualNetwork> 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
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<VirtualNetwork> 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<VirtualNetwork> 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.
-
getById
Gets a virtual network.Implements virtual network GET method.
- Parameters:
id
- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<VirtualNetwork> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a virtual network.Implements virtual network GET method.
- Parameters:
id
- the resource ID.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.
-
deleteById
Deletes an virtual network.Implements virtual network DELETE method.
- Parameters:
id
- the resource ID.- 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.
-
deleteByIdWithResponse
Deletes an virtual network.Implements virtual network DELETE method.
- Parameters:
id
- the resource ID.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.
-
define
Begins definition for a new VirtualNetwork resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new VirtualNetwork definition.
-