:calls: `GET /enterprises/{enterprise} `_ :param enterprise: string :rtype: :class:`Enterprise`
(self, enterprise: str)
| 464 | |
| 465 | # v3: rename enterprise to slug |
| 466 | def get_enterprise(self, enterprise: str) -> github.Enterprise.Enterprise: |
| 467 | """ |
| 468 | :calls: `GET /enterprises/{enterprise} <https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin>`_ |
| 469 | :param enterprise: string |
| 470 | :rtype: :class:`Enterprise` |
| 471 | """ |
| 472 | assert isinstance(enterprise, str), enterprise |
| 473 | # There is no native "/enterprises/{enterprise}" api, so this function is a hub for apis that start with "/enterprise/{enterprise}". |
| 474 | return github.Enterprise.Enterprise.from_slug(self.__requester, enterprise) |
| 475 | |
| 476 | # v3: remove lazy option |
| 477 | def get_repo(self, full_name_or_id: int | str, lazy: Opt[bool] = NotSet) -> Repository: |