/// <summary>
 /// Get the Dapr Components for a managed environment.
 /// </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 <DaprComponent> > ListNextAsync(this IDaprComponentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get the Dapr Components for a managed environment.
 /// </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='environmentName'>
 /// Name of the Managed Environment.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <DaprComponent> > ListAsync(this IDaprComponentsOperations operations, string resourceGroupName, string environmentName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, environmentName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Creates or updates a Dapr Component.
 /// </summary>
 /// <remarks>
 /// Creates or updates a Dapr Component in a Managed Environment.
 /// </remarks>
 /// <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='environmentName'>
 /// Name of the Managed Environment.
 /// </param>
 /// <param name='name'>
 /// Name of the Dapr Component.
 /// </param>
 /// <param name='daprComponentEnvelope'>
 /// Configuration details of the Dapr Component.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DaprComponent> CreateOrUpdateAsync(this IDaprComponentsOperations operations, string resourceGroupName, string environmentName, string name, DaprComponent daprComponentEnvelope, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, environmentName, name, daprComponentEnvelope, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get a dapr component.
 /// </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='environmentName'>
 /// Name of the Managed Environment.
 /// </param>
 /// <param name='name'>
 /// Name of the Dapr Component.
 /// </param>
 public static DaprComponent Get(this IDaprComponentsOperations operations, string resourceGroupName, string environmentName, string name)
 {
     return(operations.GetAsync(resourceGroupName, environmentName, name).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get the Dapr Components for a managed environment.
 /// </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 <DaprComponent> ListNext(this IDaprComponentsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Delete a Dapr Component.
 /// </summary>
 /// <remarks>
 /// Delete a Dapr Component from a Managed Environment.
 /// </remarks>
 /// <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='environmentName'>
 /// Name of the Managed Environment.
 /// </param>
 /// <param name='name'>
 /// Name of the Dapr Component.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IDaprComponentsOperations operations, string resourceGroupName, string environmentName, string name, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, environmentName, name, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Delete a Dapr Component.
 /// </summary>
 /// <remarks>
 /// Delete a Dapr Component from a Managed Environment.
 /// </remarks>
 /// <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='environmentName'>
 /// Name of the Managed Environment.
 /// </param>
 /// <param name='name'>
 /// Name of the Dapr Component.
 /// </param>
 public static void Delete(this IDaprComponentsOperations operations, string resourceGroupName, string environmentName, string name)
 {
     operations.DeleteAsync(resourceGroupName, environmentName, name).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Creates or updates a Dapr Component.
 /// </summary>
 /// <remarks>
 /// Creates or updates a Dapr Component in a Managed Environment.
 /// </remarks>
 /// <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='environmentName'>
 /// Name of the Managed Environment.
 /// </param>
 /// <param name='name'>
 /// Name of the Dapr Component.
 /// </param>
 /// <param name='daprComponentEnvelope'>
 /// Configuration details of the Dapr Component.
 /// </param>
 public static DaprComponent CreateOrUpdate(this IDaprComponentsOperations operations, string resourceGroupName, string environmentName, string name, DaprComponent daprComponentEnvelope)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, environmentName, name, daprComponentEnvelope).GetAwaiter().GetResult());
 }