Interface SecurityRulesClient
public interface SecurityRulesClient
An instance of this class provides access to all the operations defined in SecurityRulesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SecurityRuleInner>, SecurityRuleInner> beginCreateOrUpdate(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters) Creates or updates a security rule in the specified network security group.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SecurityRuleInner>, SecurityRuleInner> beginCreateOrUpdate(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters, com.azure.core.util.Context context) Creates or updates a security rule in the specified network security group.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<SecurityRuleInner>, SecurityRuleInner> beginCreateOrUpdateAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters) Creates or updates a security rule in the specified network security group.beginDelete(String resourceGroupName, String networkSecurityGroupName, String securityRuleName) Deletes the specified network security rule.beginDelete(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, com.azure.core.util.Context context) Deletes the specified network security rule.beginDeleteAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName) Deletes the specified network security rule.createOrUpdate(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters) Creates or updates a security rule in the specified network security group.createOrUpdate(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters, com.azure.core.util.Context context) Creates or updates a security rule in the specified network security group.createOrUpdateAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters) Creates or updates a security rule in the specified network security group.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters) Creates or updates a security rule in the specified network security group.voidDeletes the specified network security rule.voiddelete(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, com.azure.core.util.Context context) Deletes the specified network security rule.deleteAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName) Deletes the specified network security rule.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName) Deletes the specified network security rule.Get the specified network security rule.Get the specified network security rule.com.azure.core.http.rest.Response<SecurityRuleInner> getWithResponse(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, com.azure.core.util.Context context) Get the specified network security rule.Mono<com.azure.core.http.rest.Response<SecurityRuleInner>> getWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName) Get the specified network security rule.com.azure.core.http.rest.PagedIterable<SecurityRuleInner> Gets all security rules in a network security group.com.azure.core.http.rest.PagedIterable<SecurityRuleInner> list(String resourceGroupName, String networkSecurityGroupName, com.azure.core.util.Context context) Gets all security rules in a network security group.com.azure.core.http.rest.PagedFlux<SecurityRuleInner> Gets all security rules in a network security group.
-
Method Details
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName) Deletes the specified network security rule.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.- 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, String securityRuleName) Deletes the specified network security rule.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.- 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, String securityRuleName) Deletes the specified network security rule.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.- 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, String securityRuleName, com.azure.core.util.Context context) Deletes the specified network security rule.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.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 networkSecurityGroupName, String securityRuleName) Deletes the specified network security rule.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.- 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 rule.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.- 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, String securityRuleName, com.azure.core.util.Context context) Deletes the specified network security rule.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.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<SecurityRuleInner>> getWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName) Get the specified network security rule.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.- Returns:
- the specified network security rule 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<SecurityRuleInner> getAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName) Get the specified network security rule.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.- Returns:
- the specified network security rule 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<SecurityRuleInner> getWithResponse(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, com.azure.core.util.Context context) Get the specified network security rule.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.context- The context to associate with this operation.- Returns:
- the specified network security rule 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
SecurityRuleInner get(String resourceGroupName, String networkSecurityGroupName, String securityRuleName) Get the specified network security rule.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.- Returns:
- the specified network security rule.
- 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, String securityRuleName, SecurityRuleInner securityRuleParameters) Creates or updates a security rule in the specified network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.securityRuleParameters- Parameters supplied to the create or update network security rule operation.- Returns:
- network security rule 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<SecurityRuleInner>,SecurityRuleInner> beginCreateOrUpdateAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters) Creates or updates a security rule in the specified network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.securityRuleParameters- Parameters supplied to the create or update network security rule operation.- Returns:
- the
PollerFluxfor polling of network security rule. - 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<SecurityRuleInner>,SecurityRuleInner> beginCreateOrUpdate(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters) Creates or updates a security rule in the specified network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.securityRuleParameters- Parameters supplied to the create or update network security rule operation.- Returns:
- the
SyncPollerfor polling of network security rule. - 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<SecurityRuleInner>,SecurityRuleInner> beginCreateOrUpdate(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters, com.azure.core.util.Context context) Creates or updates a security rule in the specified network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.securityRuleParameters- Parameters supplied to the create or update network security rule operation.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of network security rule. - 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<SecurityRuleInner> createOrUpdateAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters) Creates or updates a security rule in the specified network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.securityRuleParameters- Parameters supplied to the create or update network security rule operation.- Returns:
- network security rule 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
SecurityRuleInner createOrUpdate(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters) Creates or updates a security rule in the specified network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.securityRuleParameters- Parameters supplied to the create or update network security rule operation.- Returns:
- network security rule.
- 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
SecurityRuleInner createOrUpdate(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters, com.azure.core.util.Context context) Creates or updates a security rule in the specified network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.securityRuleName- The name of the security rule.securityRuleParameters- Parameters supplied to the create or update network security rule operation.context- The context to associate with this operation.- Returns:
- network security rule.
- 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<SecurityRuleInner> listAsync(String resourceGroupName, String networkSecurityGroupName) Gets all security rules in a network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.- Returns:
- all security rules in a network security 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.
-
list
com.azure.core.http.rest.PagedIterable<SecurityRuleInner> list(String resourceGroupName, String networkSecurityGroupName) Gets all security rules in a network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.- Returns:
- all security rules in a network security 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.
-
list
com.azure.core.http.rest.PagedIterable<SecurityRuleInner> list(String resourceGroupName, String networkSecurityGroupName, com.azure.core.util.Context context) Gets all security rules in a 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:
- all security rules in a network security 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.
-