VirtualNetworksClient Interface

public interface VirtualNetworksClient

An instance of this class provides access to all the operations defined in VirtualNetworksClient.

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<VirtualNetworkInner>,VirtualNetworkInner> beginCreateOrUpdate(String resourceGroupName, String labName, String name, VirtualNetworkInner virtualNetwork)

Create or replace an existing virtual network.

abstract SyncPoller<PollResult<VirtualNetworkInner>,VirtualNetworkInner> beginCreateOrUpdate(String resourceGroupName, String labName, String name, VirtualNetworkInner virtualNetwork, Context context)

Create or replace an existing virtual network.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String labName, String name)

Delete virtual network.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String labName, String name, Context context)

Delete virtual network.

abstract VirtualNetworkInner createOrUpdate(String resourceGroupName, String labName, String name, VirtualNetworkInner virtualNetwork)

Create or replace an existing virtual network.

abstract VirtualNetworkInner createOrUpdate(String resourceGroupName, String labName, String name, VirtualNetworkInner virtualNetwork, Context context)

Create or replace an existing virtual network.

abstract void delete(String resourceGroupName, String labName, String name)

Delete virtual network.

abstract void delete(String resourceGroupName, String labName, String name, Context context)

Delete virtual network.

abstract VirtualNetworkInner get(String resourceGroupName, String labName, String name)

Get virtual network.

abstract Response<VirtualNetworkInner> getWithResponse(String resourceGroupName, String labName, String name, String expand, Context context)

Get virtual network.

abstract PagedIterable<VirtualNetworkInner> list(String resourceGroupName, String labName)

List virtual networks in a given lab.

abstract PagedIterable<VirtualNetworkInner> list(String resourceGroupName, String labName, String expand, String filter, Integer top, String orderby, Context context)

List virtual networks in a given lab.

abstract VirtualNetworkInner update(String resourceGroupName, String labName, String name, VirtualNetworkFragment virtualNetwork)

Allows modifying tags of virtual networks.

abstract Response<VirtualNetworkInner> updateWithResponse(String resourceGroupName, String labName, String name, VirtualNetworkFragment virtualNetwork, Context context)

Allows modifying tags of virtual networks.

Method Details

beginCreateOrUpdate

public abstract SyncPoller<>,VirtualNetworkInner> beginCreateOrUpdate(String resourceGroupName, String labName, String name, VirtualNetworkInner virtualNetwork)

Create or replace an existing 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.
virtualNetwork - A virtual network.

Returns:

the SyncPoller<T,U> for polling of a virtual network.

beginCreateOrUpdate

public abstract SyncPoller<>,VirtualNetworkInner> beginCreateOrUpdate(String resourceGroupName, String labName, String name, VirtualNetworkInner virtualNetwork, Context context)

Create or replace an existing 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.
virtualNetwork - A virtual network.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of a virtual network.

beginDelete

public abstract SyncPoller<>,Void> beginDelete(String resourceGroupName, String labName, String name)

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.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginDelete

public abstract SyncPoller<>,Void> beginDelete(String resourceGroupName, String labName, String name, 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.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

createOrUpdate

public abstract VirtualNetworkInner createOrUpdate(String resourceGroupName, String labName, String name, VirtualNetworkInner virtualNetwork)

Create or replace an existing 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.
virtualNetwork - A virtual network.

Returns:

a virtual network.

createOrUpdate

public abstract VirtualNetworkInner createOrUpdate(String resourceGroupName, String labName, String name, VirtualNetworkInner virtualNetwork, Context context)

Create or replace an existing 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.
virtualNetwork - A virtual network.
context - The context to associate with this operation.

Returns:

a virtual network.

delete

public abstract void delete(String resourceGroupName, String labName, String name)

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.

delete

public abstract void delete(String resourceGroupName, String labName, String name, 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.

get

public abstract VirtualNetworkInner get(String resourceGroupName, String labName, String name)

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.

getWithResponse

public abstract Response getWithResponse(String resourceGroupName, String labName, String name, String expand, 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<T>.

list

public abstract PagedIterable 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<T>.

list

public abstract PagedIterable list(String resourceGroupName, String labName, String expand, String filter, Integer top, String orderby, 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<T>.

update

public abstract VirtualNetworkInner update(String resourceGroupName, String labName, String name, VirtualNetworkFragment virtualNetwork)

Allows modifying tags of virtual networks. All other properties will be ignored.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual network.
virtualNetwork - A virtual network.

Returns:

a virtual network.

updateWithResponse

public abstract Response updateWithResponse(String resourceGroupName, String labName, String name, VirtualNetworkFragment virtualNetwork, Context context)

Allows modifying tags of virtual networks. All other properties will be ignored.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual network.
virtualNetwork - A virtual network.
context - The context to associate with this operation.

Returns:

a virtual network along with Response<T>.

Applies to