(self, attributes: dict[str, Any])
| 138 | headers, data = self._requester.requestJsonAndCheck("DELETE", self.url) |
| 139 | |
| 140 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 141 | if "added_by" in attributes: # pragma no branch |
| 142 | self._added_by = self._makeStringAttribute(attributes["added_by"]) |
| 143 | if "created_at" in attributes: # pragma no branch |
| 144 | self._created_at = self._makeDatetimeAttribute(attributes["created_at"]) |
| 145 | if "enabled" in attributes: # pragma no branch |
| 146 | self._enabled = self._makeBoolAttribute(attributes["enabled"]) |
| 147 | if "id" in attributes: # pragma no branch |
| 148 | self._id = self._makeIntAttribute(attributes["id"]) |
| 149 | elif "url" in attributes and attributes["url"]: |
| 150 | id = attributes["url"].split("/")[-1] |
| 151 | if id.isnumeric(): |
| 152 | self._id = self._makeIntAttribute(int(id)) |
| 153 | if "key" in attributes: # pragma no branch |
| 154 | self._key = self._makeStringAttribute(attributes["key"]) |
| 155 | if "last_used" in attributes: # pragma no branch |
| 156 | assert attributes["last_used"] is None or isinstance(attributes["last_used"], str), attributes["last_used"] |
| 157 | self._last_used = self._makeDatetimeAttribute(attributes["last_used"]) |
| 158 | if "read_only" in attributes: # pragma no branch |
| 159 | self._read_only = self._makeBoolAttribute(attributes["read_only"]) |
| 160 | if "title" in attributes: # pragma no branch |
| 161 | self._title = self._makeStringAttribute(attributes["title"]) |
| 162 | if "url" in attributes: # pragma no branch |
| 163 | self._url = self._makeStringAttribute(attributes["url"]) |
| 164 | if "verified" in attributes: # pragma no branch |
| 165 | self._verified = self._makeBoolAttribute(attributes["verified"]) |
nothing calls this directly
no test coverage detected