/// <summary>
 /// Retrieve the activity in the module identified by module name and activity
 /// name.
 /// <see href="http://aka.ms/azureautomationsdk/activityoperations" />
 /// </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='moduleName'>
 /// The name of module.
 /// </param>
 /// <param name='activityName'>
 /// The name of activity.
 /// </param>
 public static Activity Get(this IActivityOperations operations, string resourceGroupName, string automationAccountName, string moduleName, string activityName)
 {
     return(operations.GetAsync(resourceGroupName, automationAccountName, moduleName, activityName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Retrieve the activity in the module identified by module name and
 /// activity name.  (see
 /// http://aka.ms/azureautomationsdk/activityoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IActivityOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='moduleName'>
 /// Required. The name of module.
 /// </param>
 /// <param name='activityName'>
 /// Required. The name of activity.
 /// </param>
 /// <returns>
 /// The response model for the get activity operation.
 /// </returns>
 public static Task <ActivityGetResponse> GetAsync(this IActivityOperations operations, string resourceGroupName, string automationAccount, string moduleName, string activityName)
 {
     return(operations.GetAsync(resourceGroupName, automationAccount, moduleName, activityName, CancellationToken.None));
 }