eval-studio-client 1.2.0a1__py3-none-any.whl → 1.2.0a2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- eval_studio_client/api/__init__.py +20 -0
- eval_studio_client/api/api/__init__.py +1 -0
- eval_studio_client/api/api/dashboard_service_api.py +1134 -73
- eval_studio_client/api/api/info_service_api.py +240 -0
- eval_studio_client/api/api/test_service_api.py +1233 -172
- eval_studio_client/api/api/workflow_result_service_api.py +1057 -0
- eval_studio_client/api/api/workflow_service_api.py +1420 -101
- eval_studio_client/api/docs/DashboardServiceApi.md +272 -0
- eval_studio_client/api/docs/InfoServiceApi.md +63 -0
- eval_studio_client/api/docs/TestServiceApi.md +268 -0
- eval_studio_client/api/docs/TestServiceGrantTestAccessRequest.md +30 -0
- eval_studio_client/api/docs/TestServiceRevokeTestAccessRequest.md +30 -0
- eval_studio_client/api/docs/V1FindWorkflowsByCollectionIDResponse.md +29 -0
- eval_studio_client/api/docs/V1GetStatsResponse.md +29 -0
- eval_studio_client/api/docs/V1GetWorkflowResultCorpusPatchResponse.md +29 -0
- eval_studio_client/api/docs/V1GetWorkflowResultReportResponse.md +29 -0
- eval_studio_client/api/docs/V1GetWorkflowResultSummaryResponse.md +32 -0
- eval_studio_client/api/docs/V1GetWorkflowResultSystemPromptPatchResponse.md +29 -0
- eval_studio_client/api/docs/V1Info.md +1 -0
- eval_studio_client/api/docs/V1ListDashboardAccessResponse.md +29 -0
- eval_studio_client/api/docs/V1ListDashboardsSharedWithMeResponse.md +29 -0
- eval_studio_client/api/docs/V1ListTestAccessResponse.md +29 -0
- eval_studio_client/api/docs/V1ListTestsSharedWithMeResponse.md +29 -0
- eval_studio_client/api/docs/V1ListWorkflowAccessResponse.md +29 -0
- eval_studio_client/api/docs/V1ListWorkflowsSharedWithMeResponse.md +29 -0
- eval_studio_client/api/docs/V1Role.md +12 -0
- eval_studio_client/api/docs/V1RoleBinding.md +32 -0
- eval_studio_client/api/docs/V1Stats.md +31 -0
- eval_studio_client/api/docs/V1WorkflowResultArtifactType.md +12 -0
- eval_studio_client/api/docs/WorkflowResultServiceApi.md +280 -0
- eval_studio_client/api/docs/WorkflowServiceApi.md +345 -5
- eval_studio_client/api/docs/WorkflowServiceRevokeWorkflowAccessRequest.md +30 -0
- eval_studio_client/api/models/__init__.py +19 -0
- eval_studio_client/api/models/test_service_grant_test_access_request.py +90 -0
- eval_studio_client/api/models/test_service_revoke_test_access_request.py +90 -0
- eval_studio_client/api/models/v1_find_workflows_by_collection_id_response.py +95 -0
- eval_studio_client/api/models/v1_get_stats_response.py +91 -0
- eval_studio_client/api/models/v1_get_workflow_result_corpus_patch_response.py +87 -0
- eval_studio_client/api/models/v1_get_workflow_result_report_response.py +87 -0
- eval_studio_client/api/models/v1_get_workflow_result_summary_response.py +94 -0
- eval_studio_client/api/models/v1_get_workflow_result_system_prompt_patch_response.py +87 -0
- eval_studio_client/api/models/v1_info.py +4 -2
- eval_studio_client/api/models/v1_list_dashboard_access_response.py +95 -0
- eval_studio_client/api/models/v1_list_dashboards_shared_with_me_response.py +95 -0
- eval_studio_client/api/models/v1_list_test_access_response.py +95 -0
- eval_studio_client/api/models/v1_list_tests_shared_with_me_response.py +95 -0
- eval_studio_client/api/models/v1_list_workflow_access_response.py +95 -0
- eval_studio_client/api/models/v1_list_workflows_shared_with_me_response.py +95 -0
- eval_studio_client/api/models/v1_role.py +38 -0
- eval_studio_client/api/models/v1_role_binding.py +92 -0
- eval_studio_client/api/models/v1_stats.py +99 -0
- eval_studio_client/api/models/v1_workflow_result_artifact_type.py +40 -0
- eval_studio_client/api/models/workflow_service_revoke_workflow_access_request.py +90 -0
- eval_studio_client/api/test/test_dashboard_service_api.py +28 -0
- eval_studio_client/api/test/test_info_service_api.py +6 -0
- eval_studio_client/api/test/test_test_service_api.py +24 -0
- eval_studio_client/api/test/test_test_service_grant_test_access_request.py +52 -0
- eval_studio_client/api/test/test_test_service_revoke_test_access_request.py +52 -0
- eval_studio_client/api/test/test_v1_find_workflows_by_collection_id_response.py +95 -0
- eval_studio_client/api/test/test_v1_get_info_response.py +2 -1
- eval_studio_client/api/test/test_v1_get_stats_response.py +53 -0
- eval_studio_client/api/test/test_v1_get_workflow_result_corpus_patch_response.py +51 -0
- eval_studio_client/api/test/test_v1_get_workflow_result_report_response.py +51 -0
- eval_studio_client/api/test/test_v1_get_workflow_result_summary_response.py +58 -0
- eval_studio_client/api/test/test_v1_get_workflow_result_system_prompt_patch_response.py +51 -0
- eval_studio_client/api/test/test_v1_info.py +2 -1
- eval_studio_client/api/test/test_v1_list_dashboard_access_response.py +56 -0
- eval_studio_client/api/test/test_v1_list_dashboards_shared_with_me_response.py +69 -0
- eval_studio_client/api/test/test_v1_list_test_access_response.py +56 -0
- eval_studio_client/api/test/test_v1_list_tests_shared_with_me_response.py +70 -0
- eval_studio_client/api/test/test_v1_list_workflow_access_response.py +56 -0
- eval_studio_client/api/test/test_v1_list_workflows_shared_with_me_response.py +95 -0
- eval_studio_client/api/test/test_v1_role.py +33 -0
- eval_studio_client/api/test/test_v1_role_binding.py +53 -0
- eval_studio_client/api/test/test_v1_stats.py +52 -0
- eval_studio_client/api/test/test_v1_workflow_result_artifact_type.py +33 -0
- eval_studio_client/api/test/test_workflow_result_service_api.py +59 -0
- eval_studio_client/api/test/test_workflow_service_api.py +35 -0
- eval_studio_client/api/test/test_workflow_service_revoke_workflow_access_request.py +52 -0
- eval_studio_client/gen/openapiv2/eval_studio.swagger.json +905 -16
- {eval_studio_client-1.2.0a1.dist-info → eval_studio_client-1.2.0a2.dist-info}/METADATA +2 -1
- {eval_studio_client-1.2.0a1.dist-info → eval_studio_client-1.2.0a2.dist-info}/RECORD +83 -23
- {eval_studio_client-1.2.0a1.dist-info → eval_studio_client-1.2.0a2.dist-info}/WHEEL +0 -0
|
@@ -17,15 +17,17 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
19
|
from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator
|
|
20
|
-
from typing import List, Optional
|
|
20
|
+
from typing import Any, Dict, List, Optional
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
22
|
from eval_studio_client.api.models.required_the_test_to_update import RequiredTheTestToUpdate
|
|
23
23
|
from eval_studio_client.api.models.test_service_clone_test_request import TestServiceCloneTestRequest
|
|
24
24
|
from eval_studio_client.api.models.test_service_generate_test_cases_request import TestServiceGenerateTestCasesRequest
|
|
25
|
+
from eval_studio_client.api.models.test_service_grant_test_access_request import TestServiceGrantTestAccessRequest
|
|
25
26
|
from eval_studio_client.api.models.test_service_import_test_cases_from_library_request import TestServiceImportTestCasesFromLibraryRequest
|
|
26
27
|
from eval_studio_client.api.models.test_service_list_test_case_library_items_request import TestServiceListTestCaseLibraryItemsRequest
|
|
27
28
|
from eval_studio_client.api.models.test_service_perturb_test_in_place_request import TestServicePerturbTestInPlaceRequest
|
|
28
29
|
from eval_studio_client.api.models.test_service_perturb_test_request import TestServicePerturbTestRequest
|
|
30
|
+
from eval_studio_client.api.models.test_service_revoke_test_access_request import TestServiceRevokeTestAccessRequest
|
|
29
31
|
from eval_studio_client.api.models.v1_batch_delete_tests_request import V1BatchDeleteTestsRequest
|
|
30
32
|
from eval_studio_client.api.models.v1_batch_delete_tests_response import V1BatchDeleteTestsResponse
|
|
31
33
|
from eval_studio_client.api.models.v1_batch_get_tests_response import V1BatchGetTestsResponse
|
|
@@ -38,8 +40,10 @@ from eval_studio_client.api.models.v1_generate_test_cases_response import V1Gene
|
|
|
38
40
|
from eval_studio_client.api.models.v1_get_test_response import V1GetTestResponse
|
|
39
41
|
from eval_studio_client.api.models.v1_import_test_cases_from_library_response import V1ImportTestCasesFromLibraryResponse
|
|
40
42
|
from eval_studio_client.api.models.v1_list_most_recent_tests_response import V1ListMostRecentTestsResponse
|
|
43
|
+
from eval_studio_client.api.models.v1_list_test_access_response import V1ListTestAccessResponse
|
|
41
44
|
from eval_studio_client.api.models.v1_list_test_case_library_items_response import V1ListTestCaseLibraryItemsResponse
|
|
42
45
|
from eval_studio_client.api.models.v1_list_tests_response import V1ListTestsResponse
|
|
46
|
+
from eval_studio_client.api.models.v1_list_tests_shared_with_me_response import V1ListTestsSharedWithMeResponse
|
|
43
47
|
from eval_studio_client.api.models.v1_perturb_test_in_place_response import V1PerturbTestInPlaceResponse
|
|
44
48
|
from eval_studio_client.api.models.v1_perturb_test_response import V1PerturbTestResponse
|
|
45
49
|
from eval_studio_client.api.models.v1_test import V1Test
|
|
@@ -2210,6 +2214,288 @@ class TestServiceApi:
|
|
|
2210
2214
|
|
|
2211
2215
|
|
|
2212
2216
|
|
|
2217
|
+
@validate_call
|
|
2218
|
+
def test_service_grant_test_access(
|
|
2219
|
+
self,
|
|
2220
|
+
name_1: Annotated[str, Field(strict=True, description="Required. The name of the Test to grant access to.")],
|
|
2221
|
+
body: TestServiceGrantTestAccessRequest,
|
|
2222
|
+
_request_timeout: Union[
|
|
2223
|
+
None,
|
|
2224
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2225
|
+
Tuple[
|
|
2226
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2227
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2228
|
+
]
|
|
2229
|
+
] = None,
|
|
2230
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2231
|
+
_content_type: Optional[StrictStr] = None,
|
|
2232
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2233
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2234
|
+
) -> object:
|
|
2235
|
+
"""test_service_grant_test_access
|
|
2236
|
+
|
|
2237
|
+
|
|
2238
|
+
:param name_1: Required. The name of the Test to grant access to. (required)
|
|
2239
|
+
:type name_1: str
|
|
2240
|
+
:param body: (required)
|
|
2241
|
+
:type body: TestServiceGrantTestAccessRequest
|
|
2242
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2243
|
+
number provided, it will be total request
|
|
2244
|
+
timeout. It can also be a pair (tuple) of
|
|
2245
|
+
(connection, read) timeouts.
|
|
2246
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2247
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2248
|
+
request; this effectively ignores the
|
|
2249
|
+
authentication in the spec for a single request.
|
|
2250
|
+
:type _request_auth: dict, optional
|
|
2251
|
+
:param _content_type: force content-type for the request.
|
|
2252
|
+
:type _content_type: str, Optional
|
|
2253
|
+
:param _headers: set to override the headers for a single
|
|
2254
|
+
request; this effectively ignores the headers
|
|
2255
|
+
in the spec for a single request.
|
|
2256
|
+
:type _headers: dict, optional
|
|
2257
|
+
:param _host_index: set to override the host_index for a single
|
|
2258
|
+
request; this effectively ignores the host_index
|
|
2259
|
+
in the spec for a single request.
|
|
2260
|
+
:type _host_index: int, optional
|
|
2261
|
+
:return: Returns the result object.
|
|
2262
|
+
""" # noqa: E501
|
|
2263
|
+
|
|
2264
|
+
_param = self._test_service_grant_test_access_serialize(
|
|
2265
|
+
name_1=name_1,
|
|
2266
|
+
body=body,
|
|
2267
|
+
_request_auth=_request_auth,
|
|
2268
|
+
_content_type=_content_type,
|
|
2269
|
+
_headers=_headers,
|
|
2270
|
+
_host_index=_host_index
|
|
2271
|
+
)
|
|
2272
|
+
|
|
2273
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2274
|
+
'200': "object",
|
|
2275
|
+
}
|
|
2276
|
+
response_data = self.api_client.call_api(
|
|
2277
|
+
*_param,
|
|
2278
|
+
_request_timeout=_request_timeout
|
|
2279
|
+
)
|
|
2280
|
+
response_data.read()
|
|
2281
|
+
return self.api_client.response_deserialize(
|
|
2282
|
+
response_data=response_data,
|
|
2283
|
+
response_types_map=_response_types_map,
|
|
2284
|
+
).data
|
|
2285
|
+
|
|
2286
|
+
|
|
2287
|
+
@validate_call
|
|
2288
|
+
def test_service_grant_test_access_with_http_info(
|
|
2289
|
+
self,
|
|
2290
|
+
name_1: Annotated[str, Field(strict=True, description="Required. The name of the Test to grant access to.")],
|
|
2291
|
+
body: TestServiceGrantTestAccessRequest,
|
|
2292
|
+
_request_timeout: Union[
|
|
2293
|
+
None,
|
|
2294
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2295
|
+
Tuple[
|
|
2296
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2297
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2298
|
+
]
|
|
2299
|
+
] = None,
|
|
2300
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2301
|
+
_content_type: Optional[StrictStr] = None,
|
|
2302
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2303
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2304
|
+
) -> ApiResponse[object]:
|
|
2305
|
+
"""test_service_grant_test_access
|
|
2306
|
+
|
|
2307
|
+
|
|
2308
|
+
:param name_1: Required. The name of the Test to grant access to. (required)
|
|
2309
|
+
:type name_1: str
|
|
2310
|
+
:param body: (required)
|
|
2311
|
+
:type body: TestServiceGrantTestAccessRequest
|
|
2312
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2313
|
+
number provided, it will be total request
|
|
2314
|
+
timeout. It can also be a pair (tuple) of
|
|
2315
|
+
(connection, read) timeouts.
|
|
2316
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2317
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2318
|
+
request; this effectively ignores the
|
|
2319
|
+
authentication in the spec for a single request.
|
|
2320
|
+
:type _request_auth: dict, optional
|
|
2321
|
+
:param _content_type: force content-type for the request.
|
|
2322
|
+
:type _content_type: str, Optional
|
|
2323
|
+
:param _headers: set to override the headers for a single
|
|
2324
|
+
request; this effectively ignores the headers
|
|
2325
|
+
in the spec for a single request.
|
|
2326
|
+
:type _headers: dict, optional
|
|
2327
|
+
:param _host_index: set to override the host_index for a single
|
|
2328
|
+
request; this effectively ignores the host_index
|
|
2329
|
+
in the spec for a single request.
|
|
2330
|
+
:type _host_index: int, optional
|
|
2331
|
+
:return: Returns the result object.
|
|
2332
|
+
""" # noqa: E501
|
|
2333
|
+
|
|
2334
|
+
_param = self._test_service_grant_test_access_serialize(
|
|
2335
|
+
name_1=name_1,
|
|
2336
|
+
body=body,
|
|
2337
|
+
_request_auth=_request_auth,
|
|
2338
|
+
_content_type=_content_type,
|
|
2339
|
+
_headers=_headers,
|
|
2340
|
+
_host_index=_host_index
|
|
2341
|
+
)
|
|
2342
|
+
|
|
2343
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2344
|
+
'200': "object",
|
|
2345
|
+
}
|
|
2346
|
+
response_data = self.api_client.call_api(
|
|
2347
|
+
*_param,
|
|
2348
|
+
_request_timeout=_request_timeout
|
|
2349
|
+
)
|
|
2350
|
+
response_data.read()
|
|
2351
|
+
return self.api_client.response_deserialize(
|
|
2352
|
+
response_data=response_data,
|
|
2353
|
+
response_types_map=_response_types_map,
|
|
2354
|
+
)
|
|
2355
|
+
|
|
2356
|
+
|
|
2357
|
+
@validate_call
|
|
2358
|
+
def test_service_grant_test_access_without_preload_content(
|
|
2359
|
+
self,
|
|
2360
|
+
name_1: Annotated[str, Field(strict=True, description="Required. The name of the Test to grant access to.")],
|
|
2361
|
+
body: TestServiceGrantTestAccessRequest,
|
|
2362
|
+
_request_timeout: Union[
|
|
2363
|
+
None,
|
|
2364
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2365
|
+
Tuple[
|
|
2366
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2367
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2368
|
+
]
|
|
2369
|
+
] = None,
|
|
2370
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2371
|
+
_content_type: Optional[StrictStr] = None,
|
|
2372
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2373
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2374
|
+
) -> RESTResponseType:
|
|
2375
|
+
"""test_service_grant_test_access
|
|
2376
|
+
|
|
2377
|
+
|
|
2378
|
+
:param name_1: Required. The name of the Test to grant access to. (required)
|
|
2379
|
+
:type name_1: str
|
|
2380
|
+
:param body: (required)
|
|
2381
|
+
:type body: TestServiceGrantTestAccessRequest
|
|
2382
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2383
|
+
number provided, it will be total request
|
|
2384
|
+
timeout. It can also be a pair (tuple) of
|
|
2385
|
+
(connection, read) timeouts.
|
|
2386
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2387
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2388
|
+
request; this effectively ignores the
|
|
2389
|
+
authentication in the spec for a single request.
|
|
2390
|
+
:type _request_auth: dict, optional
|
|
2391
|
+
:param _content_type: force content-type for the request.
|
|
2392
|
+
:type _content_type: str, Optional
|
|
2393
|
+
:param _headers: set to override the headers for a single
|
|
2394
|
+
request; this effectively ignores the headers
|
|
2395
|
+
in the spec for a single request.
|
|
2396
|
+
:type _headers: dict, optional
|
|
2397
|
+
:param _host_index: set to override the host_index for a single
|
|
2398
|
+
request; this effectively ignores the host_index
|
|
2399
|
+
in the spec for a single request.
|
|
2400
|
+
:type _host_index: int, optional
|
|
2401
|
+
:return: Returns the result object.
|
|
2402
|
+
""" # noqa: E501
|
|
2403
|
+
|
|
2404
|
+
_param = self._test_service_grant_test_access_serialize(
|
|
2405
|
+
name_1=name_1,
|
|
2406
|
+
body=body,
|
|
2407
|
+
_request_auth=_request_auth,
|
|
2408
|
+
_content_type=_content_type,
|
|
2409
|
+
_headers=_headers,
|
|
2410
|
+
_host_index=_host_index
|
|
2411
|
+
)
|
|
2412
|
+
|
|
2413
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2414
|
+
'200': "object",
|
|
2415
|
+
}
|
|
2416
|
+
response_data = self.api_client.call_api(
|
|
2417
|
+
*_param,
|
|
2418
|
+
_request_timeout=_request_timeout
|
|
2419
|
+
)
|
|
2420
|
+
return response_data.response
|
|
2421
|
+
|
|
2422
|
+
|
|
2423
|
+
def _test_service_grant_test_access_serialize(
|
|
2424
|
+
self,
|
|
2425
|
+
name_1,
|
|
2426
|
+
body,
|
|
2427
|
+
_request_auth,
|
|
2428
|
+
_content_type,
|
|
2429
|
+
_headers,
|
|
2430
|
+
_host_index,
|
|
2431
|
+
) -> RequestSerialized:
|
|
2432
|
+
|
|
2433
|
+
_host = None
|
|
2434
|
+
|
|
2435
|
+
_collection_formats: Dict[str, str] = {
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
_path_params: Dict[str, str] = {}
|
|
2439
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2440
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2441
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2442
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
2443
|
+
_body_params: Optional[bytes] = None
|
|
2444
|
+
|
|
2445
|
+
# process the path parameters
|
|
2446
|
+
if name_1 is not None:
|
|
2447
|
+
_path_params['name_1'] = name_1
|
|
2448
|
+
# process the query parameters
|
|
2449
|
+
# process the header parameters
|
|
2450
|
+
# process the form parameters
|
|
2451
|
+
# process the body parameter
|
|
2452
|
+
if body is not None:
|
|
2453
|
+
_body_params = body
|
|
2454
|
+
|
|
2455
|
+
|
|
2456
|
+
# set the HTTP header `Accept`
|
|
2457
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2458
|
+
[
|
|
2459
|
+
'application/json'
|
|
2460
|
+
]
|
|
2461
|
+
)
|
|
2462
|
+
|
|
2463
|
+
# set the HTTP header `Content-Type`
|
|
2464
|
+
if _content_type:
|
|
2465
|
+
_header_params['Content-Type'] = _content_type
|
|
2466
|
+
else:
|
|
2467
|
+
_default_content_type = (
|
|
2468
|
+
self.api_client.select_header_content_type(
|
|
2469
|
+
[
|
|
2470
|
+
'application/json'
|
|
2471
|
+
]
|
|
2472
|
+
)
|
|
2473
|
+
)
|
|
2474
|
+
if _default_content_type is not None:
|
|
2475
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2476
|
+
|
|
2477
|
+
# authentication setting
|
|
2478
|
+
_auth_settings: List[str] = [
|
|
2479
|
+
]
|
|
2480
|
+
|
|
2481
|
+
return self.api_client.param_serialize(
|
|
2482
|
+
method='POST',
|
|
2483
|
+
resource_path='/v1/{name_1}:grantAccess',
|
|
2484
|
+
path_params=_path_params,
|
|
2485
|
+
query_params=_query_params,
|
|
2486
|
+
header_params=_header_params,
|
|
2487
|
+
body=_body_params,
|
|
2488
|
+
post_params=_form_params,
|
|
2489
|
+
files=_files,
|
|
2490
|
+
auth_settings=_auth_settings,
|
|
2491
|
+
collection_formats=_collection_formats,
|
|
2492
|
+
_host=_host,
|
|
2493
|
+
_request_auth=_request_auth
|
|
2494
|
+
)
|
|
2495
|
+
|
|
2496
|
+
|
|
2497
|
+
|
|
2498
|
+
|
|
2213
2499
|
@validate_call
|
|
2214
2500
|
def test_service_import_test_cases_from_library(
|
|
2215
2501
|
self,
|
|
@@ -2749,7 +3035,816 @@ class TestServiceApi:
|
|
|
2749
3035
|
|
|
2750
3036
|
return self.api_client.param_serialize(
|
|
2751
3037
|
method='GET',
|
|
2752
|
-
resource_path='/v1/tests:mostRecent',
|
|
3038
|
+
resource_path='/v1/tests:mostRecent',
|
|
3039
|
+
path_params=_path_params,
|
|
3040
|
+
query_params=_query_params,
|
|
3041
|
+
header_params=_header_params,
|
|
3042
|
+
body=_body_params,
|
|
3043
|
+
post_params=_form_params,
|
|
3044
|
+
files=_files,
|
|
3045
|
+
auth_settings=_auth_settings,
|
|
3046
|
+
collection_formats=_collection_formats,
|
|
3047
|
+
_host=_host,
|
|
3048
|
+
_request_auth=_request_auth
|
|
3049
|
+
)
|
|
3050
|
+
|
|
3051
|
+
|
|
3052
|
+
|
|
3053
|
+
|
|
3054
|
+
@validate_call
|
|
3055
|
+
def test_service_list_test_access(
|
|
3056
|
+
self,
|
|
3057
|
+
name_1: Annotated[str, Field(strict=True, description="Required. The name of the Test to list access for.")],
|
|
3058
|
+
_request_timeout: Union[
|
|
3059
|
+
None,
|
|
3060
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3061
|
+
Tuple[
|
|
3062
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3063
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3064
|
+
]
|
|
3065
|
+
] = None,
|
|
3066
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3067
|
+
_content_type: Optional[StrictStr] = None,
|
|
3068
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3069
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3070
|
+
) -> V1ListTestAccessResponse:
|
|
3071
|
+
"""test_service_list_test_access
|
|
3072
|
+
|
|
3073
|
+
|
|
3074
|
+
:param name_1: Required. The name of the Test to list access for. (required)
|
|
3075
|
+
:type name_1: str
|
|
3076
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3077
|
+
number provided, it will be total request
|
|
3078
|
+
timeout. It can also be a pair (tuple) of
|
|
3079
|
+
(connection, read) timeouts.
|
|
3080
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3081
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3082
|
+
request; this effectively ignores the
|
|
3083
|
+
authentication in the spec for a single request.
|
|
3084
|
+
:type _request_auth: dict, optional
|
|
3085
|
+
:param _content_type: force content-type for the request.
|
|
3086
|
+
:type _content_type: str, Optional
|
|
3087
|
+
:param _headers: set to override the headers for a single
|
|
3088
|
+
request; this effectively ignores the headers
|
|
3089
|
+
in the spec for a single request.
|
|
3090
|
+
:type _headers: dict, optional
|
|
3091
|
+
:param _host_index: set to override the host_index for a single
|
|
3092
|
+
request; this effectively ignores the host_index
|
|
3093
|
+
in the spec for a single request.
|
|
3094
|
+
:type _host_index: int, optional
|
|
3095
|
+
:return: Returns the result object.
|
|
3096
|
+
""" # noqa: E501
|
|
3097
|
+
|
|
3098
|
+
_param = self._test_service_list_test_access_serialize(
|
|
3099
|
+
name_1=name_1,
|
|
3100
|
+
_request_auth=_request_auth,
|
|
3101
|
+
_content_type=_content_type,
|
|
3102
|
+
_headers=_headers,
|
|
3103
|
+
_host_index=_host_index
|
|
3104
|
+
)
|
|
3105
|
+
|
|
3106
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3107
|
+
'200': "V1ListTestAccessResponse",
|
|
3108
|
+
}
|
|
3109
|
+
response_data = self.api_client.call_api(
|
|
3110
|
+
*_param,
|
|
3111
|
+
_request_timeout=_request_timeout
|
|
3112
|
+
)
|
|
3113
|
+
response_data.read()
|
|
3114
|
+
return self.api_client.response_deserialize(
|
|
3115
|
+
response_data=response_data,
|
|
3116
|
+
response_types_map=_response_types_map,
|
|
3117
|
+
).data
|
|
3118
|
+
|
|
3119
|
+
|
|
3120
|
+
@validate_call
|
|
3121
|
+
def test_service_list_test_access_with_http_info(
|
|
3122
|
+
self,
|
|
3123
|
+
name_1: Annotated[str, Field(strict=True, description="Required. The name of the Test to list access for.")],
|
|
3124
|
+
_request_timeout: Union[
|
|
3125
|
+
None,
|
|
3126
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3127
|
+
Tuple[
|
|
3128
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3129
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3130
|
+
]
|
|
3131
|
+
] = None,
|
|
3132
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3133
|
+
_content_type: Optional[StrictStr] = None,
|
|
3134
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3135
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3136
|
+
) -> ApiResponse[V1ListTestAccessResponse]:
|
|
3137
|
+
"""test_service_list_test_access
|
|
3138
|
+
|
|
3139
|
+
|
|
3140
|
+
:param name_1: Required. The name of the Test to list access for. (required)
|
|
3141
|
+
:type name_1: str
|
|
3142
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3143
|
+
number provided, it will be total request
|
|
3144
|
+
timeout. It can also be a pair (tuple) of
|
|
3145
|
+
(connection, read) timeouts.
|
|
3146
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3147
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3148
|
+
request; this effectively ignores the
|
|
3149
|
+
authentication in the spec for a single request.
|
|
3150
|
+
:type _request_auth: dict, optional
|
|
3151
|
+
:param _content_type: force content-type for the request.
|
|
3152
|
+
:type _content_type: str, Optional
|
|
3153
|
+
:param _headers: set to override the headers for a single
|
|
3154
|
+
request; this effectively ignores the headers
|
|
3155
|
+
in the spec for a single request.
|
|
3156
|
+
:type _headers: dict, optional
|
|
3157
|
+
:param _host_index: set to override the host_index for a single
|
|
3158
|
+
request; this effectively ignores the host_index
|
|
3159
|
+
in the spec for a single request.
|
|
3160
|
+
:type _host_index: int, optional
|
|
3161
|
+
:return: Returns the result object.
|
|
3162
|
+
""" # noqa: E501
|
|
3163
|
+
|
|
3164
|
+
_param = self._test_service_list_test_access_serialize(
|
|
3165
|
+
name_1=name_1,
|
|
3166
|
+
_request_auth=_request_auth,
|
|
3167
|
+
_content_type=_content_type,
|
|
3168
|
+
_headers=_headers,
|
|
3169
|
+
_host_index=_host_index
|
|
3170
|
+
)
|
|
3171
|
+
|
|
3172
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3173
|
+
'200': "V1ListTestAccessResponse",
|
|
3174
|
+
}
|
|
3175
|
+
response_data = self.api_client.call_api(
|
|
3176
|
+
*_param,
|
|
3177
|
+
_request_timeout=_request_timeout
|
|
3178
|
+
)
|
|
3179
|
+
response_data.read()
|
|
3180
|
+
return self.api_client.response_deserialize(
|
|
3181
|
+
response_data=response_data,
|
|
3182
|
+
response_types_map=_response_types_map,
|
|
3183
|
+
)
|
|
3184
|
+
|
|
3185
|
+
|
|
3186
|
+
@validate_call
|
|
3187
|
+
def test_service_list_test_access_without_preload_content(
|
|
3188
|
+
self,
|
|
3189
|
+
name_1: Annotated[str, Field(strict=True, description="Required. The name of the Test to list access for.")],
|
|
3190
|
+
_request_timeout: Union[
|
|
3191
|
+
None,
|
|
3192
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3193
|
+
Tuple[
|
|
3194
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3195
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3196
|
+
]
|
|
3197
|
+
] = None,
|
|
3198
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3199
|
+
_content_type: Optional[StrictStr] = None,
|
|
3200
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3201
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3202
|
+
) -> RESTResponseType:
|
|
3203
|
+
"""test_service_list_test_access
|
|
3204
|
+
|
|
3205
|
+
|
|
3206
|
+
:param name_1: Required. The name of the Test to list access for. (required)
|
|
3207
|
+
:type name_1: str
|
|
3208
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3209
|
+
number provided, it will be total request
|
|
3210
|
+
timeout. It can also be a pair (tuple) of
|
|
3211
|
+
(connection, read) timeouts.
|
|
3212
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3213
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3214
|
+
request; this effectively ignores the
|
|
3215
|
+
authentication in the spec for a single request.
|
|
3216
|
+
:type _request_auth: dict, optional
|
|
3217
|
+
:param _content_type: force content-type for the request.
|
|
3218
|
+
:type _content_type: str, Optional
|
|
3219
|
+
:param _headers: set to override the headers for a single
|
|
3220
|
+
request; this effectively ignores the headers
|
|
3221
|
+
in the spec for a single request.
|
|
3222
|
+
:type _headers: dict, optional
|
|
3223
|
+
:param _host_index: set to override the host_index for a single
|
|
3224
|
+
request; this effectively ignores the host_index
|
|
3225
|
+
in the spec for a single request.
|
|
3226
|
+
:type _host_index: int, optional
|
|
3227
|
+
:return: Returns the result object.
|
|
3228
|
+
""" # noqa: E501
|
|
3229
|
+
|
|
3230
|
+
_param = self._test_service_list_test_access_serialize(
|
|
3231
|
+
name_1=name_1,
|
|
3232
|
+
_request_auth=_request_auth,
|
|
3233
|
+
_content_type=_content_type,
|
|
3234
|
+
_headers=_headers,
|
|
3235
|
+
_host_index=_host_index
|
|
3236
|
+
)
|
|
3237
|
+
|
|
3238
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3239
|
+
'200': "V1ListTestAccessResponse",
|
|
3240
|
+
}
|
|
3241
|
+
response_data = self.api_client.call_api(
|
|
3242
|
+
*_param,
|
|
3243
|
+
_request_timeout=_request_timeout
|
|
3244
|
+
)
|
|
3245
|
+
return response_data.response
|
|
3246
|
+
|
|
3247
|
+
|
|
3248
|
+
def _test_service_list_test_access_serialize(
|
|
3249
|
+
self,
|
|
3250
|
+
name_1,
|
|
3251
|
+
_request_auth,
|
|
3252
|
+
_content_type,
|
|
3253
|
+
_headers,
|
|
3254
|
+
_host_index,
|
|
3255
|
+
) -> RequestSerialized:
|
|
3256
|
+
|
|
3257
|
+
_host = None
|
|
3258
|
+
|
|
3259
|
+
_collection_formats: Dict[str, str] = {
|
|
3260
|
+
}
|
|
3261
|
+
|
|
3262
|
+
_path_params: Dict[str, str] = {}
|
|
3263
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3264
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3265
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3266
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
3267
|
+
_body_params: Optional[bytes] = None
|
|
3268
|
+
|
|
3269
|
+
# process the path parameters
|
|
3270
|
+
if name_1 is not None:
|
|
3271
|
+
_path_params['name_1'] = name_1
|
|
3272
|
+
# process the query parameters
|
|
3273
|
+
# process the header parameters
|
|
3274
|
+
# process the form parameters
|
|
3275
|
+
# process the body parameter
|
|
3276
|
+
|
|
3277
|
+
|
|
3278
|
+
# set the HTTP header `Accept`
|
|
3279
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3280
|
+
[
|
|
3281
|
+
'application/json'
|
|
3282
|
+
]
|
|
3283
|
+
)
|
|
3284
|
+
|
|
3285
|
+
|
|
3286
|
+
# authentication setting
|
|
3287
|
+
_auth_settings: List[str] = [
|
|
3288
|
+
]
|
|
3289
|
+
|
|
3290
|
+
return self.api_client.param_serialize(
|
|
3291
|
+
method='GET',
|
|
3292
|
+
resource_path='/v1/{name_1}:listAccess',
|
|
3293
|
+
path_params=_path_params,
|
|
3294
|
+
query_params=_query_params,
|
|
3295
|
+
header_params=_header_params,
|
|
3296
|
+
body=_body_params,
|
|
3297
|
+
post_params=_form_params,
|
|
3298
|
+
files=_files,
|
|
3299
|
+
auth_settings=_auth_settings,
|
|
3300
|
+
collection_formats=_collection_formats,
|
|
3301
|
+
_host=_host,
|
|
3302
|
+
_request_auth=_request_auth
|
|
3303
|
+
)
|
|
3304
|
+
|
|
3305
|
+
|
|
3306
|
+
|
|
3307
|
+
|
|
3308
|
+
@validate_call
|
|
3309
|
+
def test_service_list_test_case_library_items(
|
|
3310
|
+
self,
|
|
3311
|
+
name: Annotated[str, Field(strict=True, description="Required. The Test for which to list the items.")],
|
|
3312
|
+
body: TestServiceListTestCaseLibraryItemsRequest,
|
|
3313
|
+
_request_timeout: Union[
|
|
3314
|
+
None,
|
|
3315
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3316
|
+
Tuple[
|
|
3317
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3318
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3319
|
+
]
|
|
3320
|
+
] = None,
|
|
3321
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3322
|
+
_content_type: Optional[StrictStr] = None,
|
|
3323
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3324
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3325
|
+
) -> V1ListTestCaseLibraryItemsResponse:
|
|
3326
|
+
"""test_service_list_test_case_library_items
|
|
3327
|
+
|
|
3328
|
+
|
|
3329
|
+
:param name: Required. The Test for which to list the items. (required)
|
|
3330
|
+
:type name: str
|
|
3331
|
+
:param body: (required)
|
|
3332
|
+
:type body: TestServiceListTestCaseLibraryItemsRequest
|
|
3333
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3334
|
+
number provided, it will be total request
|
|
3335
|
+
timeout. It can also be a pair (tuple) of
|
|
3336
|
+
(connection, read) timeouts.
|
|
3337
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3338
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3339
|
+
request; this effectively ignores the
|
|
3340
|
+
authentication in the spec for a single request.
|
|
3341
|
+
:type _request_auth: dict, optional
|
|
3342
|
+
:param _content_type: force content-type for the request.
|
|
3343
|
+
:type _content_type: str, Optional
|
|
3344
|
+
:param _headers: set to override the headers for a single
|
|
3345
|
+
request; this effectively ignores the headers
|
|
3346
|
+
in the spec for a single request.
|
|
3347
|
+
:type _headers: dict, optional
|
|
3348
|
+
:param _host_index: set to override the host_index for a single
|
|
3349
|
+
request; this effectively ignores the host_index
|
|
3350
|
+
in the spec for a single request.
|
|
3351
|
+
:type _host_index: int, optional
|
|
3352
|
+
:return: Returns the result object.
|
|
3353
|
+
""" # noqa: E501
|
|
3354
|
+
|
|
3355
|
+
_param = self._test_service_list_test_case_library_items_serialize(
|
|
3356
|
+
name=name,
|
|
3357
|
+
body=body,
|
|
3358
|
+
_request_auth=_request_auth,
|
|
3359
|
+
_content_type=_content_type,
|
|
3360
|
+
_headers=_headers,
|
|
3361
|
+
_host_index=_host_index
|
|
3362
|
+
)
|
|
3363
|
+
|
|
3364
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3365
|
+
'200': "V1ListTestCaseLibraryItemsResponse",
|
|
3366
|
+
}
|
|
3367
|
+
response_data = self.api_client.call_api(
|
|
3368
|
+
*_param,
|
|
3369
|
+
_request_timeout=_request_timeout
|
|
3370
|
+
)
|
|
3371
|
+
response_data.read()
|
|
3372
|
+
return self.api_client.response_deserialize(
|
|
3373
|
+
response_data=response_data,
|
|
3374
|
+
response_types_map=_response_types_map,
|
|
3375
|
+
).data
|
|
3376
|
+
|
|
3377
|
+
|
|
3378
|
+
@validate_call
|
|
3379
|
+
def test_service_list_test_case_library_items_with_http_info(
|
|
3380
|
+
self,
|
|
3381
|
+
name: Annotated[str, Field(strict=True, description="Required. The Test for which to list the items.")],
|
|
3382
|
+
body: TestServiceListTestCaseLibraryItemsRequest,
|
|
3383
|
+
_request_timeout: Union[
|
|
3384
|
+
None,
|
|
3385
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3386
|
+
Tuple[
|
|
3387
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3388
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3389
|
+
]
|
|
3390
|
+
] = None,
|
|
3391
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3392
|
+
_content_type: Optional[StrictStr] = None,
|
|
3393
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3394
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3395
|
+
) -> ApiResponse[V1ListTestCaseLibraryItemsResponse]:
|
|
3396
|
+
"""test_service_list_test_case_library_items
|
|
3397
|
+
|
|
3398
|
+
|
|
3399
|
+
:param name: Required. The Test for which to list the items. (required)
|
|
3400
|
+
:type name: str
|
|
3401
|
+
:param body: (required)
|
|
3402
|
+
:type body: TestServiceListTestCaseLibraryItemsRequest
|
|
3403
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3404
|
+
number provided, it will be total request
|
|
3405
|
+
timeout. It can also be a pair (tuple) of
|
|
3406
|
+
(connection, read) timeouts.
|
|
3407
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3408
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3409
|
+
request; this effectively ignores the
|
|
3410
|
+
authentication in the spec for a single request.
|
|
3411
|
+
:type _request_auth: dict, optional
|
|
3412
|
+
:param _content_type: force content-type for the request.
|
|
3413
|
+
:type _content_type: str, Optional
|
|
3414
|
+
:param _headers: set to override the headers for a single
|
|
3415
|
+
request; this effectively ignores the headers
|
|
3416
|
+
in the spec for a single request.
|
|
3417
|
+
:type _headers: dict, optional
|
|
3418
|
+
:param _host_index: set to override the host_index for a single
|
|
3419
|
+
request; this effectively ignores the host_index
|
|
3420
|
+
in the spec for a single request.
|
|
3421
|
+
:type _host_index: int, optional
|
|
3422
|
+
:return: Returns the result object.
|
|
3423
|
+
""" # noqa: E501
|
|
3424
|
+
|
|
3425
|
+
_param = self._test_service_list_test_case_library_items_serialize(
|
|
3426
|
+
name=name,
|
|
3427
|
+
body=body,
|
|
3428
|
+
_request_auth=_request_auth,
|
|
3429
|
+
_content_type=_content_type,
|
|
3430
|
+
_headers=_headers,
|
|
3431
|
+
_host_index=_host_index
|
|
3432
|
+
)
|
|
3433
|
+
|
|
3434
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3435
|
+
'200': "V1ListTestCaseLibraryItemsResponse",
|
|
3436
|
+
}
|
|
3437
|
+
response_data = self.api_client.call_api(
|
|
3438
|
+
*_param,
|
|
3439
|
+
_request_timeout=_request_timeout
|
|
3440
|
+
)
|
|
3441
|
+
response_data.read()
|
|
3442
|
+
return self.api_client.response_deserialize(
|
|
3443
|
+
response_data=response_data,
|
|
3444
|
+
response_types_map=_response_types_map,
|
|
3445
|
+
)
|
|
3446
|
+
|
|
3447
|
+
|
|
3448
|
+
@validate_call
|
|
3449
|
+
def test_service_list_test_case_library_items_without_preload_content(
|
|
3450
|
+
self,
|
|
3451
|
+
name: Annotated[str, Field(strict=True, description="Required. The Test for which to list the items.")],
|
|
3452
|
+
body: TestServiceListTestCaseLibraryItemsRequest,
|
|
3453
|
+
_request_timeout: Union[
|
|
3454
|
+
None,
|
|
3455
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3456
|
+
Tuple[
|
|
3457
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3458
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3459
|
+
]
|
|
3460
|
+
] = None,
|
|
3461
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3462
|
+
_content_type: Optional[StrictStr] = None,
|
|
3463
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3464
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3465
|
+
) -> RESTResponseType:
|
|
3466
|
+
"""test_service_list_test_case_library_items
|
|
3467
|
+
|
|
3468
|
+
|
|
3469
|
+
:param name: Required. The Test for which to list the items. (required)
|
|
3470
|
+
:type name: str
|
|
3471
|
+
:param body: (required)
|
|
3472
|
+
:type body: TestServiceListTestCaseLibraryItemsRequest
|
|
3473
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3474
|
+
number provided, it will be total request
|
|
3475
|
+
timeout. It can also be a pair (tuple) of
|
|
3476
|
+
(connection, read) timeouts.
|
|
3477
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3478
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3479
|
+
request; this effectively ignores the
|
|
3480
|
+
authentication in the spec for a single request.
|
|
3481
|
+
:type _request_auth: dict, optional
|
|
3482
|
+
:param _content_type: force content-type for the request.
|
|
3483
|
+
:type _content_type: str, Optional
|
|
3484
|
+
:param _headers: set to override the headers for a single
|
|
3485
|
+
request; this effectively ignores the headers
|
|
3486
|
+
in the spec for a single request.
|
|
3487
|
+
:type _headers: dict, optional
|
|
3488
|
+
:param _host_index: set to override the host_index for a single
|
|
3489
|
+
request; this effectively ignores the host_index
|
|
3490
|
+
in the spec for a single request.
|
|
3491
|
+
:type _host_index: int, optional
|
|
3492
|
+
:return: Returns the result object.
|
|
3493
|
+
""" # noqa: E501
|
|
3494
|
+
|
|
3495
|
+
_param = self._test_service_list_test_case_library_items_serialize(
|
|
3496
|
+
name=name,
|
|
3497
|
+
body=body,
|
|
3498
|
+
_request_auth=_request_auth,
|
|
3499
|
+
_content_type=_content_type,
|
|
3500
|
+
_headers=_headers,
|
|
3501
|
+
_host_index=_host_index
|
|
3502
|
+
)
|
|
3503
|
+
|
|
3504
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3505
|
+
'200': "V1ListTestCaseLibraryItemsResponse",
|
|
3506
|
+
}
|
|
3507
|
+
response_data = self.api_client.call_api(
|
|
3508
|
+
*_param,
|
|
3509
|
+
_request_timeout=_request_timeout
|
|
3510
|
+
)
|
|
3511
|
+
return response_data.response
|
|
3512
|
+
|
|
3513
|
+
|
|
3514
|
+
def _test_service_list_test_case_library_items_serialize(
|
|
3515
|
+
self,
|
|
3516
|
+
name,
|
|
3517
|
+
body,
|
|
3518
|
+
_request_auth,
|
|
3519
|
+
_content_type,
|
|
3520
|
+
_headers,
|
|
3521
|
+
_host_index,
|
|
3522
|
+
) -> RequestSerialized:
|
|
3523
|
+
|
|
3524
|
+
_host = None
|
|
3525
|
+
|
|
3526
|
+
_collection_formats: Dict[str, str] = {
|
|
3527
|
+
}
|
|
3528
|
+
|
|
3529
|
+
_path_params: Dict[str, str] = {}
|
|
3530
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3531
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3532
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3533
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
3534
|
+
_body_params: Optional[bytes] = None
|
|
3535
|
+
|
|
3536
|
+
# process the path parameters
|
|
3537
|
+
if name is not None:
|
|
3538
|
+
_path_params['name'] = name
|
|
3539
|
+
# process the query parameters
|
|
3540
|
+
# process the header parameters
|
|
3541
|
+
# process the form parameters
|
|
3542
|
+
# process the body parameter
|
|
3543
|
+
if body is not None:
|
|
3544
|
+
_body_params = body
|
|
3545
|
+
|
|
3546
|
+
|
|
3547
|
+
# set the HTTP header `Accept`
|
|
3548
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3549
|
+
[
|
|
3550
|
+
'application/json'
|
|
3551
|
+
]
|
|
3552
|
+
)
|
|
3553
|
+
|
|
3554
|
+
# set the HTTP header `Content-Type`
|
|
3555
|
+
if _content_type:
|
|
3556
|
+
_header_params['Content-Type'] = _content_type
|
|
3557
|
+
else:
|
|
3558
|
+
_default_content_type = (
|
|
3559
|
+
self.api_client.select_header_content_type(
|
|
3560
|
+
[
|
|
3561
|
+
'application/json'
|
|
3562
|
+
]
|
|
3563
|
+
)
|
|
3564
|
+
)
|
|
3565
|
+
if _default_content_type is not None:
|
|
3566
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3567
|
+
|
|
3568
|
+
# authentication setting
|
|
3569
|
+
_auth_settings: List[str] = [
|
|
3570
|
+
]
|
|
3571
|
+
|
|
3572
|
+
return self.api_client.param_serialize(
|
|
3573
|
+
method='POST',
|
|
3574
|
+
resource_path='/v1/{name}:listTestCaseLibraryItems',
|
|
3575
|
+
path_params=_path_params,
|
|
3576
|
+
query_params=_query_params,
|
|
3577
|
+
header_params=_header_params,
|
|
3578
|
+
body=_body_params,
|
|
3579
|
+
post_params=_form_params,
|
|
3580
|
+
files=_files,
|
|
3581
|
+
auth_settings=_auth_settings,
|
|
3582
|
+
collection_formats=_collection_formats,
|
|
3583
|
+
_host=_host,
|
|
3584
|
+
_request_auth=_request_auth
|
|
3585
|
+
)
|
|
3586
|
+
|
|
3587
|
+
|
|
3588
|
+
|
|
3589
|
+
|
|
3590
|
+
@validate_call
|
|
3591
|
+
def test_service_list_tests(
|
|
3592
|
+
self,
|
|
3593
|
+
filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - type - only '=' operator is supported")] = None,
|
|
3594
|
+
order_by: Annotated[Optional[StrictStr], Field(description="If specified, the returned tests will be ordered by the specified field. Attempts to implement AIP-130 (https://google.aip.dev/132#ordering), although not all features are supported yet. Supported fields: - create_time - update_time")] = None,
|
|
3595
|
+
_request_timeout: Union[
|
|
3596
|
+
None,
|
|
3597
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3598
|
+
Tuple[
|
|
3599
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3600
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3601
|
+
]
|
|
3602
|
+
] = None,
|
|
3603
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3604
|
+
_content_type: Optional[StrictStr] = None,
|
|
3605
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3606
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3607
|
+
) -> V1ListTestsResponse:
|
|
3608
|
+
"""test_service_list_tests
|
|
3609
|
+
|
|
3610
|
+
|
|
3611
|
+
:param filter: Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - type - only '=' operator is supported
|
|
3612
|
+
:type filter: str
|
|
3613
|
+
:param order_by: If specified, the returned tests will be ordered by the specified field. Attempts to implement AIP-130 (https://google.aip.dev/132#ordering), although not all features are supported yet. Supported fields: - create_time - update_time
|
|
3614
|
+
:type order_by: str
|
|
3615
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3616
|
+
number provided, it will be total request
|
|
3617
|
+
timeout. It can also be a pair (tuple) of
|
|
3618
|
+
(connection, read) timeouts.
|
|
3619
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3620
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3621
|
+
request; this effectively ignores the
|
|
3622
|
+
authentication in the spec for a single request.
|
|
3623
|
+
:type _request_auth: dict, optional
|
|
3624
|
+
:param _content_type: force content-type for the request.
|
|
3625
|
+
:type _content_type: str, Optional
|
|
3626
|
+
:param _headers: set to override the headers for a single
|
|
3627
|
+
request; this effectively ignores the headers
|
|
3628
|
+
in the spec for a single request.
|
|
3629
|
+
:type _headers: dict, optional
|
|
3630
|
+
:param _host_index: set to override the host_index for a single
|
|
3631
|
+
request; this effectively ignores the host_index
|
|
3632
|
+
in the spec for a single request.
|
|
3633
|
+
:type _host_index: int, optional
|
|
3634
|
+
:return: Returns the result object.
|
|
3635
|
+
""" # noqa: E501
|
|
3636
|
+
|
|
3637
|
+
_param = self._test_service_list_tests_serialize(
|
|
3638
|
+
filter=filter,
|
|
3639
|
+
order_by=order_by,
|
|
3640
|
+
_request_auth=_request_auth,
|
|
3641
|
+
_content_type=_content_type,
|
|
3642
|
+
_headers=_headers,
|
|
3643
|
+
_host_index=_host_index
|
|
3644
|
+
)
|
|
3645
|
+
|
|
3646
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3647
|
+
'200': "V1ListTestsResponse",
|
|
3648
|
+
}
|
|
3649
|
+
response_data = self.api_client.call_api(
|
|
3650
|
+
*_param,
|
|
3651
|
+
_request_timeout=_request_timeout
|
|
3652
|
+
)
|
|
3653
|
+
response_data.read()
|
|
3654
|
+
return self.api_client.response_deserialize(
|
|
3655
|
+
response_data=response_data,
|
|
3656
|
+
response_types_map=_response_types_map,
|
|
3657
|
+
).data
|
|
3658
|
+
|
|
3659
|
+
|
|
3660
|
+
@validate_call
|
|
3661
|
+
def test_service_list_tests_with_http_info(
|
|
3662
|
+
self,
|
|
3663
|
+
filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - type - only '=' operator is supported")] = None,
|
|
3664
|
+
order_by: Annotated[Optional[StrictStr], Field(description="If specified, the returned tests will be ordered by the specified field. Attempts to implement AIP-130 (https://google.aip.dev/132#ordering), although not all features are supported yet. Supported fields: - create_time - update_time")] = None,
|
|
3665
|
+
_request_timeout: Union[
|
|
3666
|
+
None,
|
|
3667
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3668
|
+
Tuple[
|
|
3669
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3670
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3671
|
+
]
|
|
3672
|
+
] = None,
|
|
3673
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3674
|
+
_content_type: Optional[StrictStr] = None,
|
|
3675
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3676
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3677
|
+
) -> ApiResponse[V1ListTestsResponse]:
|
|
3678
|
+
"""test_service_list_tests
|
|
3679
|
+
|
|
3680
|
+
|
|
3681
|
+
:param filter: Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - type - only '=' operator is supported
|
|
3682
|
+
:type filter: str
|
|
3683
|
+
:param order_by: If specified, the returned tests will be ordered by the specified field. Attempts to implement AIP-130 (https://google.aip.dev/132#ordering), although not all features are supported yet. Supported fields: - create_time - update_time
|
|
3684
|
+
:type order_by: str
|
|
3685
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3686
|
+
number provided, it will be total request
|
|
3687
|
+
timeout. It can also be a pair (tuple) of
|
|
3688
|
+
(connection, read) timeouts.
|
|
3689
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3690
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3691
|
+
request; this effectively ignores the
|
|
3692
|
+
authentication in the spec for a single request.
|
|
3693
|
+
:type _request_auth: dict, optional
|
|
3694
|
+
:param _content_type: force content-type for the request.
|
|
3695
|
+
:type _content_type: str, Optional
|
|
3696
|
+
:param _headers: set to override the headers for a single
|
|
3697
|
+
request; this effectively ignores the headers
|
|
3698
|
+
in the spec for a single request.
|
|
3699
|
+
:type _headers: dict, optional
|
|
3700
|
+
:param _host_index: set to override the host_index for a single
|
|
3701
|
+
request; this effectively ignores the host_index
|
|
3702
|
+
in the spec for a single request.
|
|
3703
|
+
:type _host_index: int, optional
|
|
3704
|
+
:return: Returns the result object.
|
|
3705
|
+
""" # noqa: E501
|
|
3706
|
+
|
|
3707
|
+
_param = self._test_service_list_tests_serialize(
|
|
3708
|
+
filter=filter,
|
|
3709
|
+
order_by=order_by,
|
|
3710
|
+
_request_auth=_request_auth,
|
|
3711
|
+
_content_type=_content_type,
|
|
3712
|
+
_headers=_headers,
|
|
3713
|
+
_host_index=_host_index
|
|
3714
|
+
)
|
|
3715
|
+
|
|
3716
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3717
|
+
'200': "V1ListTestsResponse",
|
|
3718
|
+
}
|
|
3719
|
+
response_data = self.api_client.call_api(
|
|
3720
|
+
*_param,
|
|
3721
|
+
_request_timeout=_request_timeout
|
|
3722
|
+
)
|
|
3723
|
+
response_data.read()
|
|
3724
|
+
return self.api_client.response_deserialize(
|
|
3725
|
+
response_data=response_data,
|
|
3726
|
+
response_types_map=_response_types_map,
|
|
3727
|
+
)
|
|
3728
|
+
|
|
3729
|
+
|
|
3730
|
+
@validate_call
|
|
3731
|
+
def test_service_list_tests_without_preload_content(
|
|
3732
|
+
self,
|
|
3733
|
+
filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - type - only '=' operator is supported")] = None,
|
|
3734
|
+
order_by: Annotated[Optional[StrictStr], Field(description="If specified, the returned tests will be ordered by the specified field. Attempts to implement AIP-130 (https://google.aip.dev/132#ordering), although not all features are supported yet. Supported fields: - create_time - update_time")] = None,
|
|
3735
|
+
_request_timeout: Union[
|
|
3736
|
+
None,
|
|
3737
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3738
|
+
Tuple[
|
|
3739
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3740
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3741
|
+
]
|
|
3742
|
+
] = None,
|
|
3743
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3744
|
+
_content_type: Optional[StrictStr] = None,
|
|
3745
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3746
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3747
|
+
) -> RESTResponseType:
|
|
3748
|
+
"""test_service_list_tests
|
|
3749
|
+
|
|
3750
|
+
|
|
3751
|
+
:param filter: Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - type - only '=' operator is supported
|
|
3752
|
+
:type filter: str
|
|
3753
|
+
:param order_by: If specified, the returned tests will be ordered by the specified field. Attempts to implement AIP-130 (https://google.aip.dev/132#ordering), although not all features are supported yet. Supported fields: - create_time - update_time
|
|
3754
|
+
:type order_by: str
|
|
3755
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3756
|
+
number provided, it will be total request
|
|
3757
|
+
timeout. It can also be a pair (tuple) of
|
|
3758
|
+
(connection, read) timeouts.
|
|
3759
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3760
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3761
|
+
request; this effectively ignores the
|
|
3762
|
+
authentication in the spec for a single request.
|
|
3763
|
+
:type _request_auth: dict, optional
|
|
3764
|
+
:param _content_type: force content-type for the request.
|
|
3765
|
+
:type _content_type: str, Optional
|
|
3766
|
+
:param _headers: set to override the headers for a single
|
|
3767
|
+
request; this effectively ignores the headers
|
|
3768
|
+
in the spec for a single request.
|
|
3769
|
+
:type _headers: dict, optional
|
|
3770
|
+
:param _host_index: set to override the host_index for a single
|
|
3771
|
+
request; this effectively ignores the host_index
|
|
3772
|
+
in the spec for a single request.
|
|
3773
|
+
:type _host_index: int, optional
|
|
3774
|
+
:return: Returns the result object.
|
|
3775
|
+
""" # noqa: E501
|
|
3776
|
+
|
|
3777
|
+
_param = self._test_service_list_tests_serialize(
|
|
3778
|
+
filter=filter,
|
|
3779
|
+
order_by=order_by,
|
|
3780
|
+
_request_auth=_request_auth,
|
|
3781
|
+
_content_type=_content_type,
|
|
3782
|
+
_headers=_headers,
|
|
3783
|
+
_host_index=_host_index
|
|
3784
|
+
)
|
|
3785
|
+
|
|
3786
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3787
|
+
'200': "V1ListTestsResponse",
|
|
3788
|
+
}
|
|
3789
|
+
response_data = self.api_client.call_api(
|
|
3790
|
+
*_param,
|
|
3791
|
+
_request_timeout=_request_timeout
|
|
3792
|
+
)
|
|
3793
|
+
return response_data.response
|
|
3794
|
+
|
|
3795
|
+
|
|
3796
|
+
def _test_service_list_tests_serialize(
|
|
3797
|
+
self,
|
|
3798
|
+
filter,
|
|
3799
|
+
order_by,
|
|
3800
|
+
_request_auth,
|
|
3801
|
+
_content_type,
|
|
3802
|
+
_headers,
|
|
3803
|
+
_host_index,
|
|
3804
|
+
) -> RequestSerialized:
|
|
3805
|
+
|
|
3806
|
+
_host = None
|
|
3807
|
+
|
|
3808
|
+
_collection_formats: Dict[str, str] = {
|
|
3809
|
+
}
|
|
3810
|
+
|
|
3811
|
+
_path_params: Dict[str, str] = {}
|
|
3812
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3813
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3814
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3815
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
|
3816
|
+
_body_params: Optional[bytes] = None
|
|
3817
|
+
|
|
3818
|
+
# process the path parameters
|
|
3819
|
+
# process the query parameters
|
|
3820
|
+
if filter is not None:
|
|
3821
|
+
|
|
3822
|
+
_query_params.append(('filter', filter))
|
|
3823
|
+
|
|
3824
|
+
if order_by is not None:
|
|
3825
|
+
|
|
3826
|
+
_query_params.append(('orderBy', order_by))
|
|
3827
|
+
|
|
3828
|
+
# process the header parameters
|
|
3829
|
+
# process the form parameters
|
|
3830
|
+
# process the body parameter
|
|
3831
|
+
|
|
3832
|
+
|
|
3833
|
+
# set the HTTP header `Accept`
|
|
3834
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3835
|
+
[
|
|
3836
|
+
'application/json'
|
|
3837
|
+
]
|
|
3838
|
+
)
|
|
3839
|
+
|
|
3840
|
+
|
|
3841
|
+
# authentication setting
|
|
3842
|
+
_auth_settings: List[str] = [
|
|
3843
|
+
]
|
|
3844
|
+
|
|
3845
|
+
return self.api_client.param_serialize(
|
|
3846
|
+
method='GET',
|
|
3847
|
+
resource_path='/v1/tests',
|
|
2753
3848
|
path_params=_path_params,
|
|
2754
3849
|
query_params=_query_params,
|
|
2755
3850
|
header_params=_header_params,
|
|
@@ -2766,10 +3861,8 @@ class TestServiceApi:
|
|
|
2766
3861
|
|
|
2767
3862
|
|
|
2768
3863
|
@validate_call
|
|
2769
|
-
def
|
|
3864
|
+
def test_service_list_tests_shared_with_me(
|
|
2770
3865
|
self,
|
|
2771
|
-
name: Annotated[str, Field(strict=True, description="Required. The Test for which to list the items.")],
|
|
2772
|
-
body: TestServiceListTestCaseLibraryItemsRequest,
|
|
2773
3866
|
_request_timeout: Union[
|
|
2774
3867
|
None,
|
|
2775
3868
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2782,14 +3875,10 @@ class TestServiceApi:
|
|
|
2782
3875
|
_content_type: Optional[StrictStr] = None,
|
|
2783
3876
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2784
3877
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2785
|
-
) ->
|
|
2786
|
-
"""
|
|
3878
|
+
) -> V1ListTestsSharedWithMeResponse:
|
|
3879
|
+
"""test_service_list_tests_shared_with_me
|
|
2787
3880
|
|
|
2788
3881
|
|
|
2789
|
-
:param name: Required. The Test for which to list the items. (required)
|
|
2790
|
-
:type name: str
|
|
2791
|
-
:param body: (required)
|
|
2792
|
-
:type body: TestServiceListTestCaseLibraryItemsRequest
|
|
2793
3882
|
:param _request_timeout: timeout setting for this request. If one
|
|
2794
3883
|
number provided, it will be total request
|
|
2795
3884
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2812,9 +3901,7 @@ class TestServiceApi:
|
|
|
2812
3901
|
:return: Returns the result object.
|
|
2813
3902
|
""" # noqa: E501
|
|
2814
3903
|
|
|
2815
|
-
_param = self.
|
|
2816
|
-
name=name,
|
|
2817
|
-
body=body,
|
|
3904
|
+
_param = self._test_service_list_tests_shared_with_me_serialize(
|
|
2818
3905
|
_request_auth=_request_auth,
|
|
2819
3906
|
_content_type=_content_type,
|
|
2820
3907
|
_headers=_headers,
|
|
@@ -2822,7 +3909,7 @@ class TestServiceApi:
|
|
|
2822
3909
|
)
|
|
2823
3910
|
|
|
2824
3911
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2825
|
-
'200': "
|
|
3912
|
+
'200': "V1ListTestsSharedWithMeResponse",
|
|
2826
3913
|
}
|
|
2827
3914
|
response_data = self.api_client.call_api(
|
|
2828
3915
|
*_param,
|
|
@@ -2836,10 +3923,8 @@ class TestServiceApi:
|
|
|
2836
3923
|
|
|
2837
3924
|
|
|
2838
3925
|
@validate_call
|
|
2839
|
-
def
|
|
3926
|
+
def test_service_list_tests_shared_with_me_with_http_info(
|
|
2840
3927
|
self,
|
|
2841
|
-
name: Annotated[str, Field(strict=True, description="Required. The Test for which to list the items.")],
|
|
2842
|
-
body: TestServiceListTestCaseLibraryItemsRequest,
|
|
2843
3928
|
_request_timeout: Union[
|
|
2844
3929
|
None,
|
|
2845
3930
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2852,14 +3937,10 @@ class TestServiceApi:
|
|
|
2852
3937
|
_content_type: Optional[StrictStr] = None,
|
|
2853
3938
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2854
3939
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2855
|
-
) -> ApiResponse[
|
|
2856
|
-
"""
|
|
3940
|
+
) -> ApiResponse[V1ListTestsSharedWithMeResponse]:
|
|
3941
|
+
"""test_service_list_tests_shared_with_me
|
|
2857
3942
|
|
|
2858
3943
|
|
|
2859
|
-
:param name: Required. The Test for which to list the items. (required)
|
|
2860
|
-
:type name: str
|
|
2861
|
-
:param body: (required)
|
|
2862
|
-
:type body: TestServiceListTestCaseLibraryItemsRequest
|
|
2863
3944
|
:param _request_timeout: timeout setting for this request. If one
|
|
2864
3945
|
number provided, it will be total request
|
|
2865
3946
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2882,9 +3963,7 @@ class TestServiceApi:
|
|
|
2882
3963
|
:return: Returns the result object.
|
|
2883
3964
|
""" # noqa: E501
|
|
2884
3965
|
|
|
2885
|
-
_param = self.
|
|
2886
|
-
name=name,
|
|
2887
|
-
body=body,
|
|
3966
|
+
_param = self._test_service_list_tests_shared_with_me_serialize(
|
|
2888
3967
|
_request_auth=_request_auth,
|
|
2889
3968
|
_content_type=_content_type,
|
|
2890
3969
|
_headers=_headers,
|
|
@@ -2892,7 +3971,7 @@ class TestServiceApi:
|
|
|
2892
3971
|
)
|
|
2893
3972
|
|
|
2894
3973
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2895
|
-
'200': "
|
|
3974
|
+
'200': "V1ListTestsSharedWithMeResponse",
|
|
2896
3975
|
}
|
|
2897
3976
|
response_data = self.api_client.call_api(
|
|
2898
3977
|
*_param,
|
|
@@ -2906,10 +3985,8 @@ class TestServiceApi:
|
|
|
2906
3985
|
|
|
2907
3986
|
|
|
2908
3987
|
@validate_call
|
|
2909
|
-
def
|
|
3988
|
+
def test_service_list_tests_shared_with_me_without_preload_content(
|
|
2910
3989
|
self,
|
|
2911
|
-
name: Annotated[str, Field(strict=True, description="Required. The Test for which to list the items.")],
|
|
2912
|
-
body: TestServiceListTestCaseLibraryItemsRequest,
|
|
2913
3990
|
_request_timeout: Union[
|
|
2914
3991
|
None,
|
|
2915
3992
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2923,13 +4000,9 @@ class TestServiceApi:
|
|
|
2923
4000
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2924
4001
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2925
4002
|
) -> RESTResponseType:
|
|
2926
|
-
"""
|
|
4003
|
+
"""test_service_list_tests_shared_with_me
|
|
2927
4004
|
|
|
2928
4005
|
|
|
2929
|
-
:param name: Required. The Test for which to list the items. (required)
|
|
2930
|
-
:type name: str
|
|
2931
|
-
:param body: (required)
|
|
2932
|
-
:type body: TestServiceListTestCaseLibraryItemsRequest
|
|
2933
4006
|
:param _request_timeout: timeout setting for this request. If one
|
|
2934
4007
|
number provided, it will be total request
|
|
2935
4008
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2952,9 +4025,7 @@ class TestServiceApi:
|
|
|
2952
4025
|
:return: Returns the result object.
|
|
2953
4026
|
""" # noqa: E501
|
|
2954
4027
|
|
|
2955
|
-
_param = self.
|
|
2956
|
-
name=name,
|
|
2957
|
-
body=body,
|
|
4028
|
+
_param = self._test_service_list_tests_shared_with_me_serialize(
|
|
2958
4029
|
_request_auth=_request_auth,
|
|
2959
4030
|
_content_type=_content_type,
|
|
2960
4031
|
_headers=_headers,
|
|
@@ -2962,7 +4033,7 @@ class TestServiceApi:
|
|
|
2962
4033
|
)
|
|
2963
4034
|
|
|
2964
4035
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2965
|
-
'200': "
|
|
4036
|
+
'200': "V1ListTestsSharedWithMeResponse",
|
|
2966
4037
|
}
|
|
2967
4038
|
response_data = self.api_client.call_api(
|
|
2968
4039
|
*_param,
|
|
@@ -2971,10 +4042,8 @@ class TestServiceApi:
|
|
|
2971
4042
|
return response_data.response
|
|
2972
4043
|
|
|
2973
4044
|
|
|
2974
|
-
def
|
|
4045
|
+
def _test_service_list_tests_shared_with_me_serialize(
|
|
2975
4046
|
self,
|
|
2976
|
-
name,
|
|
2977
|
-
body,
|
|
2978
4047
|
_request_auth,
|
|
2979
4048
|
_content_type,
|
|
2980
4049
|
_headers,
|
|
@@ -2994,14 +4063,10 @@ class TestServiceApi:
|
|
|
2994
4063
|
_body_params: Optional[bytes] = None
|
|
2995
4064
|
|
|
2996
4065
|
# process the path parameters
|
|
2997
|
-
if name is not None:
|
|
2998
|
-
_path_params['name'] = name
|
|
2999
4066
|
# process the query parameters
|
|
3000
4067
|
# process the header parameters
|
|
3001
4068
|
# process the form parameters
|
|
3002
4069
|
# process the body parameter
|
|
3003
|
-
if body is not None:
|
|
3004
|
-
_body_params = body
|
|
3005
4070
|
|
|
3006
4071
|
|
|
3007
4072
|
# set the HTTP header `Accept`
|
|
@@ -3011,27 +4076,14 @@ class TestServiceApi:
|
|
|
3011
4076
|
]
|
|
3012
4077
|
)
|
|
3013
4078
|
|
|
3014
|
-
# set the HTTP header `Content-Type`
|
|
3015
|
-
if _content_type:
|
|
3016
|
-
_header_params['Content-Type'] = _content_type
|
|
3017
|
-
else:
|
|
3018
|
-
_default_content_type = (
|
|
3019
|
-
self.api_client.select_header_content_type(
|
|
3020
|
-
[
|
|
3021
|
-
'application/json'
|
|
3022
|
-
]
|
|
3023
|
-
)
|
|
3024
|
-
)
|
|
3025
|
-
if _default_content_type is not None:
|
|
3026
|
-
_header_params['Content-Type'] = _default_content_type
|
|
3027
4079
|
|
|
3028
4080
|
# authentication setting
|
|
3029
4081
|
_auth_settings: List[str] = [
|
|
3030
4082
|
]
|
|
3031
4083
|
|
|
3032
4084
|
return self.api_client.param_serialize(
|
|
3033
|
-
method='
|
|
3034
|
-
resource_path='/v1/
|
|
4085
|
+
method='GET',
|
|
4086
|
+
resource_path='/v1/tests:sharedWithMe',
|
|
3035
4087
|
path_params=_path_params,
|
|
3036
4088
|
query_params=_query_params,
|
|
3037
4089
|
header_params=_header_params,
|
|
@@ -3048,10 +4100,10 @@ class TestServiceApi:
|
|
|
3048
4100
|
|
|
3049
4101
|
|
|
3050
4102
|
@validate_call
|
|
3051
|
-
def
|
|
4103
|
+
def test_service_perturb_test(
|
|
3052
4104
|
self,
|
|
3053
|
-
|
|
3054
|
-
|
|
4105
|
+
name: Annotated[str, Field(strict=True, description="Required. The name of the Test to perturb.")],
|
|
4106
|
+
body: TestServicePerturbTestRequest,
|
|
3055
4107
|
_request_timeout: Union[
|
|
3056
4108
|
None,
|
|
3057
4109
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3064,14 +4116,14 @@ class TestServiceApi:
|
|
|
3064
4116
|
_content_type: Optional[StrictStr] = None,
|
|
3065
4117
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3066
4118
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3067
|
-
) ->
|
|
3068
|
-
"""
|
|
4119
|
+
) -> V1PerturbTestResponse:
|
|
4120
|
+
"""test_service_perturb_test
|
|
3069
4121
|
|
|
3070
4122
|
|
|
3071
|
-
:param
|
|
3072
|
-
:type
|
|
3073
|
-
:param
|
|
3074
|
-
:type
|
|
4123
|
+
:param name: Required. The name of the Test to perturb. (required)
|
|
4124
|
+
:type name: str
|
|
4125
|
+
:param body: (required)
|
|
4126
|
+
:type body: TestServicePerturbTestRequest
|
|
3075
4127
|
:param _request_timeout: timeout setting for this request. If one
|
|
3076
4128
|
number provided, it will be total request
|
|
3077
4129
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3094,9 +4146,9 @@ class TestServiceApi:
|
|
|
3094
4146
|
:return: Returns the result object.
|
|
3095
4147
|
""" # noqa: E501
|
|
3096
4148
|
|
|
3097
|
-
_param = self.
|
|
3098
|
-
|
|
3099
|
-
|
|
4149
|
+
_param = self._test_service_perturb_test_serialize(
|
|
4150
|
+
name=name,
|
|
4151
|
+
body=body,
|
|
3100
4152
|
_request_auth=_request_auth,
|
|
3101
4153
|
_content_type=_content_type,
|
|
3102
4154
|
_headers=_headers,
|
|
@@ -3104,7 +4156,7 @@ class TestServiceApi:
|
|
|
3104
4156
|
)
|
|
3105
4157
|
|
|
3106
4158
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3107
|
-
'200': "
|
|
4159
|
+
'200': "V1PerturbTestResponse",
|
|
3108
4160
|
}
|
|
3109
4161
|
response_data = self.api_client.call_api(
|
|
3110
4162
|
*_param,
|
|
@@ -3118,10 +4170,10 @@ class TestServiceApi:
|
|
|
3118
4170
|
|
|
3119
4171
|
|
|
3120
4172
|
@validate_call
|
|
3121
|
-
def
|
|
4173
|
+
def test_service_perturb_test_with_http_info(
|
|
3122
4174
|
self,
|
|
3123
|
-
|
|
3124
|
-
|
|
4175
|
+
name: Annotated[str, Field(strict=True, description="Required. The name of the Test to perturb.")],
|
|
4176
|
+
body: TestServicePerturbTestRequest,
|
|
3125
4177
|
_request_timeout: Union[
|
|
3126
4178
|
None,
|
|
3127
4179
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3134,14 +4186,14 @@ class TestServiceApi:
|
|
|
3134
4186
|
_content_type: Optional[StrictStr] = None,
|
|
3135
4187
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3136
4188
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3137
|
-
) -> ApiResponse[
|
|
3138
|
-
"""
|
|
4189
|
+
) -> ApiResponse[V1PerturbTestResponse]:
|
|
4190
|
+
"""test_service_perturb_test
|
|
3139
4191
|
|
|
3140
4192
|
|
|
3141
|
-
:param
|
|
3142
|
-
:type
|
|
3143
|
-
:param
|
|
3144
|
-
:type
|
|
4193
|
+
:param name: Required. The name of the Test to perturb. (required)
|
|
4194
|
+
:type name: str
|
|
4195
|
+
:param body: (required)
|
|
4196
|
+
:type body: TestServicePerturbTestRequest
|
|
3145
4197
|
:param _request_timeout: timeout setting for this request. If one
|
|
3146
4198
|
number provided, it will be total request
|
|
3147
4199
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3164,9 +4216,9 @@ class TestServiceApi:
|
|
|
3164
4216
|
:return: Returns the result object.
|
|
3165
4217
|
""" # noqa: E501
|
|
3166
4218
|
|
|
3167
|
-
_param = self.
|
|
3168
|
-
|
|
3169
|
-
|
|
4219
|
+
_param = self._test_service_perturb_test_serialize(
|
|
4220
|
+
name=name,
|
|
4221
|
+
body=body,
|
|
3170
4222
|
_request_auth=_request_auth,
|
|
3171
4223
|
_content_type=_content_type,
|
|
3172
4224
|
_headers=_headers,
|
|
@@ -3174,7 +4226,7 @@ class TestServiceApi:
|
|
|
3174
4226
|
)
|
|
3175
4227
|
|
|
3176
4228
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3177
|
-
'200': "
|
|
4229
|
+
'200': "V1PerturbTestResponse",
|
|
3178
4230
|
}
|
|
3179
4231
|
response_data = self.api_client.call_api(
|
|
3180
4232
|
*_param,
|
|
@@ -3188,10 +4240,10 @@ class TestServiceApi:
|
|
|
3188
4240
|
|
|
3189
4241
|
|
|
3190
4242
|
@validate_call
|
|
3191
|
-
def
|
|
4243
|
+
def test_service_perturb_test_without_preload_content(
|
|
3192
4244
|
self,
|
|
3193
|
-
|
|
3194
|
-
|
|
4245
|
+
name: Annotated[str, Field(strict=True, description="Required. The name of the Test to perturb.")],
|
|
4246
|
+
body: TestServicePerturbTestRequest,
|
|
3195
4247
|
_request_timeout: Union[
|
|
3196
4248
|
None,
|
|
3197
4249
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3205,13 +4257,13 @@ class TestServiceApi:
|
|
|
3205
4257
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3206
4258
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3207
4259
|
) -> RESTResponseType:
|
|
3208
|
-
"""
|
|
4260
|
+
"""test_service_perturb_test
|
|
3209
4261
|
|
|
3210
4262
|
|
|
3211
|
-
:param
|
|
3212
|
-
:type
|
|
3213
|
-
:param
|
|
3214
|
-
:type
|
|
4263
|
+
:param name: Required. The name of the Test to perturb. (required)
|
|
4264
|
+
:type name: str
|
|
4265
|
+
:param body: (required)
|
|
4266
|
+
:type body: TestServicePerturbTestRequest
|
|
3215
4267
|
:param _request_timeout: timeout setting for this request. If one
|
|
3216
4268
|
number provided, it will be total request
|
|
3217
4269
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3234,9 +4286,9 @@ class TestServiceApi:
|
|
|
3234
4286
|
:return: Returns the result object.
|
|
3235
4287
|
""" # noqa: E501
|
|
3236
4288
|
|
|
3237
|
-
_param = self.
|
|
3238
|
-
|
|
3239
|
-
|
|
4289
|
+
_param = self._test_service_perturb_test_serialize(
|
|
4290
|
+
name=name,
|
|
4291
|
+
body=body,
|
|
3240
4292
|
_request_auth=_request_auth,
|
|
3241
4293
|
_content_type=_content_type,
|
|
3242
4294
|
_headers=_headers,
|
|
@@ -3244,7 +4296,7 @@ class TestServiceApi:
|
|
|
3244
4296
|
)
|
|
3245
4297
|
|
|
3246
4298
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3247
|
-
'200': "
|
|
4299
|
+
'200': "V1PerturbTestResponse",
|
|
3248
4300
|
}
|
|
3249
4301
|
response_data = self.api_client.call_api(
|
|
3250
4302
|
*_param,
|
|
@@ -3253,10 +4305,10 @@ class TestServiceApi:
|
|
|
3253
4305
|
return response_data.response
|
|
3254
4306
|
|
|
3255
4307
|
|
|
3256
|
-
def
|
|
4308
|
+
def _test_service_perturb_test_serialize(
|
|
3257
4309
|
self,
|
|
3258
|
-
|
|
3259
|
-
|
|
4310
|
+
name,
|
|
4311
|
+
body,
|
|
3260
4312
|
_request_auth,
|
|
3261
4313
|
_content_type,
|
|
3262
4314
|
_headers,
|
|
@@ -3276,18 +4328,14 @@ class TestServiceApi:
|
|
|
3276
4328
|
_body_params: Optional[bytes] = None
|
|
3277
4329
|
|
|
3278
4330
|
# process the path parameters
|
|
4331
|
+
if name is not None:
|
|
4332
|
+
_path_params['name'] = name
|
|
3279
4333
|
# process the query parameters
|
|
3280
|
-
if filter is not None:
|
|
3281
|
-
|
|
3282
|
-
_query_params.append(('filter', filter))
|
|
3283
|
-
|
|
3284
|
-
if order_by is not None:
|
|
3285
|
-
|
|
3286
|
-
_query_params.append(('orderBy', order_by))
|
|
3287
|
-
|
|
3288
4334
|
# process the header parameters
|
|
3289
4335
|
# process the form parameters
|
|
3290
4336
|
# process the body parameter
|
|
4337
|
+
if body is not None:
|
|
4338
|
+
_body_params = body
|
|
3291
4339
|
|
|
3292
4340
|
|
|
3293
4341
|
# set the HTTP header `Accept`
|
|
@@ -3297,14 +4345,27 @@ class TestServiceApi:
|
|
|
3297
4345
|
]
|
|
3298
4346
|
)
|
|
3299
4347
|
|
|
4348
|
+
# set the HTTP header `Content-Type`
|
|
4349
|
+
if _content_type:
|
|
4350
|
+
_header_params['Content-Type'] = _content_type
|
|
4351
|
+
else:
|
|
4352
|
+
_default_content_type = (
|
|
4353
|
+
self.api_client.select_header_content_type(
|
|
4354
|
+
[
|
|
4355
|
+
'application/json'
|
|
4356
|
+
]
|
|
4357
|
+
)
|
|
4358
|
+
)
|
|
4359
|
+
if _default_content_type is not None:
|
|
4360
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3300
4361
|
|
|
3301
4362
|
# authentication setting
|
|
3302
4363
|
_auth_settings: List[str] = [
|
|
3303
4364
|
]
|
|
3304
4365
|
|
|
3305
4366
|
return self.api_client.param_serialize(
|
|
3306
|
-
method='
|
|
3307
|
-
resource_path='/v1/
|
|
4367
|
+
method='POST',
|
|
4368
|
+
resource_path='/v1/{name}:perturb',
|
|
3308
4369
|
path_params=_path_params,
|
|
3309
4370
|
query_params=_query_params,
|
|
3310
4371
|
header_params=_header_params,
|
|
@@ -3321,10 +4382,10 @@ class TestServiceApi:
|
|
|
3321
4382
|
|
|
3322
4383
|
|
|
3323
4384
|
@validate_call
|
|
3324
|
-
def
|
|
4385
|
+
def test_service_perturb_test_in_place(
|
|
3325
4386
|
self,
|
|
3326
4387
|
name: Annotated[str, Field(strict=True, description="Required. The name of the Test to perturb.")],
|
|
3327
|
-
body:
|
|
4388
|
+
body: TestServicePerturbTestInPlaceRequest,
|
|
3328
4389
|
_request_timeout: Union[
|
|
3329
4390
|
None,
|
|
3330
4391
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3337,14 +4398,14 @@ class TestServiceApi:
|
|
|
3337
4398
|
_content_type: Optional[StrictStr] = None,
|
|
3338
4399
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3339
4400
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3340
|
-
) ->
|
|
3341
|
-
"""
|
|
4401
|
+
) -> V1PerturbTestInPlaceResponse:
|
|
4402
|
+
"""test_service_perturb_test_in_place
|
|
3342
4403
|
|
|
3343
4404
|
|
|
3344
4405
|
:param name: Required. The name of the Test to perturb. (required)
|
|
3345
4406
|
:type name: str
|
|
3346
4407
|
:param body: (required)
|
|
3347
|
-
:type body:
|
|
4408
|
+
:type body: TestServicePerturbTestInPlaceRequest
|
|
3348
4409
|
:param _request_timeout: timeout setting for this request. If one
|
|
3349
4410
|
number provided, it will be total request
|
|
3350
4411
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3367,7 +4428,7 @@ class TestServiceApi:
|
|
|
3367
4428
|
:return: Returns the result object.
|
|
3368
4429
|
""" # noqa: E501
|
|
3369
4430
|
|
|
3370
|
-
_param = self.
|
|
4431
|
+
_param = self._test_service_perturb_test_in_place_serialize(
|
|
3371
4432
|
name=name,
|
|
3372
4433
|
body=body,
|
|
3373
4434
|
_request_auth=_request_auth,
|
|
@@ -3377,7 +4438,7 @@ class TestServiceApi:
|
|
|
3377
4438
|
)
|
|
3378
4439
|
|
|
3379
4440
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3380
|
-
'200': "
|
|
4441
|
+
'200': "V1PerturbTestInPlaceResponse",
|
|
3381
4442
|
}
|
|
3382
4443
|
response_data = self.api_client.call_api(
|
|
3383
4444
|
*_param,
|
|
@@ -3391,10 +4452,10 @@ class TestServiceApi:
|
|
|
3391
4452
|
|
|
3392
4453
|
|
|
3393
4454
|
@validate_call
|
|
3394
|
-
def
|
|
4455
|
+
def test_service_perturb_test_in_place_with_http_info(
|
|
3395
4456
|
self,
|
|
3396
4457
|
name: Annotated[str, Field(strict=True, description="Required. The name of the Test to perturb.")],
|
|
3397
|
-
body:
|
|
4458
|
+
body: TestServicePerturbTestInPlaceRequest,
|
|
3398
4459
|
_request_timeout: Union[
|
|
3399
4460
|
None,
|
|
3400
4461
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3407,14 +4468,14 @@ class TestServiceApi:
|
|
|
3407
4468
|
_content_type: Optional[StrictStr] = None,
|
|
3408
4469
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3409
4470
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3410
|
-
) -> ApiResponse[
|
|
3411
|
-
"""
|
|
4471
|
+
) -> ApiResponse[V1PerturbTestInPlaceResponse]:
|
|
4472
|
+
"""test_service_perturb_test_in_place
|
|
3412
4473
|
|
|
3413
4474
|
|
|
3414
4475
|
:param name: Required. The name of the Test to perturb. (required)
|
|
3415
4476
|
:type name: str
|
|
3416
4477
|
:param body: (required)
|
|
3417
|
-
:type body:
|
|
4478
|
+
:type body: TestServicePerturbTestInPlaceRequest
|
|
3418
4479
|
:param _request_timeout: timeout setting for this request. If one
|
|
3419
4480
|
number provided, it will be total request
|
|
3420
4481
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3437,7 +4498,7 @@ class TestServiceApi:
|
|
|
3437
4498
|
:return: Returns the result object.
|
|
3438
4499
|
""" # noqa: E501
|
|
3439
4500
|
|
|
3440
|
-
_param = self.
|
|
4501
|
+
_param = self._test_service_perturb_test_in_place_serialize(
|
|
3441
4502
|
name=name,
|
|
3442
4503
|
body=body,
|
|
3443
4504
|
_request_auth=_request_auth,
|
|
@@ -3447,7 +4508,7 @@ class TestServiceApi:
|
|
|
3447
4508
|
)
|
|
3448
4509
|
|
|
3449
4510
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3450
|
-
'200': "
|
|
4511
|
+
'200': "V1PerturbTestInPlaceResponse",
|
|
3451
4512
|
}
|
|
3452
4513
|
response_data = self.api_client.call_api(
|
|
3453
4514
|
*_param,
|
|
@@ -3461,10 +4522,10 @@ class TestServiceApi:
|
|
|
3461
4522
|
|
|
3462
4523
|
|
|
3463
4524
|
@validate_call
|
|
3464
|
-
def
|
|
4525
|
+
def test_service_perturb_test_in_place_without_preload_content(
|
|
3465
4526
|
self,
|
|
3466
4527
|
name: Annotated[str, Field(strict=True, description="Required. The name of the Test to perturb.")],
|
|
3467
|
-
body:
|
|
4528
|
+
body: TestServicePerturbTestInPlaceRequest,
|
|
3468
4529
|
_request_timeout: Union[
|
|
3469
4530
|
None,
|
|
3470
4531
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3478,13 +4539,13 @@ class TestServiceApi:
|
|
|
3478
4539
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3479
4540
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3480
4541
|
) -> RESTResponseType:
|
|
3481
|
-
"""
|
|
4542
|
+
"""test_service_perturb_test_in_place
|
|
3482
4543
|
|
|
3483
4544
|
|
|
3484
4545
|
:param name: Required. The name of the Test to perturb. (required)
|
|
3485
4546
|
:type name: str
|
|
3486
4547
|
:param body: (required)
|
|
3487
|
-
:type body:
|
|
4548
|
+
:type body: TestServicePerturbTestInPlaceRequest
|
|
3488
4549
|
:param _request_timeout: timeout setting for this request. If one
|
|
3489
4550
|
number provided, it will be total request
|
|
3490
4551
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3507,7 +4568,7 @@ class TestServiceApi:
|
|
|
3507
4568
|
:return: Returns the result object.
|
|
3508
4569
|
""" # noqa: E501
|
|
3509
4570
|
|
|
3510
|
-
_param = self.
|
|
4571
|
+
_param = self._test_service_perturb_test_in_place_serialize(
|
|
3511
4572
|
name=name,
|
|
3512
4573
|
body=body,
|
|
3513
4574
|
_request_auth=_request_auth,
|
|
@@ -3517,7 +4578,7 @@ class TestServiceApi:
|
|
|
3517
4578
|
)
|
|
3518
4579
|
|
|
3519
4580
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3520
|
-
'200': "
|
|
4581
|
+
'200': "V1PerturbTestInPlaceResponse",
|
|
3521
4582
|
}
|
|
3522
4583
|
response_data = self.api_client.call_api(
|
|
3523
4584
|
*_param,
|
|
@@ -3526,7 +4587,7 @@ class TestServiceApi:
|
|
|
3526
4587
|
return response_data.response
|
|
3527
4588
|
|
|
3528
4589
|
|
|
3529
|
-
def
|
|
4590
|
+
def _test_service_perturb_test_in_place_serialize(
|
|
3530
4591
|
self,
|
|
3531
4592
|
name,
|
|
3532
4593
|
body,
|
|
@@ -3586,7 +4647,7 @@ class TestServiceApi:
|
|
|
3586
4647
|
|
|
3587
4648
|
return self.api_client.param_serialize(
|
|
3588
4649
|
method='POST',
|
|
3589
|
-
resource_path='/v1/{name}:
|
|
4650
|
+
resource_path='/v1/{name}:perturbInPlace',
|
|
3590
4651
|
path_params=_path_params,
|
|
3591
4652
|
query_params=_query_params,
|
|
3592
4653
|
header_params=_header_params,
|
|
@@ -3603,10 +4664,10 @@ class TestServiceApi:
|
|
|
3603
4664
|
|
|
3604
4665
|
|
|
3605
4666
|
@validate_call
|
|
3606
|
-
def
|
|
4667
|
+
def test_service_revoke_test_access(
|
|
3607
4668
|
self,
|
|
3608
|
-
|
|
3609
|
-
body:
|
|
4669
|
+
name_1: Annotated[str, Field(strict=True, description="Required. The name of the Test to revoke access for.")],
|
|
4670
|
+
body: TestServiceRevokeTestAccessRequest,
|
|
3610
4671
|
_request_timeout: Union[
|
|
3611
4672
|
None,
|
|
3612
4673
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3619,14 +4680,14 @@ class TestServiceApi:
|
|
|
3619
4680
|
_content_type: Optional[StrictStr] = None,
|
|
3620
4681
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3621
4682
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3622
|
-
) ->
|
|
3623
|
-
"""
|
|
4683
|
+
) -> object:
|
|
4684
|
+
"""test_service_revoke_test_access
|
|
3624
4685
|
|
|
3625
4686
|
|
|
3626
|
-
:param
|
|
3627
|
-
:type
|
|
4687
|
+
:param name_1: Required. The name of the Test to revoke access for. (required)
|
|
4688
|
+
:type name_1: str
|
|
3628
4689
|
:param body: (required)
|
|
3629
|
-
:type body:
|
|
4690
|
+
:type body: TestServiceRevokeTestAccessRequest
|
|
3630
4691
|
:param _request_timeout: timeout setting for this request. If one
|
|
3631
4692
|
number provided, it will be total request
|
|
3632
4693
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3649,8 +4710,8 @@ class TestServiceApi:
|
|
|
3649
4710
|
:return: Returns the result object.
|
|
3650
4711
|
""" # noqa: E501
|
|
3651
4712
|
|
|
3652
|
-
_param = self.
|
|
3653
|
-
|
|
4713
|
+
_param = self._test_service_revoke_test_access_serialize(
|
|
4714
|
+
name_1=name_1,
|
|
3654
4715
|
body=body,
|
|
3655
4716
|
_request_auth=_request_auth,
|
|
3656
4717
|
_content_type=_content_type,
|
|
@@ -3659,7 +4720,7 @@ class TestServiceApi:
|
|
|
3659
4720
|
)
|
|
3660
4721
|
|
|
3661
4722
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3662
|
-
'200': "
|
|
4723
|
+
'200': "object",
|
|
3663
4724
|
}
|
|
3664
4725
|
response_data = self.api_client.call_api(
|
|
3665
4726
|
*_param,
|
|
@@ -3673,10 +4734,10 @@ class TestServiceApi:
|
|
|
3673
4734
|
|
|
3674
4735
|
|
|
3675
4736
|
@validate_call
|
|
3676
|
-
def
|
|
4737
|
+
def test_service_revoke_test_access_with_http_info(
|
|
3677
4738
|
self,
|
|
3678
|
-
|
|
3679
|
-
body:
|
|
4739
|
+
name_1: Annotated[str, Field(strict=True, description="Required. The name of the Test to revoke access for.")],
|
|
4740
|
+
body: TestServiceRevokeTestAccessRequest,
|
|
3680
4741
|
_request_timeout: Union[
|
|
3681
4742
|
None,
|
|
3682
4743
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3689,14 +4750,14 @@ class TestServiceApi:
|
|
|
3689
4750
|
_content_type: Optional[StrictStr] = None,
|
|
3690
4751
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3691
4752
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3692
|
-
) -> ApiResponse[
|
|
3693
|
-
"""
|
|
4753
|
+
) -> ApiResponse[object]:
|
|
4754
|
+
"""test_service_revoke_test_access
|
|
3694
4755
|
|
|
3695
4756
|
|
|
3696
|
-
:param
|
|
3697
|
-
:type
|
|
4757
|
+
:param name_1: Required. The name of the Test to revoke access for. (required)
|
|
4758
|
+
:type name_1: str
|
|
3698
4759
|
:param body: (required)
|
|
3699
|
-
:type body:
|
|
4760
|
+
:type body: TestServiceRevokeTestAccessRequest
|
|
3700
4761
|
:param _request_timeout: timeout setting for this request. If one
|
|
3701
4762
|
number provided, it will be total request
|
|
3702
4763
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3719,8 +4780,8 @@ class TestServiceApi:
|
|
|
3719
4780
|
:return: Returns the result object.
|
|
3720
4781
|
""" # noqa: E501
|
|
3721
4782
|
|
|
3722
|
-
_param = self.
|
|
3723
|
-
|
|
4783
|
+
_param = self._test_service_revoke_test_access_serialize(
|
|
4784
|
+
name_1=name_1,
|
|
3724
4785
|
body=body,
|
|
3725
4786
|
_request_auth=_request_auth,
|
|
3726
4787
|
_content_type=_content_type,
|
|
@@ -3729,7 +4790,7 @@ class TestServiceApi:
|
|
|
3729
4790
|
)
|
|
3730
4791
|
|
|
3731
4792
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3732
|
-
'200': "
|
|
4793
|
+
'200': "object",
|
|
3733
4794
|
}
|
|
3734
4795
|
response_data = self.api_client.call_api(
|
|
3735
4796
|
*_param,
|
|
@@ -3743,10 +4804,10 @@ class TestServiceApi:
|
|
|
3743
4804
|
|
|
3744
4805
|
|
|
3745
4806
|
@validate_call
|
|
3746
|
-
def
|
|
4807
|
+
def test_service_revoke_test_access_without_preload_content(
|
|
3747
4808
|
self,
|
|
3748
|
-
|
|
3749
|
-
body:
|
|
4809
|
+
name_1: Annotated[str, Field(strict=True, description="Required. The name of the Test to revoke access for.")],
|
|
4810
|
+
body: TestServiceRevokeTestAccessRequest,
|
|
3750
4811
|
_request_timeout: Union[
|
|
3751
4812
|
None,
|
|
3752
4813
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3760,13 +4821,13 @@ class TestServiceApi:
|
|
|
3760
4821
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3761
4822
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3762
4823
|
) -> RESTResponseType:
|
|
3763
|
-
"""
|
|
4824
|
+
"""test_service_revoke_test_access
|
|
3764
4825
|
|
|
3765
4826
|
|
|
3766
|
-
:param
|
|
3767
|
-
:type
|
|
4827
|
+
:param name_1: Required. The name of the Test to revoke access for. (required)
|
|
4828
|
+
:type name_1: str
|
|
3768
4829
|
:param body: (required)
|
|
3769
|
-
:type body:
|
|
4830
|
+
:type body: TestServiceRevokeTestAccessRequest
|
|
3770
4831
|
:param _request_timeout: timeout setting for this request. If one
|
|
3771
4832
|
number provided, it will be total request
|
|
3772
4833
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3789,8 +4850,8 @@ class TestServiceApi:
|
|
|
3789
4850
|
:return: Returns the result object.
|
|
3790
4851
|
""" # noqa: E501
|
|
3791
4852
|
|
|
3792
|
-
_param = self.
|
|
3793
|
-
|
|
4853
|
+
_param = self._test_service_revoke_test_access_serialize(
|
|
4854
|
+
name_1=name_1,
|
|
3794
4855
|
body=body,
|
|
3795
4856
|
_request_auth=_request_auth,
|
|
3796
4857
|
_content_type=_content_type,
|
|
@@ -3799,7 +4860,7 @@ class TestServiceApi:
|
|
|
3799
4860
|
)
|
|
3800
4861
|
|
|
3801
4862
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3802
|
-
'200': "
|
|
4863
|
+
'200': "object",
|
|
3803
4864
|
}
|
|
3804
4865
|
response_data = self.api_client.call_api(
|
|
3805
4866
|
*_param,
|
|
@@ -3808,9 +4869,9 @@ class TestServiceApi:
|
|
|
3808
4869
|
return response_data.response
|
|
3809
4870
|
|
|
3810
4871
|
|
|
3811
|
-
def
|
|
4872
|
+
def _test_service_revoke_test_access_serialize(
|
|
3812
4873
|
self,
|
|
3813
|
-
|
|
4874
|
+
name_1,
|
|
3814
4875
|
body,
|
|
3815
4876
|
_request_auth,
|
|
3816
4877
|
_content_type,
|
|
@@ -3831,8 +4892,8 @@ class TestServiceApi:
|
|
|
3831
4892
|
_body_params: Optional[bytes] = None
|
|
3832
4893
|
|
|
3833
4894
|
# process the path parameters
|
|
3834
|
-
if
|
|
3835
|
-
_path_params['
|
|
4895
|
+
if name_1 is not None:
|
|
4896
|
+
_path_params['name_1'] = name_1
|
|
3836
4897
|
# process the query parameters
|
|
3837
4898
|
# process the header parameters
|
|
3838
4899
|
# process the form parameters
|
|
@@ -3868,7 +4929,7 @@ class TestServiceApi:
|
|
|
3868
4929
|
|
|
3869
4930
|
return self.api_client.param_serialize(
|
|
3870
4931
|
method='POST',
|
|
3871
|
-
resource_path='/v1/{
|
|
4932
|
+
resource_path='/v1/{name_1}:revokeAccess',
|
|
3872
4933
|
path_params=_path_params,
|
|
3873
4934
|
query_params=_query_params,
|
|
3874
4935
|
header_params=_header_params,
|