MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / get_enterprise

Method get_enterprise

github/MainClass.py:466–474  ·  view source on GitHub ↗

:calls: `GET /enterprises/{enterprise} `_ :param enterprise: string :rtype: :class:`Enterprise`

(self, enterprise: str)

Source from the content-addressed store, hash-verified

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:

Callers 2

setUpMethod · 0.80
setUpMethod · 0.80

Calls 1

from_slugMethod · 0.80

Tested by

no test coverage detected