SubnetsClient Interface

public interface SubnetsClient

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

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<SubnetInner>,SubnetInner> beginCreateOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters)

Creates or updates a subnet in the specified virtual network.

abstract SyncPoller<PollResult<SubnetInner>,SubnetInner> beginCreateOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters, Context context)

Creates or updates a subnet in the specified virtual network.

abstract PollerFlux<PollResult<SubnetInner>,SubnetInner> beginCreateOrUpdateAsync(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters)

Creates or updates a subnet in the specified virtual network.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String virtualNetworkName, String subnetName)

Deletes the specified subnet.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String virtualNetworkName, String subnetName, Context context)

Deletes the specified subnet.

abstract PollerFlux<PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, String subnetName)

Deletes the specified subnet.

abstract SyncPoller<PollResult<Void>,Void> beginPrepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters)

Prepares a subnet by applying network intent policies.

abstract SyncPoller<PollResult<Void>,Void> beginPrepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters, Context context)

Prepares a subnet by applying network intent policies.

abstract PollerFlux<PollResult<Void>,Void> beginPrepareNetworkPoliciesAsync(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters)

Prepares a subnet by applying network intent policies.

abstract SyncPoller<PollResult<Void>,Void> beginUnprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters)

Unprepares a subnet by removing network intent policies.

abstract SyncPoller<PollResult<Void>,Void> beginUnprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, Context context)

Unprepares a subnet by removing network intent policies.

abstract PollerFlux<PollResult<Void>,Void> beginUnprepareNetworkPoliciesAsync(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters)

Unprepares a subnet by removing network intent policies.

abstract SubnetInner createOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters)

Creates or updates a subnet in the specified virtual network.

abstract SubnetInner createOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters, Context context)

Creates or updates a subnet in the specified virtual network.

abstract Mono<SubnetInner> createOrUpdateAsync(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters)

Creates or updates a subnet in the specified virtual network.

abstract Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters)

Creates or updates a subnet in the specified virtual network.

abstract void delete(String resourceGroupName, String virtualNetworkName, String subnetName)

Deletes the specified subnet.

abstract void delete(String resourceGroupName, String virtualNetworkName, String subnetName, Context context)

Deletes the specified subnet.

abstract Mono<Void> deleteAsync(String resourceGroupName, String virtualNetworkName, String subnetName)

Deletes the specified subnet.

abstract Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String virtualNetworkName, String subnetName)

Deletes the specified subnet.

abstract SubnetInner get(String resourceGroupName, String virtualNetworkName, String subnetName)

Gets the specified subnet by virtual network and resource group.

abstract Mono<SubnetInner> getAsync(String resourceGroupName, String virtualNetworkName, String subnetName)

Gets the specified subnet by virtual network and resource group.

abstract Response<SubnetInner> getWithResponse(String resourceGroupName, String virtualNetworkName, String subnetName, String expand, Context context)

Gets the specified subnet by virtual network and resource group.

abstract Mono<Response<SubnetInner>> getWithResponseAsync(String resourceGroupName, String virtualNetworkName, String subnetName, String expand)

Gets the specified subnet by virtual network and resource group.

abstract PagedIterable<SubnetInner> list(String resourceGroupName, String virtualNetworkName)

Gets all subnets in a virtual network.

abstract PagedIterable<SubnetInner> list(String resourceGroupName, String virtualNetworkName, Context context)

Gets all subnets in a virtual network.

abstract PagedFlux<SubnetInner> listAsync(String resourceGroupName, String virtualNetworkName)

Gets all subnets in a virtual network.

abstract void prepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters)

Prepares a subnet by applying network intent policies.

abstract void prepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters, Context context)

Prepares a subnet by applying network intent policies.

abstract Mono<Void> prepareNetworkPoliciesAsync(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters)

Prepares a subnet by applying network intent policies.

abstract Mono<Response<Flux<ByteBuffer>>> prepareNetworkPoliciesWithResponseAsync(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters)

Prepares a subnet by applying network intent policies.

abstract void unprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters)

Unprepares a subnet by removing network intent policies.

abstract void unprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, Context context)

Unprepares a subnet by removing network intent policies.

abstract Mono<Void> unprepareNetworkPoliciesAsync(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters)

Unprepares a subnet by removing network intent policies.

abstract Mono<Response<Flux<ByteBuffer>>> unprepareNetworkPoliciesWithResponseAsync(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters)

Unprepares a subnet by removing network intent policies.

Method Details

beginCreateOrUpdate

public abstract SyncPoller,SubnetInner> beginCreateOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters)

