/// <summary> /// Creates new workspace. /// </summary> /// <remarks> /// <br/>**Required scope**: Workspace.ReadWrite.All<br/>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()); }
/// <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()); }