コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
 /// <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);
     }
 }
コード例 #3
0
 /// <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);
     }
 }
コード例 #4
0
 /// <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());
 }
コード例 #5
0
 /// <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());
 }
コード例 #6
0
 /// <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();
 }
コード例 #7
0
 /// <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();
 }
コード例 #8
0
 /// <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());
 }
コード例 #9
0
 /// <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());
 }
コード例 #10
0
 /// <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());
 }