-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrunner.py
More file actions
49 lines (34 loc) · 1.47 KB
/
runner.py
File metadata and controls
49 lines (34 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from datetime import datetime
from pydantic import Field as FieldInfo
from .._models import BaseModel
from .runner_kind import RunnerKind
from .runner_spec import RunnerSpec
from .runner_status import RunnerStatus
from .shared.subject import Subject
from .runner_provider import RunnerProvider
__all__ = ["Runner"]
class Runner(BaseModel):
created_at: Optional[datetime] = FieldInfo(alias="createdAt", default=None)
"""Time when the Runner was created."""
creator: Optional[Subject] = None
"""creator is the identity of the creator of the environment"""
kind: Optional[RunnerKind] = None
"""The runner's kind"""
name: Optional[str] = None
"""The runner's name which is shown to users"""
provider: Optional[RunnerProvider] = None
"""The runner's provider"""
runner_id: Optional[str] = FieldInfo(alias="runnerId", default=None)
runner_manager_id: Optional[str] = FieldInfo(alias="runnerManagerId", default=None)
"""
The runner manager id specifies the runner manager for the managed runner. This
field is only set for managed runners.
"""
spec: Optional[RunnerSpec] = None
"""The runner's specification"""
status: Optional[RunnerStatus] = None
"""The runner's status"""
updated_at: Optional[datetime] = FieldInfo(alias="updatedAt", default=None)
"""Time when the Runner was last udpated."""