3
3
from __future__ import annotations
4
4
5
5
from typing import Type , cast
6
- from typing_extensions import Literal
7
6
8
7
import httpx
9
8
34
33
from ....._base_client import (
35
34
make_request_options ,
36
35
)
37
- from .....types .pages .projects import DeploymentListResponse , deployment_list_params , deployment_create_params
36
+ from .....types .pages .projects import DeploymentListResponse , deployment_create_params
38
37
39
38
__all__ = ["Deployments" , "AsyncDeployments" ]
40
39
@@ -108,7 +107,6 @@ def list(
108
107
project_name : str ,
109
108
* ,
110
109
account_id : str ,
111
- env : Literal ["production" , "preview" ] | NotGiven = NOT_GIVEN ,
112
110
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
113
111
# The extra values given here take precedence over values defined on the client or passed to this method.
114
112
extra_headers : Headers | None = None ,
@@ -124,8 +122,6 @@ def list(
124
122
125
123
project_name: Name of the project.
126
124
127
- env: What type of deployments to fetch.
128
-
129
125
extra_headers: Send extra headers
130
126
131
127
extra_query: Add additional query parameters to the request
@@ -145,7 +141,6 @@ def list(
145
141
extra_query = extra_query ,
146
142
extra_body = extra_body ,
147
143
timeout = timeout ,
148
- query = maybe_transform ({"env" : env }, deployment_list_params .DeploymentListParams ),
149
144
post_parser = ResultWrapper ._unwrapper ,
150
145
),
151
146
cast_to = cast (Type [DeploymentListResponse ], ResultWrapper [DeploymentListResponse ]),
@@ -415,7 +410,6 @@ async def list(
415
410
project_name : str ,
416
411
* ,
417
412
account_id : str ,
418
- env : Literal ["production" , "preview" ] | NotGiven = NOT_GIVEN ,
419
413
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
420
414
# The extra values given here take precedence over values defined on the client or passed to this method.
421
415
extra_headers : Headers | None = None ,
@@ -431,8 +425,6 @@ async def list(
431
425
432
426
project_name: Name of the project.
433
427
434
- env: What type of deployments to fetch.
435
-
436
428
extra_headers: Send extra headers
437
429
438
430
extra_query: Add additional query parameters to the request
@@ -452,7 +444,6 @@ async def list(
452
444
extra_query = extra_query ,
453
445
extra_body = extra_body ,
454
446
timeout = timeout ,
455
- query = await async_maybe_transform ({"env" : env }, deployment_list_params .DeploymentListParams ),
456
447
post_parser = ResultWrapper ._unwrapper ,
457
448
),
458
449
cast_to = cast (Type [DeploymentListResponse ], ResultWrapper [DeploymentListResponse ]),
0 commit comments