Interface FirewallRulesClient


  • public interface FirewallRulesClient
    An instance of this class provides access to all the operations defined in FirewallRulesClient.
    • Method Detail

      • listAsync

        com.azure.core.http.rest.PagedFlux<RedisFirewallRuleInner> listAsync​(String resourceGroupName,
                                                                             String cacheName)
        Gets all firewall rules in the specified redis cache.
        Parameters:
        resourceGroupName - The name of the resource group.
        cacheName - The name of the Redis cache.
        Returns:
        all firewall rules in the specified redis cache 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<RedisFirewallRuleInner> list​(String resourceGroupName,
                                                                            String cacheName)
        Gets all firewall rules in the specified redis cache.
        Parameters:
        resourceGroupName - The name of the resource group.
        cacheName - The name of the Redis cache.
        Returns:
        all firewall rules in the specified redis cache 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<RedisFirewallRuleInner> list​(String resourceGroupName,
                                                                            String cacheName,
                                                                            com.azure.core.util.Context context)
        Gets all firewall rules in the specified redis cache.
        Parameters:
        resourceGroupName - The name of the resource group.
        cacheName - The name of the Redis cache.
        context - The context to associate with this operation.
        Returns:
        all firewall rules in the specified redis cache 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.
      • createOrUpdateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<RedisFirewallRuleInner>> createOrUpdateWithResponseAsync​(String resourceGroupName,
                                                                                                        String cacheName,
                                                                                                        String ruleName,
                                                                                                        RedisFirewallRuleInner parameters)
        Create or update a redis cache firewall rule.
        Parameters:
        resourceGroupName - The name of the resource group.
        cacheName - The name of the Redis cache.
        ruleName - The name of the firewall rule.
        parameters - Parameters supplied to the create or update redis firewall rule operation.
        Returns:
        a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted to connect 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.
      • createOrUpdateAsync

        Mono<RedisFirewallRuleInner> createOrUpdateAsync​(String resourceGroupName,
                                                         String cacheName,
                                                         String ruleName,
                                                         RedisFirewallRuleInner parameters)
        Create or update a redis cache firewall rule.
        Parameters:
        resourceGroupName - The name of the resource group.
        cacheName - The name of the Redis cache.
        ruleName - The name of the firewall rule.
        parameters - Parameters supplied to the create or update redis firewall rule operation.
        Returns:
        a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted to connect 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

        RedisFirewallRuleInner createOrUpdate​(String resourceGroupName,
                                              String cacheName,
                                              String ruleName,
                                              RedisFirewallRuleInner parameters)
        Create or update a redis cache firewall rule.
        Parameters:
        resourceGroupName - The name of the resource group.
        cacheName - The name of the Redis cache.
        ruleName - The name of the firewall rule.
        parameters - Parameters supplied to the create or update redis firewall rule operation.
        Returns:
        a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted to connect.
        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.
      • createOrUpdateWithResponse

        com.azure.core.http.rest.Response<RedisFirewallRuleInner> createOrUpdateWithResponse​(String resourceGroupName,
                                                                                             String cacheName,
                                                                                             String ruleName,
                                                                                             RedisFirewallRuleInner parameters,
                                                                                             com.azure.core.util.Context context)
        Create or update a redis cache firewall rule.
        Parameters:
        resourceGroupName - The name of the resource group.
        cacheName - The name of the Redis cache.
        ruleName - The name of the firewall rule.
        parameters - Parameters supplied to the create or update redis firewall rule operation.
        context - The context to associate with this operation.
        Returns:
        a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted to connect 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.
      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<RedisFirewallRuleInner>> getWithResponseAsync​(String resourceGroupName,
                                                                                             String cacheName,
                                                                                             String ruleName)
        Gets a single firewall rule in a specified redis cache.
        Parameters:
        resourceGroupName - The name of the resource group.
        cacheName - The name of the Redis cache.
        ruleName - The name of the firewall rule.
        Returns:
        a single firewall rule in a specified redis cache 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<RedisFirewallRuleInner> getAsync​(String resourceGroupName,
                                              String cacheName,
                                              String ruleName)
        Gets a single firewall rule in a specified redis cache.
        Parameters:
        resourceGroupName - The name of the resource group.
        cacheName - The name of the Redis cache.
        ruleName - The name of the firewall rule.
        Returns:
        a single firewall rule in a specified redis cache 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

        RedisFirewallRuleInner get​(String resourceGroupName,
                                   String cacheName,
                                   String ruleName)
        Gets a single firewall rule in a specified redis cache.
        Parameters:
        resourceGroupName - The name of the resource group.
        cacheName - The name of the Redis cache.
        ruleName - The name of the firewall rule.
        Returns:
        a single firewall rule in a specified redis cache.
        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<RedisFirewallRuleInner> getWithResponse​(String resourceGroupName,
                                                                                  String cacheName,
                                                                                  String ruleName,
                                                                                  com.azure.core.util.Context context)
        Gets a single firewall rule in a specified redis cache.
        Parameters:
        resourceGroupName - The name of the resource group.
        cacheName - The name of the Redis cache.
        ruleName - The name of the firewall rule.
        context - The context to associate with this operation.
        Returns:
        a single firewall rule in a specified redis cache 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.
      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync​(String resourceGroupName,
                                                                              String cacheName,
                                                                              String ruleName)
        Deletes a single firewall rule in a specified redis cache.
        Parameters:
        resourceGroupName - The name of the resource group.
        cacheName - The name of the Redis cache.
        ruleName - The name of the firewall 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.
      • deleteAsync

        Mono<Void> deleteAsync​(String resourceGroupName,
                               String cacheName,
                               String ruleName)
        Deletes a single firewall rule in a specified redis cache.
        Parameters:
        resourceGroupName - The name of the resource group.
        cacheName - The name of the Redis cache.
        ruleName - The name of the firewall 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 cacheName,
                    String ruleName)
        Deletes a single firewall rule in a specified redis cache.
        Parameters:
        resourceGroupName - The name of the resource group.
        cacheName - The name of the Redis cache.
        ruleName - The name of the firewall 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.
      • deleteWithResponse

        com.azure.core.http.rest.Response<Void> deleteWithResponse​(String resourceGroupName,
                                                                   String cacheName,
                                                                   String ruleName,
                                                                   com.azure.core.util.Context context)
        Deletes a single firewall rule in a specified redis cache.
        Parameters:
        resourceGroupName - The name of the resource group.
        cacheName - The name of the Redis cache.
        ruleName - The name of the firewall rule.
        context - The context to associate with this operation.
        Returns:
        the 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.