/// <summary>
 /// Creates new workspace.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Workspace.ReadWrite.All&lt;br/&gt;To set the
 /// permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='requestParameters'>
 /// Create group request parameters
 /// </param>
 /// <param name='workspaceV2'>
 /// Preview feature: Create a workspace V2. The only supported value is true.
 /// </param>
 public static Group CreateGroup(this IGroupsOperations operations, GroupCreationRequest requestParameters, bool?workspaceV2 = default(bool?))
 {
     return(operations.CreateGroupAsync(requestParameters, workspaceV2).GetAwaiter().GetResult());
 }
Пример #2
0
 /// <summary>
 /// Add new entity to groups
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// New entity
 /// </param>
 public static MicrosoftGraphGroup CreateGroup(this IGroupsOperations operations, MicrosoftGraphGroup body)
 {
     return(operations.CreateGroupAsync(body).GetAwaiter().GetResult());
 }