Skip to content

Commit 26b774b

Browse files
chore(internal): codegen related update
1 parent 0f3b621 commit 26b774b

9 files changed

+16
-159
lines changed

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

-4
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ 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",
257255
"steps": [
258256
{
259257
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
@@ -527,8 +525,6 @@ async def test_method_update_task_execution_status_with_all_params(self, async_c
527525
task_execution = await async_client.environment_automations.task_executions.update_task_execution_status(
528526
body={
529527
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
530-
"failureMessage": "failureMessage",
531-
"logUrl": "logUrl",
532528
"steps": [
533529
{
534530
"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,9 +32,7 @@ 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",
3635
"enabled": True,
37-
"environmentClassId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
3836
},
3937
connect_protocol_version=1,
4038
connect_timeout_ms=0,
@@ -128,9 +126,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncGitpod) ->
128126
environment_class = await async_client.runner_configurations.environment_classes.update(
129127
body={
130128
"description": "xxx",
131-
"displayName": "xxx",
132129
"enabled": True,
133-
"environmentClassId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
134130
},
135131
connect_protocol_version=1,
136132
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,11 +30,7 @@ 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",
3533
"pat": True,
36-
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
37-
"scmId": "scmId",
3834
},
3935
connect_protocol_version=1,
4036
connect_timeout_ms=0,
@@ -84,11 +80,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
8480
scm_integration = await async_client.runner_configurations.scm_integration.create(
8581
body={
8682
"host": "host",
87-
"oauthClientId": "oauthClientId",
88-
"oauthPlaintextClientSecret": "oauthPlaintextClientSecret",
8983
"pat": True,
90-
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
91-
"scmId": "scmId",
9284
},
9385
connect_protocol_version=1,
9486
connect_timeout_ms=0,

Diff for: tests/api_resources/test_environments.py

+4-24
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,13 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
4545
"initializer": {
4646
"specs": [
4747
{
48-
"contextUrl": {"url": "https://example.com"},
4948
"git": {
5049
"checkout_location": "checkoutLocation",
5150
"clone_target": "cloneTarget",
5251
"remote_uri": "remoteUri",
5352
"target_mode": "CLONE_TARGET_MODE_UNSPECIFIED",
5453
"upstream_remote_uri": "upstreamRemoteUri",
55-
},
54+
}
5655
}
5756
]
5857
},
@@ -76,12 +75,8 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
7675
],
7776
"secrets": [
7877
{
79-
"environmentVariable": "environmentVariable",
80-
"filePath": "filePath",
81-
"gitCredentialHost": "gitCredentialHost",
8278
"name": "name",
8379
"source": "source",
84-
"sourceRef": "sourceRef",
8580
}
8681
],
8782
"spec_version": "string",
@@ -235,14 +230,13 @@ def test_method_create_from_project_with_all_params(self, client: Gitpod) -> Non
235230
"initializer": {
236231
"specs": [
237232
{
238-
"contextUrl": {"url": "https://example.com"},
239233
"git": {
240234
"checkout_location": "checkoutLocation",
241235
"clone_target": "cloneTarget",
242236
"remote_uri": "remoteUri",
243237
"target_mode": "CLONE_TARGET_MODE_UNSPECIFIED",
244238
"upstream_remote_uri": "upstreamRemoteUri",
245-
},
239+
}
246240
}
247241
]
248242
},
@@ -266,12 +260,8 @@ def test_method_create_from_project_with_all_params(self, client: Gitpod) -> Non
266260
],
267261
"secrets": [
268262
{
269-
"environmentVariable": "environmentVariable",
270-
"filePath": "filePath",
271-
"gitCredentialHost": "gitCredentialHost",
272263
"name": "name",
273264
"source": "source",
274-
"sourceRef": "sourceRef",
275265
}
276266
],
277267
"spec_version": "string",
@@ -378,14 +368,13 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
378368
"initializer": {
379369
"specs": [
380370
{
381-
"contextUrl": {"url": "https://example.com"},
382371
"git": {
383372
"checkout_location": "checkoutLocation",
384373
"clone_target": "cloneTarget",
385374
"remote_uri": "remoteUri",
386375
"target_mode": "CLONE_TARGET_MODE_UNSPECIFIED",
387376
"upstream_remote_uri": "upstreamRemoteUri",
388-
},
377+
}
389378
}
390379
]
391380
},
@@ -409,12 +398,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
409398
],
410399
"secrets": [
411400
{
412-
"environmentVariable": "environmentVariable",
413-
"filePath": "filePath",
414-
"gitCredentialHost": "gitCredentialHost",
415401
"name": "name",
416402
"source": "source",
417-
"sourceRef": "sourceRef",
418403
}
419404
],
420405
"spec_version": "string",
@@ -568,14 +553,13 @@ async def test_method_create_from_project_with_all_params(self, async_client: As
568553
"initializer": {
569554
"specs": [
570555
{
571-
"contextUrl": {"url": "https://example.com"},
572556
"git": {
573557
"checkout_location": "checkoutLocation",
574558
"clone_target": "cloneTarget",
575559
"remote_uri": "remoteUri",
576560
"target_mode": "CLONE_TARGET_MODE_UNSPECIFIED",
577561
"upstream_remote_uri": "upstreamRemoteUri",
578-
},
562+
}
579563
}
580564
]
581565
},
@@ -599,12 +583,8 @@ async def test_method_create_from_project_with_all_params(self, async_client: As
599583
],
600584
"secrets": [
601585
{
602-
"environmentVariable": "environmentVariable",
603-
"filePath": "filePath",
604-
"gitCredentialHost": "gitCredentialHost",
605586
"name": "name",
606587
"source": "source",
607-
"sourceRef": "sourceRef",
608588
}
609589
],
610590
"spec_version": "string",

