/// <summary>
 /// Edits a machine based on its key.
 /// </summary>
 /// <remarks>
 /// Required permissions: Machines.Edit.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// key: Id
 /// </param>
 /// <param name='machineDto'>
 /// </param>
 public static MachineDto PutById(this IMachines operations, long id, MachineDto machineDto)
 {
     return(operations.PutByIdAsync(id, machineDto).GetAwaiter().GetResult());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Edits a machine based on its key.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Machines or Machines.Write.
 ///
 /// Required permissions: Machines.Edit.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='key'>
 /// </param>
 /// <param name='body'>
 /// </param>
 public static MachineDto PutById(this IMachines operations, long key, MachineDto body = default(MachineDto))
 {
     return(operations.PutByIdAsync(key, body).GetAwaiter().GetResult());
 }