Interface FirewallRulesClient
public interface FirewallRulesClient
An instance of this class provides access to all the operations defined in FirewallRulesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(String resourceGroupName, String cacheName, String ruleName, RedisFirewallRuleInner parameters) Create or update a redis cache firewall rule.createOrUpdateAsync(String resourceGroupName, String cacheName, String ruleName, RedisFirewallRuleInner parameters) Create or update a redis cache firewall rule.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.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.voidDeletes a single firewall rule in a specified redis cache.deleteAsync(String resourceGroupName, String cacheName, String ruleName) Deletes a single firewall rule in a specified redis cache.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.deleteWithResponseAsync(String resourceGroupName, String cacheName, String ruleName) Deletes a single firewall rule in a specified redis cache.Gets a single firewall rule in a specified redis cache.Gets a single firewall rule in a specified redis cache.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.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.com.azure.core.http.rest.PagedIterable<RedisFirewallRuleInner> Gets all firewall rules in the specified redis cache.com.azure.core.http.rest.PagedIterable<RedisFirewallRuleInner> Gets all firewall rules in the specified redis cache.com.azure.core.http.rest.PagedFlux<RedisFirewallRuleInner> Gets all firewall rules in the specified redis cache.
-
Method Details
-
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. The name is case insensitive.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. The name is case insensitive.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. The name is case insensitive.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. The name is case insensitive.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
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.
-
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. The name is case insensitive.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.
-
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. The name is case insensitive.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.
-
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. The name is case insensitive.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.
-
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. The name is case insensitive.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
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
Gets a single firewall rule in a specified redis cache.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.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.
-
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. The name is case insensitive.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.
-
get
Gets a single firewall rule in a specified redis cache.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.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.
-
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. The name is case insensitive.cacheName- The name of the Redis cache.ruleName- The name of the firewall 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.
-
deleteAsync
Deletes a single firewall rule in a specified redis cache.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.cacheName- The name of the Redis cache.ruleName- The name of the firewall 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.
-
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. The name is case insensitive.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.
-
delete
Deletes a single firewall rule in a specified redis cache.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.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.
-