28
28
from azure .core .utils import case_insensitive_dict
29
29
30
30
from ...operations ._operations import (
31
+ build_administration_begin_upload_test_file_request ,
31
32
build_administration_create_or_update_app_components_request ,
32
33
build_administration_create_or_update_server_metrics_config_request ,
33
34
build_administration_create_or_update_test_request ,
39
40
build_administration_get_test_request ,
40
41
build_administration_list_test_files_request ,
41
42
build_administration_list_tests_request ,
42
- build_administration_upload_test_file_request ,
43
+ build_test_run_begin_test_run_request ,
43
44
build_test_run_create_or_update_app_components_request ,
44
45
build_test_run_create_or_update_server_metrics_config_request ,
45
- build_test_run_create_or_update_test_run_request ,
46
46
build_test_run_delete_test_run_request ,
47
47
build_test_run_get_app_components_request ,
48
48
build_test_run_get_server_metrics_config_request ,
@@ -1162,7 +1162,6 @@ def list_tests(
1162
1162
search : Optional [str ] = None ,
1163
1163
last_modified_start_time : Optional [datetime .datetime ] = None ,
1164
1164
last_modified_end_time : Optional [datetime .datetime ] = None ,
1165
- continuation_token_parameter : Optional [str ] = None ,
1166
1165
** kwargs : Any
1167
1166
) -> AsyncIterable [JSON ]:
1168
1167
"""Get all load tests by the fully qualified resource Id e.g
@@ -1184,9 +1183,6 @@ def list_tests(
1184
1183
:keyword last_modified_end_time: End DateTime(ISO 8601 literal format) of the last updated time
1185
1184
range to filter tests. Default value is None.
1186
1185
:paramtype last_modified_end_time: ~datetime.datetime
1187
- :keyword continuation_token_parameter: Continuation token to get the next page of response.
1188
- Default value is None.
1189
- :paramtype continuation_token_parameter: str
1190
1186
:return: An iterator like instance of JSON object
1191
1187
:rtype: ~azure.core.async_paging.AsyncItemPaged[JSON]
1192
1188
:raises ~azure.core.exceptions.HttpResponseError:
@@ -1381,7 +1377,6 @@ def prepare_request(next_link=None):
1381
1377
search = search ,
1382
1378
last_modified_start_time = last_modified_start_time ,
1383
1379
last_modified_end_time = last_modified_end_time ,
1384
- continuation_token_parameter = continuation_token_parameter ,
1385
1380
api_version = self ._config .api_version ,
1386
1381
headers = _headers ,
1387
1382
params = _params ,
@@ -1439,7 +1434,7 @@ async def get_next(next_link=None):
1439
1434
return AsyncItemPaged (get_next , extract_data )
1440
1435
1441
1436
@distributed_trace_async
1442
- async def upload_test_file (
1437
+ async def begin_upload_test_file (
1443
1438
self , test_id : str , file_name : str , body : IO , * , file_type : Optional [str ] = None , ** kwargs : Any
1444
1439
) -> JSON :
1445
1440
"""Upload input file for a given test name. File size can't be more than 50 MB. Existing file with
@@ -1498,7 +1493,7 @@ async def upload_test_file(
1498
1493
1499
1494
_content = body
1500
1495
1501
- request = build_administration_upload_test_file_request (
1496
+ request = build_administration_begin_upload_test_file_request (
1502
1497
test_id = test_id ,
1503
1498
file_name = file_name ,
1504
1499
file_type = file_type ,
@@ -1667,19 +1662,14 @@ async def delete_test_file( # pylint: disable=inconsistent-return-statements
1667
1662
return cls (pipeline_response , None , {})
1668
1663
1669
1664
@distributed_trace
1670
- def list_test_files (
1671
- self , test_id : str , * , continuation_token_parameter : Optional [str ] = None , ** kwargs : Any
1672
- ) -> AsyncIterable [JSON ]:
1665
+ def list_test_files (self , test_id : str , ** kwargs : Any ) -> AsyncIterable [JSON ]:
1673
1666
"""Get all test files.
1674
1667
1675
1668
Get all test files.
1676
1669
1677
1670
:param test_id: Unique name for the load test, must contain only lower-case alphabetic,
1678
1671
numeric, underscore or hyphen characters. Required.
1679
1672
:type test_id: str
1680
- :keyword continuation_token_parameter: Continuation token to get the next page of response.
1681
- Default value is None.
1682
- :paramtype continuation_token_parameter: str
1683
1673
:return: An iterator like instance of JSON object
1684
1674
:rtype: ~azure.core.async_paging.AsyncItemPaged[JSON]
1685
1675
:raises ~azure.core.exceptions.HttpResponseError:
@@ -1720,7 +1710,6 @@ def prepare_request(next_link=None):
1720
1710
1721
1711
request = build_administration_list_test_files_request (
1722
1712
test_id = test_id ,
1723
- continuation_token_parameter = continuation_token_parameter ,
1724
1713
api_version = self ._config .api_version ,
1725
1714
headers = _headers ,
1726
1715
params = _params ,
@@ -2445,7 +2434,7 @@ def __init__(self, *args, **kwargs) -> None:
2445
2434
self ._deserialize = input_args .pop (0 ) if input_args else kwargs .pop ("deserializer" )
2446
2435
2447
2436
@overload
2448
- async def create_or_update_test_run (
2437
+ async def begin_test_run (
2449
2438
self ,
2450
2439
test_run_id : str ,
2451
2440
body : JSON ,
@@ -2968,7 +2957,7 @@ async def create_or_update_test_run(
2968
2957
"""
2969
2958
2970
2959
@overload
2971
- async def create_or_update_test_run (
2960
+ async def begin_test_run (
2972
2961
self ,
2973
2962
test_run_id : str ,
2974
2963
body : IO ,
@@ -3247,7 +3236,7 @@ async def create_or_update_test_run(
3247
3236
"""
3248
3237
3249
3238
@distributed_trace_async
3250
- async def create_or_update_test_run (
3239
+ async def begin_test_run (
3251
3240
self , test_run_id : str , body : Union [JSON , IO ], * , old_test_run_id : Optional [str ] = None , ** kwargs : Any
3252
3241
) -> JSON :
3253
3242
"""Create and start a new test run with the given name.
@@ -3540,7 +3529,7 @@ async def create_or_update_test_run(
3540
3529
else :
3541
3530
_json = body
3542
3531
3543
- request = build_test_run_create_or_update_test_run_request (
3532
+ request = build_test_run_begin_test_run_request (
3544
3533
test_run_id = test_run_id ,
3545
3534
old_test_run_id = old_test_run_id ,
3546
3535
content_type = content_type ,
@@ -4021,7 +4010,6 @@ def list_test_runs(
4021
4010
self ,
4022
4011
* ,
4023
4012
orderby : Optional [str ] = None ,
4024
- continuation_token_parameter : Optional [str ] = None ,
4025
4013
search : Optional [str ] = None ,
4026
4014
test_id : Optional [str ] = None ,
4027
4015
execution_from : Optional [datetime .datetime ] = None ,
@@ -4036,9 +4024,6 @@ def list_test_runs(
4036
4024
:keyword orderby: Sort on the supported fields in (field asc/desc) format. eg: executedDateTime
4037
4025
asc. Supported fields - executedDateTime. Default value is None.
4038
4026
:paramtype orderby: str
4039
- :keyword continuation_token_parameter: Continuation token to get the next page of response.
4040
- Default value is None.
4041
- :paramtype continuation_token_parameter: str
4042
4027
:keyword search: Prefix based, case sensitive search on searchable fields - description,
4043
4028
executedUser. For example, to search for a test run, with description 500 VUs, the search
4044
4029
parameter can be 500. Default value is None.
@@ -4322,7 +4307,6 @@ def prepare_request(next_link=None):
4322
4307
4323
4308
request = build_test_run_list_test_runs_request (
4324
4309
orderby = orderby ,
4325
- continuation_token_parameter = continuation_token_parameter ,
4326
4310
search = search ,
4327
4311
test_id = test_id ,
4328
4312
execution_from = execution_from ,
0 commit comments