Compartilhar via


RedisExtensions Class

Definition

A class to add extension methods to Azure.ResourceManager.Redis.

public static class RedisExtensions
type RedisExtensions = class
Public Module RedisExtensions
Inheritance
RedisExtensions

Methods

CheckRedisNameAvailability(SubscriptionResource, RedisNameAvailabilityContent, CancellationToken)

Checks that the redis cache name is valid and is not already in use.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Cache/CheckNameAvailability
  • Operation Id: Redis_CheckNameAvailability
  • Default Api Version: 2024-11-01
  • Resource: RedisResource
<item>MockingTo mock this method, please mock CheckRedisNameAvailability(RedisNameAvailabilityContent, CancellationToken) instead.</item>
CheckRedisNameAvailabilityAsync(SubscriptionResource, RedisNameAvailabilityContent, CancellationToken)

Checks that the redis cache name is valid and is not already in use.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Cache/CheckNameAvailability
  • Operation Id: Redis_CheckNameAvailability
  • Default Api Version: 2024-11-01
  • Resource: RedisResource
<item>MockingTo mock this method, please mock CheckRedisNameAvailability(RedisNameAvailabilityContent, CancellationToken) instead.</item>
GetAllRedis(ResourceGroupResource)

Gets a collection of RedisResources in the ResourceGroupResource. <item>MockingTo mock this method, please mock GetAllRedis() instead.</item>

GetAllRedis(SubscriptionResource, CancellationToken)

Gets all Redis caches in the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Cache/redis
  • Operation Id: Redis_ListBySubscription
  • Default Api Version: 2024-11-01
  • Resource: RedisResource
<item>MockingTo mock this method, please mock GetAllRedis(CancellationToken) instead.</item>
GetAllRedisAsync(SubscriptionResource, CancellationToken)

Gets all Redis caches in the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Cache/redis
  • Operation Id: Redis_ListBySubscription
  • Default Api Version: 2024-11-01
  • Resource: RedisResource
<item>MockingTo mock this method, please mock GetAllRedis(CancellationToken) instead.</item>
GetAsyncOperationStatus(SubscriptionResource, AzureLocation, String, CancellationToken)

For checking the ongoing status of an operation

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/asyncOperations/{operationId}
  • Operation Id: AsyncOperationStatus_Get
  • Default Api Version: 2024-11-01
<item>MockingTo mock this method, please mock GetAsyncOperationStatus(AzureLocation, String, CancellationToken) instead.</item>
GetAsyncOperationStatusAsync(SubscriptionResource, AzureLocation, String, CancellationToken)

For checking the ongoing status of an operation

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/asyncOperations/{operationId}
  • Operation Id: AsyncOperationStatus_Get
  • Default Api Version: 2024-11-01
<item>MockingTo mock this method, please mock GetAsyncOperationStatus(AzureLocation, String, CancellationToken) instead.</item>
GetRedis(ResourceGroupResource, String, CancellationToken)

Gets a Redis cache (resource description).

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}
  • Operation Id: Redis_Get
  • Default Api Version: 2024-11-01
  • Resource: RedisResource
<item>MockingTo mock this method, please mock GetRedis(String, CancellationToken) instead.</item>
GetRedisAsync(ResourceGroupResource, String, CancellationToken)

Gets a Redis cache (resource description).

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}
  • Operation Id: Redis_Get
  • Default Api Version: 2024-11-01
  • Resource: RedisResource
<item>MockingTo mock this method, please mock GetRedisAsync(String, CancellationToken) instead.</item>
GetRedisCacheAccessPolicyAssignmentResource(ArmClient, ResourceIdentifier)

Gets an object representing a RedisCacheAccessPolicyAssignmentResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a RedisCacheAccessPolicyAssignmentResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetRedisCacheAccessPolicyAssignmentResource(ResourceIdentifier) instead.</item>

GetRedisCacheAccessPolicyResource(ArmClient, ResourceIdentifier)

Gets an object representing a RedisCacheAccessPolicyResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a RedisCacheAccessPolicyResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetRedisCacheAccessPolicyResource(ResourceIdentifier) instead.</item>

GetRedisFirewallRuleResource(ArmClient, ResourceIdentifier)

Gets an object representing a RedisFirewallRuleResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a RedisFirewallRuleResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetRedisFirewallRuleResource(ResourceIdentifier) instead.</item>

GetRedisLinkedServerWithPropertyResource(ArmClient, ResourceIdentifier)

Gets an object representing a RedisLinkedServerWithPropertyResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a RedisLinkedServerWithPropertyResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetRedisLinkedServerWithPropertyResource(ResourceIdentifier) instead.</item>

GetRedisPatchScheduleResource(ArmClient, ResourceIdentifier)

Gets an object representing a RedisPatchScheduleResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, RedisPatchScheduleDefaultName) to create a RedisPatchScheduleResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetRedisPatchScheduleResource(ResourceIdentifier) instead.</item>

GetRedisPrivateEndpointConnectionResource(ArmClient, ResourceIdentifier)

Gets an object representing a RedisPrivateEndpointConnectionResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a RedisPrivateEndpointConnectionResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetRedisPrivateEndpointConnectionResource(ResourceIdentifier) instead.</item>

GetRedisResource(ArmClient, ResourceIdentifier)

Gets an object representing a RedisResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a RedisResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetRedisResource(ResourceIdentifier) instead.</item>

Applies to