Skip to content

Commit c9288d5

Browse files
chore(internal): codegen related update
1 parent 2273048 commit c9288d5

9 files changed

+159
-16
lines changed

Diff for: tests/api_resources/environment_automations/test_task_executions.py

+4
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ def test_method_update_task_execution_status_with_all_params(self, client: Gitpo
252252
task_execution = client.environment_automations.task_executions.update_task_execution_status(
253253
body={
254254
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
255+
"failureMessage": "failureMessage",
256+
"logUrl": "logUrl",
255257
"steps": [
256258
{
257259
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
@@ -525,6 +527,8 @@ async def test_method_update_task_execution_status_with_all_params(self, async_c
525527
task_execution = await async_client.environment_automations.task_executions.update_task_execution_status(
526528
body={
527529
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
530+
"failureMessage": "failureMessage",
531+
"logUrl": "logUrl",
528532
"steps": [
529533
{
530534
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",

Diff for: tests/api_resources/runner_configurations/test_environment_classes.py

+4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ def test_method_update_with_all_params(self, client: Gitpod) -> None:
3232
environment_class = client.runner_configurations.environment_classes.update(
3333
body={
3434
"description": "xxx",
35+
"displayName": "xxx",
3536
"enabled": True,
37+
"environmentClassId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
3638
},
3739
connect_protocol_version=1,
3840
connect_timeout_ms=0,
@@ -126,7 +128,9 @@ async def test_method_update_with_all_params(self, async_client: AsyncGitpod) ->
126128
environment_class = await async_client.runner_configurations.environment_classes.update(
127129
body={
128130
"description": "xxx",
131+
"displayName": "xxx",
129132
"enabled": True,
133+
"environmentClassId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
130134
},
131135
connect_protocol_version=1,
132136
connect_timeout_ms=0,

Diff for: tests/api_resources/runner_configurations/test_scm_integration.py

+8
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
3030
scm_integration = client.runner_configurations.scm_integration.create(
3131
body={
3232
"host": "host",
33+
"oauthClientId": "oauthClientId",
34+
"oauthPlaintextClientSecret": "oauthPlaintextClientSecret",
3335
"pat": True,
36+
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
37+
"scmId": "scmId",
3438
},
3539
connect_protocol_version=1,
3640
connect_timeout_ms=0,
@@ -80,7 +84,11 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
8084
scm_integration = await async_client.runner_configurations.scm_integration.create(
8185
body={
8286
"host": "host",
87+
"oauthClientId": "oauthClientId",
88+
"oauthPlaintextClientSecret": "oauthPlaintextClientSecret",
8389
"pat": True,
90+
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
91+
"scmId": "scmId",
8492
},
8593
connect_protocol_version=1,
8694
connect_timeout_ms=0,

Diff for: tests/api_resources/test_environments.py

+24-4
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
4545
"initializer": {
4646
"specs": [
4747
{
48+
"contextUrl": {"url": "https://example.com"},
4849
"git": {
4950
"checkout_location": "checkoutLocation",
5051
"clone_target": "cloneTarget",
5152
"remote_uri": "remoteUri",
5253
"target_mode": "CLONE_TARGET_MODE_UNSPECIFIED",
5354
"upstream_remote_uri": "upstreamRemoteUri",
54-
}
55+
},
5556
}
5657
]
5758
},
@@ -75,8 +76,12 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
7576
],
7677
"secrets": [
7778
{
79+
"environmentVariable": "environmentVariable",
80+
"filePath": "filePath",
81+
"gitCredentialHost": "gitCredentialHost",
7882
"name": "name",
7983
"source": "source",
84+
"sourceRef": "sourceRef",
8085
}
8186
],
8287
"spec_version": "string",
@@ -230,13 +235,14 @@ def test_method_create_from_project_with_all_params(self, client: Gitpod) -> Non
230235
"initializer": {
231236
"specs": [
232237
{
238+
"contextUrl": {"url": "https://example.com"},
233239
"git": {
234240
"checkout_location": "checkoutLocation",
235241
"clone_target": "cloneTarget",
236242
"remote_uri": "remoteUri",
237243
"target_mode": "CLONE_TARGET_MODE_UNSPECIFIED",
238244
"upstream_remote_uri": "upstreamRemoteUri",
239-
}
245+
},
240246
}
241247
]
242248
},
@@ -260,8 +266,12 @@ def test_method_create_from_project_with_all_params(self, client: Gitpod) -> Non
260266
],
261267
"secrets": [
262268
{
269+
"environmentVariable": "environmentVariable",
270+
"filePath": "filePath",
271+
"gitCredentialHost": "gitCredentialHost",
263272
"name": "name",
264273
"source": "source",
274+
"sourceRef": "sourceRef",
265275
}
266276
],
267277
"spec_version": "string",
@@ -368,13 +378,14 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
368378
"initializer": {
369379
"specs": [
370380
{
381+
"contextUrl": {"url": "https://example.com"},
371382
"git": {
372383
"checkout_location": "checkoutLocation",
373384
"clone_target": "cloneTarget",
374385
"remote_uri": "remoteUri",
375386
"target_mode": "CLONE_TARGET_MODE_UNSPECIFIED",
376387
"upstream_remote_uri": "upstreamRemoteUri",
377-
}
388+
},
378389
}
379390
]
380391
},
@@ -398,8 +409,12 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
398409
],
399410
"secrets": [
400411
{
412+
"environmentVariable": "environmentVariable",
413+
"filePath": "filePath",
414+
"gitCredentialHost": "gitCredentialHost",
401415
"name": "name",
402416
"source": "source",
417+
"sourceRef": "sourceRef",
403418
}
404419
],
405420
"spec_version": "string",
@@ -553,13 +568,14 @@ async def test_method_create_from_project_with_all_params(self, async_client: As
553568
"initializer": {
554569
"specs": [
555570
{
571+
"contextUrl": {"url": "https://example.com"},
556572
"git": {
557573
"checkout_location": "checkoutLocation",
558574
"clone_target": "cloneTarget",
559575
"remote_uri": "remoteUri",
560576
"target_mode": "CLONE_TARGET_MODE_UNSPECIFIED",
561577
"upstream_remote_uri": "upstreamRemoteUri",
562-
}
578+
},
563579
}
564580
]
565581
},
@@ -583,8 +599,12 @@ async def test_method_create_from_project_with_all_params(self, async_client: As
583599
],
584600
"secrets": [
585601
{
602+
"environmentVariable": "environmentVariable",
603+
"filePath": "filePath",
604+
"gitCredentialHost": "gitCredentialHost",
586605
"name": "name",
587606
"source": "source",
607+
"sourceRef": "sourceRef",
588608
}
589609
],
590610
"spec_version": "string",

Diff for: tests/api_resources/test_projects.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
3737
initializer={
3838
"specs": [
3939
{
40+
"contextUrl": {"url": "https://example.com"},
4041
"git": {
4142
"checkout_location": "checkoutLocation",
4243
"clone_target": "cloneTarget",
4344
"remote_uri": "remoteUri",
4445
"target_mode": "CLONE_TARGET_MODE_UNSPECIFIED",
4546
"upstream_remote_uri": "upstreamRemoteUri",
46-
}
47+
},
4748
}
4849
]
4950
},
@@ -188,13 +189,14 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
188189
initializer={
189190
"specs": [
190191
{
192+
"contextUrl": {"url": "https://example.com"},
191193
"git": {
192194
"checkout_location": "checkoutLocation",
193195
"clone_target": "cloneTarget",
194196
"remote_uri": "remoteUri",
195197
"target_mode": "CLONE_TARGET_MODE_UNSPECIFIED",
196198
"upstream_remote_uri": "upstreamRemoteUri",
197-
}
199+
},
198200
}
199201
]
200202
},

Diff for: tests/api_resources/test_runner_configurations.py

+34-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,23 @@ def test_method_validate(self, client: Gitpod) -> None:
2828
@parametrize
2929
def test_method_validate_with_all_params(self, client: Gitpod) -> None:
3030
runner_configuration = client.runner_configurations.validate(
31-
body={},
31+
body={
32+
"environmentClass": {
33+
"id": "id",
34+
"configuration": [
35+
{
36+
"key": "key",
37+
"value": "value",
38+
}
39+
],
40+
"description": "xxx",
41+
"display_name": "xxx",
42+
"enabled": True,
43+
"runner_id": "runnerId",
44+
},
45+
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
46+
"scmIntegration": {},
47+
},
3248
connect_protocol_version=1,
3349
connect_timeout_ms=0,
3450
)
@@ -75,7 +91,23 @@ async def test_method_validate(self, async_client: AsyncGitpod) -> None:
7591
@parametrize
7692
async def test_method_validate_with_all_params(self, async_client: AsyncGitpod) -> None:
7793
runner_configuration = await async_client.runner_configurations.validate(
78-
body={},
94+
body={
95+
"environmentClass": {
96+
"id": "id",
97+
"configuration": [
98+
{
99+
"key": "key",
100+
"value": "value",
101+
}
102+
],
103+
"description": "xxx",
104+
"display_name": "xxx",
105+
"enabled": True,
106+
"runner_id": "runnerId",
107+
},
108+
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
109+
"scmIntegration": {},
110+
},
79111
connect_protocol_version=1,
80112
connect_timeout_ms=0,
81113
)

Diff for: tests/api_resources/test_runner_interactions.py

+72-2
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,29 @@ def test_method_send_response(self, client: Gitpod) -> None:
267267
def test_method_send_response_with_all_params(self, client: Gitpod) -> None:
268268
runner_interaction = client.runner_interactions.send_response(
269269
body={
270+
"callCheckAuthenticationForHost": {
271+
"resp": {
272+
"authenticated": True,
273+
"authentication_url": "authenticationUrl",
274+
"pat_supported": True,
275+
}
276+
},
277+
"callParseContext": {
278+
"resp": {
279+
"git": {
280+
"branch": "branch",
281+
"clone_url": "cloneUrl",
282+
"commit": "commit",
283+
"host": "host",
284+
"owner": "owner",
285+
"repo": "repo",
286+
"upstream_remote_url": "upstreamRemoteUrl",
287+
},
288+
"original_context_url": "originalContextUrl",
289+
}
290+
},
291+
"callPing": {},
292+
"callValidateConfig": {},
270293
"error": {
271294
"code": "ERROR_CODE_UNSPECIFIED",
272295
"details": [
@@ -277,7 +300,9 @@ def test_method_send_response_with_all_params(self, client: Gitpod) -> None:
277300
}
278301
],
279302
"message": "message",
280-
}
303+
},
304+
"requestId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
305+
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
281306
},
282307
connect_protocol_version=1,
283308
connect_timeout_ms=0,
@@ -480,7 +505,17 @@ def test_method_update_status(self, client: Gitpod) -> None:
480505
def test_method_update_status_with_all_params(self, client: Gitpod) -> None:
481506
runner_interaction = client.runner_interactions.update_status(
482507
body={
508+
"additionalInfo": [
509+
{
510+
"key": "key",
511+
"value": "value",
512+
}
513+
],
514+
"degredationMessage": "degredationMessage",
515+
"logUrl": "https://example.com",
483516
"region": "region",
517+
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
518+
"systemDetails": "systemDetails",
484519
"version": "version",
485520
},
486521
connect_protocol_version=1,
@@ -762,6 +797,29 @@ async def test_method_send_response(self, async_client: AsyncGitpod) -> None:
762797
async def test_method_send_response_with_all_params(self, async_client: AsyncGitpod) -> None:
763798
runner_interaction = await async_client.runner_interactions.send_response(
764799
body={
800+
"callCheckAuthenticationForHost": {
801+
"resp": {
802+
"authenticated": True,
803+
"authentication_url": "authenticationUrl",
804+
"pat_supported": True,
805+
}
806+
},
807+
"callParseContext": {
808+
"resp": {
809+
"git": {
810+
"branch": "branch",
811+
"clone_url": "cloneUrl",
812+
"commit": "commit",
813+
"host": "host",
814+
"owner": "owner",
815+
"repo": "repo",
816+
"upstream_remote_url": "upstreamRemoteUrl",
817+
},
818+
"original_context_url": "originalContextUrl",
819+
}
820+
},
821+
"callPing": {},
822+
"callValidateConfig": {},
765823
"error": {
766824
"code": "ERROR_CODE_UNSPECIFIED",
767825
"details": [
@@ -772,7 +830,9 @@ async def test_method_send_response_with_all_params(self, async_client: AsyncGit
772830
}
773831
],
774832
"message": "message",
775-
}
833+
},
834+
"requestId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
835+
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
776836
},
777837
connect_protocol_version=1,
778838
connect_timeout_ms=0,
@@ -975,7 +1035,17 @@ async def test_method_update_status(self, async_client: AsyncGitpod) -> None:
9751035
async def test_method_update_status_with_all_params(self, async_client: AsyncGitpod) -> None:
9761036
runner_interaction = await async_client.runner_interactions.update_status(
9771037
body={
1038+
"additionalInfo": [
1039+
{
1040+
"key": "key",
1041+
"value": "value",
1042+
}
1043+
],
1044+
"degredationMessage": "degredationMessage",
1045+
"logUrl": "https://example.com",
9781046
"region": "region",
1047+
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
1048+
"systemDetails": "systemDetails",
9791049
"version": "version",
9801050
},
9811051
connect_protocol_version=1,

Diff for: tests/api_resources/test_runners.py

+2
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ def test_method_update_runner_with_all_params(self, client: Gitpod) -> None:
381381
runner = client.runners.update_runner(
382382
body={
383383
"name": "xxx",
384+
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
384385
"spec": {},
385386
},
386387
connect_protocol_version=1,
@@ -774,6 +775,7 @@ async def test_method_update_runner_with_all_params(self, async_client: AsyncGit
774775
runner = await async_client.runners.update_runner(
775776
body={
776777
"name": "xxx",
778+
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
777779
"spec": {},
778780
},
779781
connect_protocol_version=1,

0 commit comments

Comments
 (0)