@@ -53,6 +53,10 @@ def _initAttributes(self) -> None:
53
53
self ._status : Attribute [str ] = NotSet
54
54
self ._steps : Attribute [list [github .WorkflowStep .WorkflowStep ]] = NotSet
55
55
self ._url : Attribute [str ] = NotSet
56
+ self ._runner_id : Attribute [int ] = NotSet
57
+ self ._runner_name : Attribute [str ] = NotSet
58
+ self ._runner_group_id : Attribute [str ] = NotSet
59
+ self ._runner_group_name : Attribute [str ] = NotSet
56
60
57
61
def __repr__ (self ) -> str :
58
62
return self .get__repr__ ({"id" : self ._id .value , "url" : self ._url .value })
@@ -127,6 +131,26 @@ def url(self) -> str:
127
131
self ._completeIfNotSet (self ._url )
128
132
return self ._url .value
129
133
134
+ @property
135
+ def runner_id (self ) -> int :
136
+ self ._completeIfNotSet (self ._runner_id )
137
+ return self ._runner_id .value
138
+
139
+ @property
140
+ def runner_name (self ) -> str :
141
+ self ._completeIfNotSet (self ._runner_name )
142
+ return self ._runner_name .value
143
+
144
+ @property
145
+ def runner_group_id (self ) -> int :
146
+ self ._completeIfNotSet (self ._runner_group_id )
147
+ return self ._runner_group_id .value
148
+
149
+ @property
150
+ def runner_group_name (self ) -> str :
151
+ self ._completeIfNotSet (self ._runner_group_name )
152
+ return self ._runner_group_name .value
153
+
130
154
def logs_url (self ) -> str :
131
155
headers , _ = self ._requester .requestBlobAndCheck ("GET" , f"{ self .url } /logs" )
132
156
return headers ["location" ]
@@ -160,3 +184,11 @@ def _useAttributes(self, attributes: dict[str, Any]) -> None:
160
184
self ._steps = self ._makeListOfClassesAttribute (github .WorkflowStep .WorkflowStep , attributes ["steps" ])
161
185
if "url" in attributes : # pragma no branch
162
186
self ._url = self ._makeStringAttribute (attributes ["url" ])
187
+ if "runner_id" in attributes : # pragma no branch
188
+ self ._runner_id = self ._makeIntAttribute (attributes ["runner_id" ])
189
+ if "runner_name" in attributes : # pragma no branch
190
+ self ._runner_name = self ._makeStringAttribute (attributes ["runner_name" ])
191
+ if "runner_group_id" in attributes : # pragma no branch
192
+ self ._runner_group_id = self ._makeIntAttribute (attributes ["runner_group_id" ])
193
+ if "runner_group_name" in attributes : # pragma no branch
194
+ self ._runner_group_name = self ._makeStringAttribute (attributes ["runner_group_name" ])
0 commit comments