Skip to content

Commit 21751d1

Browse files
authored
regenerate and update tests (Azure#18831)
1 parent ef0bf15 commit 21751d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1094
-731
lines changed

sdk/agrifood/azure-agrifood-farming/azure/agrifood/farming/aio/operations/_application_data_operations.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def list_by_farmer_id(
6969
max_last_modified_date_time: Optional[datetime.datetime] = None,
7070
max_page_size: Optional[int] = 50,
7171
skip_token: Optional[str] = None,
72-
**kwargs
72+
**kwargs: Any
7373
) -> AsyncIterable["_models.ApplicationDataListResponse"]:
7474
"""Returns a paginated list of application data resources under a particular farm.
7575
@@ -281,7 +281,7 @@ def list(
281281
max_last_modified_date_time: Optional[datetime.datetime] = None,
282282
max_page_size: Optional[int] = 50,
283283
skip_token: Optional[str] = None,
284-
**kwargs
284+
**kwargs: Any
285285
) -> AsyncIterable["_models.ApplicationDataListResponse"]:
286286
"""Returns a paginated list of application data resources across all farmers.
287287
@@ -466,7 +466,7 @@ async def get(
466466
self,
467467
farmer_id: str,
468468
application_data_id: str,
469-
**kwargs
469+
**kwargs: Any
470470
) -> "_models.ApplicationData":
471471
"""Get a specified application data resource under a particular farmer.
472472
@@ -525,17 +525,17 @@ async def create_or_update(
525525
self,
526526
farmer_id: str,
527527
application_data_id: str,
528-
body: Optional["_models.ApplicationData"] = None,
529-
**kwargs
528+
application_data: Optional["_models.ApplicationData"] = None,
529+
**kwargs: Any
530530
) -> "_models.ApplicationData":
531531
"""Creates or updates an application data resource under a particular farmer.
532532
533533
:param farmer_id: ID of the associated farmer.
534534
:type farmer_id: str
535535
:param application_data_id: ID of the application data resource.
536536
:type application_data_id: str
537-
:param body: Application data resource payload to create or update.
538-
:type body: ~azure.agrifood.farming.models.ApplicationData
537+
:param application_data: Application data resource payload to create or update.
538+
:type application_data: ~azure.agrifood.farming.models.ApplicationData
539539
:keyword callable cls: A custom type or function that will be passed the direct response
540540
:return: ApplicationData, or the result of cls(response)
541541
:rtype: ~azure.agrifood.farming.models.ApplicationData
@@ -569,8 +569,8 @@ async def create_or_update(
569569
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
570570

571571
body_content_kwargs = {} # type: Dict[str, Any]
572-
if body is not None:
573-
body_content = self._serialize.body(body, 'ApplicationData')
572+
if application_data is not None:
573+
body_content = self._serialize.body(application_data, 'ApplicationData')
574574
else:
575575
body_content = None
576576
body_content_kwargs['content'] = body_content
@@ -599,7 +599,7 @@ async def delete(
599599
self,
600600
farmer_id: str,
601601
application_data_id: str,
602-
**kwargs
602+
**kwargs: Any
603603
) -> None:
604604
"""Deletes a specified application data resource under a particular farmer.
605605

sdk/agrifood/azure-agrifood-farming/azure/agrifood/farming/aio/operations/_attachments_operations.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ def list_by_farmer_id(
5656
max_last_modified_date_time: Optional[datetime.datetime] = None,
5757
max_page_size: Optional[int] = 50,
5858
skip_token: Optional[str] = None,
59-
**kwargs
59+
**kwargs: Any
6060
) -> AsyncIterable["_models.AttachmentListResponse"]:
6161
"""Returns a paginated list of attachment resources under a particular farmer.
6262
63-
:param farmer_id: Id of the associated farmer.
63+
:param farmer_id: ID of the associated farmer.
6464
:type farmer_id: str
6565
:param resource_ids: Resource Ids of the resource.
6666
:type resource_ids: list[str]
@@ -183,13 +183,13 @@ async def get(
183183
self,
184184
farmer_id: str,
185185
attachment_id: str,
186-
**kwargs
186+
**kwargs: Any
187187
) -> "_models.Attachment":
188188
"""Gets a specified attachment resource under a particular farmer.
189189
190-
:param farmer_id: Id of the associated farmer.
190+
:param farmer_id: ID of the associated farmer.
191191
:type farmer_id: str
192-
:param attachment_id: Id of the attachment.
192+
:param attachment_id: ID of the attachment.
193193
:type attachment_id: str
194194
:keyword callable cls: A custom type or function that will be passed the direct response
195195
:return: Attachment, or the result of cls(response)
@@ -254,13 +254,13 @@ async def create_or_update(
254254
name: Optional[str] = None,
255255
description: Optional[str] = None,
256256
e_tag: Optional[str] = None,
257-
**kwargs
257+
**kwargs: Any
258258
) -> "_models.Attachment":
259259
"""Creates or updates an attachment resource under a particular farmer.
260260
261-
:param farmer_id: Id of the associated farmer resource.
261+
:param farmer_id: ID of the associated farmer resource.
262262
:type farmer_id: str
263-
:param attachment_id: Id of the attachment resource.
263+
:param attachment_id: ID of the attachment resource.
264264
:type attachment_id: str
265265
:param file: File to be uploaded.
266266
:type file: IO
@@ -360,13 +360,13 @@ async def delete(
360360
self,
361361
farmer_id: str,
362362
attachment_id: str,
363-
**kwargs
363+
**kwargs: Any
364364
) -> None:
365365
"""Deletes a specified attachment resource under a particular farmer.
366366
367-
:param farmer_id: Id of the farmer.
367+
:param farmer_id: ID of the farmer.
368368
:type farmer_id: str
369-
:param attachment_id: Id of the attachment.
369+
:param attachment_id: ID of the attachment.
370370
:type attachment_id: str
371371
:keyword callable cls: A custom type or function that will be passed the direct response
372372
:return: None, or the result of cls(response)
@@ -416,13 +416,13 @@ async def download(
416416
self,
417417
farmer_id: str,
418418
attachment_id: str,
419-
**kwargs
419+
**kwargs: Any
420420
) -> IO:
421421
"""Downloads and returns attachment as response for the given input filePath.
422422
423-
:param farmer_id: Id of the associated farmer.
423+
:param farmer_id: ID of the associated farmer.
424424
:type farmer_id: str
425-
:param attachment_id: Id of attachment to be downloaded.
425+
:param attachment_id: ID of attachment to be downloaded.
426426
:type attachment_id: str
427427
:keyword callable cls: A custom type or function that will be passed the direct response
428428
:return: IO, or the result of cls(response)

sdk/agrifood/azure-agrifood-farming/azure/agrifood/farming/aio/operations/_boundaries_operations.py

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ def list_by_farmer_id(
6161
max_last_modified_date_time: Optional[datetime.datetime] = None,
6262
max_page_size: Optional[int] = 50,
6363
skip_token: Optional[str] = None,
64-
**kwargs
64+
**kwargs: Any
6565
) -> AsyncIterable["_models.BoundaryListResponse"]:
6666
"""Returns a paginated list of boundary resources under a particular farmer.
6767
68-
:param farmer_id: Id of the associated farmer.
68+
:param farmer_id: ID of the associated farmer.
6969
:type farmer_id: str
7070
:param is_primary: Is the boundary primary.
7171
:type is_primary: bool
@@ -199,15 +199,15 @@ async def get_next(next_link=None):
199199
def search_by_farmer_id(
200200
self,
201201
farmer_id: str,
202-
body: Optional["_models.SearchBoundaryQuery"] = None,
203-
**kwargs
202+
query: Optional["_models.SearchBoundaryQuery"] = None,
203+
**kwargs: Any
204204
) -> AsyncIterable["_models.BoundaryListResponse"]:
205205
"""Search for boundaries by fields and intersecting geometry.
206206
207-
:param farmer_id: Id of the farmer.
207+
:param farmer_id: ID of the farmer.
208208
:type farmer_id: str
209-
:param body: Query filters.
210-
:type body: ~azure.agrifood.farming.models.SearchBoundaryQuery
209+
:param query: Query filters.
210+
:type query: ~azure.agrifood.farming.models.SearchBoundaryQuery
211211
:keyword callable cls: A custom type or function that will be passed the direct response
212212
:return: An iterator like instance of either BoundaryListResponse or the result of cls(response)
213213
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.agrifood.farming.models.BoundaryListResponse]
@@ -241,8 +241,8 @@ def prepare_request(next_link=None):
241241
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
242242

243243
body_content_kwargs = {} # type: Dict[str, Any]
244-
if body is not None:
245-
body_content = self._serialize.body(body, 'SearchBoundaryQuery')
244+
if query is not None:
245+
body_content = self._serialize.body(query, 'SearchBoundaryQuery')
246246
else:
247247
body_content = None
248248
body_content_kwargs['content'] = body_content
@@ -256,8 +256,8 @@ def prepare_request(next_link=None):
256256
}
257257
url = self._client.format_url(url, **path_format_arguments)
258258
body_content_kwargs = {} # type: Dict[str, Any]
259-
if body is not None:
260-
body_content = self._serialize.body(body, 'SearchBoundaryQuery')
259+
if query is not None:
260+
body_content = self._serialize.body(query, 'SearchBoundaryQuery')
261261
else:
262262
body_content = None
263263
body_content_kwargs['content'] = body_content
@@ -306,7 +306,7 @@ def list(
306306
max_last_modified_date_time: Optional[datetime.datetime] = None,
307307
max_page_size: Optional[int] = 50,
308308
skip_token: Optional[str] = None,
309-
**kwargs
309+
**kwargs: Any
310310
) -> AsyncIterable["_models.BoundaryListResponse"]:
311311
"""Returns a paginated list of boundary resources across all farmers.
312312
@@ -439,13 +439,13 @@ async def get_next(next_link=None):
439439

440440
def search(
441441
self,
442-
body: Optional["_models.SearchBoundaryQuery"] = None,
443-
**kwargs
442+
query: Optional["_models.SearchBoundaryQuery"] = None,
443+
**kwargs: Any
444444
) -> AsyncIterable["_models.BoundaryListResponse"]:
445445
"""Search for boundaries across all farmers by fields and intersecting geometry.
446446
447-
:param body: Query filters.
448-
:type body: ~azure.agrifood.farming.models.SearchBoundaryQuery
447+
:param query: Query filters.
448+
:type query: ~azure.agrifood.farming.models.SearchBoundaryQuery
449449
:keyword callable cls: A custom type or function that will be passed the direct response
450450
:return: An iterator like instance of either BoundaryListResponse or the result of cls(response)
451451
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.agrifood.farming.models.BoundaryListResponse]
@@ -478,8 +478,8 @@ def prepare_request(next_link=None):
478478
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
479479

