/// <summary>
 /// Generates an embed token to view the specified dashboard from the specified
 /// workspace.&lt;br/&gt;&lt;br/&gt;This API is relevant only to the ['App owns
 /// data' embed
 /// scenario](https://docs.microsoft.com/power-bi/developer/embed-sample-for-customers).
 /// For more information about using this API, see [Considerations when
 /// generating an embed
 /// token](https://docs.microsoft.com/power-bi/developer/embedded/generate-embed-token).
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: (all of the below)
 /// &lt;ul&gt;&lt;li&gt;Dashboard.ReadWrite.All or
 /// Dashboard.Read.All&lt;/li&gt;&lt;li&gt;Report.ReadWrite.All or
 /// Report.Read.All &lt;/li&gt;&lt;li&gt;Dataset.ReadWrite.All or
 /// Dataset.Read.All&lt;/li&gt;&lt;/ul&gt;To set the permissions scope, see
 /// [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).&lt;/br&gt;&lt;/br&gt;When
 /// using service principal for authentication, refer to [Service Principal
 /// with Power
 /// BI](https://docs.microsoft.com/power-bi/developer/embed-service-principal)
 /// document along with considerations and limitations section.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 /// <param name='dashboardId'>
 /// The dashboard id
 /// </param>
 /// <param name='requestParameters'>
 /// Generate token parameters
 /// </param>
 public static EmbedToken GenerateTokenInGroup(this IDashboardsOperations operations, System.Guid groupId, System.Guid dashboardId, GenerateTokenRequest requestParameters)
 {
     return(operations.GenerateTokenInGroupAsync(groupId, dashboardId, requestParameters).GetAwaiter().GetResult());
 }