(self, attributes: dict[str, Any])
| 233 | ) |
| 234 | |
| 235 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 236 | if "archive_url" in attributes: # pragma no branch |
| 237 | self._archive_url = self._makeStringAttribute(attributes["archive_url"]) |
| 238 | if "created_at" in attributes: |
| 239 | self._created_at = self._makeDatetimeAttribute(attributes["created_at"]) |
| 240 | if "exclude" in attributes: # pragma no branch |
| 241 | self._exclude = self._makeListOfStringsAttribute(attributes["exclude"]) |
| 242 | if "exclude_attachments" in attributes: |
| 243 | self._exclude_attachments = self._makeBoolAttribute(attributes["exclude_attachments"]) |
| 244 | if "exclude_git_data" in attributes: # pragma no branch |
| 245 | self._exclude_git_data = self._makeBoolAttribute(attributes["exclude_git_data"]) |
| 246 | if "exclude_metadata" in attributes: # pragma no branch |
| 247 | self._exclude_metadata = self._makeBoolAttribute(attributes["exclude_metadata"]) |
| 248 | if "exclude_owner_projects" in attributes: # pragma no branch |
| 249 | self._exclude_owner_projects = self._makeBoolAttribute(attributes["exclude_owner_projects"]) |
| 250 | if "exclude_releases" in attributes: # pragma no branch |
| 251 | self._exclude_releases = self._makeBoolAttribute(attributes["exclude_releases"]) |
| 252 | if "guid" in attributes: |
| 253 | self._guid = self._makeStringAttribute(attributes["guid"]) |
| 254 | if "id" in attributes: |
| 255 | self._id = self._makeIntAttribute(attributes["id"]) |
| 256 | if "lock_repositories" in attributes: |
| 257 | self._lock_repositories = self._makeBoolAttribute(attributes["lock_repositories"]) |
| 258 | if "node_id" in attributes: # pragma no branch |
| 259 | self._node_id = self._makeStringAttribute(attributes["node_id"]) |
| 260 | if "org_metadata_only" in attributes: # pragma no branch |
| 261 | self._org_metadata_only = self._makeBoolAttribute(attributes["org_metadata_only"]) |
| 262 | if "owner" in attributes: |
| 263 | self._owner = self._makeUnionClassAttributeFromTypeKey( |
| 264 | "type", |
| 265 | "User", |
| 266 | attributes["owner"], |
| 267 | (github.NamedUser.NamedUser, "User"), |
| 268 | (github.Organization.Organization, "Organization"), |
| 269 | ) |
| 270 | if "repositories" in attributes: |
| 271 | self._repositories = self._makeListOfClassesAttribute( |
| 272 | github.Repository.Repository, attributes["repositories"] |
| 273 | ) |
| 274 | if "state" in attributes: |
| 275 | self._state = self._makeStringAttribute(attributes["state"]) |
| 276 | if "updated_at" in attributes: |
| 277 | self._updated_at = self._makeDatetimeAttribute(attributes["updated_at"]) |
| 278 | if "url" in attributes: |
| 279 | self._url = self._makeStringAttribute(attributes["url"]) |
no test coverage detected