480480
body_content_kwargs = {} # type: Dict[str, Any]
481-
if body is not None:
482-
body_content = self._serialize.body(body, 'SearchBoundaryQuery')
481+
if query is not None:
482+
body_content = self._serialize.body(query, 'SearchBoundaryQuery')
483483
else:
484484
body_content = None
485485
body_content_kwargs['content'] = body_content
@@ -492,8 +492,8 @@ def prepare_request(next_link=None):
492492
}
493493
url = self._client.format_url(url, **path_format_arguments)
494494
body_content_kwargs = {} # type: Dict[str, Any]
495-
if body is not None:
496-
body_content = self._serialize.body(body, 'SearchBoundaryQuery')
495+
if query is not None:
496+
body_content = self._serialize.body(query, 'SearchBoundaryQuery')
497497
else:
498498
body_content = None
499499
body_content_kwargs['content'] = body_content
@@ -528,11 +528,11 @@ async def get_next(next_link=None):
528528
async def get_cascade_delete_job_details(
529529
self,
530530
job_id: str,
531-
**kwargs
531+
**kwargs: Any
532532
) -> "_models.CascadeDeleteJob":
533533
"""Get cascade delete job for specified boundary.
534534
535-
:param job_id: Id of the job.
535+
:param job_id: ID of the job.
536536
:type job_id: str
537537
:keyword callable cls: A custom type or function that will be passed the direct response
538538
:return: CascadeDeleteJob, or the result of cls(response)
@@ -585,7 +585,7 @@ async def _create_cascade_delete_job_initial(
585585
job_id: str,
586586
farmer_id: str,
587587
boundary_id: str,
588-
**kwargs
588+
**kwargs: Any
589589
) -> "_models.CascadeDeleteJob":
590590
cls = kwargs.pop('cls', None) # type: ClsType["_models.CascadeDeleteJob"]
591591
error_map = {
@@ -635,7 +635,7 @@ async def begin_create_cascade_delete_job(
635635
job_id: str,
636636
farmer_id: str,
637637
boundary_id: str,
638-
**kwargs
638+
**kwargs: Any
639639
) -> AsyncLROPoller["_models.CascadeDeleteJob"]:
640640
"""Create a cascade delete job for specified boundary.
641641
@@ -704,13 +704,13 @@ async def get(
704704
self,
705705
farmer_id: str,
706706
boundary_id: str,
707-
**kwargs
707+
**kwargs: Any
708708
) -> "_models.Boundary":
709709
"""Gets a specified boundary resource under a particular farmer.
710710
711-
:param farmer_id: Id of the associated farmer.
711+
:param farmer_id: ID of the associated farmer.
712712
:type farmer_id: str
713-
:param boundary_id: Id of the boundary.
713+
:param boundary_id: ID of the boundary.
714714
:type boundary_id: str
715715
:keyword callable cls: A custom type or function that will be passed the direct response
716716
:return: Boundary, or the result of cls(response)
@@ -763,17 +763,17 @@ async def create_or_update(
763763
self,
764764
farmer_id: str,
765765
boundary_id: str,
766-
body: Optional["_models.Boundary"] = None,
767-
**kwargs
766+
boundary: Optional["_models.Boundary"] = None,
767+
**kwargs: Any
768768
) -> "_models.Boundary":
769769
"""Creates or updates a boundary resource.
770770
771-
:param farmer_id: Id of the farmer resource.
771+
:param farmer_id: ID of the farmer resource.
772772
:type farmer_id: str
773-
:param boundary_id: Id of the boundary resource.
773+
:param boundary_id: ID of the boundary resource.
774774
:type boundary_id: str
775-
:param body: Boundary resource payload to create or update.
776-
:type body: ~azure.agrifood.farming.models.Boundary
775+
:param boundary: Boundary resource payload to create or update.
776+
:type boundary: ~azure.agrifood.farming.models.Boundary
777777
:keyword callable cls: A custom type or function that will be passed the direct response
778778
:return: Boundary, or the result of cls(response)
779779
:rtype: ~azure.agrifood.farming.models.Boundary
@@ -807,8 +807,8 @@ async def create_or_update(
807807
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
808808

809809
body_content_kwargs = {} # type: Dict[str, Any]
810-
if body is not None:
811-
body_content = self._serialize.body(body, 'Boundary')
810+
if boundary is not None:
811+
body_content = self._serialize.body(boundary, 'Boundary')
812812
else:
813813
body_content = None
814814
body_content_kwargs['content'] = body_content
@@ -837,13 +837,13 @@ async def delete(
837837
self,
838838
farmer_id: str,
839839
boundary_id: str,
840-
**kwargs
840+
**kwargs: Any
841841
) -> None:
842842
"""Deletes a specified boundary resource under a particular farmer.
843843
844-
:param farmer_id: Id of the farmer.
844+
:param farmer_id: ID of the farmer.
845845
:type farmer_id: str
846-
:param boundary_id: Id of the boundary.
846+
:param boundary_id: ID of the boundary.
847847
:type boundary_id: str
848848
:keyword callable cls: A custom type or function that will be passed the direct response
849849
:return: None, or the result of cls(response)
@@ -895,17 +895,17 @@ async def get_overlap(
895895
boundary_id: str,
896896
other_farmer_id: str,
897897
other_boundary_id: str,
898-
**kwargs
898+
**kwargs: Any
899899
) -> "_models.BoundaryOverlapResponse":
900900
"""Returns overlapping acreage between two boundary Ids.
901901
902-
:param farmer_id: Id of the farmer.
902+
:param farmer_id: ID of the farmer.
903903
:type farmer_id: str
904-
:param boundary_id: Id of the boundary.
904+
:param boundary_id: ID of the boundary.
905905
:type boundary_id: str
906906
:param other_farmer_id: FarmerId of the other field.
907907
:type other_farmer_id: str
908-
:param other_boundary_id: Id of the other boundary.
908+
:param other_boundary_id: ID of the other boundary.
909909
:type other_boundary_id: str
910910
:keyword callable cls: A custom type or function that will be passed the direct response
911911
:return: BoundaryOverlapResponse, or the result of cls(response)

0 commit comments

Comments
 (0)