12
12
from ..._compat import cached_property
13
13
from ..._resource import SyncAPIResource , AsyncAPIResource
14
14
from ..._response import to_streamed_response_wrapper , async_to_streamed_response_wrapper
15
- from ...types .jobs import automated_list_params , automated_create_params , automated_retrieve_params
15
+ from ...types .jobs import automated_list_params , automated_create_params
16
16
from ..._base_client import make_request_options
17
17
from ...types .jobs .automated_async_job import AutomatedAsyncJob
18
18
from ...types .jobs .automated_list_response import AutomatedListResponse
@@ -156,7 +156,6 @@ def retrieve(
156
156
self ,
157
157
job_id : str ,
158
158
* ,
159
- entity_id : str | Omit = omit ,
160
159
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
161
160
# The extra values given here take precedence over values defined on the client or passed to this method.
162
161
extra_headers : Headers | None = None ,
@@ -168,10 +167,6 @@ def retrieve(
168
167
Get an automated job by `job_id`.
169
168
170
169
Args:
171
- entity_id: The entity ID to use when authenticating with a multi-account token. Required
172
- when using a multi-account token to specify which entity's data to access.
173
- Example: `123e4567-e89b-12d3-a456-426614174000`
174
-
175
170
extra_headers: Send extra headers
176
171
177
172
extra_query: Add additional query parameters to the request
@@ -185,19 +180,14 @@ def retrieve(
185
180
return self ._get (
186
181
f"/jobs/automated/{ job_id } " ,
187
182
options = make_request_options (
188
- extra_headers = extra_headers ,
189
- extra_query = extra_query ,
190
- extra_body = extra_body ,
191
- timeout = timeout ,
192
- query = maybe_transform ({"entity_id" : entity_id }, automated_retrieve_params .AutomatedRetrieveParams ),
183
+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
193
184
),
194
185
cast_to = AutomatedAsyncJob ,
195
186
)
196
187
197
188
def list (
198
189
self ,
199
190
* ,
200
- entity_id : str | Omit = omit ,
201
191
limit : int | Omit = omit ,
202
192
offset : int | Omit = omit ,
203
193
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -214,10 +204,6 @@ def list(
214
204
as data syncs, only the next scheduled job is shown.
215
205
216
206
Args:
217
- entity_id: The entity ID to use when authenticating with a multi-account token. Required
218
- when using a multi-account token to specify which entity's data to access.
219
- Example: `123e4567-e89b-12d3-a456-426614174000`
220
-
221
207
limit: Number of items to return
222
208
223
209
offset: Index to start from (defaults to 0)
@@ -239,7 +225,6 @@ def list(
239
225
timeout = timeout ,
240
226
query = maybe_transform (
241
227
{
242
- "entity_id" : entity_id ,
243
228
"limit" : limit ,
244
229
"offset" : offset ,
245
230
},
@@ -385,7 +370,6 @@ async def retrieve(
385
370
self ,
386
371
job_id : str ,
387
372
* ,
388
- entity_id : str | Omit = omit ,
389
373
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
390
374
# The extra values given here take precedence over values defined on the client or passed to this method.
391
375
extra_headers : Headers | None = None ,
@@ -397,10 +381,6 @@ async def retrieve(
397
381
Get an automated job by `job_id`.
398
382
399
383
Args:
400
- entity_id: The entity ID to use when authenticating with a multi-account token. Required
401
- when using a multi-account token to specify which entity's data to access.
402
- Example: `123e4567-e89b-12d3-a456-426614174000`
403
-
404
384
extra_headers: Send extra headers
405
385
406
386
extra_query: Add additional query parameters to the request
@@ -414,21 +394,14 @@ async def retrieve(
414
394
return await self ._get (
415
395
f"/jobs/automated/{ job_id } " ,
416
396
options = make_request_options (
417
- extra_headers = extra_headers ,
418
- extra_query = extra_query ,
419
- extra_body = extra_body ,
420
- timeout = timeout ,
421
- query = await async_maybe_transform (
422
- {"entity_id" : entity_id }, automated_retrieve_params .AutomatedRetrieveParams
423
- ),
397
+ extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
424
398
),
425
399
cast_to = AutomatedAsyncJob ,
426
400
)
427
401
428
402
async def list (
429
403
self ,
430
404
* ,
431
- entity_id : str | Omit = omit ,
432
405
limit : int | Omit = omit ,
433
406
offset : int | Omit = omit ,
434
407
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -445,10 +418,6 @@ async def list(
445
418
as data syncs, only the next scheduled job is shown.
446
419
447
420
Args:
448
- entity_id: The entity ID to use when authenticating with a multi-account token. Required
449
- when using a multi-account token to specify which entity's data to access.
450
- Example: `123e4567-e89b-12d3-a456-426614174000`
451
-
452
421
limit: Number of items to return
453
422
454
423
offset: Index to start from (defaults to 0)
@@ -470,7 +439,6 @@ async def list(
470
439
timeout = timeout ,
471
440
query = await async_maybe_transform (
472
441
{
473
- "entity_id" : entity_id ,
474
442
"limit" : limit ,
475
443
"offset" : offset ,
476
444
},
0 commit comments