11from typing import Any , Dict , Optional , Type , TypeVar
22
3+ from .job_route_builders import build_job_route , build_job_status_route
34from .response_utils import parse_response_model
45
56T = TypeVar ("T" )
@@ -33,7 +34,7 @@ def get_web_job_status(
3334 operation_name : str ,
3435) -> T :
3536 response = client .transport .get (
36- client ._build_url (f" { route_prefix } / { job_id } /status" ),
37+ client ._build_url (build_job_status_route ( route_prefix , job_id ) ),
3738 )
3839 return parse_response_model (
3940 response .data ,
@@ -52,7 +53,7 @@ def get_web_job(
5253 operation_name : str ,
5354) -> T :
5455 response = client .transport .get (
55- client ._build_url (f" { route_prefix } / { job_id } " ),
56+ client ._build_url (build_job_route ( route_prefix , job_id ) ),
5657 params = params ,
5758 )
5859 return parse_response_model (
@@ -90,7 +91,7 @@ async def get_web_job_status_async(
9091 operation_name : str ,
9192) -> T :
9293 response = await client .transport .get (
93- client ._build_url (f" { route_prefix } / { job_id } /status" ),
94+ client ._build_url (build_job_status_route ( route_prefix , job_id ) ),
9495 )
9596 return parse_response_model (
9697 response .data ,
@@ -109,7 +110,7 @@ async def get_web_job_async(
109110 operation_name : str ,
110111) -> T :
111112 response = await client .transport .get (
112- client ._build_url (f" { route_prefix } / { job_id } " ),
113+ client ._build_url (build_job_route ( route_prefix , job_id ) ),
113114 params = params ,
114115 )
115116 return parse_response_model (
0 commit comments