Skip to content

Commit 8b6e2d5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[OMG-478] Added permissions note for the memberships APIs (#1056)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 5f15edd commit 8b6e2d5

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85658,7 +85658,13 @@ paths:
8565885658
permissions:
8565985659
- teams_read
8566085660
post:
85661-
description: Add a user to a team.
85661+
description: 'Add a user to a team.
85662+
85663+
85664+
**Note**: Each team has a setting that determines who is allowed to modify
85665+
membership of the team. The `user_access_manage` permission generally grants
85666+
access to modify membership of any team. To get the full picture, see [Team
85667+
Membership documentation](https://docs.datadoghq.com/account_management/teams/manage/#team-membership).'
8566285668
operationId: CreateTeamMembership
8566385669
parameters:
8566485670
- description: None
@@ -85711,7 +85717,13 @@ paths:
8571185717
- teams_read
8571285718
/api/v2/team/{team_id}/memberships/{user_id}:
8571385719
delete:
85714-
description: Remove a user from a team.
85720+
description: 'Remove a user from a team.
85721+
85722+
85723+
**Note**: Each team has a setting that determines who is allowed to modify
85724+
membership of the team. The `user_access_manage` permission generally grants
85725+
access to modify membership of any team. To get the full picture, see [Team
85726+
Membership documentation](https://docs.datadoghq.com/account_management/teams/manage/#team-membership).'
8571585727
operationId: DeleteTeamMembership
8571685728
parameters:
8571785729
- description: None
@@ -85752,7 +85764,13 @@ paths:
8575285764
permissions:
8575385765
- teams_read
8575485766
patch:
85755-
description: Update a user's membership attributes on a team.
85767+
description: 'Update a user''s membership attributes on a team.
85768+
85769+
85770+
**Note**: Each team has a setting that determines who is allowed to modify
85771+
membership of the team. The `user_access_manage` permission generally grants
85772+
access to modify membership of any team. To get the full picture, see [Team
85773+
Membership documentation](https://docs.datadoghq.com/account_management/teams/manage/#team-membership).'
8575685774
operationId: UpdateTeamMembership
8575785775
parameters:
8575885776
- description: None

src/datadogV2/api/api_teams.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,6 +1297,8 @@ impl TeamsAPI {
12971297
}
12981298

12991299
/// Add a user to a team.
1300+
///
1301+
/// **Note**: Each team has a setting that determines who is allowed to modify membership of the team. The `user_access_manage` permission generally grants access to modify membership of any team. To get the full picture, see [Team Membership documentation](<https://docs.datadoghq.com/account_management/teams/manage/#team-membership>).
13001302
pub async fn create_team_membership(
13011303
&self,
13021304
team_id: String,
@@ -1321,6 +1323,8 @@ impl TeamsAPI {
13211323
}
13221324

13231325
/// Add a user to a team.
1326+
///
1327+
/// **Note**: Each team has a setting that determines who is allowed to modify membership of the team. The `user_access_manage` permission generally grants access to modify membership of any team. To get the full picture, see [Team Membership documentation](<https://docs.datadoghq.com/account_management/teams/manage/#team-membership>).
13241328
pub async fn create_team_membership_with_http_info(
13251329
&self,
13261330
team_id: String,
@@ -1773,6 +1777,8 @@ impl TeamsAPI {
17731777
}
17741778

17751779
/// Remove a user from a team.
1780+
///
1781+
/// **Note**: Each team has a setting that determines who is allowed to modify membership of the team. The `user_access_manage` permission generally grants access to modify membership of any team. To get the full picture, see [Team Membership documentation](<https://docs.datadoghq.com/account_management/teams/manage/#team-membership>).
17761782
pub async fn delete_team_membership(
17771783
&self,
17781784
team_id: String,
@@ -1788,6 +1794,8 @@ impl TeamsAPI {
17881794
}
17891795

17901796
/// Remove a user from a team.
1797+
///
1798+
/// **Note**: Each team has a setting that determines who is allowed to modify membership of the team. The `user_access_manage` permission generally grants access to modify membership of any team. To get the full picture, see [Team Membership documentation](<https://docs.datadoghq.com/account_management/teams/manage/#team-membership>).
17911799
pub async fn delete_team_membership_with_http_info(
17921800
&self,
17931801
team_id: String,
@@ -4211,6 +4219,8 @@ impl TeamsAPI {
42114219
}
42124220

42134221
/// Update a user's membership attributes on a team.
4222+
///
4223+
/// **Note**: Each team has a setting that determines who is allowed to modify membership of the team. The `user_access_manage` permission generally grants access to modify membership of any team. To get the full picture, see [Team Membership documentation](<https://docs.datadoghq.com/account_management/teams/manage/#team-membership>).
42144224
pub async fn update_team_membership(
42154225
&self,
42164226
team_id: String,
@@ -4236,6 +4246,8 @@ impl TeamsAPI {
42364246
}
42374247

42384248
/// Update a user's membership attributes on a team.
4249+
///
4250+
/// **Note**: Each team has a setting that determines who is allowed to modify membership of the team. The `user_access_manage` permission generally grants access to modify membership of any team. To get the full picture, see [Team Membership documentation](<https://docs.datadoghq.com/account_management/teams/manage/#team-membership>).
42394251
pub async fn update_team_membership_with_http_info(
42404252
&self,
42414253
team_id: String,

0 commit comments

Comments
 (0)