@@ -42,7 +42,7 @@ class Configuration:
4242
4343 # Or with explicit parameters
4444 config = Configuration(
45- server_url ='http://localhost:8080/api',
45+ host ='http://localhost:8080/api',
4646 auth_key='your_key',
4747 auth_secret='your_secret'
4848 )
@@ -51,7 +51,7 @@ class Configuration:
5151
5252 def __init__ (
5353 self ,
54- server_url : Optional [str ] = None ,
54+ host : Optional [str ] = None ,
5555 auth_key : Optional [str ] = None ,
5656 auth_secret : Optional [str ] = None ,
5757 debug : bool = False ,
@@ -79,7 +79,7 @@ def __init__(
7979
8080 Parameters:
8181 -----------
82- server_url : str, optional
82+ host : str, optional
8383 Conductor server URL. If not provided, reads from CONDUCTOR_SERVER_URL env var.
8484 auth_key : str, optional
8585 Authentication key ID. If not provided, reads from CONDUCTOR_AUTH_KEY env var.
@@ -96,13 +96,13 @@ def __init__(
9696 """
9797
9898 # Resolve server URL from parameter or environment variable
99- if server_url is not None :
100- self .server_url = server_url
99+ if host is not None :
100+ self .host = host
101101 else :
102- self .server_url = os .getenv ("CONDUCTOR_SERVER_URL" )
102+ self .host = os .getenv ("CONDUCTOR_SERVER_URL" )
103103
104- if self .server_url is None or self .server_url == "" :
105- self .server_url = "http://localhost:8080/api"
104+ if self .host is None or self .host == "" :
105+ self .host = "http://localhost:8080/api"
106106
107107 # Resolve authentication from parameters or environment variables
108108 if auth_key is not None :
@@ -134,7 +134,7 @@ def __init__(
134134
135135 # Create the underlying HTTP configuration
136136 self ._http_config = HttpConfiguration (
137- host = self .server_url ,
137+ host = self .host ,
138138 api_key = api_key ,
139139 api_key_prefix = api_key_prefix ,
140140 username = username ,
@@ -317,7 +317,7 @@ def host(self) -> str:
317317 def host (self , value : str ) -> None :
318318 """Set server host URL."""
319319 self ._http_config .host = value
320- self .server_url = value
320+ self .host = value
321321
322322 @property
323323 def debug (self ) -> bool :
0 commit comments