Freigeben über


VirtualNetworks Interface

public interface VirtualNetworks

Resource collection API of VirtualNetworks.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new VirtualNetwork resource.

abstract void delete(String resourceGroupName, String virtualNetworkName)

Deregisters the ScVmm virtual network from Azure.

abstract void delete(String resourceGroupName, String virtualNetworkName, Boolean force)

Deregisters the ScVmm virtual network from Azure.

abstract void delete(String resourceGroupName, String virtualNetworkName, Boolean force, Context context)

Deregisters the ScVmm virtual network from Azure.

abstract void deleteById(String id)

Deregisters the ScVmm virtual network from Azure.

abstract void deleteByIdWithResponse(String id, Boolean force, Context context)

Deregisters the ScVmm virtual network from Azure.

abstract VirtualNetwork getById(String id)

Implements VirtualNetwork GET method.

abstract Response<VirtualNetwork> getByIdWithResponse(String id, Context context)

Implements VirtualNetwork GET method.

abstract VirtualNetwork getByResourceGroup(String resourceGroupName, String virtualNetworkName)

Implements VirtualNetwork GET method.

abstract Response<VirtualNetwork> getByResourceGroupWithResponse(String resourceGroupName, String virtualNetworkName, Context context)

Implements VirtualNetwork GET method.

abstract PagedIterable<VirtualNetwork> list()

List of VirtualNetworks in a subscription.

abstract PagedIterable<VirtualNetwork> list(Context context)

List of VirtualNetworks in a subscription.

abstract PagedIterable<VirtualNetwork> listByResourceGroup(String resourceGroupName)

List of VirtualNetworks in a resource group.

abstract PagedIterable<VirtualNetwork> listByResourceGroup(String resourceGroupName, Context context)

List of VirtualNetworks in a resource group.

Method Details

define

public abstract VirtualNetwork.DefinitionStages.Blank define(String name)

Begins definition for a new VirtualNetwork resource.

Parameters:

name - resource name.

Returns:

the first stage of the new VirtualNetwork definition.

delete

public abstract void delete(String resourceGroupName, String virtualNetworkName)

Deregisters the ScVmm virtual network from Azure.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - Name of the VirtualNetwork.

delete

public abstract void delete(String resourceGroupName, String virtualNetworkName, Boolean force)

Deregisters the ScVmm virtual network from Azure.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - Name of the VirtualNetwork.
force - Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.

delete

public abstract void delete(String resourceGroupName, String virtualNetworkName, Boolean force, Context context)

Deregisters the ScVmm virtual network from Azure.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - Name of the VirtualNetwork.
force - Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.
context - The context to associate with this operation.

deleteById

public abstract void deleteById(String id)

Deregisters the ScVmm virtual network from Azure.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract void deleteByIdWithResponse(String id, Boolean force, Context context)

Deregisters the ScVmm virtual network from Azure.

Parameters:

id - the resource ID.
force - Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.
context - The context to associate with this operation.

getById

public abstract VirtualNetwork getById(String id)

Implements VirtualNetwork GET method.

Parameters:

id - the resource ID.

Returns:

the VirtualNetworks resource definition along with Response<T>.

getByIdWithResponse

public abstract Response<VirtualNetwork> getByIdWithResponse(String id, Context context)

Implements VirtualNetwork GET method.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

the VirtualNetworks resource definition along with Response<T>.

getByResourceGroup

public abstract VirtualNetwork getByResourceGroup(String resourceGroupName, String virtualNetworkName)

Implements VirtualNetwork GET method.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - Name of the VirtualNetwork.

Returns:

the VirtualNetworks resource definition.

getByResourceGroupWithResponse

public abstract Response<VirtualNetwork> getByResourceGroupWithResponse(String resourceGroupName, String virtualNetworkName, Context context)

Implements VirtualNetwork GET method.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - Name of the VirtualNetwork.
context - The context to associate with this operation.

Returns:

the VirtualNetworks resource definition along with Response<T>.

list

public abstract PagedIterable<VirtualNetwork> list()

List of VirtualNetworks in a subscription.

Returns:

list of VirtualNetworks as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<VirtualNetwork> list(Context context)

List of VirtualNetworks in a subscription.

Parameters:

context - The context to associate with this operation.

Returns:

list of VirtualNetworks as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<VirtualNetwork> listByResourceGroup(String resourceGroupName)

List of VirtualNetworks in a resource group.

Parameters:

resourceGroupName - The name of the resource group.

Returns:

list of VirtualNetworks as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<VirtualNetwork> listByResourceGroup(String resourceGroupName, Context context)

List of VirtualNetworks in a resource group.

Parameters:

resourceGroupName - The name of the resource group.
context - The context to associate with this operation.

Returns:

list of VirtualNetworks as paginated response with PagedIterable<T>.

Applies to