Skip to content

Commit

Permalink
chore: rebuild project due to codegen change
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Nov 18, 2024
1 parent 56f37cb commit b7129db
Show file tree
Hide file tree
Showing 11 changed files with 100 additions and 560 deletions.
64 changes: 10 additions & 54 deletions tests/api_resources/environment_automations/test_task_executions.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,22 +122,10 @@ def test_method_create_list_with_all_params(self, client: Gitpod) -> None:
task_execution = client.environment_automations.task_executions.create_list(
connect_protocol_version=1,
filter={
"environment_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
],
"phases": [
"TASK_EXECUTION_PHASE_UNSPECIFIED",
"TASK_EXECUTION_PHASE_PENDING",
"TASK_EXECUTION_PHASE_RUNNING",
],
"task_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
],
"task_references": ["string", "string", "string"],
"environment_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
"phases": ["TASK_EXECUTION_PHASE_UNSPECIFIED"],
"task_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
"task_references": ["string"],
},
pagination={
"token": "token",
Expand Down Expand Up @@ -271,17 +259,7 @@ def test_method_update_task_execution_status_with_all_params(self, client: Gitpo
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"failure_message": "failureMessage",
"phase": "TASK_EXECUTION_PHASE_UNSPECIFIED",
},
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"failure_message": "failureMessage",
"phase": "TASK_EXECUTION_PHASE_UNSPECIFIED",
},
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"failure_message": "failureMessage",
"phase": "TASK_EXECUTION_PHASE_UNSPECIFIED",
},
}
],
},
connect_protocol_version=1,
Expand Down Expand Up @@ -419,22 +397,10 @@ async def test_method_create_list_with_all_params(self, async_client: AsyncGitpo
task_execution = await async_client.environment_automations.task_executions.create_list(
connect_protocol_version=1,
filter={
"environment_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
],
"phases": [
"TASK_EXECUTION_PHASE_UNSPECIFIED",
"TASK_EXECUTION_PHASE_PENDING",
"TASK_EXECUTION_PHASE_RUNNING",
],
"task_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
],
"task_references": ["string", "string", "string"],
"environment_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
"phases": ["TASK_EXECUTION_PHASE_UNSPECIFIED"],
"task_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
"task_references": ["string"],
},
pagination={
"token": "token",
Expand Down Expand Up @@ -568,17 +534,7 @@ async def test_method_update_task_execution_status_with_all_params(self, async_c
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"failure_message": "failureMessage",
"phase": "TASK_EXECUTION_PHASE_UNSPECIFIED",
},
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"failure_message": "failureMessage",
"phase": "TASK_EXECUTION_PHASE_UNSPECIFIED",
},
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"failure_message": "failureMessage",
"phase": "TASK_EXECUTION_PHASE_UNSPECIFIED",
},
}
],
},
connect_protocol_version=1,
Expand Down
40 changes: 8 additions & 32 deletions tests/api_resources/environment_automations/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ def test_method_update_with_all_params(self, client: Gitpod) -> None:
task = client.environment_automations.tasks.update(
connect_protocol_version=1,
id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
depends_on=[
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
],
depends_on=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
metadata={},
spec={},
connect_timeout_ms=0,
Expand Down Expand Up @@ -164,17 +160,9 @@ def test_method_create_list_with_all_params(self, client: Gitpod) -> None:
task = client.environment_automations.tasks.create_list(
connect_protocol_version=1,
filter={
"environment_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
],
"references": ["x", "x", "x"],
"task_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
],
"environment_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
"references": ["x"],
"task_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
},
pagination={
"token": "token",
Expand Down Expand Up @@ -264,11 +252,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncGitpod) ->
task = await async_client.environment_automations.tasks.update(
connect_protocol_version=1,
id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
depends_on=[
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
],
depends_on=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
metadata={},
spec={},
connect_timeout_ms=0,
Expand Down Expand Up @@ -395,17 +379,9 @@ async def test_method_create_list_with_all_params(self, async_client: AsyncGitpo
task = await async_client.environment_automations.tasks.create_list(
connect_protocol_version=1,
filter={
"environment_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
],
"references": ["x", "x", "x"],
"task_ids": [
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
],
"environment_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
"references": ["x"],
"task_ids": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
},
pagination={
"token": "token",
Expand Down
112 changes: 16 additions & 96 deletions tests/api_resources/runner_interactions/test_environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,7 @@ def test_method_list(self, client: Gitpod) -> None:
def test_method_list_with_all_params(self, client: Gitpod) -> None:
environment = client.runner_interactions.environments.list(
connect_protocol_version=1,
environment_ids=[
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
],
environment_ids=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
pagination={
"token": "token",
"page_size": 0,
Expand Down Expand Up @@ -140,21 +136,13 @@ def test_method_update_status_with_all_params(self, client: Gitpod) -> None:
{
"change_type": "CHANGE_TYPE_UNSPECIFIED",
"path": "path",
},
{
"change_type": "CHANGE_TYPE_UNSPECIFIED",
"path": "path",
},
{
"change_type": "CHANGE_TYPE_UNSPECIFIED",
"path": "path",
},
}
],
"clone_url": "cloneUrl",
"latest_commit": "latestCommit",
"total_changed_files": 0,
"total_unpushed_commits": 0,
"unpushed_commits": ["string", "string", "string"],
"unpushed_commits": ["string"],
},
"phase": "CONTENT_PHASE_UNSPECIFIED",
"session": "session",
Expand All @@ -180,19 +168,11 @@ def test_method_update_status_with_all_params(self, client: Gitpod) -> None:
{
"port": 1,
"url": "url",
},
{
"port": 1,
"url": "url",
},
{
"port": 1,
"url": "url",
},
}
],
"ssh": {"url": "url"},
},
"failure_message": ["string", "string", "string"],
"failure_message": ["string"],
"machine": {
"failure_message": "failureMessage",
"phase": "PHASE_UNSPECIFIED",
Expand All @@ -216,36 +196,16 @@ def test_method_update_status_with_all_params(self, client: Gitpod) -> None:
"phase": "CONTENT_PHASE_UNSPECIFIED",
"secret_name": "secretName",
"warning_message": "warningMessage",
},
{
"failure_message": "failureMessage",
"phase": "CONTENT_PHASE_UNSPECIFIED",
"secret_name": "secretName",
"warning_message": "warningMessage",
},
{
"failure_message": "failureMessage",
"phase": "CONTENT_PHASE_UNSPECIFIED",
"secret_name": "secretName",
"warning_message": "warningMessage",
},
}
],
"ssh_public_keys": [
{
"id": "id",
"phase": "CONTENT_PHASE_UNSPECIFIED",
},
{
"id": "id",
"phase": "CONTENT_PHASE_UNSPECIFIED",
},
{
"id": "id",
"phase": "CONTENT_PHASE_UNSPECIFIED",
},
}
],
"status_version": "string",
"warning_message": ["string", "string", "string"],
"warning_message": ["string"],
},
connect_timeout_ms=0,
)
Expand Down Expand Up @@ -331,11 +291,7 @@ async def test_method_list(self, async_client: AsyncGitpod) -> None:
async def test_method_list_with_all_params(self, async_client: AsyncGitpod) -> None:
environment = await async_client.runner_interactions.environments.list(
connect_protocol_version=1,
environment_ids=[
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
],
environment_ids=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
pagination={
"token": "token",
"page_size": 0,
Expand Down Expand Up @@ -399,21 +355,13 @@ async def test_method_update_status_with_all_params(self, async_client: AsyncGit
{
"change_type": "CHANGE_TYPE_UNSPECIFIED",
"path": "path",
},
{
"change_type": "CHANGE_TYPE_UNSPECIFIED",
"path": "path",
},
{
"change_type": "CHANGE_TYPE_UNSPECIFIED",
"path": "path",
},
}
],
"clone_url": "cloneUrl",
"latest_commit": "latestCommit",
"total_changed_files": 0,
"total_unpushed_commits": 0,
"unpushed_commits": ["string", "string", "string"],
"unpushed_commits": ["string"],
},
"phase": "CONTENT_PHASE_UNSPECIFIED",
"session": "session",
Expand All @@ -439,19 +387,11 @@ async def test_method_update_status_with_all_params(self, async_client: AsyncGit
{
"port": 1,
"url": "url",
},
{
"port": 1,
"url": "url",
},
{
"port": 1,
"url": "url",
},
}
],
"ssh": {"url": "url"},
},
"failure_message": ["string", "string", "string"],
"failure_message": ["string"],
"machine": {
"failure_message": "failureMessage",
"phase": "PHASE_UNSPECIFIED",
Expand All @@ -475,36 +415,16 @@ async def test_method_update_status_with_all_params(self, async_client: AsyncGit
"phase": "CONTENT_PHASE_UNSPECIFIED",
"secret_name": "secretName",
"warning_message": "warningMessage",
},
{
"failure_message": "failureMessage",
"phase": "CONTENT_PHASE_UNSPECIFIED",
"secret_name": "secretName",
"warning_message": "warningMessage",
},
{
"failure_message": "failureMessage",
"phase": "CONTENT_PHASE_UNSPECIFIED",
"secret_name": "secretName",
"warning_message": "warningMessage",
},
}
],
"ssh_public_keys": [
{
"id": "id",
"phase": "CONTENT_PHASE_UNSPECIFIED",
},
{
"id": "id",
"phase": "CONTENT_PHASE_UNSPECIFIED",
},
{
"id": "id",
"phase": "CONTENT_PHASE_UNSPECIFIED",
},
}
],
"status_version": "string",
"warning_message": ["string", "string", "string"],
"warning_message": ["string"],
},
connect_timeout_ms=0,
)
Expand Down
12 changes: 6 additions & 6 deletions tests/api_resources/test_automations_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ def test_method_upsert_with_all_params(self, client: Gitpod) -> None:
},
"description": "description",
"name": "x",
"triggered_by": ["string", "string", "string"],
"triggered_by": ["string"],
}
},
"tasks": {
"foo": {
"command": "x",
"depends_on": ["string", "string", "string"],
"depends_on": ["string"],
"description": "description",
"name": "x",
"triggered_by": ["string", "string", "string"],
"triggered_by": ["string"],
}
},
},
Expand Down Expand Up @@ -105,16 +105,16 @@ async def test_method_upsert_with_all_params(self, async_client: AsyncGitpod) ->
},
"description": "description",
"name": "x",
"triggered_by": ["string", "string", "string"],
"triggered_by": ["string"],
}
},
"tasks": {
"foo": {
"command": "x",
"depends_on": ["string", "string", "string"],
"depends_on": ["string"],
"description": "description",
"name": "x",
"triggered_by": ["string", "string", "string"],
"triggered_by": ["string"],
}
},
},
Expand Down
Loading

0 comments on commit b7129db

Please # to comment.