/** * Deletes this team. */ public void delete() throws IOException { org.root.retrieve().method("DELETE").to(api("")); }
/** * Deletes this team. */ public void delete() throws IOException { org.root.retrieve().method("DELETE").to(api("")); }
/** * Adds a member to the team. * * The user will be invited to the organization if required. * * @since 1.59 */ public void add(GHUser u) throws IOException { org.root.retrieve().method("PUT").to(api("/memberships/" + u.getLogin()), null); }
/** * Removes a member to the team. */ public void remove(GHUser u) throws IOException { org.root.retrieve().method("DELETE").to(api("/members/" + u.getLogin()), null); }
/** * Removes a member to the team. */ public void remove(GHUser u) throws IOException { org.root.retrieve().method("DELETE").to(api("/members/" + u.getLogin()), null); }
/** * Removes a member to the team. */ public void remove(GHUser u) throws IOException { org.root.retrieve().method("DELETE").to(api("/members/" + u.getLogin()), null); }
/** * Adds a member to the team. * * The user will be invited to the organization if required. * * @since 1.59 */ public void add(GHUser u) throws IOException { org.root.retrieve().method("PUT").to(api("/memberships/" + u.getLogin()), null); }
/** * Adds a member to the team. * * The user will be invited to the organization if required. * * @since 1.59 */ public void add(GHUser u) throws IOException { org.root.retrieve().method("PUT").to(api("/memberships/" + u.getLogin()), null); }
public void remove(GHRepository r) throws IOException { org.root.retrieve().method("DELETE").to(api("/repos/" + r.getOwnerName() + '/' + r.getName()), null); }
public void remove(GHRepository r) throws IOException { org.root.retrieve().method("DELETE").to(api("/repos/" + r.getOwnerName() + '/' + r.getName()), null); }
public void add(GHRepository r) throws IOException { org.root.retrieve().method("PUT").to(api("/repos/" + r.getOwnerName() + '/' + r.getName()), null); }
public void remove(GHRepository r) throws IOException { org.root.retrieve().method("DELETE").to(api("/repos/" + r.getOwnerName() + '/' + r.getName()), null); }
public void add(GHRepository r, GHOrganization.Permission permission) throws IOException { org.root.retrieve().method("PUT") .with("permission", permission) .to(api("/repos/" + r.getOwnerName() + '/' + r.getName()), null); }
public void add(GHRepository r, GHOrganization.Permission permission) throws IOException { org.root.retrieve().method("PUT") .with("permission", permission) .to(api("/repos/" + r.getOwnerName() + '/' + r.getName()), null); }
/** * Adds a member to the team * * The user will be invited to the organization if required. * * @param user github user * @param role role for the new member * * @throws IOException */ public void add(GHUser user, Role role) throws IOException { org.root.retrieve().method("PUT") .with("role", role.name()) .to(api("/memberships/" + user.getLogin()), null); }
/** * Adds a member to the team * * The user will be invited to the organization if required. * * @param user github user * @param role role for the new member * * @throws IOException */ public void add(GHUser user, Role role) throws IOException { org.root.retrieve().method("PUT") .with("role", role.name()) .to(api("/memberships/" + user.getLogin()), null); }