|
7 | 7 |
|
8 | 8 | import httpx |
9 | 9 |
|
10 | | -from ..types import connection_list_params, connection_create_params |
| 10 | +from ..types import connection_create_params |
11 | 11 | from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven |
12 | 12 | from .._utils import maybe_transform, async_maybe_transform |
13 | 13 | from .._compat import cached_property |
@@ -93,34 +93,18 @@ def create( |
93 | 93 | def list( |
94 | 94 | self, |
95 | 95 | *, |
96 | | - end_user_id: str | NotGiven = NOT_GIVEN, |
97 | 96 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
98 | 97 | # The extra values given here take precedence over values defined on the client or passed to this method. |
99 | 98 | extra_headers: Headers | None = None, |
100 | 99 | extra_query: Query | None = None, |
101 | 100 | extra_body: Body | None = None, |
102 | 101 | timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
103 | 102 | ) -> ConnectionListResponse: |
104 | | - """ |
105 | | - List all connections |
106 | | -
|
107 | | - Args: |
108 | | - extra_headers: Send extra headers |
109 | | -
|
110 | | - extra_query: Add additional query parameters to the request |
111 | | -
|
112 | | - extra_body: Add additional JSON properties to the request |
113 | | -
|
114 | | - timeout: Override the client-level default timeout for this request, in seconds |
115 | | - """ |
| 103 | + """List all connections""" |
116 | 104 | return self._get( |
117 | 105 | "/v3/connections", |
118 | 106 | options=make_request_options( |
119 | | - extra_headers=extra_headers, |
120 | | - extra_query=extra_query, |
121 | | - extra_body=extra_body, |
122 | | - timeout=timeout, |
123 | | - query=maybe_transform({"end_user_id": end_user_id}, connection_list_params.ConnectionListParams), |
| 107 | + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout |
124 | 108 | ), |
125 | 109 | cast_to=ConnectionListResponse, |
126 | 110 | ) |
@@ -226,36 +210,18 @@ async def create( |
226 | 210 | async def list( |
227 | 211 | self, |
228 | 212 | *, |
229 | | - end_user_id: str | NotGiven = NOT_GIVEN, |
230 | 213 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
231 | 214 | # The extra values given here take precedence over values defined on the client or passed to this method. |
232 | 215 | extra_headers: Headers | None = None, |
233 | 216 | extra_query: Query | None = None, |
234 | 217 | extra_body: Body | None = None, |
235 | 218 | timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
236 | 219 | ) -> ConnectionListResponse: |
237 | | - """ |
238 | | - List all connections |
239 | | -
|
240 | | - Args: |
241 | | - extra_headers: Send extra headers |
242 | | -
|
243 | | - extra_query: Add additional query parameters to the request |
244 | | -
|
245 | | - extra_body: Add additional JSON properties to the request |
246 | | -
|
247 | | - timeout: Override the client-level default timeout for this request, in seconds |
248 | | - """ |
| 220 | + """List all connections""" |
249 | 221 | return await self._get( |
250 | 222 | "/v3/connections", |
251 | 223 | options=make_request_options( |
252 | | - extra_headers=extra_headers, |
253 | | - extra_query=extra_query, |
254 | | - extra_body=extra_body, |
255 | | - timeout=timeout, |
256 | | - query=await async_maybe_transform( |
257 | | - {"end_user_id": end_user_id}, connection_list_params.ConnectionListParams |
258 | | - ), |
| 224 | + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout |
259 | 225 | ), |
260 | 226 | cast_to=ConnectionListResponse, |
261 | 227 | ) |
|
0 commit comments