-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbrowser_proxy_config.py
More file actions
34 lines (24 loc) · 1.71 KB
/
Copy pathbrowser_proxy_config.py
File metadata and controls
34 lines (24 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from .._models import BaseModel
from .browser_proxy_mode import BrowserProxyMode
__all__ = ["BrowserProxyConfig"]
class BrowserProxyConfig(BaseModel):
"""Browser proxy configuration.
Provide exactly one of mode, id, or name; an empty object is invalid.
Set mode to direct for no proxy regardless of stealth. Set mode to default to use the browser's stealth-derived default: Kernel's default stealth proxy when stealth=true, or direct egress when stealth=false.
Select id or name to use that proxy regardless of stealth. The selected proxy must be in the same project as the browser. Names must match exactly one active proxy; use id for stable references.
Proxy configuration changes only egress and does not change stealth or CAPTCHA solver behavior. A stealth browser using mode=direct still runs in stealth mode with the CAPTCHA solver enabled.
When proxy is omitted on browser creation, stealth browsers use Kernel's default stealth proxy and non-stealth browsers use direct egress. When omitted on update, the current configuration is unchanged.
"""
id: Optional[str] = None
"""Proxy ID."""
mode: Optional[BrowserProxyMode] = None
"""Proxy egress mode.
direct forces no proxy regardless of stealth. default uses the browser's
stealth-derived default: Kernel's default stealth proxy when stealth=true, or
direct egress when stealth=false. default is primarily useful on browser update
to restore the browser default after selected-proxy egress.
"""
name: Optional[str] = None
"""Proxy name. Must match exactly one active proxy in the project."""