24
24
get_async_library ,
25
25
)
26
26
from ._version import __version__
27
- from .resources import (
28
- tasks ,
29
- editors ,
30
- projects ,
31
- services ,
32
- environments ,
33
- automations_files ,
34
- environment_classes ,
35
- personal_access_tokens ,
36
- )
27
+ from .resources import editors , projects , automations_files , environment_classes , personal_access_tokens
37
28
from ._streaming import Stream as Stream , AsyncStream as AsyncStream
38
29
from ._exceptions import APIStatusError
39
30
from ._base_client import (
42
33
AsyncAPIClient ,
43
34
)
44
35
from .resources .runners import runners
36
+ from .resources .environments import environments
45
37
from .resources .organizations import organizations
46
- from .resources .runner_interactions import runner_interactions
47
38
from .resources .runner_configurations import runner_configurations
48
- from .resources .environment_automations import environment_automations
49
39
50
40
__all__ = ["Timeout" , "Transport" , "ProxiesTypes" , "RequestOptions" , "Gitpod" , "AsyncGitpod" , "Client" , "AsyncClient" ]
51
41
52
42
53
43
class Gitpod (SyncAPIClient ):
54
- services : services .ServicesResource
55
44
automations_files : automations_files .AutomationsFilesResource
56
- tasks : tasks .TasksResource
57
45
editors : editors .EditorsResource
58
- environment_automations : environment_automations .EnvironmentAutomationsResource
59
46
environments : environments .EnvironmentsResource
60
47
environment_classes : environment_classes .EnvironmentClassesResource
61
48
organizations : organizations .OrganizationsResource
62
49
projects : projects .ProjectsResource
63
50
runner_configurations : runner_configurations .RunnerConfigurationsResource
64
- runner_interactions : runner_interactions .RunnerInteractionsResource
65
51
runners : runners .RunnersResource
66
52
personal_access_tokens : personal_access_tokens .PersonalAccessTokensResource
67
53
with_raw_response : GitpodWithRawResponse
@@ -108,17 +94,13 @@ def __init__(
108
94
_strict_response_validation = _strict_response_validation ,
109
95
)
110
96
111
- self .services = services .ServicesResource (self )
112
97
self .automations_files = automations_files .AutomationsFilesResource (self )
113
- self .tasks = tasks .TasksResource (self )
114
98
self .editors = editors .EditorsResource (self )
115
- self .environment_automations = environment_automations .EnvironmentAutomationsResource (self )
116
99
self .environments = environments .EnvironmentsResource (self )
117
100
self .environment_classes = environment_classes .EnvironmentClassesResource (self )
118
101
self .organizations = organizations .OrganizationsResource (self )
119
102
self .projects = projects .ProjectsResource (self )
120
103
self .runner_configurations = runner_configurations .RunnerConfigurationsResource (self )
121
- self .runner_interactions = runner_interactions .RunnerInteractionsResource (self )
122
104
self .runners = runners .RunnersResource (self )
123
105
self .personal_access_tokens = personal_access_tokens .PersonalAccessTokensResource (self )
124
106
self .with_raw_response = GitpodWithRawResponse (self )
@@ -222,17 +204,13 @@ def _make_status_error(
222
204
223
205
224
206
class AsyncGitpod (AsyncAPIClient ):
225
- services : services .AsyncServicesResource
226
207
automations_files : automations_files .AsyncAutomationsFilesResource
227
- tasks : tasks .AsyncTasksResource
228
208
editors : editors .AsyncEditorsResource
229
- environment_automations : environment_automations .AsyncEnvironmentAutomationsResource
230
209
environments : environments .AsyncEnvironmentsResource
231
210
environment_classes : environment_classes .AsyncEnvironmentClassesResource
232
211
organizations : organizations .AsyncOrganizationsResource
233
212
projects : projects .AsyncProjectsResource
234
213
runner_configurations : runner_configurations .AsyncRunnerConfigurationsResource
235
- runner_interactions : runner_interactions .AsyncRunnerInteractionsResource
236
214
runners : runners .AsyncRunnersResource
237
215
personal_access_tokens : personal_access_tokens .AsyncPersonalAccessTokensResource
238
216
with_raw_response : AsyncGitpodWithRawResponse
@@ -279,17 +257,13 @@ def __init__(
279
257
_strict_response_validation = _strict_response_validation ,
280
258
)
281
259
282
- self .services = services .AsyncServicesResource (self )
283
260
self .automations_files = automations_files .AsyncAutomationsFilesResource (self )
284
- self .tasks = tasks .AsyncTasksResource (self )
285
261
self .editors = editors .AsyncEditorsResource (self )
286
- self .environment_automations = environment_automations .AsyncEnvironmentAutomationsResource (self )
287
262
self .environments = environments .AsyncEnvironmentsResource (self )
288
263
self .environment_classes = environment_classes .AsyncEnvironmentClassesResource (self )
289
264
self .organizations = organizations .AsyncOrganizationsResource (self )
290
265
self .projects = projects .AsyncProjectsResource (self )
291
266
self .runner_configurations = runner_configurations .AsyncRunnerConfigurationsResource (self )
292
- self .runner_interactions = runner_interactions .AsyncRunnerInteractionsResource (self )
293
267
self .runners = runners .AsyncRunnersResource (self )
294
268
self .personal_access_tokens = personal_access_tokens .AsyncPersonalAccessTokensResource (self )
295
269
self .with_raw_response = AsyncGitpodWithRawResponse (self )
@@ -394,13 +368,8 @@ def _make_status_error(
394
368
395
369
class GitpodWithRawResponse :
396
370
def __init__ (self , client : Gitpod ) -> None :
397
- self .services = services .ServicesResourceWithRawResponse (client .services )
398
371
self .automations_files = automations_files .AutomationsFilesResourceWithRawResponse (client .automations_files )
399
- self .tasks = tasks .TasksResourceWithRawResponse (client .tasks )
400
372
self .editors = editors .EditorsResourceWithRawResponse (client .editors )
401
- self .environment_automations = environment_automations .EnvironmentAutomationsResourceWithRawResponse (
402
- client .environment_automations
403
- )
404
373
self .environments = environments .EnvironmentsResourceWithRawResponse (client .environments )
405
374
self .environment_classes = environment_classes .EnvironmentClassesResourceWithRawResponse (
406
375
client .environment_classes
@@ -410,9 +379,6 @@ def __init__(self, client: Gitpod) -> None:
410
379
self .runner_configurations = runner_configurations .RunnerConfigurationsResourceWithRawResponse (
411
380
client .runner_configurations
412
381
)
413
- self .runner_interactions = runner_interactions .RunnerInteractionsResourceWithRawResponse (
414
- client .runner_interactions
415
- )
416
382
self .runners = runners .RunnersResourceWithRawResponse (client .runners )
417
383
self .personal_access_tokens = personal_access_tokens .PersonalAccessTokensResourceWithRawResponse (
418
384
client .personal_access_tokens
@@ -421,15 +387,10 @@ def __init__(self, client: Gitpod) -> None:
421
387
422
388
class AsyncGitpodWithRawResponse :
423
389
def __init__ (self , client : AsyncGitpod ) -> None :
424
- self .services = services .AsyncServicesResourceWithRawResponse (client .services )
425
390
self .automations_files = automations_files .AsyncAutomationsFilesResourceWithRawResponse (
426
391
client .automations_files
427
392
)
428
- self .tasks = tasks .AsyncTasksResourceWithRawResponse (client .tasks )
429
393
self .editors = editors .AsyncEditorsResourceWithRawResponse (client .editors )
430
- self .environment_automations = environment_automations .AsyncEnvironmentAutomationsResourceWithRawResponse (
431
- client .environment_automations
432
- )
433
394
self .environments = environments .AsyncEnvironmentsResourceWithRawResponse (client .environments )
434
395
self .environment_classes = environment_classes .AsyncEnvironmentClassesResourceWithRawResponse (
435
396
client .environment_classes
@@ -439,9 +400,6 @@ def __init__(self, client: AsyncGitpod) -> None:
439
400
self .runner_configurations = runner_configurations .AsyncRunnerConfigurationsResourceWithRawResponse (
440
401
client .runner_configurations
441
402
)
442
- self .runner_interactions = runner_interactions .AsyncRunnerInteractionsResourceWithRawResponse (
443
- client .runner_interactions
444
- )
445
403
self .runners = runners .AsyncRunnersResourceWithRawResponse (client .runners )
446
404
self .personal_access_tokens = personal_access_tokens .AsyncPersonalAccessTokensResourceWithRawResponse (
447
405
client .personal_access_tokens
@@ -450,15 +408,10 @@ def __init__(self, client: AsyncGitpod) -> None:
450
408
451
409
class GitpodWithStreamedResponse :
452
410
def __init__ (self , client : Gitpod ) -> None :
453
- self .services = services .ServicesResourceWithStreamingResponse (client .services )
454
411
self .automations_files = automations_files .AutomationsFilesResourceWithStreamingResponse (
455
412
client .automations_files
456
413
)
457
- self .tasks = tasks .TasksResourceWithStreamingResponse (client .tasks )
458
414
self .editors = editors .EditorsResourceWithStreamingResponse (client .editors )
459
- self .environment_automations = environment_automations .EnvironmentAutomationsResourceWithStreamingResponse (
460
- client .environment_automations
461
- )
462
415
self .environments = environments .EnvironmentsResourceWithStreamingResponse (client .environments )
463
416
self .environment_classes = environment_classes .EnvironmentClassesResourceWithStreamingResponse (
464
417
client .environment_classes
@@ -468,9 +421,6 @@ def __init__(self, client: Gitpod) -> None:
468
421
self .runner_configurations = runner_configurations .RunnerConfigurationsResourceWithStreamingResponse (
469
422
client .runner_configurations
470
423
)
471
- self .runner_interactions = runner_interactions .RunnerInteractionsResourceWithStreamingResponse (
472
- client .runner_interactions
473
- )
474
424
self .runners = runners .RunnersResourceWithStreamingResponse (client .runners )
475
425
self .personal_access_tokens = personal_access_tokens .PersonalAccessTokensResourceWithStreamingResponse (
476
426
client .personal_access_tokens
@@ -479,15 +429,10 @@ def __init__(self, client: Gitpod) -> None:
479
429
480
430
class AsyncGitpodWithStreamedResponse :
481
431
def __init__ (self , client : AsyncGitpod ) -> None :
482
- self .services = services .AsyncServicesResourceWithStreamingResponse (client .services )
483
432
self .automations_files = automations_files .AsyncAutomationsFilesResourceWithStreamingResponse (
484
433
client .automations_files
485
434
)
486
- self .tasks = tasks .AsyncTasksResourceWithStreamingResponse (client .tasks )
487
435
self .editors = editors .AsyncEditorsResourceWithStreamingResponse (client .editors )
488
- self .environment_automations = environment_automations .AsyncEnvironmentAutomationsResourceWithStreamingResponse (
489
- client .environment_automations
490
- )
491
436
self .environments = environments .AsyncEnvironmentsResourceWithStreamingResponse (client .environments )
492
437
self .environment_classes = environment_classes .AsyncEnvironmentClassesResourceWithStreamingResponse (
493
438
client .environment_classes
@@ -497,9 +442,6 @@ def __init__(self, client: AsyncGitpod) -> None:
497
442
self .runner_configurations = runner_configurations .AsyncRunnerConfigurationsResourceWithStreamingResponse (
498
443
client .runner_configurations
499
444
)
500
- self .runner_interactions = runner_interactions .AsyncRunnerInteractionsResourceWithStreamingResponse (
501
- client .runner_interactions
502
- )
503
445
self .runners = runners .AsyncRunnersResourceWithStreamingResponse (client .runners )
504
446
self .personal_access_tokens = personal_access_tokens .AsyncPersonalAccessTokensResourceWithStreamingResponse (
505
447
client .personal_access_tokens
0 commit comments