This class represents a popular Path for a GitHub repository. The reference can be found here https://docs.github.com/en/rest/reference/repos#traffic The OpenAPI schema can be found at - /components/schemas/content-traffic
| 46 | |
| 47 | |
| 48 | class Path(NonCompletableGithubObject): |
| 49 | """ |
| 50 | This class represents a popular Path for a GitHub repository. |
| 51 | |
| 52 | The reference can be found here |
| 53 | https://docs.github.com/en/rest/reference/repos#traffic |
| 54 | |
| 55 | The OpenAPI schema can be found at |
| 56 | |
| 57 | - /components/schemas/content-traffic |
| 58 | |
| 59 | """ |
| 60 | |
| 61 | def _initAttributes(self) -> None: |
| 62 | self._count: Attribute[int] = NotSet |
| 63 | self._path: Attribute[str] = NotSet |
| 64 | self._title: Attribute[str] = NotSet |
| 65 | self._uniques: Attribute[int] = NotSet |
| 66 | |
| 67 | def __repr__(self) -> str: |
| 68 | return self.get__repr__( |
| 69 | { |
| 70 | "path": self._path.value, |
| 71 | "title": self._title.value, |
| 72 | "count": self._count.value, |
| 73 | "uniques": self._uniques.value, |
| 74 | } |
| 75 | ) |
| 76 | |
| 77 | @property |
| 78 | def count(self) -> int: |
| 79 | return self._count.value |
| 80 | |
| 81 | @property |
| 82 | def path(self) -> str: |
| 83 | return self._path.value |
| 84 | |
| 85 | @property |
| 86 | def title(self) -> str: |
| 87 | return self._title.value |
| 88 | |
| 89 | @property |
| 90 | def uniques(self) -> int: |
| 91 | return self._uniques.value |
| 92 | |
| 93 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 94 | if "count" in attributes: # pragma no branch |
| 95 | self._count = self._makeIntAttribute(attributes["count"]) |
| 96 | if "path" in attributes: # pragma no branch |
| 97 | self._path = self._makeStringAttribute(attributes["path"]) |
| 98 | if "title" in attributes: # pragma no branch |
| 99 | self._title = self._makeStringAttribute(attributes["title"]) |
| 100 | if "uniques" in attributes: # pragma no branch |
| 101 | self._uniques = self._makeIntAttribute(attributes["uniques"]) |
no outgoing calls
no test coverage detected
searching dependent graphs…