Skip to content

Commit 17482f5

Browse files
add docs for new bu and team methods, update lib
1 parent 5485b31 commit 17482f5

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

docs/businessunits.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ The following methods call Veracode REST APIs and return JSON.
44

55
- `BusinessUnits().get_all()`: get the list of business units in the organization.
66
- `BusinessUnits().get(guid)`: get the business unit identified by `guid`.
7+
- `BusinessUnits().get_by_name(name)`: get the business units identified by `name`.
78
- `BusinessUnits().create(name,teams)`: create a business unit. `teams` is a list of `team_id` GUIDs.
89
- `BusinessUnits().update(guid,name,teams)`: update the business unit identified by `guid`.
910
- `BusinessUnits().delete(guid)`: delete the business unit identified by `guid`.

docs/teams.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ The following methods call Veracode REST APIs and return JSON.
44

55
- `Teams().get_all(all_for_org)`: get the list of teams for the user, or (if `all_for_org` is `True`) all teams in the organization.
66
- `Teams().get(team_uuid)`: get the details for a given team uuid, including members
7+
- `Teams().get_by_name(name,all_for_org)`: get the teams identified by `name`. Set `all_for_org` to `True` to search all teams in the organization; by default only the user's assigned teams are searched.
78
- `Teams().create(team_name,business_unit,members)`: create a team named `team_name`. Optionally pass the business unit guid and/or a list of user names to add to the team.
89
- `Teams().update(team_guid,team_name(opt),business_unit(opt),members(opt))`: update the team identified by `team_guid` with the provided information.
910
- `Teams().delete(team_guid)`: delete the team identified by `team_guid`.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
requests>=2.32.0
1+
requests==2.32.4
22
veracode-api-signing>=24.11.0
33
Pygments>= 2.9.0
44
idna>=3.7

veracode_api_py/identity.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ def get_by_name(self, team_name, all_for_org=False):
156156
request_params.update({'all_for_org': True})
157157
return APIHelper()._rest_paged_request("api/authn/v2/teams","GET","teams",request_params)
158158

159-
160159
def get_all(self, all_for_org=False):
161160
#Gets a list of teams using the Veracode Identity API
162161
if all_for_org:

0 commit comments

Comments
 (0)