/// <summary> /// Deletes a role. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Users or Users.Write. /// /// Required permissions: Roles.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 IRoles operations, int id, string ifMatch = default(string)) { operations.DeleteByIdAsync(id, ifMatch).GetAwaiter().GetResult(); }
/// <summary> /// Deletes a role. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Users or Users.Write. /// /// Required permissions: Roles.Delete. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// </param> public static void DeleteById(this IRoles operations, int key) { operations.DeleteByIdAsync(key).GetAwaiter().GetResult(); }