/// <summary> /// Gets all RedisEnterprise clusters in the specified subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Cluster> > ListNextAsync(this IRedisEnterpriseOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates or updates an existing (overwrite/recreate, with potential /// downtime) cache cluster /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='clusterName'> /// The name of the RedisEnterprise cluster. /// </param> /// <param name='parameters'> /// Parameters supplied to the Create RedisEnterprise operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Cluster> CreateAsync(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName, Cluster parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, clusterName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all RedisEnterprise clusters in a resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Cluster> > ListByResourceGroupAsync(this IRedisEnterpriseOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates an existing RedisEnterprise cluster /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='clusterName'> /// The name of the RedisEnterprise cluster. /// </param> /// <param name='parameters'> /// Parameters supplied to the Update RedisEnterprise operation. /// </param> public static Cluster Update(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName, ClusterUpdate parameters) { return(operations.UpdateAsync(resourceGroupName, clusterName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Gets all RedisEnterprise clusters in the specified subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <Cluster> ListNext(this IRedisEnterpriseOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Deletes a RedisEnterprise cache cluster. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='clusterName'> /// The name of the RedisEnterprise cluster. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteAsync(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Deletes a RedisEnterprise cache cluster. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='clusterName'> /// The name of the RedisEnterprise cluster. /// </param> public static void BeginDelete(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName) { operations.BeginDeleteAsync(resourceGroupName, clusterName).GetAwaiter().GetResult(); }
/// <summary> /// Gets all RedisEnterprise clusters in the specified subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <Cluster> List(this IRedisEnterpriseOperations operations) { return(operations.ListAsync().GetAwaiter().GetResult()); }
/// <summary> /// Lists all RedisEnterprise clusters in a resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> public static IPage <Cluster> ListByResourceGroup(this IRedisEnterpriseOperations operations, string resourceGroupName) { return(operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult()); }
/// <summary> /// Gets information about a RedisEnterprise cluster /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='clusterName'> /// The name of the RedisEnterprise cluster. /// </param> public static Cluster Get(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName) { return(operations.GetAsync(resourceGroupName, clusterName).GetAwaiter().GetResult()); }