Creates or updates a subnet in the specified virtual network.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
subnetParameters - Parameters supplied to the create or update subnet operation.

Returns:

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

beginCreateOrUpdate

public abstract SyncPoller,SubnetInner> beginCreateOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters, Context context)

Creates or updates a subnet in the specified virtual network.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
subnetParameters - Parameters supplied to the create or update subnet operation.
context - The context to associate with this operation.

Returns:

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

beginCreateOrUpdateAsync

public abstract PollerFlux,SubnetInner> beginCreateOrUpdateAsync(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters)

Creates or updates a subnet in the specified virtual network.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
subnetParameters - Parameters supplied to the create or update subnet operation.

Returns:

the PollerFlux<T,U> for polling of subnet in a virtual network resource.

beginDelete

public abstract SyncPoller,Void> beginDelete(String resourceGroupName, String virtualNetworkName, String subnetName)

Deletes the specified subnet.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.

Returns:

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

beginDelete

public abstract SyncPoller,Void> beginDelete(String resourceGroupName, String virtualNetworkName, String subnetName, Context context)

Deletes the specified subnet.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
context - The context to associate with this operation.

Returns:

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

beginDeleteAsync

public abstract PollerFlux,Void> beginDeleteAsync(String resourceGroupName, String virtualNetworkName, String subnetName)

Deletes the specified subnet.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.

Returns:

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

beginPrepareNetworkPolicies

public abstract SyncPoller,Void> beginPrepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters)

Prepares a subnet by applying network intent policies.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
prepareNetworkPoliciesRequestParameters - Parameters supplied to prepare subnet by applying network intent policies.

Returns:

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

beginPrepareNetworkPolicies

public abstract SyncPoller,Void> beginPrepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters, Context context)

Prepares a subnet by applying network intent policies.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
prepareNetworkPoliciesRequestParameters - Parameters supplied to prepare subnet by applying network intent policies.
context - The context to associate with this operation.

Returns:

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

beginPrepareNetworkPoliciesAsync

public abstract PollerFlux,Void> beginPrepareNetworkPoliciesAsync(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters)

Prepares a subnet by applying network intent policies.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
prepareNetworkPoliciesRequestParameters - Parameters supplied to prepare subnet by applying network intent policies.

Returns:

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

beginUnprepareNetworkPolicies

public abstract SyncPoller,Void> beginUnprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters)

Unprepares a subnet by removing network intent policies.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
unprepareNetworkPoliciesRequestParameters - Parameters supplied to unprepare subnet to remove network intent policies.

Returns:

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

beginUnprepareNetworkPolicies

public abstract SyncPoller,Void> beginUnprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, Context context)

Unprepares a subnet by removing network intent policies.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
unprepareNetworkPoliciesRequestParameters - Parameters supplied to unprepare subnet to remove network intent policies.
context - The context to associate with this operation.

Returns:

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

beginUnprepareNetworkPoliciesAsync

public abstract PollerFlux,Void> beginUnprepareNetworkPoliciesAsync(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters)

Unprepares a subnet by removing network intent policies.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
unprepareNetworkPoliciesRequestParameters - Parameters supplied to unprepare subnet to remove network intent policies.

Returns:

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

createOrUpdate

public abstract SubnetInner createOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters)

Creates or updates a subnet in the specified virtual network.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
subnetParameters - Parameters supplied to the create or update subnet operation.

Returns:

subnet in a virtual network resource.

createOrUpdate

public abstract SubnetInner createOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters, Context context)

Creates or updates a subnet in the specified virtual network.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
subnetParameters - Parameters supplied to the create or update subnet operation.
context - The context to associate with this operation.

Returns:

subnet in a virtual network resource.

createOrUpdateAsync

public abstract Mono createOrUpdateAsync(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters)

Creates or updates a subnet in the specified virtual network.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
subnetParameters - Parameters supplied to the create or update subnet operation.

Returns:

subnet in a virtual network resource on successful completion of Mono.

createOrUpdateWithResponseAsync

public abstract Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters)

Creates or updates a subnet in the specified virtual network.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
subnetParameters - Parameters supplied to the create or update subnet operation.

Returns:

subnet in a virtual network resource along with Response<T> on successful completion of Mono.

delete

public abstract void delete(String resourceGroupName, String virtualNetworkName, String subnetName)

Deletes the specified subnet.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.

delete

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

Deletes the specified subnet.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
context - The context to associate with this operation.

deleteAsync

public abstract Mono deleteAsync(String resourceGroupName, String virtualNetworkName, String subnetName)

