Interface SubnetsClient
-
public interface SubnetsClientAn instance of this class provides access to all the operations defined in SubnetsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.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.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.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.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.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.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.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.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.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.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.SubnetInnercreateOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters)Creates or updates a subnet in the specified virtual network.SubnetInnercreateOrUpdate(String resourceGroupName, String virtualNetworkName, String subnetName, SubnetInner subnetParameters, com.azure.core.util.Context context)Creates or updates a subnet in the specified virtual network.Mono<SubnetInner>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.voiddelete(String resourceGroupName, String virtualNetworkName, String subnetName)Deletes the specified subnet.voiddelete(String resourceGroupName, String virtualNetworkName, String subnetName, com.azure.core.util.Context context)Deletes the specified subnet.Mono<Void>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.SubnetInnerget(String resourceGroupName, String virtualNetworkName, String subnetName)Gets the specified subnet by virtual network and resource group.Mono<SubnetInner>getAsync(String resourceGroupName, String virtualNetworkName, String subnetName)Gets the specified subnet by virtual network and resource group.Mono<SubnetInner>getAsync(String resourceGroupName, String virtualNetworkName, String subnetName, String expand)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>list(String resourceGroupName, String virtualNetworkName)Gets all subnets in a virtual network.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.com.azure.core.http.rest.PagedFlux<SubnetInner>listAsync(String resourceGroupName, String virtualNetworkName)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.Mono<Void>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.Mono<Void>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 Detail
-
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
Mono<Void> 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
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
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.- 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
Mono<SubnetInner> getAsync(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 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.
-
getAsync
Mono<SubnetInner> 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. - 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
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.
- 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.
-
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.
-
-