/// <summary>
 /// Create or update an ActivityType.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IActivityTypeOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data factory.
 /// </param>
 /// <param name='dataFactoryName'>
 /// Required. The name of the data factory.
 /// </param>
 /// <param name='activityTypeName'>
 /// Required. An ActivityType name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update an
 /// ActivityType definition.
 /// </param>
 /// <returns>
 /// The create or update ActivityType operation response.
 /// </returns>
 public static Task<ActivityTypeCreateOrUpdateResponse> CreateOrUpdateWithRawJsonContentAsync(
     this IActivityTypeOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string activityTypeName,
     ActivityTypeCreateOrUpdateWithRawJsonContentParameters parameters)
 {
     return operations.CreateOrUpdateWithRawJsonContentAsync(
         resourceGroupName,
         dataFactoryName,
         activityTypeName,
         parameters,
         CancellationToken.None);
 }
 /// <summary>
 /// Create or update an ActivityType.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IActivityTypeOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data factory.
 /// </param>
 /// <param name='dataFactoryName'>
 /// Required. The name of the data factory.
 /// </param>
 /// <param name='activityTypeName'>
 /// Required. An ActivityType name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update an
 /// ActivityType definition.
 /// </param>
 /// <returns>
 /// The create or update ActivityType operation response.
 /// </returns>
 public static ActivityTypeCreateOrUpdateResponse CreateOrUpdateWithRawJsonContent(
     this IActivityTypeOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string activityTypeName,
     ActivityTypeCreateOrUpdateWithRawJsonContentParameters parameters)
 {
     return Task.Factory.StartNew(
         s =>
             ((IActivityTypeOperations)s).CreateOrUpdateWithRawJsonContentAsync(
                 resourceGroupName,
                 dataFactoryName,
                 activityTypeName,
                 parameters),
             operations,
             CancellationToken.None,
             TaskCreationOptions.None,
             TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }