Interface SubnetsClient
public interface SubnetsClient
An instance of this class provides access to all the operations defined in SubnetsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SubnetInner>, SubnetInner> beginCreateOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters) Creates or updates a subnet in the specified virtual network.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SubnetInner>, SubnetInner> beginCreateOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters, com.azure.core.util.Context context) Creates or updates a subnet in the specified virtual network.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<SubnetInner>, SubnetInner> beginCreateOrUpdateAsync(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters) Creates or updates a subnet in the specified virtual network.beginDelete(String resourceGroupName, String virtualNetworkName, String subnetName) Deletes the specified subnet.beginDelete(String resourceGroupName, String virtualNetworkName, String subnetName, com.azure.core.util.Context context) Deletes the specified subnet.beginDeleteAsync(String resourceGroupName, String virtualNetworkName, String subnetName) Deletes the specified subnet.beginPrepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters) Prepares a subnet by applying network intent policies.beginPrepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters, com.azure.core.util.Context context) Prepares a subnet by applying network intent policies.beginPrepareNetworkPoliciesAsync(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters) Prepares a subnet by applying network intent policies.beginUnprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters) Unprepares a subnet by removing network intent policies.beginUnprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, com.azure.core.util.Context context) Unprepares a subnet by removing network intent policies.beginUnprepareNetworkPoliciesAsync(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters) Unprepares a subnet by removing network intent policies.createOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters) Creates or updates a subnet in the specified virtual network.createOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters, com.azure.core.util.Context context) Creates or updates a subnet in the specified virtual network.createOrUpdateAsync(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters) Creates or updates a subnet in the specified virtual network.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters) Creates or updates a subnet in the specified virtual network.voidDeletes the specified subnet.voiddelete(String resourceGroupName, String virtualNetworkName, String subnetName, com.azure.core.util.Context context) Deletes the specified subnet.deleteAsync(String resourceGroupName, String virtualNetworkName, String subnetName) Deletes the specified subnet.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String virtualNetworkName, String subnetName) Deletes the specified subnet.Gets the specified subnet by virtual network and resource group.Gets the specified subnet by virtual network and resource group.com.azure.core.http.rest.Response<SubnetInner> getWithResponse(String resourceGroupName, String virtualNetworkName, String subnetName, String expand, com.azure.core.util.Context context) Gets the specified subnet by virtual network and resource group.Mono<com.azure.core.http.rest.Response<SubnetInner>> getWithResponseAsync(String resourceGroupName, String virtualNetworkName, String subnetName, String expand) Gets the specified subnet by virtual network and resource group.com.azure.core.http.rest.PagedIterable<SubnetInner> Gets all subnets in a virtual network.com.azure.core.http.rest.PagedIterable<SubnetInner> Gets all subnets in a virtual network.com.azure.core.http.rest.PagedFlux<SubnetInner> Gets all subnets in a virtual network.voidprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters) Prepares a subnet by applying network intent policies.voidprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters, com.azure.core.util.Context context) Prepares a subnet by applying network intent policies.prepareNetworkPoliciesAsync(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters) Prepares a subnet by applying network intent policies.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> prepareNetworkPoliciesWithResponseAsync(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters) Prepares a subnet by applying network intent policies.voidunprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters) Unprepares a subnet by removing network intent policies.voidunprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, com.azure.core.util.Context context) Unprepares a subnet by removing network intent policies.unprepareNetworkPoliciesAsync(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters) Unprepares a subnet by removing network intent policies.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> unprepareNetworkPoliciesWithResponseAsync(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters) Unprepares a subnet by removing network intent policies.
-
Method Details
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> 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
Responseon successful completion ofMono. - 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.
-
beginDeleteAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,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
PollerFluxfor polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,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
SyncPollerfor polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String virtualNetworkName, String subnetName, com.azure.core.util.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
SyncPollerfor polling of long-running 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.
-
deleteAsync
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
Monothat completes when a successful response is received. - 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 the specified subnet.- Parameters:
resourceGroupName- The name of the resource group.virtualNetworkName- The name of the virtual network.subnetName- The name of the subnet.- 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, String subnetName, com.azure.core.util.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.- 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.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<SubnetInner>> 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
Responseon successful completion ofMono. - 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.
-
getAsync
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. - 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<SubnetInner> getWithResponse(String resourceGroupName, String virtualNetworkName, String subnetName, String expand, com.azure.core.util.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. - 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
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.
- 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.
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> 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
Responseon successful completion ofMono. - 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.
-
beginCreateOrUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<SubnetInner>,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
PollerFluxfor polling of subnet in a 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SubnetInner>,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
SyncPollerfor polling of subnet in a 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SubnetInner>,SubnetInner> beginCreateOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters, com.azure.core.util.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
SyncPollerfor polling of subnet in a 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.
-
createOrUpdateAsync
Mono<SubnetInner> 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. - 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.
-
createOrUpdate
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.
- 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.
-
createOrUpdate
SubnetInner createOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters, com.azure.core.util.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.
- 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.
-
prepareNetworkPoliciesWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> 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
Responseon successful completion ofMono. - 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.
-
beginPrepareNetworkPoliciesAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,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
PollerFluxfor polling of long-running 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.
-
beginPrepareNetworkPolicies
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,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
SyncPollerfor polling of long-running 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.
-
beginPrepareNetworkPolicies
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginPrepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters, com.azure.core.util.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
SyncPollerfor polling of long-running 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.
-
prepareNetworkPoliciesAsync
Mono<Void> 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
Monothat completes when a successful response is received. - 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.
-
prepareNetworkPolicies
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.- 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.
-
prepareNetworkPolicies
void prepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters, com.azure.core.util.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.- 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.
-
unprepareNetworkPoliciesWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> 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
Responseon successful completion ofMono. - 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.
-
beginUnprepareNetworkPoliciesAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,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
PollerFluxfor polling of long-running 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.
-
beginUnprepareNetworkPolicies
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,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
SyncPollerfor polling of long-running 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.
-
beginUnprepareNetworkPolicies
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginUnprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, com.azure.core.util.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
SyncPollerfor polling of long-running 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.
-
unprepareNetworkPoliciesAsync
Mono<Void> 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
Monothat completes when a successful response is received. - 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.
-
unprepareNetworkPolicies
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.- 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.
-
unprepareNetworkPolicies
void unprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, com.azure.core.util.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.- 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.
-
listAsync
com.azure.core.http.rest.PagedFlux<SubnetInner> 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. - 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<SubnetInner> 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. - 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<SubnetInner> list(String resourceGroupName, String virtualNetworkName, com.azure.core.util.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. - 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.
-