|
1 | 1 | from datetime import datetime |
2 | 2 | from typing import Any, List, Literal, Optional, Union, Dict |
3 | | -from .computer_action import ComputerActionParams, ComputerActionResponse |
4 | 3 |
|
5 | 4 | from pydantic import BaseModel, ConfigDict, Field, field_validator |
6 | 5 |
|
@@ -70,6 +69,37 @@ class UpdateSessionProfileParams(BaseModel): |
70 | 69 | ) |
71 | 70 |
|
72 | 71 |
|
| 72 | +class UpdateSessionProxyLocationParams(BaseModel): |
| 73 | + """ |
| 74 | + Managed proxy geolocation overrides for a running session. |
| 75 | + """ |
| 76 | + |
| 77 | + model_config = ConfigDict( |
| 78 | + populate_by_alias=True, |
| 79 | + ) |
| 80 | + |
| 81 | + country: Optional[Country] = Field(default=None, serialization_alias="country") |
| 82 | + state: Optional[State] = Field(default=None, serialization_alias="state") |
| 83 | + city: Optional[str] = Field(default=None, serialization_alias="city") |
| 84 | + |
| 85 | + |
| 86 | +class UpdateSessionProxyParams(BaseModel): |
| 87 | + """ |
| 88 | + Parameters for enabling, disabling, or reconfiguring a session proxy. |
| 89 | + """ |
| 90 | + |
| 91 | + model_config = ConfigDict( |
| 92 | + populate_by_alias=True, |
| 93 | + ) |
| 94 | + |
| 95 | + enabled: bool = Field(serialization_alias="enabled") |
| 96 | + static_ip_id: Optional[str] = Field(default=None, serialization_alias="staticIpId") |
| 97 | + location: Optional[UpdateSessionProxyLocationParams] = Field( |
| 98 | + default=None, |
| 99 | + serialization_alias="location", |
| 100 | + ) |
| 101 | + |
| 102 | + |
73 | 103 | class SessionLaunchState(BaseModel): |
74 | 104 | model_config = ConfigDict( |
75 | 105 | populate_by_alias=True, |
|
0 commit comments