/// <summary>
 /// Gets all profile in the hub.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='hubName'>
 /// The name of the hub.
 /// </param>
 /// <param name='localeCode'>
 /// Locale of profile to retrieve, default is en-us.
 /// </param>
 public static IPage <ProfileResourceFormat> ListByHub(this IProfilesOperations operations, string resourceGroupName, string hubName, string localeCode = "en-us")
 {
     return(operations.ListByHubAsync(resourceGroupName, hubName, localeCode).GetAwaiter().GetResult());
 }