MCPcopy
hub / github.com/PyGithub/PyGithub / _useAttributes

Method _useAttributes

github/SelfHostedActionsRunner.py:105–121  ·  view source on GitHub ↗
(self, attributes: dict[str, Any])

Source from the content-addressed store, hash-verified

103 return self._status.value
104
105 def _useAttributes(self, attributes: dict[str, Any]) -> None:
106 if "busy" in attributes:
107 self._busy = self._makeBoolAttribute(attributes["busy"])
108 if "ephemeral" in attributes: # pragma no branch
109 self._ephemeral = self._makeBoolAttribute(attributes["ephemeral"])
110 if "id" in attributes: # pragma no branch
111 self._id = self._makeIntAttribute(attributes["id"])
112 if "labels" in attributes:
113 self._labels = self._makeListOfDictsAttribute(attributes["labels"])
114 if "name" in attributes: # pragma no branch
115 self._name = self._makeStringAttribute(attributes["name"])
116 if "os" in attributes: # pragma no branch
117 self._os = self._makeStringAttribute(attributes["os"])
118 if "runner_group_id" in attributes: # pragma no branch
119 self._runner_group_id = self._makeIntAttribute(attributes["runner_group_id"])
120 if "status" in attributes: # pragma no branch
121 self._status = self._makeStringAttribute(attributes["status"])

Callers

nothing calls this directly

Calls 4

_makeBoolAttributeMethod · 0.80
_makeIntAttributeMethod · 0.80
_makeStringAttributeMethod · 0.80

Tested by

no test coverage detected