/// <summary>
 /// Modify properties of service fabrics.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='labName'>
 /// The name of the lab.
 /// </param>
 /// <param name='userName'>
 /// The name of the user profile.
 /// </param>
 /// <param name='name'>
 /// The name of the service Fabric.
 /// </param>
 /// <param name='serviceFabric'>
 /// A Service Fabric.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ServiceFabric> UpdateAsync(this IServiceFabricsOperations operations, string resourceGroupName, string labName, string userName, string name, ServiceFabricFragment serviceFabric, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, labName, userName, name, serviceFabric, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Modify properties of service fabrics.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='labName'>
 /// The name of the lab.
 /// </param>
 /// <param name='userName'>
 /// The name of the user profile.
 /// </param>
 /// <param name='name'>
 /// The name of the service Fabric.
 /// </param>
 /// <param name='serviceFabric'>
 /// A Service Fabric.
 /// </param>
 public static ServiceFabric Update(this IServiceFabricsOperations operations, string resourceGroupName, string labName, string userName, string name, ServiceFabricFragment serviceFabric)
 {
     return(operations.UpdateAsync(resourceGroupName, labName, userName, name, serviceFabric).GetAwaiter().GetResult());
 }