Diff for: tests/api_resources/test_projects.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,13 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
3737
initializer={
3838
"specs": [
3939
{
40-
"contextUrl": {"url": "https://example.com"},
4140
"git": {
4241
"checkout_location": "checkoutLocation",
4342
"clone_target": "cloneTarget",
4443
"remote_uri": "remoteUri",
4544
"target_mode": "CLONE_TARGET_MODE_UNSPECIFIED",
4645
"upstream_remote_uri": "upstreamRemoteUri",
47-
},
46+
}
4847
}
4948
]
5049
},
@@ -189,14 +188,13 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
189188
initializer={
190189
"specs": [
191190
{
192-
"contextUrl": {"url": "https://example.com"},
193191
"git": {
194192
"checkout_location": "checkoutLocation",
195193
"clone_target": "cloneTarget",
196194
"remote_uri": "remoteUri",
197195
"target_mode": "CLONE_TARGET_MODE_UNSPECIFIED",
198196
"upstream_remote_uri": "upstreamRemoteUri",
199-
},
197+
}
200198
}
201199
]
202200
},

Diff for: tests/api_resources/test_runner_configurations.py

+2-34
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,7 @@ 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={
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-
},
31+
body={},
4832
connect_protocol_version=1,
4933
connect_timeout_ms=0,
5034
)
@@ -91,23 +75,7 @@ async def test_method_validate(self, async_client: AsyncGitpod) -> None:
9175
@parametrize
9276
async def test_method_validate_with_all_params(self, async_client: AsyncGitpod) -> None:
9377
runner_configuration = await async_client.runner_configurations.validate(
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-
},
78+
body={},
11179
connect_protocol_version=1,
11280
connect_timeout_ms=0,
11381
)

Diff for: tests/api_resources/test_runner_interactions.py

+2-72
Original file line numberDiff line numberDiff line change
@@ -267,29 +267,6 @@ 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": {},
293270
"error": {
294271
"code": "ERROR_CODE_UNSPECIFIED",
295272
"details": [
@@ -300,9 +277,7 @@ def test_method_send_response_with_all_params(self, client: Gitpod) -> None:
300277
}
301278
],
302279
"message": "message",
303-
},
304-
"requestId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
305-
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
280+
}
306281
},
307282
connect_protocol_version=1,
308283
connect_timeout_ms=0,
@@ -505,17 +480,7 @@ def test_method_update_status(self, client: Gitpod) -> None:
505480
def test_method_update_status_with_all_params(self, client: Gitpod) -> None:
506481
runner_interaction = client.runner_interactions.update_status(
507482
body={
508-
"additionalInfo": [
509-
{
510-
"key": "key",
511-
"value": "value",
512-
}
513-
],
514-
"degredationMessage": "degredationMessage",
515-
"logUrl": "https://example.com",
516483
"region": "region",
517-
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
518-
"systemDetails": "systemDetails",
519484
"version": "version",
520485
},
521486
connect_protocol_version=1,
@@ -797,29 +762,6 @@ async def test_method_send_response(self, async_client: AsyncGitpod) -> None:
797762
async def test_method_send_response_with_all_params(self, async_client: AsyncGitpod) -> None:
798763
runner_interaction = await async_client.runner_interactions.send_response(
799764
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": {},
823765
"error": {
824766
"code": "ERROR_CODE_UNSPECIFIED",
825767
"details": [
@@ -830,9 +772,7 @@ async def test_method_send_response_with_all_params(self, async_client: AsyncGit
830772
}
831773
],
832774
"message": "message",
833-
},
834-
"requestId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
835-
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
775+
}
836776
},
837777
connect_protocol_version=1,
838778
connect_timeout_ms=0,
@@ -1035,17 +975,7 @@ async def test_method_update_status(self, async_client: AsyncGitpod) -> None:
1035975
async def test_method_update_status_with_all_params(self, async_client: AsyncGitpod) -> None:
1036976
runner_interaction = await async_client.runner_interactions.update_status(
1037977
body={
1038-
"additionalInfo": [
1039-
{
1040-
"key": "key",
1041-
"value": "value",
1042-
}
1043-
],
1044-
"degredationMessage": "degredationMessage",
1045-
"logUrl": "https://example.com",
1046978
"region": "region",
1047-
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
1048-
"systemDetails": "systemDetails",
1049979
"version": "version",
1050980
},
1051981
connect_protocol_version=1,

Diff for: tests/api_resources/test_runners.py

-2
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,6 @@ 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",
385384
"spec": {},
386385
},
387386
connect_protocol_version=1,
@@ -775,7 +774,6 @@ async def test_method_update_runner_with_all_params(self, async_client: AsyncGit
775774
runner = await async_client.runners.update_runner(
776775
body={
777776
"name": "xxx",
778-
"runnerId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
779777
"spec": {},
780778
},
781779
connect_protocol_version=1,

0 commit comments

Comments
 (0)