/// <summary> /// Deletes a machine based on its key. /// </summary> /// <remarks> /// Required permissions: Machines.Delete. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='ifMatch'> /// If-Match header /// </param> public static void DeleteById(this IMachines operations, long id, string ifMatch = default(string)) { operations.DeleteByIdAsync(id, ifMatch).GetAwaiter().GetResult(); }
/// <summary> /// Deletes a machine based on its key. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Machines or Machines.Write. /// /// Required permissions: Machines.Delete. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// </param> public static void DeleteById(this IMachines operations, long key) { operations.DeleteByIdAsync(key).GetAwaiter().GetResult(); }