Interface SecurityRulesClient


public interface SecurityRulesClient
An instance of this class provides access to all the operations defined in SecurityRulesClient.
  • 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 Response 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.
    • 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 PollerFlux for 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 SyncPoller for 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 SyncPoller for 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 Mono that 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 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.
      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 Response 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<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 Response 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.
    • 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 PollerFlux for 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 SyncPoller for 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 SyncPoller for 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.