This class represents GitHub apps. The reference can be found here https://docs.github.com/en/rest/reference/apps The OpenAPI schema can be found at - /components/schemas/integration - /components/schemas/nullable-integration
| 61 | |
| 62 | |
| 63 | class GithubApp(CompletableGithubObject): |
| 64 | """ |
| 65 | This class represents GitHub apps. |
| 66 | |
| 67 | The reference can be found here |
| 68 | https://docs.github.com/en/rest/reference/apps |
| 69 | |
| 70 | The OpenAPI schema can be found at |
| 71 | |
| 72 | - /components/schemas/integration |
| 73 | - /components/schemas/nullable-integration |
| 74 | |
| 75 | """ |
| 76 | |
| 77 | def _initAttributes(self) -> None: |
| 78 | self._client_id: Attribute[str] = NotSet |
| 79 | self._client_secret: Attribute[str] = NotSet |
| 80 | self._created_at: Attribute[datetime] = NotSet |
| 81 | self._description: Attribute[str] = NotSet |
| 82 | self._events: Attribute[list[str]] = NotSet |
| 83 | self._external_url: Attribute[str] = NotSet |
| 84 | self._html_url: Attribute[str] = NotSet |
| 85 | self._id: Attribute[int] = NotSet |
| 86 | self._installations_count: Attribute[int] = NotSet |
| 87 | self._name: Attribute[str] = NotSet |
| 88 | self._node_id: Attribute[str] = NotSet |
| 89 | self._owner: Attribute[NamedUser | Organization | Enterprise] = NotSet |
| 90 | self._pem: Attribute[str] = NotSet |
| 91 | self._permissions: Attribute[dict[str, str]] = NotSet |
| 92 | self._slug: Attribute[str] = NotSet |
| 93 | self._updated_at: Attribute[datetime] = NotSet |
| 94 | self._url: Attribute[str] = NotSet |
| 95 | self._webhook_secret: Attribute[str] = NotSet |
| 96 | |
| 97 | def __repr__(self) -> str: |
| 98 | return self.get__repr__({"id": self._id.value, "url": self._url.value}) |
| 99 | |
| 100 | @property |
| 101 | def client_id(self) -> str: |
| 102 | self._completeIfNotSet(self._client_id) |
| 103 | return self._client_id.value |
| 104 | |
| 105 | @property |
| 106 | def client_secret(self) -> str: |
| 107 | self._completeIfNotSet(self._client_secret) |
| 108 | return self._client_secret.value |
| 109 | |
| 110 | @property |
| 111 | def created_at(self) -> datetime: |
| 112 | self._completeIfNotSet(self._created_at) |
| 113 | return self._created_at.value |
| 114 | |
| 115 | @property |
| 116 | def description(self) -> str: |
| 117 | self._completeIfNotSet(self._description) |
| 118 | return self._description.value |
| 119 | |
| 120 | @property |
no outgoing calls
no test coverage detected
searching dependent graphs…