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

Class InstallationAuthorization

github/InstallationAuthorization.py:57–137  ·  view source on GitHub ↗

This class represents InstallationAuthorizations. The OpenAPI schema can be found at - /components/schemas/installation-token

Source from the content-addressed store, hash-verified

55
56
57class InstallationAuthorization(NonCompletableGithubObject):
58 """
59 This class represents InstallationAuthorizations.
60
61 The OpenAPI schema can be found at
62
63 - /components/schemas/installation-token
64
65 """
66
67 def _initAttributes(self) -> None:
68 self._expires_at: Attribute[datetime] = NotSet
69 self._has_multiple_single_files: Attribute[bool] = NotSet
70 self._on_behalf_of: Attribute[NamedUser] = NotSet
71 self._permissions: Attribute[dict] = NotSet
72 self._repositories: Attribute[list[Repository]] = NotSet
73 self._repository_selection: Attribute[str] = NotSet
74 self._single_file: Attribute[str] = NotSet
75 self._single_file_paths: Attribute[list[str]] = NotSet
76 self._token: Attribute[str] = NotSet
77
78 def __repr__(self) -> str:
79 return self.get__repr__({"expires_at": self._expires_at.value})
80
81 @property
82 def expires_at(self) -> datetime:
83 return self._expires_at.value
84
85 @property
86 def has_multiple_single_files(self) -> bool:
87 return self._has_multiple_single_files.value
88
89 @property
90 def on_behalf_of(self) -> NamedUser:
91 return self._on_behalf_of.value
92
93 @property
94 def permissions(self) -> dict:
95 return self._permissions.value
96
97 @property
98 def repositories(self) -> list[Repository]:
99 return self._repositories.value
100
101 @property
102 def repository_selection(self) -> str:
103 return self._repository_selection.value
104
105 @property
106 def single_file(self) -> str:
107 return self._single_file.value
108
109 @property
110 def single_file_paths(self) -> list[str]:
111 return self._single_file_paths.value
112
113 @property
114 def token(self) -> str:

Callers 1

get_access_tokenMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…