:calls: `PATCH /teams/{team_id} `_
(
self,
name: str,
description: Opt[str] = NotSet,
permission: Opt[str] = NotSet,
privacy: Opt[str] = NotSet,
parent_team_id: Opt[int] = NotSet,
notification_setting: Opt[str] = NotSet,
)
| 389 | headers, data = self._requester.requestJsonAndCheck("DELETE", self.url) |
| 390 | |
| 391 | def edit( |
| 392 | self, |
| 393 | name: str, |
| 394 | description: Opt[str] = NotSet, |
| 395 | permission: Opt[str] = NotSet, |
| 396 | privacy: Opt[str] = NotSet, |
| 397 | parent_team_id: Opt[int] = NotSet, |
| 398 | notification_setting: Opt[str] = NotSet, |
| 399 | ) -> None: |
| 400 | """ |
| 401 | :calls: `PATCH /teams/{team_id} <https://docs.github.com/en/rest/reference/teams#update-a-team>`_ |
| 402 | """ |
| 403 | assert isinstance(name, str), name |
| 404 | assert description is NotSet or isinstance(description, str), description |
| 405 | assert permission is NotSet or isinstance(permission, str), permission |
| 406 | assert privacy is NotSet or isinstance(privacy, str), privacy |
| 407 | assert parent_team_id is NotSet or isinstance(parent_team_id, (int, type(None))), parent_team_id |
| 408 | assert notification_setting in ["notifications_enabled", "notifications_disabled", NotSet], notification_setting |
| 409 | post_parameters = NotSet.remove_unset_items( |
| 410 | { |
| 411 | "name": name, |
| 412 | "description": description, |
| 413 | "permission": permission, |
| 414 | "privacy": privacy, |
| 415 | "parent_team_id": parent_team_id, |
| 416 | "notification_setting": notification_setting, |
| 417 | } |
| 418 | ) |
| 419 | |
| 420 | headers, data = self._requester.requestJsonAndCheck("PATCH", self.url, input=post_parameters) |
| 421 | self._useAttributes(data) |
| 422 | self._set_complete() |
| 423 | |
| 424 | def get_teams(self) -> PaginatedList[Team]: |
| 425 | """ |
no test coverage detected