Deletes the specified subnet.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.

Returns:

A Mono that completes when a successful response is received.

deleteWithResponseAsync

public abstract Mono>> deleteWithResponseAsync(String resourceGroupName, String virtualNetworkName, String subnetName)

Deletes the specified subnet.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.

Returns:

the Response<T> on successful completion of Mono.

get

public abstract SubnetInner get(String resourceGroupName, String virtualNetworkName, String subnetName)

Gets the specified subnet by virtual network and resource group.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.

Returns:

the specified subnet by virtual network and resource group.

getAsync

public abstract Mono getAsync(String resourceGroupName, String virtualNetworkName, String subnetName)

Gets the specified subnet by virtual network and resource group.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.

Returns:

the specified subnet by virtual network and resource group on successful completion of Mono.

getWithResponse

public abstract Response getWithResponse(String resourceGroupName, String virtualNetworkName, String subnetName, String expand, Context context)

Gets the specified subnet by virtual network and resource group.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
expand - Expands referenced resources.
context - The context to associate with this operation.

Returns:

the specified subnet by virtual network and resource group along with Response<T>.

getWithResponseAsync

public abstract Mono> getWithResponseAsync(String resourceGroupName, String virtualNetworkName, String subnetName, String expand)

Gets the specified subnet by virtual network and resource group.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
expand - Expands referenced resources.

Returns:

the specified subnet by virtual network and resource group along with Response<T> on successful completion of Mono.

list

public abstract PagedIterable list(String resourceGroupName, String virtualNetworkName)

Gets all subnets in a virtual network.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.

Returns:

all subnets in a virtual network as paginated response with PagedIterable<T>.

list

public abstract PagedIterable list(String resourceGroupName, String virtualNetworkName, Context context)

Gets all subnets in a virtual network.

Parameters:

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

Returns:

all subnets in a virtual network as paginated response with PagedIterable<T>.

listAsync

public abstract PagedFlux listAsync(String resourceGroupName, String virtualNetworkName)

Gets all subnets in a virtual network.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.

Returns:

all subnets in a virtual network as paginated response with PagedFlux<T>.

prepareNetworkPolicies

public abstract void prepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters)

Prepares a subnet by applying network intent policies.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
prepareNetworkPoliciesRequestParameters - Parameters supplied to prepare subnet by applying network intent policies.

prepareNetworkPolicies

public abstract void prepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters, Context context)

Prepares a subnet by applying network intent policies.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
prepareNetworkPoliciesRequestParameters - Parameters supplied to prepare subnet by applying network intent policies.
context - The context to associate with this operation.

prepareNetworkPoliciesAsync

public abstract Mono prepareNetworkPoliciesAsync(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters)

Prepares a subnet by applying network intent policies.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
prepareNetworkPoliciesRequestParameters - Parameters supplied to prepare subnet by applying network intent policies.

Returns:

A Mono that completes when a successful response is received.

prepareNetworkPoliciesWithResponseAsync

public abstract Mono>> prepareNetworkPoliciesWithResponseAsync(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters)

Prepares a subnet by applying network intent policies.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
prepareNetworkPoliciesRequestParameters - Parameters supplied to prepare subnet by applying network intent policies.

Returns:

the Response<T> on successful completion of Mono.

unprepareNetworkPolicies

public abstract void unprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters)

Unprepares a subnet by removing network intent policies.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
unprepareNetworkPoliciesRequestParameters - Parameters supplied to unprepare subnet to remove network intent policies.

unprepareNetworkPolicies

public abstract void unprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, Context context)

Unprepares a subnet by removing network intent policies.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
unprepareNetworkPoliciesRequestParameters - Parameters supplied to unprepare subnet to remove network intent policies.
context - The context to associate with this operation.

unprepareNetworkPoliciesAsync

public abstract Mono unprepareNetworkPoliciesAsync(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters)

Unprepares a subnet by removing network intent policies.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
unprepareNetworkPoliciesRequestParameters - Parameters supplied to unprepare subnet to remove network intent policies.

Returns:

A Mono that completes when a successful response is received.

unprepareNetworkPoliciesWithResponseAsync

public abstract Mono>> unprepareNetworkPoliciesWithResponseAsync(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters)

Unprepares a subnet by removing network intent policies.

Parameters:

resourceGroupName - The name of the resource group.
virtualNetworkName - The name of the virtual network.
subnetName - The name of the subnet.
unprepareNetworkPoliciesRequestParameters - Parameters supplied to unprepare subnet to remove network intent policies.

Returns:

the Response<T> on successful completion of Mono.

Applies to