Interface NetworkSecurityGroupsClient
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<NetworkSecurityGroupInner>,InnerSupportsListing<NetworkSecurityGroupInner>
public interface NetworkSecurityGroupsClient
extends InnerSupportsGet<NetworkSecurityGroupInner>, InnerSupportsListing<NetworkSecurityGroupInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in NetworkSecurityGroupsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<NetworkSecurityGroupInner>, NetworkSecurityGroupInner> beginCreateOrUpdate(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroupInner parameters) Creates or updates a network security group in the specified resource group.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<NetworkSecurityGroupInner>, NetworkSecurityGroupInner> beginCreateOrUpdate(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroupInner parameters, com.azure.core.util.Context context) Creates or updates a network security group in the specified resource group.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<NetworkSecurityGroupInner>, NetworkSecurityGroupInner> beginCreateOrUpdateAsync(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroupInner parameters) Creates or updates a network security group in the specified resource group.beginDelete(String resourceGroupName, String networkSecurityGroupName) Deletes the specified network security group.beginDelete(String resourceGroupName, String networkSecurityGroupName, com.azure.core.util.Context context) Deletes the specified network security group.beginDeleteAsync(String resourceGroupName, String networkSecurityGroupName) Deletes the specified network security group.createOrUpdate(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroupInner parameters) Creates or updates a network security group in the specified resource group.createOrUpdate(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroupInner parameters, com.azure.core.util.Context context) Creates or updates a network security group in the specified resource group.createOrUpdateAsync(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroupInner parameters) Creates or updates a network security group in the specified resource group.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroupInner parameters) Creates or updates a network security group in the specified resource group.voidDeletes the specified network security group.voiddelete(String resourceGroupName, String networkSecurityGroupName, com.azure.core.util.Context context) Deletes the specified network security group.deleteAsync(String resourceGroupName, String networkSecurityGroupName) Deletes the specified network security group.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String networkSecurityGroupName) Deletes the specified network security group.getByResourceGroup(String resourceGroupName, String networkSecurityGroupName) Gets the specified network security group.getByResourceGroupAsync(String resourceGroupName, String networkSecurityGroupName) Gets the specified network security group.com.azure.core.http.rest.Response<NetworkSecurityGroupInner> getByResourceGroupWithResponse(String resourceGroupName, String networkSecurityGroupName, String expand, com.azure.core.util.Context context) Gets the specified network security group.Mono<com.azure.core.http.rest.Response<NetworkSecurityGroupInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, String expand) Gets the specified network security group.com.azure.core.http.rest.PagedIterable<NetworkSecurityGroupInner> list()Gets all network security groups in a subscription.com.azure.core.http.rest.PagedIterable<NetworkSecurityGroupInner> list(com.azure.core.util.Context context) Gets all network security groups in a subscription.com.azure.core.http.rest.PagedFlux<NetworkSecurityGroupInner> Gets all network security groups in a subscription.com.azure.core.http.rest.PagedIterable<NetworkSecurityGroupInner> listByResourceGroup(String resourceGroupName) Gets all network security groups in a resource group.com.azure.core.http.rest.PagedIterable<NetworkSecurityGroupInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets all network security groups in a resource group.com.azure.core.http.rest.PagedFlux<NetworkSecurityGroupInner> listByResourceGroupAsync(String resourceGroupName) Gets all network security groups in a resource group.updateTags(String resourceGroupName, String networkSecurityGroupName, TagsObject parameters) Updates a network security group tags.updateTagsAsync(String resourceGroupName, String networkSecurityGroupName, TagsObject parameters) Updates a network security group tags.com.azure.core.http.rest.Response<NetworkSecurityGroupInner> updateTagsWithResponse(String resourceGroupName, String networkSecurityGroupName, TagsObject parameters, com.azure.core.util.Context context) Updates a network security group tags.Mono<com.azure.core.http.rest.Response<NetworkSecurityGroupInner>> updateTagsWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, TagsObject parameters) Updates a network security group tags.
-
Method Details
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String networkSecurityGroupName) Deletes the specified network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.- 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 networkSecurityGroupName) Deletes the specified network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.- 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 networkSecurityGroupName) Deletes the specified network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.- 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 networkSecurityGroupName, com.azure.core.util.Context context) Deletes the specified network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.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 network security group.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.- 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 network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security 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.
-
delete
void delete(String resourceGroupName, String networkSecurityGroupName, com.azure.core.util.Context context) Deletes the specified network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.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.
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<NetworkSecurityGroupInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, String expand) Gets the specified network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.expand- Expands referenced resources.- Returns:
- the specified network security 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.
-
getByResourceGroupAsync
Mono<NetworkSecurityGroupInner> getByResourceGroupAsync(String resourceGroupName, String networkSecurityGroupName) Gets the specified network security group.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<NetworkSecurityGroupInner>- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.- Returns:
- the specified network security 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<NetworkSecurityGroupInner> getByResourceGroupWithResponse(String resourceGroupName, String networkSecurityGroupName, String expand, com.azure.core.util.Context context) Gets the specified network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.expand- Expands referenced resources.context- The context to associate with this operation.- Returns:
- the specified network security 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.
-
getByResourceGroup
NetworkSecurityGroupInner getByResourceGroup(String resourceGroupName, String networkSecurityGroupName) Gets the specified network security group.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<NetworkSecurityGroupInner>- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.- Returns:
- the specified network security 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 networkSecurityGroupName, NetworkSecurityGroupInner parameters) Creates or updates a network security group in the specified resource group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.parameters- Parameters supplied to the create or update network security group operation.- Returns:
- networkSecurityGroup 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<NetworkSecurityGroupInner>,NetworkSecurityGroupInner> beginCreateOrUpdateAsync(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroupInner parameters) Creates or updates a network security group in the specified resource group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.parameters- Parameters supplied to the create or update network security group operation.- Returns:
- the
PollerFluxfor polling of networkSecurityGroup 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<NetworkSecurityGroupInner>,NetworkSecurityGroupInner> beginCreateOrUpdate(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroupInner parameters) Creates or updates a network security group in the specified resource group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.parameters- Parameters supplied to the create or update network security group operation.- Returns:
- the
SyncPollerfor polling of networkSecurityGroup 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<NetworkSecurityGroupInner>,NetworkSecurityGroupInner> beginCreateOrUpdate(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroupInner parameters, com.azure.core.util.Context context) Creates or updates a network security group in the specified resource group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.parameters- Parameters supplied to the create or update network security group operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of networkSecurityGroup 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<NetworkSecurityGroupInner> createOrUpdateAsync(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroupInner parameters) Creates or updates a network security group in the specified resource group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.parameters- Parameters supplied to the create or update network security group operation.- Returns:
- networkSecurityGroup 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
NetworkSecurityGroupInner createOrUpdate(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroupInner parameters) Creates or updates a network security group in the specified resource group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.parameters- Parameters supplied to the create or update network security group operation.- Returns:
- networkSecurityGroup 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
NetworkSecurityGroupInner createOrUpdate(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroupInner parameters, com.azure.core.util.Context context) Creates or updates a network security group in the specified resource group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.parameters- Parameters supplied to the create or update network security group operation.context- The context to associate with this operation.- Returns:
- networkSecurityGroup 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.
-
updateTagsWithResponseAsync
Mono<com.azure.core.http.rest.Response<NetworkSecurityGroupInner>> updateTagsWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, TagsObject parameters) Updates a network security group tags.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.parameters- Parameters supplied to update network security group tags.- Returns:
- networkSecurityGroup 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.
-
updateTagsAsync
Mono<NetworkSecurityGroupInner> updateTagsAsync(String resourceGroupName, String networkSecurityGroupName, TagsObject parameters) Updates a network security group tags.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.parameters- Parameters supplied to update network security group tags.- Returns:
- networkSecurityGroup 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.
-
updateTagsWithResponse
com.azure.core.http.rest.Response<NetworkSecurityGroupInner> updateTagsWithResponse(String resourceGroupName, String networkSecurityGroupName, TagsObject parameters, com.azure.core.util.Context context) Updates a network security group tags.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.parameters- Parameters supplied to update network security group tags.context- The context to associate with this operation.- Returns:
- networkSecurityGroup resource 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.
-
updateTags
NetworkSecurityGroupInner updateTags(String resourceGroupName, String networkSecurityGroupName, TagsObject parameters) Updates a network security group tags.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.parameters- Parameters supplied to update network security group tags.- Returns:
- networkSecurityGroup 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.
-
listAsync
com.azure.core.http.rest.PagedFlux<NetworkSecurityGroupInner> listAsync()Gets all network security groups in a subscription.- Specified by:
listAsyncin interfaceInnerSupportsListing<NetworkSecurityGroupInner>- Returns:
- all network security groups in a subscription as paginated response with
PagedFlux. - Throws:
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<NetworkSecurityGroupInner> list()Gets all network security groups in a subscription.- Specified by:
listin interfaceInnerSupportsListing<NetworkSecurityGroupInner>- Returns:
- all network security groups in a subscription as paginated response with
PagedIterable. - Throws:
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<NetworkSecurityGroupInner> list(com.azure.core.util.Context context) Gets all network security groups in a subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- all network security groups in a subscription 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.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<NetworkSecurityGroupInner> listByResourceGroupAsync(String resourceGroupName) Gets all network security groups in a resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<NetworkSecurityGroupInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- all network security groups in a resource group 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<NetworkSecurityGroupInner> listByResourceGroup(String resourceGroupName) Gets all network security groups in a resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<NetworkSecurityGroupInner>- Parameters:
resourceGroupName- The name of the resource group.- Returns:
- all network security groups in a resource group 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<NetworkSecurityGroupInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets all network security groups in a resource group.- Parameters:
resourceGroupName- The name of the resource group.context- The context to associate with this operation.- Returns:
- all network security groups in a resource group 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.
-