Interface VirtualNetworks
public interface VirtualNetworks
Resource collection API of VirtualNetworks.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new VirtualNetwork resource.void
Delete virtual network.void
Delete virtual network.void
deleteById
(String id) Delete virtual network.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete virtual network.Get virtual network.Get virtual network.com.azure.core.http.rest.Response<VirtualNetwork>
getByIdWithResponse
(String id, String expand, com.azure.core.util.Context context) Get virtual network.com.azure.core.http.rest.Response<VirtualNetwork>
getWithResponse
(String resourceGroupName, String labName, String name, String expand, com.azure.core.util.Context context) Get virtual network.com.azure.core.http.rest.PagedIterable<VirtualNetwork>
List virtual networks in a given lab.com.azure.core.http.rest.PagedIterable<VirtualNetwork>
list
(String resourceGroupName, String labName, String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context) List virtual networks in a given lab.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<VirtualNetwork> list(String resourceGroupName, String labName) List virtual networks in a given lab.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.- Returns:
- the response of a 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.
-
list
com.azure.core.http.rest.PagedIterable<VirtualNetwork> list(String resourceGroupName, String labName, String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context) List virtual networks in a given lab.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.expand
- Specify the $expand query. Example: 'properties($expand=externalSubnets)'.filter
- The filter to apply to the operation. Example: '$filter=contains(name,'myName').top
- The maximum number of resources to return from the operation. Example: '$top=10'.orderby
- The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.context
- The context to associate with this operation.- Returns:
- the response of a 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.
-
getWithResponse
com.azure.core.http.rest.Response<VirtualNetwork> getWithResponse(String resourceGroupName, String labName, String name, String expand, com.azure.core.util.Context context) Get virtual network.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual network.expand
- Specify the $expand query. Example: 'properties($expand=externalSubnets)'.context
- The context to associate with this operation.- Returns:
- virtual network 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
Get virtual network.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual network.- Returns:
- virtual network.
- 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
Delete virtual network. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual network.- 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 labName, String name, com.azure.core.util.Context context) Delete virtual network. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.labName
- The name of the lab.name
- The name of the virtual network.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.
-
getById
Get virtual network.- Parameters:
id
- the resource ID.- Returns:
- virtual network 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, String expand, com.azure.core.util.Context context) Get virtual network.- Parameters:
id
- the resource ID.expand
- Specify the $expand query. Example: 'properties($expand=externalSubnets)'.context
- The context to associate with this operation.- Returns:
- virtual network 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
Delete virtual network. This operation can take a while to complete.- 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
Delete virtual network. This operation can take a while to complete.- Parameters:
id
- the resource ID.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.
-