/// <summary>
 /// Retrieve a list of fields of a given type across all accessible modules.
 /// <see href="http://aka.ms/azureautomationsdk/objectdatatypeoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='typeName'>
 /// The name of type.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IEnumerable <TypeField> > ListFieldsByTypeAsync(this IObjectDataTypesOperations operations, string resourceGroupName, string automationAccountName, string typeName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListFieldsByTypeWithHttpMessagesAsync(resourceGroupName, automationAccountName, typeName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Retrieve a list of fields of a given type across all accessible modules.
 /// <see href="http://aka.ms/azureautomationsdk/objectdatatypeoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='typeName'>
 /// The name of type.
 /// </param>
 public static IEnumerable <TypeField> ListFieldsByType(this IObjectDataTypesOperations operations, string resourceGroupName, string automationAccountName, string typeName)
 {
     return(operations.ListFieldsByTypeAsync(resourceGroupName, automationAccountName, typeName).GetAwaiter().GetResult());
 }