:calls: `GET /enterprises/{enterprise}/consumed-licenses `_ :param licence_users_per_page: int Number of users retrieved with the licences. Iterating over users proper
(self, *, licence_users_per_page: int | None = None)
| 141 | return github.Enterprise.Enterprise(requester, {}, {"slug": slug}) |
| 142 | |
| 143 | def get_consumed_licenses(self, *, licence_users_per_page: int | None = None) -> EnterpriseConsumedLicenses: |
| 144 | """ |
| 145 | :calls: `GET /enterprises/{enterprise}/consumed-licenses <https://docs.github.com/en/enterprise-cloud@latest/rest/enterprise-admin/license#list-enterprise-consumed-licenses>`_ |
| 146 | :param licence_users_per_page: int Number of users retrieved with the licences. Iterating over users property will fetch pages of this size. The default page size is 30, the maximum is 100. |
| 147 | """ |
| 148 | # licence_users_per_page asserted in EnterpriseConsumedLicenses(CompletableGithubObjectWithPaginatedProperty) |
| 149 | return github.EnterpriseConsumedLicenses.EnterpriseConsumedLicenses( |
| 150 | self._requester, url=self.url + "/consumed-licenses", per_page=licence_users_per_page |
| 151 | ) |
| 152 | |
| 153 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 154 | if "avatar_url" in attributes: # pragma no branch |
no outgoing calls
no test coverage detected