Skip to content

Commit 00778fe

Browse files
chore: add missing docstrings
1 parent cea547d commit 00778fe

40 files changed

+191
-0
lines changed

src/gitpod/types/account_list_login_providers_params.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ class AccountListLoginProvidersParams(TypedDict, total=False):
2222

2323

2424
class Filter(TypedDict, total=False):
25+
"""filter contains the filter options for listing login methods"""
26+
2527
invite_id: Annotated[str, PropertyInfo(alias="inviteId")]
2628
"""invite_id is the ID of the invite URL the user wants to login with"""
2729

2830

2931
class Pagination(TypedDict, total=False):
32+
"""pagination contains the pagination options for listing login methods"""
33+
3034
token: str
3135
"""
3236
Token for the next set of results that was returned as next_token of a

src/gitpod/types/editor_list_params.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class EditorListParams(TypedDict, total=False):
2222

2323

2424
class Filter(TypedDict, total=False):
25+
"""filter contains the filter options for listing editors"""
26+
2527
allowed_by_policy: Annotated[bool, PropertyInfo(alias="allowedByPolicy")]
2628
"""
2729
allowed_by_policy filters the response to only editors that are allowed by the
@@ -30,6 +32,8 @@ class Filter(TypedDict, total=False):
3032

3133

3234
class Pagination(TypedDict, total=False):
35+
"""pagination contains the pagination options for listing environments"""
36+
3337
token: str
3438
"""
3539
Token for the next set of results that was returned as next_token of a

src/gitpod/types/environment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212

1313
class Environment(BaseModel):
14+
"""+resource get environment"""
15+
1416
id: str
1517
"""ID is a unique identifier of this environment.
1618

src/gitpod/types/environment_activity_signal.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010

1111
class EnvironmentActivitySignal(BaseModel):
12+
"""EnvironmentActivitySignal used to signal activity for an environment."""
13+
1214
source: Optional[str] = None
1315
"""
1416
source of the activity signal, such as "VS Code", "SSH", or "Automations". It

src/gitpod/types/environment_activity_signal_param.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313

1414
class EnvironmentActivitySignalParam(TypedDict, total=False):
15+
"""EnvironmentActivitySignal used to signal activity for an environment."""
16+
1517
source: str
1618
"""
1719
source of the activity signal, such as "VS Code", "SSH", or "Automations". It

src/gitpod/types/environment_initializer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,6 @@ class Spec(BaseModel):
4949

5050

5151
class EnvironmentInitializer(BaseModel):
52+
"""EnvironmentInitializer specifies how an environment is to be initialized"""
53+
5254
specs: Optional[List[Spec]] = None

src/gitpod/types/environment_initializer_param.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,6 @@ class Spec(TypedDict, total=False):
5050

5151

5252
class EnvironmentInitializerParam(TypedDict, total=False):
53+
"""EnvironmentInitializer specifies how an environment is to be initialized"""
54+
5355
specs: Iterable[Spec]

src/gitpod/types/environment_list_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ class Filter(TypedDict, total=False):
6969

7070

7171
class Pagination(TypedDict, total=False):
72+
"""pagination contains the pagination options for listing environments"""
73+
7274
token: str
7375
"""
7476
Token for the next set of results that was returned as next_token of a

src/gitpod/types/environment_metadata.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212

1313

1414
class EnvironmentMetadata(BaseModel):
15+
"""
16+
EnvironmentMetadata is data associated with an environment that's required for
17+
other parts of the system to function
18+
"""
19+
1520
annotations: Optional[Dict[str, str]] = None
1621
"""
1722
annotations are key/value pairs that gets attached to the environment.

src/gitpod/types/environment_spec.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525

2626
class AutomationsFile(BaseModel):
27+
"""automations_file is the automations file spec of the environment"""
28+
2729
automations_file_path: Optional[str] = FieldInfo(alias="automationsFilePath", default=None)
2830
"""
2931
automations_file_path is the path to the automations file that is applied in the
@@ -39,6 +41,8 @@ class AutomationsFile(BaseModel):
3941

4042

4143
class Content(BaseModel):
44+
"""content is the content spec of the environment"""
45+
4246
git_email: Optional[str] = FieldInfo(alias="gitEmail", default=None)
4347
"""The Git email address"""
4448

@@ -52,11 +56,15 @@ class Content(BaseModel):
5256

5357

5458
class DevcontainerDotfiles(BaseModel):
59+
"""Experimental: dotfiles is the dotfiles configuration of the devcontainer"""
60+
5561
repository: str
5662
"""URL of a dotfiles Git repository (e.g. https://github.com/owner/repository)"""
5763

5864

5965
class Devcontainer(BaseModel):
66+
"""devcontainer is the devcontainer spec of the environment"""
67+
6068
default_devcontainer_image: Optional[str] = FieldInfo(alias="defaultDevcontainerImage", default=None)
6169
"""
6270
default_devcontainer_image is the default image that is used to start the
@@ -80,6 +88,8 @@ class Devcontainer(BaseModel):
8088

8189

8290
class Machine(BaseModel):
91+
"""machine is the machine spec of the environment"""
92+
8393
class_: Optional[str] = FieldInfo(alias="class", default=None)
8494
"""Class denotes the class of the environment we ought to start"""
8595

@@ -139,6 +149,8 @@ class SSHPublicKey(BaseModel):
139149

140150

141151
class Timeout(BaseModel):
152+
"""Timeout configures the environment timeout"""
153+
142154
disconnected: Optional[str] = None
143155
"""
144156
inacitivity is the maximum time of disconnection before the environment is
@@ -147,6 +159,11 @@ class Timeout(BaseModel):
147159

148160

149161
class EnvironmentSpec(BaseModel):
162+
"""
163+
EnvironmentSpec specifies the configuration of an environment for an environment
164+
start
165+
"""
166+
150167
admission: Optional[AdmissionLevel] = None
151168
"""admission controlls who can access the environment and its ports."""
152169

0 commit comments

Comments
 (0)