コード例 #1
0
 /// <summary>
 /// Remove user assignment from a folder.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Folders or Folders.Write.
 ///
 /// Required permissions: (Units.Edit or SubFolders.Edit) and (Machines.View).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='key'>
 /// </param>
 /// <param name='body'>
 /// The Ids of the machines to remove from the folder
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task RemoveMachinesFromFolderByIdAsync(this IFolders operations, long key, FoldersRemoveMachinesFromFolderParameters body = default(FoldersRemoveMachinesFromFolderParameters), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.RemoveMachinesFromFolderByIdWithHttpMessagesAsync(key, body, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
コード例 #2
0
 /// <summary>
 /// Remove user assignment from a folder.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Folders or Folders.Write.
 ///
 /// Required permissions: (Units.Edit or SubFolders.Edit) and (Machines.View).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='key'>
 /// </param>
 /// <param name='body'>
 /// The Ids of the machines to remove from the folder
 /// </param>
 public static void RemoveMachinesFromFolderById(this IFolders operations, long key, FoldersRemoveMachinesFromFolderParameters body = default(FoldersRemoveMachinesFromFolderParameters))
 {
     operations.RemoveMachinesFromFolderByIdAsync(key, body).GetAwaiter().GetResult();
 }