From cd1d84e1a474b3b169806cbc5dd489986573e8f3 Mon Sep 17 00:00:00 2001 From: Miguel Pragosa <154613770+mpragosa-te@users.noreply.github.com> Date: Fri, 20 Jun 2025 12:31:19 +0100 Subject: [PATCH] [GitHub Bot] Generated python SDK (#106) Co-authored-by: API Team --- thousandeyes-sdk-administrative/README.md | 2 +- thousandeyes-sdk-agents/README.md | 2 +- .../.openapi-generator/FILES | 2 + thousandeyes-sdk-alerts/README.md | 3 +- thousandeyes-sdk-alerts/docs/AlertDetail.md | 2 + .../docs/AlertSuppressionWindowRequest.md | 2 +- .../docs/LegacyAlertDetail.md | 30 ++ .../src/thousandeyes_sdk/alerts/__init__.py | 1 + .../alerts/models/__init__.py | 1 + .../alerts/models/alert_detail.py | 6 +- .../alert_suppression_window_request.py | 6 +- .../alerts/models/legacy_alert_detail.py | 91 ++++ .../test_alert_suppression_windows_api.py | 4 +- .../test/test_alerts_api.py | 6 +- thousandeyes-sdk-bgp-monitors/README.md | 2 +- thousandeyes-sdk-credentials/README.md | 2 +- thousandeyes-sdk-dashboards/README.md | 2 +- thousandeyes-sdk-emulation/README.md | 2 +- thousandeyes-sdk-endpoint-agents/README.md | 2 +- .../docs/EndpointAgent.md | 1 + .../endpoint_agents/models/endpoint_agent.py | 6 +- .../test/test_endpoint_agents_api.py | 8 + .../README.md | 2 +- .../docs/EndpointAgentToServerInstantTest.md | 3 +- .../endpoint_agent_to_server_instant_test.py | 6 +- ...er_endpoint_instant_scheduled_tests_api.py | 1 + thousandeyes-sdk-endpoint-labels/README.md | 2 +- .../.openapi-generator/FILES | 14 + .../README.md | 10 +- .../docs/EndpointHttpDataPointScore.md | 2 +- .../docs/EndpointPingDataPointScore.md | 2 +- .../docs/EndpointProbeAgentScore.md | 30 ++ .../docs/EndpointProbeConnectionScore.md | 30 ++ .../docs/EndpointProbeGatewayScore.md | 30 ++ .../docs/EndpointProbeProxyScore.md | 30 ++ .../docs/EndpointProbeVpnScore.md | 30 ++ .../docs/EndpointZtaMetrics.md | 33 ++ .../docs/EndpointZtaSegmentType.md | 12 + ...TPServerEndpointScheduledTestResultsApi.md | 108 ++++- .../docs/HttpEndpointTestResult.md | 1 + .../docs/LocalNetworkTopologyResult.md | 5 + .../docs/LocalNetworkTopologyResultBase.md | 5 + .../docs/NetworkDynamicEndpointTestResult.md | 2 + .../NetworkEndpointScheduledTestResultsApi.md | 6 +- .../docs/NetworkEndpointTestResult.md | 2 + .../endpoint_test_results/__init__.py | 7 + ...ver_endpoint_scheduled_test_results_api.py | 453 +++++++++++++++++- ...ork_endpoint_scheduled_test_results_api.py | 19 +- .../endpoint_test_results/models/__init__.py | 7 + .../models/endpoint_http_data_point_score.py | 2 +- .../models/endpoint_ping_data_point_score.py | 2 +- .../models/endpoint_probe_agent_score.py | 90 ++++ .../models/endpoint_probe_connection_score.py | 90 ++++ .../models/endpoint_probe_gateway_score.py | 90 ++++ .../models/endpoint_probe_proxy_score.py | 90 ++++ .../models/endpoint_probe_vpn_score.py | 90 ++++ .../models/endpoint_zta_metrics.py | 96 ++++ .../models/endpoint_zta_segment_type.py | 41 ++ .../models/http_endpoint_test_result.py | 8 +- .../models/local_network_topology_result.py | 32 +- .../local_network_topology_result_base.py | 34 +- .../network_dynamic_endpoint_test_result.py | 18 +- .../models/network_endpoint_test_result.py | 18 +- .../models/network_topology_type.py | 1 + ...ver_endpoint_scheduled_test_results_api.py | 293 +++++++++++ ...local_network_endpoint_test_results_api.py | 120 ++++- ...twork_dynamic_endpoint_test_results_api.py | 34 ++ ...ork_endpoint_scheduled_test_results_api.py | 68 +++ thousandeyes-sdk-endpoint-tests/README.md | 2 +- .../docs/EndpointAgentToServerInstantTest.md | 3 +- .../docs/EndpointAgentToServerTestRequest.md | 3 +- .../endpoint_agent_to_server_instant_test.py | 6 +- .../endpoint_agent_to_server_test_request.py | 6 +- ..._to_server_endpoint_scheduled_tests_api.py | 1 + thousandeyes-sdk-event-detection/README.md | 2 +- thousandeyes-sdk-instant-tests/README.md | 2 +- .../docs/ApiInstantTest.md | 3 + .../docs/ApiInstantTestRequest.md | 3 + .../docs/ApiInstantTestResponse.md | 3 + .../docs/ApiProperties.md | 5 +- .../docs/ApiRequest.md | 1 + .../docs/HttpServerBaseProperties.md | 1 + .../docs/HttpServerInstantTest.md | 1 + .../docs/HttpServerInstantTestRequest.md | 1 + .../docs/HttpServerInstantTestResponse.md | 1 + .../docs/HttpServerProperties.md | 1 + .../docs/PageLoadInstantTest.md | 1 + .../docs/PageLoadInstantTestRequest.md | 1 + .../docs/PageLoadInstantTestResponse.md | 1 + .../docs/PageLoadProperties.md | 1 + .../docs/WebTransactionInstantTest.md | 1 + .../docs/WebTransactionInstantTestRequest.md | 1 + .../docs/WebTransactionInstantTestResponse.md | 1 + .../docs/WebTransactionProperties.md | 1 + .../instant_tests/models/api_instant_test.py | 8 +- .../models/api_instant_test_request.py | 8 +- .../models/api_instant_test_response.py | 8 +- .../instant_tests/models/api_properties.py | 14 +- .../instant_tests/models/api_request.py | 4 +- .../models/http_server_base_properties.py | 4 +- .../models/http_server_instant_test.py | 4 +- .../http_server_instant_test_request.py | 4 +- .../http_server_instant_test_response.py | 4 +- .../models/http_server_properties.py | 4 +- .../models/page_load_instant_test.py | 4 +- .../models/page_load_instant_test_request.py | 4 +- .../models/page_load_instant_test_response.py | 4 +- .../models/page_load_properties.py | 4 +- .../models/web_transaction_instant_test.py | 4 +- .../web_transaction_instant_test_request.py | 4 +- .../web_transaction_instant_test_response.py | 4 +- .../models/web_transaction_properties.py | 4 +- .../test/test_api_instant_tests_api.py | 10 + .../test_http_page_load_instant_tests_api.py | 2 + .../test_http_server_instant_tests_api.py | 2 + .../test_web_transaction_instant_tests_api.py | 2 + thousandeyes-sdk-internet-insights/README.md | 2 +- thousandeyes-sdk-snapshots/README.md | 2 +- thousandeyes-sdk-streaming/README.md | 2 +- .../docs/StreamingApi.md | 3 +- .../streaming/api/streaming_api.py | 9 +- thousandeyes-sdk-tags/README.md | 2 +- thousandeyes-sdk-test-results/README.md | 2 +- .../docs/APITestResultsApi.md | 2 +- .../docs/NetworkTestResultsApi.md | 2 +- .../docs/VoiceRTPServerTestResultsApi.md | 2 +- .../docs/VoiceSIPServerTestResultsApi.md | 2 +- .../docs/WebFTPServerTestResultsApi.md | 2 +- .../docs/WebTransactionsTestResultsApi.md | 2 +- .../test_results/api/api_test_results_api.py | 6 +- .../api/network_test_results_api.py | 6 +- .../api/voice_rtp_server_test_results_api.py | 6 +- .../api/voice_sip_server_test_results_api.py | 6 +- .../api/web_ftp_server_test_results_api.py | 6 +- .../api/web_transactions_test_results_api.py | 6 +- .../.openapi-generator/FILES | 4 + thousandeyes-sdk-tests/README.md | 5 +- thousandeyes-sdk-tests/docs/APITestsApi.md | 6 +- .../docs/AgentToAgentTestsApi.md | 6 +- .../docs/AgentToServerTestsApi.md | 6 +- thousandeyes-sdk-tests/docs/ApiInstantTest.md | 3 + thousandeyes-sdk-tests/docs/ApiProperties.md | 5 +- thousandeyes-sdk-tests/docs/ApiRequest.md | 1 + thousandeyes-sdk-tests/docs/ApiTest.md | 3 + thousandeyes-sdk-tests/docs/ApiTestRequest.md | 3 + .../docs/ApiTestResponse.md | 3 + thousandeyes-sdk-tests/docs/DNSSECTestsApi.md | 6 +- .../docs/DNSServerTestsApi.md | 6 +- .../docs/DNSTraceTestsApi.md | 6 +- .../docs/FTPServerTestsApi.md | 6 +- .../docs/HTTPServerTestsApi.md | 6 +- .../docs/HttpServerBaseProperties.md | 1 + .../docs/HttpServerInstantTest.md | 1 + .../docs/HttpServerProperties.md | 1 + thousandeyes-sdk-tests/docs/HttpServerTest.md | 1 + .../docs/HttpServerTestRequest.md | 1 + .../docs/HttpServerTestResponse.md | 1 + .../docs/PageLoadInstantTest.md | 1 + .../docs/PageLoadProperties.md | 1 + thousandeyes-sdk-tests/docs/PageLoadTest.md | 1 + .../docs/PageLoadTestRequest.md | 1 + .../docs/PageLoadTestResponse.md | 1 + .../docs/PageLoadTestsApi.md | 6 +- .../docs/SIPServerTestsApi.md | 6 +- .../docs/TestVersionHistory.md | 32 ++ .../docs/TestVersionHistoryResponse.md | 30 ++ thousandeyes-sdk-tests/docs/TestsApi.md | 87 ++++ .../docs/UnexpandedApiTest.md | 3 + .../docs/UnexpandedHttpServerTest.md | 1 + .../docs/UnexpandedPageLoadTest.md | 1 + .../docs/UnexpandedWebTransactionTest.md | 1 + thousandeyes-sdk-tests/docs/VoiceTestsApi.md | 6 +- .../docs/WebTransactionInstantTest.md | 1 + .../docs/WebTransactionProperties.md | 1 + .../docs/WebTransactionTest.md | 1 + .../docs/WebTransactionTestRequest.md | 1 + .../docs/WebTransactionTestResponse.md | 1 + .../docs/WebTransactionTestsApi.md | 6 +- .../src/thousandeyes_sdk/tests/__init__.py | 2 + .../tests/api/agent_to_agent_tests_api.py | 17 + .../tests/api/agent_to_server_tests_api.py | 17 + .../tests/api/api_tests_api.py | 17 + .../tests/api/dns_server_tests_api.py | 17 + .../tests/api/dns_trace_tests_api.py | 17 + .../tests/api/dnssec_tests_api.py | 17 + .../tests/api/ftp_server_tests_api.py | 17 + .../tests/api/http_server_tests_api.py | 17 + .../tests/api/page_load_tests_api.py | 17 + .../tests/api/sip_server_tests_api.py | 17 + .../thousandeyes_sdk/tests/api/tests_api.py | 308 ++++++++++++ .../tests/api/voice_tests_api.py | 17 + .../tests/api/web_transaction_tests_api.py | 17 + .../thousandeyes_sdk/tests/models/__init__.py | 2 + .../tests/models/api_instant_test.py | 8 +- .../tests/models/api_properties.py | 14 +- .../tests/models/api_request.py | 4 +- .../thousandeyes_sdk/tests/models/api_test.py | 8 +- .../tests/models/api_test_request.py | 8 +- .../tests/models/api_test_response.py | 8 +- .../models/http_server_base_properties.py | 4 +- .../tests/models/http_server_instant_test.py | 4 +- .../tests/models/http_server_properties.py | 4 +- .../tests/models/http_server_test.py | 4 +- .../tests/models/http_server_test_request.py | 4 +- .../tests/models/http_server_test_response.py | 4 +- .../tests/models/page_load_instant_test.py | 4 +- .../tests/models/page_load_properties.py | 4 +- .../tests/models/page_load_test.py | 4 +- .../tests/models/page_load_test_request.py | 4 +- .../tests/models/page_load_test_response.py | 4 +- .../tests/models/test_version_history.py | 94 ++++ .../models/test_version_history_response.py | 101 ++++ .../tests/models/unexpanded_api_test.py | 8 +- .../models/unexpanded_http_server_test.py | 4 +- .../tests/models/unexpanded_page_load_test.py | 4 +- .../models/unexpanded_web_transaction_test.py | 4 +- .../models/web_transaction_instant_test.py | 4 +- .../models/web_transaction_properties.py | 4 +- .../tests/models/web_transaction_test.py | 4 +- .../models/web_transaction_test_request.py | 4 +- .../models/web_transaction_test_response.py | 4 +- .../test/test_api_tests_api.py | 35 ++ .../test/test_http_server_tests_api.py | 7 + .../test/test_page_load_tests_api.py | 7 + thousandeyes-sdk-tests/test/test_tests_api.py | 34 ++ .../test/test_web_transaction_tests_api.py | 7 + thousandeyes-sdk-usage/README.md | 2 +- 227 files changed, 3507 insertions(+), 185 deletions(-) create mode 100644 thousandeyes-sdk-alerts/docs/LegacyAlertDetail.md create mode 100644 thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/legacy_alert_detail.py create mode 100644 thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeAgentScore.md create mode 100644 thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeConnectionScore.md create mode 100644 thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeGatewayScore.md create mode 100644 thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeProxyScore.md create mode 100644 thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeVpnScore.md create mode 100644 thousandeyes-sdk-endpoint-test-results/docs/EndpointZtaMetrics.md create mode 100644 thousandeyes-sdk-endpoint-test-results/docs/EndpointZtaSegmentType.md create mode 100644 thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_agent_score.py create mode 100644 thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_connection_score.py create mode 100644 thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_gateway_score.py create mode 100644 thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_proxy_score.py create mode 100644 thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_vpn_score.py create mode 100644 thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_zta_metrics.py create mode 100644 thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_zta_segment_type.py create mode 100644 thousandeyes-sdk-tests/docs/TestVersionHistory.md create mode 100644 thousandeyes-sdk-tests/docs/TestVersionHistoryResponse.md create mode 100644 thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/test_version_history.py create mode 100644 thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/test_version_history_response.py diff --git a/thousandeyes-sdk-administrative/README.md b/thousandeyes-sdk-administrative/README.md index 102c9fa8..24b1d74c 100644 --- a/thousandeyes-sdk-administrative/README.md +++ b/thousandeyes-sdk-administrative/README.md @@ -12,7 +12,7 @@ This API provides the following operations to manage your organization: This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-agents/README.md b/thousandeyes-sdk-agents/README.md index aa2afdc4..872c7f24 100644 --- a/thousandeyes-sdk-agents/README.md +++ b/thousandeyes-sdk-agents/README.md @@ -5,7 +5,7 @@ Manage Cloud and Enterprise Agents available to your account in ThousandEyes. This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-alerts/.openapi-generator/FILES b/thousandeyes-sdk-alerts/.openapi-generator/FILES index 0977048a..364fdce1 100644 --- a/thousandeyes-sdk-alerts/.openapi-generator/FILES +++ b/thousandeyes-sdk-alerts/.openapi-generator/FILES @@ -34,6 +34,7 @@ docs/Error.md docs/ExpandAlertTestOptions.md docs/IntervalType.md docs/LegacyAlert.md +docs/LegacyAlertDetail.md docs/Link.md docs/NotificationCustomWebhook.md docs/NotificationEmail.md @@ -99,6 +100,7 @@ src/thousandeyes_sdk/alerts/models/error.py src/thousandeyes_sdk/alerts/models/expand_alert_test_options.py src/thousandeyes_sdk/alerts/models/interval_type.py src/thousandeyes_sdk/alerts/models/legacy_alert.py +src/thousandeyes_sdk/alerts/models/legacy_alert_detail.py src/thousandeyes_sdk/alerts/models/link.py src/thousandeyes_sdk/alerts/models/notification_custom_webhook.py src/thousandeyes_sdk/alerts/models/notification_email.py diff --git a/thousandeyes-sdk-alerts/README.md b/thousandeyes-sdk-alerts/README.md index b33adc29..409e91fb 100644 --- a/thousandeyes-sdk-alerts/README.md +++ b/thousandeyes-sdk-alerts/README.md @@ -12,7 +12,7 @@ For more information about the alerts, see [Alerts](https://docs.thousandeyes.co This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator @@ -150,6 +150,7 @@ Class | Method | HTTP request | Description - [ExpandAlertTestOptions](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-alerts/docs/ExpandAlertTestOptions.md) - [IntervalType](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-alerts/docs/IntervalType.md) - [LegacyAlert](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-alerts/docs/LegacyAlert.md) + - [LegacyAlertDetail](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-alerts/docs/LegacyAlertDetail.md) - [Link](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-alerts/docs/Link.md) - [NotificationCustomWebhook](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-alerts/docs/NotificationCustomWebhook.md) - [NotificationEmail](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-alerts/docs/NotificationEmail.md) diff --git a/thousandeyes-sdk-alerts/docs/AlertDetail.md b/thousandeyes-sdk-alerts/docs/AlertDetail.md index c9b6e4c9..d803810b 100644 --- a/thousandeyes-sdk-alerts/docs/AlertDetail.md +++ b/thousandeyes-sdk-alerts/docs/AlertDetail.md @@ -16,6 +16,8 @@ Name | Type | Description | Notes **links** | [**AlertLinks**](AlertLinks.md) | | [optional] **state** | [**State**](State.md) | | [optional] **severity** | [**Severity**](Severity.md) | | [optional] +**alert_state** | [**State**](State.md) | | [optional] +**alert_severity** | [**Severity**](Severity.md) | | [optional] **details** | [**List[AlertMetricDetail]**](AlertMetricDetail.md) | | [optional] ## Example diff --git a/thousandeyes-sdk-alerts/docs/AlertSuppressionWindowRequest.md b/thousandeyes-sdk-alerts/docs/AlertSuppressionWindowRequest.md index 0b121516..fcceda37 100644 --- a/thousandeyes-sdk-alerts/docs/AlertSuppressionWindowRequest.md +++ b/thousandeyes-sdk-alerts/docs/AlertSuppressionWindowRequest.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **duration** | **int** | Duration in seconds the suppression window is active. | [optional] **repeat** | [**Repeat**](Repeat.md) | | [optional] **end_repeat** | [**EndRepeat**](EndRepeat.md) | | [optional] -**tests** | **List[str]** | List of tests to assign to the alert suppression window. | [optional] +**test_ids** | **List[str]** | List of test IDs to assign to the alert suppression window. | [optional] ## Example diff --git a/thousandeyes-sdk-alerts/docs/LegacyAlertDetail.md b/thousandeyes-sdk-alerts/docs/LegacyAlertDetail.md new file mode 100644 index 00000000..500080ce --- /dev/null +++ b/thousandeyes-sdk-alerts/docs/LegacyAlertDetail.md @@ -0,0 +1,30 @@ +# LegacyAlertDetail + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**state** | [**State**](State.md) | | [optional] +**severity** | [**Severity**](Severity.md) | | [optional] + +## Example + +```python +from thousandeyes_sdk.alerts.models.legacy_alert_detail import LegacyAlertDetail + +# TODO update the JSON string below +json = "{}" +# create an instance of LegacyAlertDetail from a JSON string +legacy_alert_detail_instance = LegacyAlertDetail.from_json(json) +# print the JSON string representation of the object +print(LegacyAlertDetail.to_json()) + +# convert the object into a dict +legacy_alert_detail_dict = legacy_alert_detail_instance.to_dict() +# create an instance of LegacyAlertDetail from a dict +legacy_alert_detail_from_dict = LegacyAlertDetail.from_dict(legacy_alert_detail_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/__init__.py b/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/__init__.py index c9ee594e..95304b15 100644 --- a/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/__init__.py +++ b/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/__init__.py @@ -50,6 +50,7 @@ from thousandeyes_sdk.alerts.models.error import Error from thousandeyes_sdk.alerts.models.expand_alert_test_options import ExpandAlertTestOptions from thousandeyes_sdk.alerts.models.interval_type import IntervalType from thousandeyes_sdk.alerts.models.legacy_alert import LegacyAlert +from thousandeyes_sdk.alerts.models.legacy_alert_detail import LegacyAlertDetail from thousandeyes_sdk.alerts.models.link import Link from thousandeyes_sdk.alerts.models.notification_custom_webhook import NotificationCustomWebhook from thousandeyes_sdk.alerts.models.notification_email import NotificationEmail diff --git a/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/__init__.py b/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/__init__.py index 3830b35e..61576c33 100644 --- a/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/__init__.py +++ b/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/__init__.py @@ -43,6 +43,7 @@ from thousandeyes_sdk.alerts.models.error import Error from thousandeyes_sdk.alerts.models.expand_alert_test_options import ExpandAlertTestOptions from thousandeyes_sdk.alerts.models.interval_type import IntervalType from thousandeyes_sdk.alerts.models.legacy_alert import LegacyAlert +from thousandeyes_sdk.alerts.models.legacy_alert_detail import LegacyAlertDetail from thousandeyes_sdk.alerts.models.link import Link from thousandeyes_sdk.alerts.models.notification_custom_webhook import NotificationCustomWebhook from thousandeyes_sdk.alerts.models.notification_email import NotificationEmail diff --git a/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/alert_detail.py b/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/alert_detail.py index 4667450b..6a181834 100644 --- a/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/alert_detail.py +++ b/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/alert_detail.py @@ -43,8 +43,10 @@ class AlertDetail(BaseModel): links: Optional[AlertLinks] = Field(default=None, alias="_links") state: Optional[State] = None severity: Optional[Severity] = None + alert_state: Optional[State] = Field(default=None, alias="alertState") + alert_severity: Optional[Severity] = Field(default=None, alias="alertSeverity") details: Optional[List[AlertMetricDetail]] = None - __properties: ClassVar[List[str]] = ["id", "alertType", "startDate", "endDate", "violationCount", "duration", "suppressed", "meta", "_links", "state", "severity", "details"] + __properties: ClassVar[List[str]] = ["id", "alertType", "startDate", "endDate", "violationCount", "duration", "suppressed", "meta", "_links", "state", "severity", "alertState", "alertSeverity", "details"] model_config = ConfigDict( populate_by_name=True, @@ -128,6 +130,8 @@ class AlertDetail(BaseModel): "_links": AlertLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None, "state": obj.get("state"), "severity": obj.get("severity"), + "alertState": obj.get("alertState"), + "alertSeverity": obj.get("alertSeverity"), "details": [AlertMetricDetail.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) return _obj diff --git a/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/alert_suppression_window_request.py b/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/alert_suppression_window_request.py index de93a0b9..ab6ea1fe 100644 --- a/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/alert_suppression_window_request.py +++ b/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/alert_suppression_window_request.py @@ -37,8 +37,8 @@ class AlertSuppressionWindowRequest(BaseModel): duration: Optional[StrictInt] = Field(default=None, description="Duration in seconds the suppression window is active.") repeat: Optional[Repeat] = None end_repeat: Optional[EndRepeat] = Field(default=None, alias="endRepeat") - tests: Optional[List[StrictStr]] = Field(default=None, description="List of tests to assign to the alert suppression window.") - __properties: ClassVar[List[str]] = ["alertSuppressionWindowId", "name", "isEnabled", "status", "startDate", "duration", "repeat", "endRepeat", "tests"] + test_ids: Optional[List[StrictStr]] = Field(default=None, description="List of test IDs to assign to the alert suppression window.", alias="testIds") + __properties: ClassVar[List[str]] = ["alertSuppressionWindowId", "name", "isEnabled", "status", "startDate", "duration", "repeat", "endRepeat", "testIds"] model_config = ConfigDict( populate_by_name=True, @@ -108,7 +108,7 @@ class AlertSuppressionWindowRequest(BaseModel): "duration": obj.get("duration"), "repeat": Repeat.from_dict(obj["repeat"]) if obj.get("repeat") is not None else None, "endRepeat": EndRepeat.from_dict(obj["endRepeat"]) if obj.get("endRepeat") is not None else None, - "tests": obj.get("tests") + "testIds": obj.get("testIds") }) return _obj diff --git a/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/legacy_alert_detail.py b/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/legacy_alert_detail.py new file mode 100644 index 00000000..a04faef9 --- /dev/null +++ b/thousandeyes-sdk-alerts/src/thousandeyes_sdk/alerts/models/legacy_alert_detail.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Alerts API + + You can manage the following alert functionalities on the ThousandEyes platform using the Alerts API: * **Alerts**: Retrieve alert details. Alerts are assigned to tests through alert rules. * **Alert Rules**: Conditions that you configure in order to highlight or be notified of events of interest in your ThousandEyes tests. When an alert rule’s conditions are met, the associated alert is triggered and the alert becomes active. It remains active until the alert is cleared. Alert rules are reusable across multiple tests.. * **Alert Suppression Windows**: Suppress alerts for tests during periods such as planned maintenance. Windows can be one-time events or recurring events to handle periodic occurrences such as monthly downtime for maintenance. For more information about the alerts, see [Alerts](https://docs.thousandeyes.com/product-documentation/alerts). + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.alerts.models.severity import Severity +from thousandeyes_sdk.alerts.models.state import State +from typing import Optional, Set +from typing_extensions import Self + +class LegacyAlertDetail(BaseModel): + """ + LegacyAlertDetail + """ # noqa: E501 + state: Optional[State] = None + severity: Optional[Severity] = None + __properties: ClassVar[List[str]] = ["state", "severity"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + extra="allow", + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of LegacyAlertDetail from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of LegacyAlertDetail from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "state": obj.get("state"), + "severity": obj.get("severity") + }) + return _obj + + diff --git a/thousandeyes-sdk-alerts/test/test_alert_suppression_windows_api.py b/thousandeyes-sdk-alerts/test/test_alert_suppression_windows_api.py index a10b81cf..5e50c8f8 100644 --- a/thousandeyes-sdk-alerts/test/test_alert_suppression_windows_api.py +++ b/thousandeyes-sdk-alerts/test/test_alert_suppression_windows_api.py @@ -33,8 +33,8 @@ class TestAlertSuppressionWindowsApi(unittest.TestCase): request_body_json = """ { "duration" : 0, + "testIds" : [ "71687", "71687" ], "alertSuppressionWindowId" : "2411", - "tests" : [ "71687", "71687" ], "isEnabled" : false, "repeat" : { "intervalType" : "day", @@ -352,8 +352,8 @@ class TestAlertSuppressionWindowsApi(unittest.TestCase): request_body_json = """ { "duration" : 0, + "testIds" : [ "71687", "71687" ], "alertSuppressionWindowId" : "2411", - "tests" : [ "71687", "71687" ], "isEnabled" : false, "repeat" : { "intervalType" : "day", diff --git a/thousandeyes-sdk-alerts/test/test_alerts_api.py b/thousandeyes-sdk-alerts/test/test_alerts_api.py index 26c80ce1..f606a963 100644 --- a/thousandeyes-sdk-alerts/test/test_alerts_api.py +++ b/thousandeyes-sdk-alerts/test/test_alerts_api.py @@ -33,10 +33,8 @@ class TestAlertsApi(unittest.TestCase): response_body_json = """ { - "duration" : 60, "severity" : "major", "alertType" : "http-server", - "violationCount" : 2, "endDate" : "2022-07-18T22:00:54Z", "_links" : { "appLink" : { @@ -80,6 +78,9 @@ class TestAlertsApi(unittest.TestCase): "title" : "title" } }, + "alertSeverity" : "major", + "duration" : 60, + "violationCount" : 2, "meta" : { "version" : 1 }, @@ -109,6 +110,7 @@ class TestAlertsApi(unittest.TestCase): "id" : "e9c3bf02-a48c-4aa8-9e5f-898800d6f569", "suppressed" : false, "state" : "trigger", + "alertState" : "trigger", "startDate" : "2022-07-17T22:00:54Z" }""" diff --git a/thousandeyes-sdk-bgp-monitors/README.md b/thousandeyes-sdk-bgp-monitors/README.md index cae77ca0..a6b6547b 100644 --- a/thousandeyes-sdk-bgp-monitors/README.md +++ b/thousandeyes-sdk-bgp-monitors/README.md @@ -9,7 +9,7 @@ For more information about monitors, see [Inside-Out BGP Visibility](https://doc This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-credentials/README.md b/thousandeyes-sdk-credentials/README.md index 2a6e6cfd..2d930ba3 100644 --- a/thousandeyes-sdk-credentials/README.md +++ b/thousandeyes-sdk-credentials/README.md @@ -13,7 +13,7 @@ For more information about credentials, see [Working With Secure Credentials](ht This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-dashboards/README.md b/thousandeyes-sdk-dashboards/README.md index d45d3d53..63f05043 100644 --- a/thousandeyes-sdk-dashboards/README.md +++ b/thousandeyes-sdk-dashboards/README.md @@ -3,7 +3,7 @@ Manage ThousandEyes Dashboards. This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-emulation/README.md b/thousandeyes-sdk-emulation/README.md index 3f47da2e..b98f4c3d 100644 --- a/thousandeyes-sdk-emulation/README.md +++ b/thousandeyes-sdk-emulation/README.md @@ -9,7 +9,7 @@ To access Emulation API operations, the following permissions are required: This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-endpoint-agents/README.md b/thousandeyes-sdk-endpoint-agents/README.md index b5e79d01..6131762a 100644 --- a/thousandeyes-sdk-endpoint-agents/README.md +++ b/thousandeyes-sdk-endpoint-agents/README.md @@ -5,7 +5,7 @@ For more information about Endpoint Agents, see [Endpoint Agents](https://docs.t This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-endpoint-agents/docs/EndpointAgent.md b/thousandeyes-sdk-endpoint-agents/docs/EndpointAgent.md index 5b216a9d..eca4ca7d 100644 --- a/thousandeyes-sdk-endpoint-agents/docs/EndpointAgent.md +++ b/thousandeyes-sdk-endpoint-agents/docs/EndpointAgent.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **status** | [**Status**](Status.md) | | [optional] **deleted** | **bool** | | [optional] [readonly] **version** | **str** | Version of the agent software running. | [optional] [readonly] +**target_version** | **str** | The latest available version of the agent. This field is populated only if expand includes `targetVersion`. | [optional] [readonly] **created_at** | **datetime** | | [optional] [readonly] **number_of_clients** | **int** | | [optional] [readonly] **public_ip** | **str** | | [optional] [readonly] diff --git a/thousandeyes-sdk-endpoint-agents/src/thousandeyes_sdk/endpoint_agents/models/endpoint_agent.py b/thousandeyes-sdk-endpoint-agents/src/thousandeyes_sdk/endpoint_agents/models/endpoint_agent.py index 526eccac..f22a68b6 100644 --- a/thousandeyes-sdk-endpoint-agents/src/thousandeyes_sdk/endpoint_agents/models/endpoint_agent.py +++ b/thousandeyes-sdk-endpoint-agents/src/thousandeyes_sdk/endpoint_agents/models/endpoint_agent.py @@ -48,6 +48,7 @@ class EndpointAgent(BaseModel): status: Optional[Status] = None deleted: Optional[StrictBool] = None version: Optional[StrictStr] = Field(default=None, description="Version of the agent software running.") + target_version: Optional[StrictStr] = Field(default=None, description="The latest available version of the agent. This field is populated only if expand includes `targetVersion`.", alias="targetVersion") created_at: Optional[datetime] = Field(default=None, alias="createdAt") number_of_clients: Optional[StrictInt] = Field(default=None, alias="numberOfClients") public_ip: Optional[StrictStr] = Field(default=None, alias="publicIP") @@ -62,7 +63,7 @@ class EndpointAgent(BaseModel): tcp_driver_available: Optional[StrictBool] = Field(default=None, description="Status of TCP test support on the agent.", alias="tcpDriverAvailable") npcap_version: Optional[StrictStr] = Field(default=None, description="For Windows agents, the version of the NPCAP driver that the agent has loaded.", alias="npcapVersion") links: Optional[SelfLinks] = Field(default=None, alias="_links") - __properties: ClassVar[List[str]] = ["id", "aid", "name", "computerName", "osVersion", "platform", "kernelVersion", "manufacturer", "model", "lastSeen", "status", "deleted", "version", "createdAt", "numberOfClients", "publicIP", "location", "clients", "totalMemory", "agentType", "vpnProfiles", "networkInterfaceProfiles", "asnDetails", "licenseType", "tcpDriverAvailable", "npcapVersion", "_links"] + __properties: ClassVar[List[str]] = ["id", "aid", "name", "computerName", "osVersion", "platform", "kernelVersion", "manufacturer", "model", "lastSeen", "status", "deleted", "version", "targetVersion", "createdAt", "numberOfClients", "publicIP", "location", "clients", "totalMemory", "agentType", "vpnProfiles", "networkInterfaceProfiles", "asnDetails", "licenseType", "tcpDriverAvailable", "npcapVersion", "_links"] model_config = ConfigDict( populate_by_name=True, @@ -114,6 +115,7 @@ class EndpointAgent(BaseModel): * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "id", @@ -125,6 +127,7 @@ class EndpointAgent(BaseModel): "last_seen", "deleted", "version", + "target_version", "created_at", "number_of_clients", "public_ip", @@ -197,6 +200,7 @@ class EndpointAgent(BaseModel): "status": obj.get("status"), "deleted": obj.get("deleted"), "version": obj.get("version"), + "targetVersion": obj.get("targetVersion"), "createdAt": obj.get("createdAt"), "numberOfClients": obj.get("numberOfClients"), "publicIP": obj.get("publicIP"), diff --git a/thousandeyes-sdk-endpoint-agents/test/test_endpoint_agents_api.py b/thousandeyes-sdk-endpoint-agents/test/test_endpoint_agents_api.py index f398ead5..75f6d1f1 100644 --- a/thousandeyes-sdk-endpoint-agents/test/test_endpoint_agents_api.py +++ b/thousandeyes-sdk-endpoint-agents/test/test_endpoint_agents_api.py @@ -98,6 +98,7 @@ class TestEndpointAgentsApi(unittest.TestCase): "tcpDriverAvailable" : true, "platform" : "mac", "manufacturer" : "Apple, Inc.", + "targetVersion" : "0.123.4", "createdAt" : "2022-05-26T23:37:16Z", "numberOfClients" : 3, "licenseType" : "essentials", @@ -256,6 +257,7 @@ class TestEndpointAgentsApi(unittest.TestCase): "tcpDriverAvailable" : true, "platform" : "mac", "manufacturer" : "Apple, Inc.", + "targetVersion" : "0.123.4", "createdAt" : "2022-05-26T23:37:16Z", "numberOfClients" : 3, "licenseType" : "essentials", @@ -466,6 +468,7 @@ class TestEndpointAgentsApi(unittest.TestCase): "tcpDriverAvailable" : true, "platform" : "mac", "manufacturer" : "Apple, Inc.", + "targetVersion" : "0.123.4", "createdAt" : "2022-05-26T23:37:16Z", "numberOfClients" : 3, "licenseType" : "essentials", @@ -614,6 +617,7 @@ class TestEndpointAgentsApi(unittest.TestCase): "tcpDriverAvailable" : true, "platform" : "mac", "manufacturer" : "Apple, Inc.", + "targetVersion" : "0.123.4", "createdAt" : "2022-05-26T23:37:16Z", "numberOfClients" : 3, "licenseType" : "essentials", @@ -773,6 +777,7 @@ class TestEndpointAgentsApi(unittest.TestCase): "tcpDriverAvailable" : true, "platform" : "mac", "manufacturer" : "Apple, Inc.", + "targetVersion" : "0.123.4", "createdAt" : "2022-05-26T23:37:16Z", "numberOfClients" : 3, "licenseType" : "essentials", @@ -955,6 +960,7 @@ class TestEndpointAgentsApi(unittest.TestCase): "tcpDriverAvailable" : true, "platform" : "mac", "manufacturer" : "Apple, Inc.", + "targetVersion" : "0.123.4", "createdAt" : "2022-05-26T23:37:16Z", "numberOfClients" : 3, "licenseType" : "essentials", @@ -1103,6 +1109,7 @@ class TestEndpointAgentsApi(unittest.TestCase): "tcpDriverAvailable" : true, "platform" : "mac", "manufacturer" : "Apple, Inc.", + "targetVersion" : "0.123.4", "createdAt" : "2022-05-26T23:37:16Z", "numberOfClients" : 3, "licenseType" : "essentials", @@ -1295,6 +1302,7 @@ class TestEndpointAgentsApi(unittest.TestCase): "tcpDriverAvailable" : true, "platform" : "mac", "manufacturer" : "Apple, Inc.", + "targetVersion" : "0.123.4", "createdAt" : "2022-05-26T23:37:16Z", "numberOfClients" : 3, "licenseType" : "essentials", diff --git a/thousandeyes-sdk-endpoint-instant-tests/README.md b/thousandeyes-sdk-endpoint-instant-tests/README.md index ea6e0df4..7045b614 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/README.md +++ b/thousandeyes-sdk-endpoint-instant-tests/README.md @@ -13,7 +13,7 @@ The URLs for these API test data endpoints are provided within the test definiti This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointAgentToServerInstantTest.md b/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointAgentToServerInstantTest.md index f8f29bb7..f212144c 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointAgentToServerInstantTest.md +++ b/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointAgentToServerInstantTest.md @@ -10,7 +10,8 @@ Name | Type | Description | Notes **endpoint_agent_labels** | **List[str]** | List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`. | [optional] **max_machines** | **int** | Maximum number of agents which can execute the test. | [optional] [default to 25] **test_name** | **str** | Name of the test. | -**server_name** | **str** | A server address without a protocol or IP address. | +**server_name** | **str** | A server address without a protocol or IP address. **Deprecated, use `server` instead**. | [optional] +**server** | **str** | Target domain name or IP address. | **port** | **int** | Port number. | [optional] [default to 443] ## Example diff --git a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_agent_to_server_instant_test.py b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_agent_to_server_instant_test.py index 165ca65b..e48d63e5 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_agent_to_server_instant_test.py +++ b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_agent_to_server_instant_test.py @@ -31,9 +31,10 @@ class EndpointAgentToServerInstantTest(BaseModel): endpoint_agent_labels: Optional[List[StrictStr]] = Field(default=None, description="List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`.", alias="endpointAgentLabels") max_machines: Optional[StrictInt] = Field(default=25, description="Maximum number of agents which can execute the test.", alias="maxMachines") test_name: StrictStr = Field(description="Name of the test.", alias="testName") - server_name: StrictStr = Field(description="A server address without a protocol or IP address.", alias="serverName") + server_name: Optional[StrictStr] = Field(default=None, description="A server address without a protocol or IP address. **Deprecated, use `server` instead**.", alias="serverName") + server: StrictStr = Field(description="Target domain name or IP address.") port: Optional[StrictInt] = Field(default=443, description="Port number.") - __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "serverName", "port"] + __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "serverName", "server", "port"] model_config = ConfigDict( populate_by_name=True, @@ -93,6 +94,7 @@ class EndpointAgentToServerInstantTest(BaseModel): "maxMachines": obj.get("maxMachines") if obj.get("maxMachines") is not None else 25, "testName": obj.get("testName"), "serverName": obj.get("serverName"), + "server": obj.get("server"), "port": obj.get("port") if obj.get("port") is not None else 443 }) return _obj diff --git a/thousandeyes-sdk-endpoint-instant-tests/test/test_agent_to_server_endpoint_instant_scheduled_tests_api.py b/thousandeyes-sdk-endpoint-instant-tests/test/test_agent_to_server_endpoint_instant_scheduled_tests_api.py index 1377bc91..27c8e6a4 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/test/test_agent_to_server_endpoint_instant_scheduled_tests_api.py +++ b/thousandeyes-sdk-endpoint-instant-tests/test/test_agent_to_server_endpoint_instant_scheduled_tests_api.py @@ -32,6 +32,7 @@ class TestAgentToServerEndpointInstantScheduledTestsApi(unittest.TestCase): """Test case for create_agent_to_server_scheduled_instant_test request and response models""" request_body_json = """ { + "server" : "www.example.com", "port" : 443, "agentSelectorType" : "all-agents", "maxMachines" : 25, diff --git a/thousandeyes-sdk-endpoint-labels/README.md b/thousandeyes-sdk-endpoint-labels/README.md index 6e826b07..1c74d734 100644 --- a/thousandeyes-sdk-endpoint-labels/README.md +++ b/thousandeyes-sdk-endpoint-labels/README.md @@ -4,7 +4,7 @@ Manage labels applied to endpoint agents using this API. This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-endpoint-test-results/.openapi-generator/FILES b/thousandeyes-sdk-endpoint-test-results/.openapi-generator/FILES index caaef1b1..94a55d8c 100644 --- a/thousandeyes-sdk-endpoint-test-results/.openapi-generator/FILES +++ b/thousandeyes-sdk-endpoint-test-results/.openapi-generator/FILES @@ -28,6 +28,11 @@ docs/EndpointPathTrace.md docs/EndpointPathVisHop.md docs/EndpointPathVisRoute.md docs/EndpointPingDataPointScore.md +docs/EndpointProbeAgentScore.md +docs/EndpointProbeConnectionScore.md +docs/EndpointProbeGatewayScore.md +docs/EndpointProbeProxyScore.md +docs/EndpointProbeVpnScore.md docs/EndpointResultRequestFilter.md docs/EndpointScheduledTest.md docs/EndpointScheduledTestType.md @@ -46,6 +51,8 @@ docs/EndpointTestsDataSearchSort.md docs/EndpointTestsDataSearchSortKey.md docs/EndpointTestsDataThresholdFilter.md docs/EndpointTestsDataThresholdFilters.md +docs/EndpointZtaMetrics.md +docs/EndpointZtaSegmentType.md docs/Error.md docs/ExpandEndpointHttpServerOptions.md docs/ExpandLocalNetworkTopologyOptions.md @@ -186,6 +193,11 @@ src/thousandeyes_sdk/endpoint_test_results/models/endpoint_path_trace.py src/thousandeyes_sdk/endpoint_test_results/models/endpoint_path_vis_hop.py src/thousandeyes_sdk/endpoint_test_results/models/endpoint_path_vis_route.py src/thousandeyes_sdk/endpoint_test_results/models/endpoint_ping_data_point_score.py +src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_agent_score.py +src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_connection_score.py +src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_gateway_score.py +src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_proxy_score.py +src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_vpn_score.py src/thousandeyes_sdk/endpoint_test_results/models/endpoint_result_request_filter.py src/thousandeyes_sdk/endpoint_test_results/models/endpoint_scheduled_test.py src/thousandeyes_sdk/endpoint_test_results/models/endpoint_scheduled_test_type.py @@ -204,6 +216,8 @@ src/thousandeyes_sdk/endpoint_test_results/models/endpoint_tests_data_search_sor src/thousandeyes_sdk/endpoint_test_results/models/endpoint_tests_data_search_sort_key.py src/thousandeyes_sdk/endpoint_test_results/models/endpoint_tests_data_threshold_filter.py src/thousandeyes_sdk/endpoint_test_results/models/endpoint_tests_data_threshold_filters.py +src/thousandeyes_sdk/endpoint_test_results/models/endpoint_zta_metrics.py +src/thousandeyes_sdk/endpoint_test_results/models/endpoint_zta_segment_type.py src/thousandeyes_sdk/endpoint_test_results/models/error.py src/thousandeyes_sdk/endpoint_test_results/models/expand_endpoint_http_server_options.py src/thousandeyes_sdk/endpoint_test_results/models/expand_local_network_topology_options.py diff --git a/thousandeyes-sdk-endpoint-test-results/README.md b/thousandeyes-sdk-endpoint-test-results/README.md index 42ad8743..c1d14d68 100644 --- a/thousandeyes-sdk-endpoint-test-results/README.md +++ b/thousandeyes-sdk-endpoint-test-results/README.md @@ -3,7 +3,7 @@ Retrieve results for scheduled and dynamic tests on endpoint agents. This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator @@ -102,6 +102,7 @@ Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *HTTPServerEndpointScheduledTestResultsApi* | [**get_http_server_scheduled_test_results**](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/HTTPServerEndpointScheduledTestResultsApi.md#get_http_server_scheduled_test_results) | **GET** /endpoint/test-results/scheduled-tests/{testId}/http-server | Retrieve HTTP server scheduled test results *HTTPServerEndpointScheduledTestResultsApi* | [**get_multi_test_filtered_http_server_scheduled_test_results**](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/HTTPServerEndpointScheduledTestResultsApi.md#get_multi_test_filtered_http_server_scheduled_test_results) | **POST** /endpoint/test-results/scheduled-tests/http-server/filter | Filter HTTP server scheduled test results +*HTTPServerEndpointScheduledTestResultsApi* | [**get_single_test_filtered_http_server_scheduled_test_results**](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/HTTPServerEndpointScheduledTestResultsApi.md#get_single_test_filtered_http_server_scheduled_test_results) | **POST** /endpoint/test-results/scheduled-tests/{testId}/http-server/filter | Filter HTTP server result for a scheduled test *LocalNetworkEndpointTestResultsApi* | [**filter_local_networks_test_results_topologies**](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/LocalNetworkEndpointTestResultsApi.md#filter_local_networks_test_results_topologies) | **POST** /endpoint/test-results/local-networks/topologies/filter | List endpoint network topologies probes *LocalNetworkEndpointTestResultsApi* | [**get_local_networks_test_results**](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/LocalNetworkEndpointTestResultsApi.md#get_local_networks_test_results) | **GET** /endpoint/test-results/local-networks | List local networks *LocalNetworkEndpointTestResultsApi* | [**get_local_networks_test_results_topology**](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/LocalNetworkEndpointTestResultsApi.md#get_local_networks_test_results_topology) | **GET** /endpoint/test-results/local-networks/topologies/{networkTopologyId} | Retrieve endpoint local network topology @@ -148,6 +149,11 @@ Class | Method | HTTP request | Description - [EndpointPathVisHop](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointPathVisHop.md) - [EndpointPathVisRoute](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointPathVisRoute.md) - [EndpointPingDataPointScore](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointPingDataPointScore.md) + - [EndpointProbeAgentScore](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeAgentScore.md) + - [EndpointProbeConnectionScore](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeConnectionScore.md) + - [EndpointProbeGatewayScore](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeGatewayScore.md) + - [EndpointProbeProxyScore](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeProxyScore.md) + - [EndpointProbeVpnScore](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeVpnScore.md) - [EndpointResultRequestFilter](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointResultRequestFilter.md) - [EndpointScheduledTest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointScheduledTest.md) - [EndpointScheduledTestType](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointScheduledTestType.md) @@ -166,6 +172,8 @@ Class | Method | HTTP request | Description - [EndpointTestsDataSearchSortKey](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointTestsDataSearchSortKey.md) - [EndpointTestsDataThresholdFilter](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointTestsDataThresholdFilter.md) - [EndpointTestsDataThresholdFilters](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointTestsDataThresholdFilters.md) + - [EndpointZtaMetrics](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointZtaMetrics.md) + - [EndpointZtaSegmentType](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointZtaSegmentType.md) - [Error](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/Error.md) - [ExpandEndpointHttpServerOptions](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/ExpandEndpointHttpServerOptions.md) - [ExpandLocalNetworkTopologyOptions](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/ExpandLocalNetworkTopologyOptions.md) diff --git a/thousandeyes-sdk-endpoint-test-results/docs/EndpointHttpDataPointScore.md b/thousandeyes-sdk-endpoint-test-results/docs/EndpointHttpDataPointScore.md index f281cff3..4916503d 100644 --- a/thousandeyes-sdk-endpoint-test-results/docs/EndpointHttpDataPointScore.md +++ b/thousandeyes-sdk-endpoint-test-results/docs/EndpointHttpDataPointScore.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**application_score** | **float** | Fine grained score between 0-100 based on `time to first byte` metric | [optional] +**application_score** | **float** | A fine-grained score between 0 and 100. | [optional] **quality** | [**ApplicationScoreQuality**](ApplicationScoreQuality.md) | | [optional] ## Example diff --git a/thousandeyes-sdk-endpoint-test-results/docs/EndpointPingDataPointScore.md b/thousandeyes-sdk-endpoint-test-results/docs/EndpointPingDataPointScore.md index 574bfbe8..c1ada9d5 100644 --- a/thousandeyes-sdk-endpoint-test-results/docs/EndpointPingDataPointScore.md +++ b/thousandeyes-sdk-endpoint-test-results/docs/EndpointPingDataPointScore.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**application_score** | **float** | Fine grained score between 0-100 based on metrics (latency, jitter, loss) | [optional] +**application_score** | **float** | A fine-grained score between 0 and 100. | [optional] **quality** | [**ApplicationScoreQuality**](ApplicationScoreQuality.md) | | [optional] ## Example diff --git a/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeAgentScore.md b/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeAgentScore.md new file mode 100644 index 00000000..f9f2c77b --- /dev/null +++ b/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeAgentScore.md @@ -0,0 +1,30 @@ +# EndpointProbeAgentScore + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**score** | **float** | A fine-grained score between 0 and 100. | [optional] +**quality** | [**ApplicationScoreQuality**](ApplicationScoreQuality.md) | | [optional] + +## Example + +```python +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_agent_score import EndpointProbeAgentScore + +# TODO update the JSON string below +json = "{}" +# create an instance of EndpointProbeAgentScore from a JSON string +endpoint_probe_agent_score_instance = EndpointProbeAgentScore.from_json(json) +# print the JSON string representation of the object +print(EndpointProbeAgentScore.to_json()) + +# convert the object into a dict +endpoint_probe_agent_score_dict = endpoint_probe_agent_score_instance.to_dict() +# create an instance of EndpointProbeAgentScore from a dict +endpoint_probe_agent_score_from_dict = EndpointProbeAgentScore.from_dict(endpoint_probe_agent_score_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeConnectionScore.md b/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeConnectionScore.md new file mode 100644 index 00000000..c12ead65 --- /dev/null +++ b/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeConnectionScore.md @@ -0,0 +1,30 @@ +# EndpointProbeConnectionScore + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**score** | **float** | A fine-grained score between 0 and 100. | [optional] +**quality** | [**ApplicationScoreQuality**](ApplicationScoreQuality.md) | | [optional] + +## Example + +```python +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_connection_score import EndpointProbeConnectionScore + +# TODO update the JSON string below +json = "{}" +# create an instance of EndpointProbeConnectionScore from a JSON string +endpoint_probe_connection_score_instance = EndpointProbeConnectionScore.from_json(json) +# print the JSON string representation of the object +print(EndpointProbeConnectionScore.to_json()) + +# convert the object into a dict +endpoint_probe_connection_score_dict = endpoint_probe_connection_score_instance.to_dict() +# create an instance of EndpointProbeConnectionScore from a dict +endpoint_probe_connection_score_from_dict = EndpointProbeConnectionScore.from_dict(endpoint_probe_connection_score_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeGatewayScore.md b/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeGatewayScore.md new file mode 100644 index 00000000..c8a13273 --- /dev/null +++ b/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeGatewayScore.md @@ -0,0 +1,30 @@ +# EndpointProbeGatewayScore + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**score** | **float** | A fine-grained score between 0 and 100. | [optional] +**quality** | [**ApplicationScoreQuality**](ApplicationScoreQuality.md) | | [optional] + +## Example + +```python +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_gateway_score import EndpointProbeGatewayScore + +# TODO update the JSON string below +json = "{}" +# create an instance of EndpointProbeGatewayScore from a JSON string +endpoint_probe_gateway_score_instance = EndpointProbeGatewayScore.from_json(json) +# print the JSON string representation of the object +print(EndpointProbeGatewayScore.to_json()) + +# convert the object into a dict +endpoint_probe_gateway_score_dict = endpoint_probe_gateway_score_instance.to_dict() +# create an instance of EndpointProbeGatewayScore from a dict +endpoint_probe_gateway_score_from_dict = EndpointProbeGatewayScore.from_dict(endpoint_probe_gateway_score_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeProxyScore.md b/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeProxyScore.md new file mode 100644 index 00000000..2c622996 --- /dev/null +++ b/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeProxyScore.md @@ -0,0 +1,30 @@ +# EndpointProbeProxyScore + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**score** | **float** | A fine-grained score between 0 and 100. | [optional] +**quality** | [**ApplicationScoreQuality**](ApplicationScoreQuality.md) | | [optional] + +## Example + +```python +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_proxy_score import EndpointProbeProxyScore + +# TODO update the JSON string below +json = "{}" +# create an instance of EndpointProbeProxyScore from a JSON string +endpoint_probe_proxy_score_instance = EndpointProbeProxyScore.from_json(json) +# print the JSON string representation of the object +print(EndpointProbeProxyScore.to_json()) + +# convert the object into a dict +endpoint_probe_proxy_score_dict = endpoint_probe_proxy_score_instance.to_dict() +# create an instance of EndpointProbeProxyScore from a dict +endpoint_probe_proxy_score_from_dict = EndpointProbeProxyScore.from_dict(endpoint_probe_proxy_score_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeVpnScore.md b/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeVpnScore.md new file mode 100644 index 00000000..4de84cb6 --- /dev/null +++ b/thousandeyes-sdk-endpoint-test-results/docs/EndpointProbeVpnScore.md @@ -0,0 +1,30 @@ +# EndpointProbeVpnScore + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**score** | **float** | A fine-grained score between 0 and 100. | [optional] +**quality** | [**ApplicationScoreQuality**](ApplicationScoreQuality.md) | | [optional] + +## Example + +```python +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_vpn_score import EndpointProbeVpnScore + +# TODO update the JSON string below +json = "{}" +# create an instance of EndpointProbeVpnScore from a JSON string +endpoint_probe_vpn_score_instance = EndpointProbeVpnScore.from_json(json) +# print the JSON string representation of the object +print(EndpointProbeVpnScore.to_json()) + +# convert the object into a dict +endpoint_probe_vpn_score_dict = endpoint_probe_vpn_score_instance.to_dict() +# create an instance of EndpointProbeVpnScore from a dict +endpoint_probe_vpn_score_from_dict = EndpointProbeVpnScore.from_dict(endpoint_probe_vpn_score_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-endpoint-test-results/docs/EndpointZtaMetrics.md b/thousandeyes-sdk-endpoint-test-results/docs/EndpointZtaMetrics.md new file mode 100644 index 00000000..64211117 --- /dev/null +++ b/thousandeyes-sdk-endpoint-test-results/docs/EndpointZtaMetrics.md @@ -0,0 +1,33 @@ +# EndpointZtaMetrics + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**loss** | **float** | Percentage of packets that failed to reach the destination. | [optional] +**avg_latency** | **int** | Average latency in milliseconds. | [optional] +**jitter** | **int** | Standard deviation of latency in milliseconds. | [optional] +**error_message** | **str** | Error message if an error occurred. | [optional] +**type** | [**EndpointZtaSegmentType**](EndpointZtaSegmentType.md) | | [optional] + +## Example + +```python +from thousandeyes_sdk.endpoint_test_results.models.endpoint_zta_metrics import EndpointZtaMetrics + +# TODO update the JSON string below +json = "{}" +# create an instance of EndpointZtaMetrics from a JSON string +endpoint_zta_metrics_instance = EndpointZtaMetrics.from_json(json) +# print the JSON string representation of the object +print(EndpointZtaMetrics.to_json()) + +# convert the object into a dict +endpoint_zta_metrics_dict = endpoint_zta_metrics_instance.to_dict() +# create an instance of EndpointZtaMetrics from a dict +endpoint_zta_metrics_from_dict = EndpointZtaMetrics.from_dict(endpoint_zta_metrics_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-endpoint-test-results/docs/EndpointZtaSegmentType.md b/thousandeyes-sdk-endpoint-test-results/docs/EndpointZtaSegmentType.md new file mode 100644 index 00000000..c89987b3 --- /dev/null +++ b/thousandeyes-sdk-endpoint-test-results/docs/EndpointZtaSegmentType.md @@ -0,0 +1,12 @@ +# EndpointZtaSegmentType + +Type of ZTA segment. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-endpoint-test-results/docs/HTTPServerEndpointScheduledTestResultsApi.md b/thousandeyes-sdk-endpoint-test-results/docs/HTTPServerEndpointScheduledTestResultsApi.md index 9cfbb619..7bfe8d68 100644 --- a/thousandeyes-sdk-endpoint-test-results/docs/HTTPServerEndpointScheduledTestResultsApi.md +++ b/thousandeyes-sdk-endpoint-test-results/docs/HTTPServerEndpointScheduledTestResultsApi.md @@ -6,6 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**get_http_server_scheduled_test_results**](HTTPServerEndpointScheduledTestResultsApi.md#get_http_server_scheduled_test_results) | **GET** /endpoint/test-results/scheduled-tests/{testId}/http-server | Retrieve HTTP server scheduled test results [**get_multi_test_filtered_http_server_scheduled_test_results**](HTTPServerEndpointScheduledTestResultsApi.md#get_multi_test_filtered_http_server_scheduled_test_results) | **POST** /endpoint/test-results/scheduled-tests/http-server/filter | Filter HTTP server scheduled test results +[**get_single_test_filtered_http_server_scheduled_test_results**](HTTPServerEndpointScheduledTestResultsApi.md#get_single_test_filtered_http_server_scheduled_test_results) | **POST** /endpoint/test-results/scheduled-tests/{testId}/http-server/filter | Filter HTTP server result for a scheduled test # **get_http_server_scheduled_test_results** @@ -106,7 +107,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_multi_test_filtered_http_server_scheduled_test_results** -> HttpMultiEndpointTestResults get_multi_test_filtered_http_server_scheduled_test_results(aid=aid, window=window, start_date=start_date, end_date=end_date, cursor=cursor, expand=expand, http_endpoint_tests_data_rounds_search=http_endpoint_tests_data_rounds_search) +> HttpMultiEndpointTestResults get_multi_test_filtered_http_server_scheduled_test_results(aid=aid, window=window, start_date=start_date, end_date=end_date, cursor=cursor, use_all_permitted_aids=use_all_permitted_aids, expand=expand, http_endpoint_tests_data_rounds_search=http_endpoint_tests_data_rounds_search) Filter HTTP server scheduled test results @@ -149,12 +150,13 @@ with thousandeyes_sdk.core.ApiClient(configuration) as api_client: start_date = '2022-07-17T22:00:54Z' # datetime | Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. (optional) end_date = '2022-07-18T22:00:54Z' # datetime | Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. (optional) cursor = 'cursor_example' # str | (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. (optional) + use_all_permitted_aids = False # bool | Set to `true` to load data from all accounts the user has access to. (optional) (default to False) expand = [thousandeyes_sdk.endpoint_test_results.ExpandEndpointHttpServerOptions()] # List[ExpandEndpointHttpServerOptions] | This parameter is optional and determines whether to expand resources related to test results. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as \"header,\" append `?expand=header` to the query. (optional) http_endpoint_tests_data_rounds_search = thousandeyes_sdk.endpoint_test_results.HttpEndpointTestsDataRoundsSearch() # HttpEndpointTestsDataRoundsSearch | Test data search filters. (optional) try: # Filter HTTP server scheduled test results - api_response = api_instance.get_multi_test_filtered_http_server_scheduled_test_results(aid=aid, window=window, start_date=start_date, end_date=end_date, cursor=cursor, expand=expand, http_endpoint_tests_data_rounds_search=http_endpoint_tests_data_rounds_search) + api_response = api_instance.get_multi_test_filtered_http_server_scheduled_test_results(aid=aid, window=window, start_date=start_date, end_date=end_date, cursor=cursor, use_all_permitted_aids=use_all_permitted_aids, expand=expand, http_endpoint_tests_data_rounds_search=http_endpoint_tests_data_rounds_search) print("The response of HTTPServerEndpointScheduledTestResultsApi->get_multi_test_filtered_http_server_scheduled_test_results:\n") pprint(api_response) except Exception as e: @@ -173,6 +175,7 @@ Name | Type | Description | Notes **start_date** | **datetime**| Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. | [optional] **end_date** | **datetime**| Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. | [optional] **cursor** | **str**| (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. | [optional] + **use_all_permitted_aids** | **bool**| Set to `true` to load data from all accounts the user has access to. | [optional] [default to False] **expand** | [**List[ExpandEndpointHttpServerOptions]**](ExpandEndpointHttpServerOptions.md)| This parameter is optional and determines whether to expand resources related to test results. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as \"header,\" append `?expand=header` to the query. | [optional] **http_endpoint_tests_data_rounds_search** | [**HttpEndpointTestsDataRoundsSearch**](HttpEndpointTestsDataRoundsSearch.md)| Test data search filters. | [optional] @@ -204,3 +207,104 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_single_test_filtered_http_server_scheduled_test_results** +> HttpMultiEndpointTestResults get_single_test_filtered_http_server_scheduled_test_results(test_id, aid=aid, window=window, start_date=start_date, end_date=end_date, cursor=cursor, expand=expand, http_endpoint_tests_data_rounds_search=http_endpoint_tests_data_rounds_search) + +Filter HTTP server result for a scheduled test + +Returns component-level timings for an object load over HTTP. These include DNS, connect, wait, and receive times for a single scheduled test. + +### Example + +* Bearer Authentication (BearerAuth): + +```python +import thousandeyes_sdk.endpoint_test_results +from thousandeyes_sdk.endpoint_test_results.models.expand_endpoint_http_server_options import ExpandEndpointHttpServerOptions +from thousandeyes_sdk.endpoint_test_results.models.http_endpoint_tests_data_rounds_search import HttpEndpointTestsDataRoundsSearch +from thousandeyes_sdk.endpoint_test_results.models.http_multi_endpoint_test_results import HttpMultiEndpointTestResults +from thousandeyes_sdk.endpoint_test_results.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.thousandeyes.com/v7 +# See configuration.py for a list of all supported configuration parameters. +configuration = thousandeyes_sdk.core.Configuration( + host = "https://api.thousandeyes.com/v7" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: BearerAuth +configuration = thousandeyes_sdk.core.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with thousandeyes_sdk.core.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = thousandeyes_sdk.endpoint_test_results.HTTPServerEndpointScheduledTestResultsApi(api_client) + test_id = '202701' # str | Test ID + aid = '1234' # str | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional) + window = '12h' # str | A dynamic time interval up to the current time of the request. Specify the interval as a number followed by an optional type: `s` for seconds (default if no type is specified), `m` for minutes, `h` for hours, `d` for days, and `w` for weeks. For a precise date range, use `startDate` and `endDate`. (optional) + start_date = '2022-07-17T22:00:54Z' # datetime | Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. (optional) + end_date = '2022-07-18T22:00:54Z' # datetime | Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. (optional) + cursor = 'cursor_example' # str | (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. (optional) + expand = [thousandeyes_sdk.endpoint_test_results.ExpandEndpointHttpServerOptions()] # List[ExpandEndpointHttpServerOptions] | This parameter is optional and determines whether to expand resources related to test results. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as \"header,\" append `?expand=header` to the query. (optional) + http_endpoint_tests_data_rounds_search = thousandeyes_sdk.endpoint_test_results.HttpEndpointTestsDataRoundsSearch() # HttpEndpointTestsDataRoundsSearch | Test result search filters. (optional) + + try: + # Filter HTTP server result for a scheduled test + api_response = api_instance.get_single_test_filtered_http_server_scheduled_test_results(test_id, aid=aid, window=window, start_date=start_date, end_date=end_date, cursor=cursor, expand=expand, http_endpoint_tests_data_rounds_search=http_endpoint_tests_data_rounds_search) + print("The response of HTTPServerEndpointScheduledTestResultsApi->get_single_test_filtered_http_server_scheduled_test_results:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HTTPServerEndpointScheduledTestResultsApi->get_single_test_filtered_http_server_scheduled_test_results: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **test_id** | **str**| Test ID | + **aid** | **str**| A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | [optional] + **window** | **str**| A dynamic time interval up to the current time of the request. Specify the interval as a number followed by an optional type: `s` for seconds (default if no type is specified), `m` for minutes, `h` for hours, `d` for days, and `w` for weeks. For a precise date range, use `startDate` and `endDate`. | [optional] + **start_date** | **datetime**| Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. | [optional] + **end_date** | **datetime**| Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. | [optional] + **cursor** | **str**| (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. | [optional] + **expand** | [**List[ExpandEndpointHttpServerOptions]**](ExpandEndpointHttpServerOptions.md)| This parameter is optional and determines whether to expand resources related to test results. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as \"header,\" append `?expand=header` to the query. | [optional] + **http_endpoint_tests_data_rounds_search** | [**HttpEndpointTestsDataRoundsSearch**](HttpEndpointTestsDataRoundsSearch.md)| Test result search filters. | [optional] + +### Return type + +[**HttpMultiEndpointTestResults**](HttpMultiEndpointTestResults.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/hal+json, application/json, application/problem+json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | +**401** | Unauthorized | - | +**403** | Insufficient permissions to query endpoint | - | +**404** | Not found | - | +**429** | Exhausted rate limit for the organization | - | +**500** | Internal server error | - | +**502** | Bad Gateway | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/thousandeyes-sdk-endpoint-test-results/docs/HttpEndpointTestResult.md b/thousandeyes-sdk-endpoint-test-results/docs/HttpEndpointTestResult.md index d9d74134..e99209d6 100644 --- a/thousandeyes-sdk-endpoint-test-results/docs/HttpEndpointTestResult.md +++ b/thousandeyes-sdk-endpoint-test-results/docs/HttpEndpointTestResult.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **system_metrics** | [**SystemMetrics**](SystemMetrics.md) | | [optional] **original_target_profile** | [**TargetProfile**](TargetProfile.md) | | [optional] **vpn_profile** | [**VpnProfile**](VpnProfile.md) | | [optional] +**score** | [**EndpointHttpDataPointScore**](EndpointHttpDataPointScore.md) | | [optional] **connect_time** | **int** | Time required to establish a TCP connection to the server in milliseconds. | [optional] [readonly] **dns_time** | **int** | Time required to resolve DNS in milliseconds. | [optional] [readonly] **error_type** | [**HttpErrorType**](HttpErrorType.md) | | [optional] diff --git a/thousandeyes-sdk-endpoint-test-results/docs/LocalNetworkTopologyResult.md b/thousandeyes-sdk-endpoint-test-results/docs/LocalNetworkTopologyResult.md index 742a36f1..a54f20eb 100644 --- a/thousandeyes-sdk-endpoint-test-results/docs/LocalNetworkTopologyResult.md +++ b/thousandeyes-sdk-endpoint-test-results/docs/LocalNetworkTopologyResult.md @@ -17,6 +17,11 @@ Name | Type | Description | Notes **tcp_connect** | [**TcpConnect**](TcpConnect.md) | | [optional] **system_metrics** | [**SystemMetrics**](SystemMetrics.md) | | [optional] **system_metric_details** | [**SystemMetricDetails**](SystemMetricDetails.md) | | [optional] +**vpn_score** | [**EndpointProbeVpnScore**](EndpointProbeVpnScore.md) | | [optional] +**gateway_score** | [**EndpointProbeGatewayScore**](EndpointProbeGatewayScore.md) | | [optional] +**proxy_score** | [**EndpointProbeProxyScore**](EndpointProbeProxyScore.md) | | [optional] +**connection_score** | [**EndpointProbeConnectionScore**](EndpointProbeConnectionScore.md) | | [optional] +**agent_score** | [**EndpointProbeAgentScore**](EndpointProbeAgentScore.md) | | [optional] **coordinates** | [**RealUserEndpointTestCoordinates**](RealUserEndpointTestCoordinates.md) | | [optional] **network_profile** | [**NetworkProfile**](NetworkProfile.md) | | [optional] **icmp_traceroute** | [**Traceroute**](Traceroute.md) | | [optional] diff --git a/thousandeyes-sdk-endpoint-test-results/docs/LocalNetworkTopologyResultBase.md b/thousandeyes-sdk-endpoint-test-results/docs/LocalNetworkTopologyResultBase.md index edc2838e..8139ac31 100644 --- a/thousandeyes-sdk-endpoint-test-results/docs/LocalNetworkTopologyResultBase.md +++ b/thousandeyes-sdk-endpoint-test-results/docs/LocalNetworkTopologyResultBase.md @@ -17,6 +17,11 @@ Name | Type | Description | Notes **tcp_connect** | [**TcpConnect**](TcpConnect.md) | | [optional] **system_metrics** | [**SystemMetrics**](SystemMetrics.md) | | [optional] **system_metric_details** | [**SystemMetricDetails**](SystemMetricDetails.md) | | [optional] +**vpn_score** | [**EndpointProbeVpnScore**](EndpointProbeVpnScore.md) | | [optional] +**gateway_score** | [**EndpointProbeGatewayScore**](EndpointProbeGatewayScore.md) | | [optional] +**proxy_score** | [**EndpointProbeProxyScore**](EndpointProbeProxyScore.md) | | [optional] +**connection_score** | [**EndpointProbeConnectionScore**](EndpointProbeConnectionScore.md) | | [optional] +**agent_score** | [**EndpointProbeAgentScore**](EndpointProbeAgentScore.md) | | [optional] ## Example diff --git a/thousandeyes-sdk-endpoint-test-results/docs/NetworkDynamicEndpointTestResult.md b/thousandeyes-sdk-endpoint-test-results/docs/NetworkDynamicEndpointTestResult.md index df1ece9d..886a9236 100644 --- a/thousandeyes-sdk-endpoint-test-results/docs/NetworkDynamicEndpointTestResult.md +++ b/thousandeyes-sdk-endpoint-test-results/docs/NetworkDynamicEndpointTestResult.md @@ -17,6 +17,8 @@ Name | Type | Description | Notes **avg_latency** | **float** | Average RTT for packets sent to destination. | [optional] [readonly] **error_details** | **str** | Error details, if an error was encountered. | [optional] [readonly] **jitter** | **float** | Standard deviation of latency. | [optional] [readonly] +**score** | [**EndpointPingDataPointScore**](EndpointPingDataPointScore.md) | | [optional] +**zta_metrics** | [**List[EndpointZtaMetrics]**](EndpointZtaMetrics.md) | | [optional] **is_icmp_blocked** | **bool** | Set to `true` if network target is blocking ICMP echo (ping) queries. | [optional] [readonly] **loss** | **float** | Percentage of packets not reaching destination. | [optional] [readonly] **max_latency** | **float** | Maximum RTT for packets sent to destination. | [optional] [readonly] diff --git a/thousandeyes-sdk-endpoint-test-results/docs/NetworkEndpointScheduledTestResultsApi.md b/thousandeyes-sdk-endpoint-test-results/docs/NetworkEndpointScheduledTestResultsApi.md index 33890be4..4b625775 100644 --- a/thousandeyes-sdk-endpoint-test-results/docs/NetworkEndpointScheduledTestResultsApi.md +++ b/thousandeyes-sdk-endpoint-test-results/docs/NetworkEndpointScheduledTestResultsApi.md @@ -108,7 +108,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **filter_scheduled_tests_network_results** -> MultiTestIdNetworkEndpointTestResults filter_scheduled_tests_network_results(aid=aid, window=window, start_date=start_date, end_date=end_date, max=max, cursor=cursor, multi_test_id_endpoint_tests_data_rounds_search=multi_test_id_endpoint_tests_data_rounds_search) +> MultiTestIdNetworkEndpointTestResults filter_scheduled_tests_network_results(aid=aid, window=window, start_date=start_date, end_date=end_date, max=max, cursor=cursor, use_all_permitted_aids=use_all_permitted_aids, multi_test_id_endpoint_tests_data_rounds_search=multi_test_id_endpoint_tests_data_rounds_search) Retrieve network scheduled test results from multiple tests @@ -151,11 +151,12 @@ with thousandeyes_sdk.core.ApiClient(configuration) as api_client: end_date = '2022-07-18T22:00:54Z' # datetime | Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. (optional) max = 5 # int | (Optional) Maximum number of objects to return. (optional) cursor = 'cursor_example' # str | (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. (optional) + use_all_permitted_aids = False # bool | Set to `true` to load data from all accounts the user has access to. (optional) (default to False) multi_test_id_endpoint_tests_data_rounds_search = thousandeyes_sdk.endpoint_test_results.MultiTestIdEndpointTestsDataRoundsSearch() # MultiTestIdEndpointTestsDataRoundsSearch | Test data search filters. (optional) try: # Retrieve network scheduled test results from multiple tests - api_response = api_instance.filter_scheduled_tests_network_results(aid=aid, window=window, start_date=start_date, end_date=end_date, max=max, cursor=cursor, multi_test_id_endpoint_tests_data_rounds_search=multi_test_id_endpoint_tests_data_rounds_search) + api_response = api_instance.filter_scheduled_tests_network_results(aid=aid, window=window, start_date=start_date, end_date=end_date, max=max, cursor=cursor, use_all_permitted_aids=use_all_permitted_aids, multi_test_id_endpoint_tests_data_rounds_search=multi_test_id_endpoint_tests_data_rounds_search) print("The response of NetworkEndpointScheduledTestResultsApi->filter_scheduled_tests_network_results:\n") pprint(api_response) except Exception as e: @@ -175,6 +176,7 @@ Name | Type | Description | Notes **end_date** | **datetime**| Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. | [optional] **max** | **int**| (Optional) Maximum number of objects to return. | [optional] **cursor** | **str**| (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. | [optional] + **use_all_permitted_aids** | **bool**| Set to `true` to load data from all accounts the user has access to. | [optional] [default to False] **multi_test_id_endpoint_tests_data_rounds_search** | [**MultiTestIdEndpointTestsDataRoundsSearch**](MultiTestIdEndpointTestsDataRoundsSearch.md)| Test data search filters. | [optional] ### Return type diff --git a/thousandeyes-sdk-endpoint-test-results/docs/NetworkEndpointTestResult.md b/thousandeyes-sdk-endpoint-test-results/docs/NetworkEndpointTestResult.md index af556c64..b525611a 100644 --- a/thousandeyes-sdk-endpoint-test-results/docs/NetworkEndpointTestResult.md +++ b/thousandeyes-sdk-endpoint-test-results/docs/NetworkEndpointTestResult.md @@ -17,6 +17,8 @@ Name | Type | Description | Notes **avg_latency** | **float** | Average RTT for packets sent to destination. | [optional] [readonly] **error_details** | **str** | Error details, if an error was encountered. | [optional] [readonly] **jitter** | **float** | Standard deviation of latency. | [optional] [readonly] +**score** | [**EndpointPingDataPointScore**](EndpointPingDataPointScore.md) | | [optional] +**zta_metrics** | [**List[EndpointZtaMetrics]**](EndpointZtaMetrics.md) | | [optional] **is_icmp_blocked** | **bool** | Set to `true` if network target is blocking ICMP echo (ping) queries. | [optional] [readonly] **loss** | **float** | Percentage of packets not reaching destination. | [optional] [readonly] **max_latency** | **float** | Maximum RTT for packets sent to destination. | [optional] [readonly] diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/__init__.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/__init__.py index c0cbd364..9514b697 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/__init__.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/__init__.py @@ -49,6 +49,11 @@ from thousandeyes_sdk.endpoint_test_results.models.endpoint_path_trace import En from thousandeyes_sdk.endpoint_test_results.models.endpoint_path_vis_hop import EndpointPathVisHop from thousandeyes_sdk.endpoint_test_results.models.endpoint_path_vis_route import EndpointPathVisRoute from thousandeyes_sdk.endpoint_test_results.models.endpoint_ping_data_point_score import EndpointPingDataPointScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_agent_score import EndpointProbeAgentScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_connection_score import EndpointProbeConnectionScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_gateway_score import EndpointProbeGatewayScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_proxy_score import EndpointProbeProxyScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_vpn_score import EndpointProbeVpnScore from thousandeyes_sdk.endpoint_test_results.models.endpoint_result_request_filter import EndpointResultRequestFilter from thousandeyes_sdk.endpoint_test_results.models.endpoint_scheduled_test import EndpointScheduledTest from thousandeyes_sdk.endpoint_test_results.models.endpoint_scheduled_test_type import EndpointScheduledTestType @@ -67,6 +72,8 @@ from thousandeyes_sdk.endpoint_test_results.models.endpoint_tests_data_search_so from thousandeyes_sdk.endpoint_test_results.models.endpoint_tests_data_search_sort_key import EndpointTestsDataSearchSortKey from thousandeyes_sdk.endpoint_test_results.models.endpoint_tests_data_threshold_filter import EndpointTestsDataThresholdFilter from thousandeyes_sdk.endpoint_test_results.models.endpoint_tests_data_threshold_filters import EndpointTestsDataThresholdFilters +from thousandeyes_sdk.endpoint_test_results.models.endpoint_zta_metrics import EndpointZtaMetrics +from thousandeyes_sdk.endpoint_test_results.models.endpoint_zta_segment_type import EndpointZtaSegmentType from thousandeyes_sdk.endpoint_test_results.models.error import Error from thousandeyes_sdk.endpoint_test_results.models.expand_endpoint_http_server_options import ExpandEndpointHttpServerOptions from thousandeyes_sdk.endpoint_test_results.models.expand_local_network_topology_options import ExpandLocalNetworkTopologyOptions diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/http_server_endpoint_scheduled_test_results_api.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/http_server_endpoint_scheduled_test_results_api.py index 577efb80..88bfa69c 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/http_server_endpoint_scheduled_test_results_api.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/http_server_endpoint_scheduled_test_results_api.py @@ -19,7 +19,7 @@ from importlib.metadata import version import thousandeyes_sdk.endpoint_test_results.models from datetime import datetime -from pydantic import Field, StrictStr, field_validator +from pydantic import Field, StrictBool, StrictStr, field_validator from typing import List, Optional from typing_extensions import Annotated from thousandeyes_sdk.endpoint_test_results.models.expand_endpoint_http_server_options import ExpandEndpointHttpServerOptions @@ -455,6 +455,7 @@ class HTTPServerEndpointScheduledTestResultsApi: start_date: Annotated[Optional[datetime], Field(description="Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`.")] = None, end_date: Annotated[Optional[datetime], Field(description="Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`.")] = None, cursor: Annotated[Optional[StrictStr], Field(description="(Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter.")] = None, + use_all_permitted_aids: Annotated[Optional[StrictBool], Field(description="Set to `true` to load data from all accounts the user has access to.")] = None, expand: Annotated[Optional[List[ExpandEndpointHttpServerOptions]], Field(description="This parameter is optional and determines whether to expand resources related to test results. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as \"header,\" append `?expand=header` to the query.")] = None, http_endpoint_tests_data_rounds_search: Annotated[Optional[HttpEndpointTestsDataRoundsSearch], Field(description="Test data search filters.")] = None, _request_timeout: Union[ @@ -484,6 +485,8 @@ class HTTPServerEndpointScheduledTestResultsApi: :type end_date: datetime :param cursor: (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. :type cursor: str + :param use_all_permitted_aids: Set to `true` to load data from all accounts the user has access to. + :type use_all_permitted_aids: bool :param expand: This parameter is optional and determines whether to expand resources related to test results. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as \"header,\" append `?expand=header` to the query. :type expand: List[ExpandEndpointHttpServerOptions] :param http_endpoint_tests_data_rounds_search: Test data search filters. @@ -516,6 +519,7 @@ class HTTPServerEndpointScheduledTestResultsApi: start_date=start_date, end_date=end_date, cursor=cursor, + use_all_permitted_aids=use_all_permitted_aids, expand=expand, http_endpoint_tests_data_rounds_search=http_endpoint_tests_data_rounds_search, _request_auth=_request_auth, @@ -554,6 +558,7 @@ class HTTPServerEndpointScheduledTestResultsApi: start_date: Annotated[Optional[datetime], Field(description="Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`.")] = None, end_date: Annotated[Optional[datetime], Field(description="Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`.")] = None, cursor: Annotated[Optional[StrictStr], Field(description="(Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter.")] = None, + use_all_permitted_aids: Annotated[Optional[StrictBool], Field(description="Set to `true` to load data from all accounts the user has access to.")] = None, expand: Annotated[Optional[List[ExpandEndpointHttpServerOptions]], Field(description="This parameter is optional and determines whether to expand resources related to test results. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as \"header,\" append `?expand=header` to the query.")] = None, http_endpoint_tests_data_rounds_search: Annotated[Optional[HttpEndpointTestsDataRoundsSearch], Field(description="Test data search filters.")] = None, _request_timeout: Union[ @@ -583,6 +588,8 @@ class HTTPServerEndpointScheduledTestResultsApi: :type end_date: datetime :param cursor: (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. :type cursor: str + :param use_all_permitted_aids: Set to `true` to load data from all accounts the user has access to. + :type use_all_permitted_aids: bool :param expand: This parameter is optional and determines whether to expand resources related to test results. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as \"header,\" append `?expand=header` to the query. :type expand: List[ExpandEndpointHttpServerOptions] :param http_endpoint_tests_data_rounds_search: Test data search filters. @@ -615,6 +622,7 @@ class HTTPServerEndpointScheduledTestResultsApi: start_date=start_date, end_date=end_date, cursor=cursor, + use_all_permitted_aids=use_all_permitted_aids, expand=expand, http_endpoint_tests_data_rounds_search=http_endpoint_tests_data_rounds_search, _request_auth=_request_auth, @@ -653,6 +661,7 @@ class HTTPServerEndpointScheduledTestResultsApi: start_date: Annotated[Optional[datetime], Field(description="Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`.")] = None, end_date: Annotated[Optional[datetime], Field(description="Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`.")] = None, cursor: Annotated[Optional[StrictStr], Field(description="(Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter.")] = None, + use_all_permitted_aids: Annotated[Optional[StrictBool], Field(description="Set to `true` to load data from all accounts the user has access to.")] = None, expand: Annotated[Optional[List[ExpandEndpointHttpServerOptions]], Field(description="This parameter is optional and determines whether to expand resources related to test results. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as \"header,\" append `?expand=header` to the query.")] = None, http_endpoint_tests_data_rounds_search: Annotated[Optional[HttpEndpointTestsDataRoundsSearch], Field(description="Test data search filters.")] = None, _request_timeout: Union[ @@ -682,6 +691,8 @@ class HTTPServerEndpointScheduledTestResultsApi: :type end_date: datetime :param cursor: (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. :type cursor: str + :param use_all_permitted_aids: Set to `true` to load data from all accounts the user has access to. + :type use_all_permitted_aids: bool :param expand: This parameter is optional and determines whether to expand resources related to test results. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as \"header,\" append `?expand=header` to the query. :type expand: List[ExpandEndpointHttpServerOptions] :param http_endpoint_tests_data_rounds_search: Test data search filters. @@ -714,6 +725,7 @@ class HTTPServerEndpointScheduledTestResultsApi: start_date=start_date, end_date=end_date, cursor=cursor, + use_all_permitted_aids=use_all_permitted_aids, expand=expand, http_endpoint_tests_data_rounds_search=http_endpoint_tests_data_rounds_search, _request_auth=_request_auth, @@ -746,6 +758,7 @@ class HTTPServerEndpointScheduledTestResultsApi: start_date, end_date, cursor, + use_all_permitted_aids, expand, http_endpoint_tests_data_rounds_search, _request_auth, @@ -807,6 +820,442 @@ class HTTPServerEndpointScheduledTestResultsApi: _query_params.append(('cursor', cursor)) + if use_all_permitted_aids is not None: + + _query_params.append(('useAllPermittedAids', use_all_permitted_aids)) + + if expand is not None: + + _query_params.append(('expand', expand)) + + # process the header parameters + # process the form parameters + # process the body parameter + if http_endpoint_tests_data_rounds_search is not None: + _body_params = http_endpoint_tests_data_rounds_search + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/hal+json', + 'application/json', + 'application/problem+json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/endpoint/test-results/scheduled-tests/http-server/filter', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_single_test_filtered_http_server_scheduled_test_results( + self, + test_id: Annotated[StrictStr, Field(description="Test ID")], + aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + window: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="A dynamic time interval up to the current time of the request. Specify the interval as a number followed by an optional type: `s` for seconds (default if no type is specified), `m` for minutes, `h` for hours, `d` for days, and `w` for weeks. For a precise date range, use `startDate` and `endDate`.")] = None, + start_date: Annotated[Optional[datetime], Field(description="Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`.")] = None, + end_date: Annotated[Optional[datetime], Field(description="Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`.")] = None, + cursor: Annotated[Optional[StrictStr], Field(description="(Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter.")] = None, + expand: Annotated[Optional[List[ExpandEndpointHttpServerOptions]], Field(description="This parameter is optional and determines whether to expand resources related to test results. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as \"header,\" append `?expand=header` to the query.")] = None, + http_endpoint_tests_data_rounds_search: Annotated[Optional[HttpEndpointTestsDataRoundsSearch], Field(description="Test result search filters.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> HttpMultiEndpointTestResults: + """Filter HTTP server result for a scheduled test + + Returns component-level timings for an object load over HTTP. These include DNS, connect, wait, and receive times for a single scheduled test. + + :param test_id: Test ID (required) + :type test_id: str + :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. + :type aid: str + :param window: A dynamic time interval up to the current time of the request. Specify the interval as a number followed by an optional type: `s` for seconds (default if no type is specified), `m` for minutes, `h` for hours, `d` for days, and `w` for weeks. For a precise date range, use `startDate` and `endDate`. + :type window: str + :param start_date: Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. + :type start_date: datetime + :param end_date: Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. + :type end_date: datetime + :param cursor: (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. + :type cursor: str + :param expand: This parameter is optional and determines whether to expand resources related to test results. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as \"header,\" append `?expand=header` to the query. + :type expand: List[ExpandEndpointHttpServerOptions] + :param http_endpoint_tests_data_rounds_search: Test result search filters. + :type http_endpoint_tests_data_rounds_search: HttpEndpointTestsDataRoundsSearch + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_single_test_filtered_http_server_scheduled_test_results_serialize( + test_id=test_id, + aid=aid, + window=window, + start_date=start_date, + end_date=end_date, + cursor=cursor, + expand=expand, + http_endpoint_tests_data_rounds_search=http_endpoint_tests_data_rounds_search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "HttpMultiEndpointTestResults", + '400': "ValidationError", + '401': "UnauthorizedError", + '403': "Error", + '404': "Error", + '429': "Error", + '500': "Error", + '502': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + models=thousandeyes_sdk.endpoint_test_results.models, + ).data + + + @validate_call + def get_single_test_filtered_http_server_scheduled_test_results_with_http_info( + self, + test_id: Annotated[StrictStr, Field(description="Test ID")], + aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + window: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="A dynamic time interval up to the current time of the request. Specify the interval as a number followed by an optional type: `s` for seconds (default if no type is specified), `m` for minutes, `h` for hours, `d` for days, and `w` for weeks. For a precise date range, use `startDate` and `endDate`.")] = None, + start_date: Annotated[Optional[datetime], Field(description="Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`.")] = None, + end_date: Annotated[Optional[datetime], Field(description="Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`.")] = None, + cursor: Annotated[Optional[StrictStr], Field(description="(Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter.")] = None, + expand: Annotated[Optional[List[ExpandEndpointHttpServerOptions]], Field(description="This parameter is optional and determines whether to expand resources related to test results. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as \"header,\" append `?expand=header` to the query.")] = None, + http_endpoint_tests_data_rounds_search: Annotated[Optional[HttpEndpointTestsDataRoundsSearch], Field(description="Test result search filters.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[HttpMultiEndpointTestResults]: + """Filter HTTP server result for a scheduled test + + Returns component-level timings for an object load over HTTP. These include DNS, connect, wait, and receive times for a single scheduled test. + + :param test_id: Test ID (required) + :type test_id: str + :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. + :type aid: str + :param window: A dynamic time interval up to the current time of the request. Specify the interval as a number followed by an optional type: `s` for seconds (default if no type is specified), `m` for minutes, `h` for hours, `d` for days, and `w` for weeks. For a precise date range, use `startDate` and `endDate`. + :type window: str + :param start_date: Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. + :type start_date: datetime + :param end_date: Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. + :type end_date: datetime + :param cursor: (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. + :type cursor: str + :param expand: This parameter is optional and determines whether to expand resources related to test results. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as \"header,\" append `?expand=header` to the query. + :type expand: List[ExpandEndpointHttpServerOptions] + :param http_endpoint_tests_data_rounds_search: Test result search filters. + :type http_endpoint_tests_data_rounds_search: HttpEndpointTestsDataRoundsSearch + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_single_test_filtered_http_server_scheduled_test_results_serialize( + test_id=test_id, + aid=aid, + window=window, + start_date=start_date, + end_date=end_date, + cursor=cursor, + expand=expand, + http_endpoint_tests_data_rounds_search=http_endpoint_tests_data_rounds_search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "HttpMultiEndpointTestResults", + '400': "ValidationError", + '401': "UnauthorizedError", + '403': "Error", + '404': "Error", + '429': "Error", + '500': "Error", + '502': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + models=thousandeyes_sdk.endpoint_test_results.models, + ) + + + @validate_call + def get_single_test_filtered_http_server_scheduled_test_results_without_preload_content( + self, + test_id: Annotated[StrictStr, Field(description="Test ID")], + aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + window: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="A dynamic time interval up to the current time of the request. Specify the interval as a number followed by an optional type: `s` for seconds (default if no type is specified), `m` for minutes, `h` for hours, `d` for days, and `w` for weeks. For a precise date range, use `startDate` and `endDate`.")] = None, + start_date: Annotated[Optional[datetime], Field(description="Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`.")] = None, + end_date: Annotated[Optional[datetime], Field(description="Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`.")] = None, + cursor: Annotated[Optional[StrictStr], Field(description="(Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter.")] = None, + expand: Annotated[Optional[List[ExpandEndpointHttpServerOptions]], Field(description="This parameter is optional and determines whether to expand resources related to test results. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as \"header,\" append `?expand=header` to the query.")] = None, + http_endpoint_tests_data_rounds_search: Annotated[Optional[HttpEndpointTestsDataRoundsSearch], Field(description="Test result search filters.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Filter HTTP server result for a scheduled test + + Returns component-level timings for an object load over HTTP. These include DNS, connect, wait, and receive times for a single scheduled test. + + :param test_id: Test ID (required) + :type test_id: str + :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. + :type aid: str + :param window: A dynamic time interval up to the current time of the request. Specify the interval as a number followed by an optional type: `s` for seconds (default if no type is specified), `m` for minutes, `h` for hours, `d` for days, and `w` for weeks. For a precise date range, use `startDate` and `endDate`. + :type window: str + :param start_date: Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. + :type start_date: datetime + :param end_date: Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. + :type end_date: datetime + :param cursor: (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. + :type cursor: str + :param expand: This parameter is optional and determines whether to expand resources related to test results. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as \"header,\" append `?expand=header` to the query. + :type expand: List[ExpandEndpointHttpServerOptions] + :param http_endpoint_tests_data_rounds_search: Test result search filters. + :type http_endpoint_tests_data_rounds_search: HttpEndpointTestsDataRoundsSearch + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_single_test_filtered_http_server_scheduled_test_results_serialize( + test_id=test_id, + aid=aid, + window=window, + start_date=start_date, + end_date=end_date, + cursor=cursor, + expand=expand, + http_endpoint_tests_data_rounds_search=http_endpoint_tests_data_rounds_search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "HttpMultiEndpointTestResults", + '400': "ValidationError", + '401': "UnauthorizedError", + '403': "Error", + '404': "Error", + '429': "Error", + '500': "Error", + '502': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_single_test_filtered_http_server_scheduled_test_results_serialize( + self, + test_id, + aid, + window, + start_date, + end_date, + cursor, + expand, + http_endpoint_tests_data_rounds_search, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'expand': 'csv', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if test_id is not None: + _path_params['testId'] = test_id + # process the query parameters + if aid is not None: + + _query_params.append(('aid', aid)) + + if window is not None: + + _query_params.append(('window', window)) + + if start_date is not None: + if isinstance(start_date, datetime): + _query_params.append( + ( + 'startDate', + start_date.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('startDate', start_date)) + + if end_date is not None: + if isinstance(end_date, datetime): + _query_params.append( + ( + 'endDate', + end_date.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('endDate', end_date)) + + if cursor is not None: + + _query_params.append(('cursor', cursor)) + if expand is not None: _query_params.append(('expand', expand)) @@ -848,7 +1297,7 @@ class HTTPServerEndpointScheduledTestResultsApi: return self.api_client.param_serialize( method='POST', - resource_path='/endpoint/test-results/scheduled-tests/http-server/filter', + resource_path='/endpoint/test-results/scheduled-tests/{testId}/http-server/filter', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/network_endpoint_scheduled_test_results_api.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/network_endpoint_scheduled_test_results_api.py index e8288280..1861fc46 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/network_endpoint_scheduled_test_results_api.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/api/network_endpoint_scheduled_test_results_api.py @@ -19,7 +19,7 @@ from importlib.metadata import version import thousandeyes_sdk.endpoint_test_results.models from datetime import datetime -from pydantic import Field, StrictInt, StrictStr, field_validator +from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated from thousandeyes_sdk.endpoint_test_results.models.endpoint_tests_data_rounds_search import EndpointTestsDataRoundsSearch @@ -468,6 +468,7 @@ class NetworkEndpointScheduledTestResultsApi: end_date: Annotated[Optional[datetime], Field(description="Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`.")] = None, max: Annotated[Optional[StrictInt], Field(description="(Optional) Maximum number of objects to return.")] = None, cursor: Annotated[Optional[StrictStr], Field(description="(Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter.")] = None, + use_all_permitted_aids: Annotated[Optional[StrictBool], Field(description="Set to `true` to load data from all accounts the user has access to.")] = None, multi_test_id_endpoint_tests_data_rounds_search: Annotated[Optional[MultiTestIdEndpointTestsDataRoundsSearch], Field(description="Test data search filters.")] = None, _request_timeout: Union[ None, @@ -498,6 +499,8 @@ class NetworkEndpointScheduledTestResultsApi: :type max: int :param cursor: (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. :type cursor: str + :param use_all_permitted_aids: Set to `true` to load data from all accounts the user has access to. + :type use_all_permitted_aids: bool :param multi_test_id_endpoint_tests_data_rounds_search: Test data search filters. :type multi_test_id_endpoint_tests_data_rounds_search: MultiTestIdEndpointTestsDataRoundsSearch :param _request_timeout: timeout setting for this request. If one @@ -529,6 +532,7 @@ class NetworkEndpointScheduledTestResultsApi: end_date=end_date, max=max, cursor=cursor, + use_all_permitted_aids=use_all_permitted_aids, multi_test_id_endpoint_tests_data_rounds_search=multi_test_id_endpoint_tests_data_rounds_search, _request_auth=_request_auth, _content_type=_content_type, @@ -566,6 +570,7 @@ class NetworkEndpointScheduledTestResultsApi: end_date: Annotated[Optional[datetime], Field(description="Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`.")] = None, max: Annotated[Optional[StrictInt], Field(description="(Optional) Maximum number of objects to return.")] = None, cursor: Annotated[Optional[StrictStr], Field(description="(Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter.")] = None, + use_all_permitted_aids: Annotated[Optional[StrictBool], Field(description="Set to `true` to load data from all accounts the user has access to.")] = None, multi_test_id_endpoint_tests_data_rounds_search: Annotated[Optional[MultiTestIdEndpointTestsDataRoundsSearch], Field(description="Test data search filters.")] = None, _request_timeout: Union[ None, @@ -596,6 +601,8 @@ class NetworkEndpointScheduledTestResultsApi: :type max: int :param cursor: (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. :type cursor: str + :param use_all_permitted_aids: Set to `true` to load data from all accounts the user has access to. + :type use_all_permitted_aids: bool :param multi_test_id_endpoint_tests_data_rounds_search: Test data search filters. :type multi_test_id_endpoint_tests_data_rounds_search: MultiTestIdEndpointTestsDataRoundsSearch :param _request_timeout: timeout setting for this request. If one @@ -627,6 +634,7 @@ class NetworkEndpointScheduledTestResultsApi: end_date=end_date, max=max, cursor=cursor, + use_all_permitted_aids=use_all_permitted_aids, multi_test_id_endpoint_tests_data_rounds_search=multi_test_id_endpoint_tests_data_rounds_search, _request_auth=_request_auth, _content_type=_content_type, @@ -664,6 +672,7 @@ class NetworkEndpointScheduledTestResultsApi: end_date: Annotated[Optional[datetime], Field(description="Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`.")] = None, max: Annotated[Optional[StrictInt], Field(description="(Optional) Maximum number of objects to return.")] = None, cursor: Annotated[Optional[StrictStr], Field(description="(Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter.")] = None, + use_all_permitted_aids: Annotated[Optional[StrictBool], Field(description="Set to `true` to load data from all accounts the user has access to.")] = None, multi_test_id_endpoint_tests_data_rounds_search: Annotated[Optional[MultiTestIdEndpointTestsDataRoundsSearch], Field(description="Test data search filters.")] = None, _request_timeout: Union[ None, @@ -694,6 +703,8 @@ class NetworkEndpointScheduledTestResultsApi: :type max: int :param cursor: (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. :type cursor: str + :param use_all_permitted_aids: Set to `true` to load data from all accounts the user has access to. + :type use_all_permitted_aids: bool :param multi_test_id_endpoint_tests_data_rounds_search: Test data search filters. :type multi_test_id_endpoint_tests_data_rounds_search: MultiTestIdEndpointTestsDataRoundsSearch :param _request_timeout: timeout setting for this request. If one @@ -725,6 +736,7 @@ class NetworkEndpointScheduledTestResultsApi: end_date=end_date, max=max, cursor=cursor, + use_all_permitted_aids=use_all_permitted_aids, multi_test_id_endpoint_tests_data_rounds_search=multi_test_id_endpoint_tests_data_rounds_search, _request_auth=_request_auth, _content_type=_content_type, @@ -756,6 +768,7 @@ class NetworkEndpointScheduledTestResultsApi: end_date, max, cursor, + use_all_permitted_aids, multi_test_id_endpoint_tests_data_rounds_search, _request_auth, _content_type, @@ -819,6 +832,10 @@ class NetworkEndpointScheduledTestResultsApi: _query_params.append(('cursor', cursor)) + if use_all_permitted_aids is not None: + + _query_params.append(('useAllPermittedAids', use_all_permitted_aids)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/__init__.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/__init__.py index 5fcf22db..0c54bf1c 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/__init__.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/__init__.py @@ -40,6 +40,11 @@ from thousandeyes_sdk.endpoint_test_results.models.endpoint_path_trace import En from thousandeyes_sdk.endpoint_test_results.models.endpoint_path_vis_hop import EndpointPathVisHop from thousandeyes_sdk.endpoint_test_results.models.endpoint_path_vis_route import EndpointPathVisRoute from thousandeyes_sdk.endpoint_test_results.models.endpoint_ping_data_point_score import EndpointPingDataPointScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_agent_score import EndpointProbeAgentScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_connection_score import EndpointProbeConnectionScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_gateway_score import EndpointProbeGatewayScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_proxy_score import EndpointProbeProxyScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_vpn_score import EndpointProbeVpnScore from thousandeyes_sdk.endpoint_test_results.models.endpoint_result_request_filter import EndpointResultRequestFilter from thousandeyes_sdk.endpoint_test_results.models.endpoint_scheduled_test import EndpointScheduledTest from thousandeyes_sdk.endpoint_test_results.models.endpoint_scheduled_test_type import EndpointScheduledTestType @@ -58,6 +63,8 @@ from thousandeyes_sdk.endpoint_test_results.models.endpoint_tests_data_search_so from thousandeyes_sdk.endpoint_test_results.models.endpoint_tests_data_search_sort_key import EndpointTestsDataSearchSortKey from thousandeyes_sdk.endpoint_test_results.models.endpoint_tests_data_threshold_filter import EndpointTestsDataThresholdFilter from thousandeyes_sdk.endpoint_test_results.models.endpoint_tests_data_threshold_filters import EndpointTestsDataThresholdFilters +from thousandeyes_sdk.endpoint_test_results.models.endpoint_zta_metrics import EndpointZtaMetrics +from thousandeyes_sdk.endpoint_test_results.models.endpoint_zta_segment_type import EndpointZtaSegmentType from thousandeyes_sdk.endpoint_test_results.models.error import Error from thousandeyes_sdk.endpoint_test_results.models.expand_endpoint_http_server_options import ExpandEndpointHttpServerOptions from thousandeyes_sdk.endpoint_test_results.models.expand_local_network_topology_options import ExpandLocalNetworkTopologyOptions diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_http_data_point_score.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_http_data_point_score.py index 88124630..e89fe000 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_http_data_point_score.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_http_data_point_score.py @@ -26,7 +26,7 @@ class EndpointHttpDataPointScore(BaseModel): """ EndpointHttpDataPointScore """ # noqa: E501 - application_score: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Fine grained score between 0-100 based on `time to first byte` metric", alias="applicationScore") + application_score: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="A fine-grained score between 0 and 100.", alias="applicationScore") quality: Optional[ApplicationScoreQuality] = None __properties: ClassVar[List[str]] = ["applicationScore", "quality"] diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_ping_data_point_score.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_ping_data_point_score.py index e08adb30..1bd35507 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_ping_data_point_score.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_ping_data_point_score.py @@ -26,7 +26,7 @@ class EndpointPingDataPointScore(BaseModel): """ EndpointPingDataPointScore """ # noqa: E501 - application_score: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Fine grained score between 0-100 based on metrics (latency, jitter, loss)", alias="applicationScore") + application_score: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="A fine-grained score between 0 and 100.", alias="applicationScore") quality: Optional[ApplicationScoreQuality] = None __properties: ClassVar[List[str]] = ["applicationScore", "quality"] diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_agent_score.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_agent_score.py new file mode 100644 index 00000000..a949171f --- /dev/null +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_agent_score.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Endpoint Test Results API + + Retrieve results for scheduled and dynamic tests on endpoint agents. + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from thousandeyes_sdk.endpoint_test_results.models.application_score_quality import ApplicationScoreQuality +from typing import Optional, Set +from typing_extensions import Self + +class EndpointProbeAgentScore(BaseModel): + """ + EndpointProbeAgentScore + """ # noqa: E501 + score: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="A fine-grained score between 0 and 100.") + quality: Optional[ApplicationScoreQuality] = None + __properties: ClassVar[List[str]] = ["score", "quality"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + extra="allow", + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EndpointProbeAgentScore from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EndpointProbeAgentScore from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "score": obj.get("score"), + "quality": obj.get("quality") + }) + return _obj + + diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_connection_score.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_connection_score.py new file mode 100644 index 00000000..86ed546c --- /dev/null +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_connection_score.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Endpoint Test Results API + + Retrieve results for scheduled and dynamic tests on endpoint agents. + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from thousandeyes_sdk.endpoint_test_results.models.application_score_quality import ApplicationScoreQuality +from typing import Optional, Set +from typing_extensions import Self + +class EndpointProbeConnectionScore(BaseModel): + """ + EndpointProbeConnectionScore + """ # noqa: E501 + score: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="A fine-grained score between 0 and 100.") + quality: Optional[ApplicationScoreQuality] = None + __properties: ClassVar[List[str]] = ["score", "quality"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + extra="allow", + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EndpointProbeConnectionScore from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EndpointProbeConnectionScore from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "score": obj.get("score"), + "quality": obj.get("quality") + }) + return _obj + + diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_gateway_score.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_gateway_score.py new file mode 100644 index 00000000..5ef1aab2 --- /dev/null +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_gateway_score.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Endpoint Test Results API + + Retrieve results for scheduled and dynamic tests on endpoint agents. + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from thousandeyes_sdk.endpoint_test_results.models.application_score_quality import ApplicationScoreQuality +from typing import Optional, Set +from typing_extensions import Self + +class EndpointProbeGatewayScore(BaseModel): + """ + EndpointProbeGatewayScore + """ # noqa: E501 + score: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="A fine-grained score between 0 and 100.") + quality: Optional[ApplicationScoreQuality] = None + __properties: ClassVar[List[str]] = ["score", "quality"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + extra="allow", + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EndpointProbeGatewayScore from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EndpointProbeGatewayScore from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "score": obj.get("score"), + "quality": obj.get("quality") + }) + return _obj + + diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_proxy_score.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_proxy_score.py new file mode 100644 index 00000000..5885344b --- /dev/null +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_proxy_score.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Endpoint Test Results API + + Retrieve results for scheduled and dynamic tests on endpoint agents. + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from thousandeyes_sdk.endpoint_test_results.models.application_score_quality import ApplicationScoreQuality +from typing import Optional, Set +from typing_extensions import Self + +class EndpointProbeProxyScore(BaseModel): + """ + EndpointProbeProxyScore + """ # noqa: E501 + score: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="A fine-grained score between 0 and 100.") + quality: Optional[ApplicationScoreQuality] = None + __properties: ClassVar[List[str]] = ["score", "quality"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + extra="allow", + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EndpointProbeProxyScore from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EndpointProbeProxyScore from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "score": obj.get("score"), + "quality": obj.get("quality") + }) + return _obj + + diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_vpn_score.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_vpn_score.py new file mode 100644 index 00000000..f1d7d5b3 --- /dev/null +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_probe_vpn_score.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Endpoint Test Results API + + Retrieve results for scheduled and dynamic tests on endpoint agents. + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from thousandeyes_sdk.endpoint_test_results.models.application_score_quality import ApplicationScoreQuality +from typing import Optional, Set +from typing_extensions import Self + +class EndpointProbeVpnScore(BaseModel): + """ + EndpointProbeVpnScore + """ # noqa: E501 + score: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="A fine-grained score between 0 and 100.") + quality: Optional[ApplicationScoreQuality] = None + __properties: ClassVar[List[str]] = ["score", "quality"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + extra="allow", + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EndpointProbeVpnScore from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EndpointProbeVpnScore from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "score": obj.get("score"), + "quality": obj.get("quality") + }) + return _obj + + diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_zta_metrics.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_zta_metrics.py new file mode 100644 index 00000000..1dd400e0 --- /dev/null +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_zta_metrics.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Endpoint Test Results API + + Retrieve results for scheduled and dynamic tests on endpoint agents. + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from thousandeyes_sdk.endpoint_test_results.models.endpoint_zta_segment_type import EndpointZtaSegmentType +from typing import Optional, Set +from typing_extensions import Self + +class EndpointZtaMetrics(BaseModel): + """ + EndpointZtaMetrics + """ # noqa: E501 + loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Percentage of packets that failed to reach the destination.") + avg_latency: Optional[StrictInt] = Field(default=None, description="Average latency in milliseconds.", alias="avgLatency") + jitter: Optional[StrictInt] = Field(default=None, description="Standard deviation of latency in milliseconds.") + error_message: Optional[StrictStr] = Field(default=None, description="Error message if an error occurred.", alias="errorMessage") + type: Optional[EndpointZtaSegmentType] = None + __properties: ClassVar[List[str]] = ["loss", "avgLatency", "jitter", "errorMessage", "type"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + extra="allow", + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EndpointZtaMetrics from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EndpointZtaMetrics from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "loss": obj.get("loss"), + "avgLatency": obj.get("avgLatency"), + "jitter": obj.get("jitter"), + "errorMessage": obj.get("errorMessage"), + "type": obj.get("type") + }) + return _obj + + diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_zta_segment_type.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_zta_segment_type.py new file mode 100644 index 00000000..a9df3751 --- /dev/null +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_zta_segment_type.py @@ -0,0 +1,41 @@ +# coding: utf-8 + +""" + Endpoint Test Results API + + Retrieve results for scheduled and dynamic tests on endpoint agents. + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class EndpointZtaSegmentType(str, Enum): + """ + Type of ZTA segment. + """ + + """ + allowed enum values + """ + ZTA_INGRESS = 'zta_ingress' + ZTA_SERVICE = 'zta_service' + UNKNOWN = 'unknown' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of EndpointZtaSegmentType from a JSON string""" + return cls(json.loads(json_str)) + + @classmethod + def _missing_(cls, value): + """Handle unknown values""" + return cls.UNKNOWN + diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/http_endpoint_test_result.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/http_endpoint_test_result.py index 1d7720e2..3d03f0a6 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/http_endpoint_test_result.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/http_endpoint_test_result.py @@ -18,6 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.endpoint_test_results.models.endpoint_http_data_point_score import EndpointHttpDataPointScore from thousandeyes_sdk.endpoint_test_results.models.http_endpoint_test_result_headers import HttpEndpointTestResultHeaders from thousandeyes_sdk.endpoint_test_results.models.http_error_type import HttpErrorType from thousandeyes_sdk.endpoint_test_results.models.network_profile import NetworkProfile @@ -40,6 +41,7 @@ class HttpEndpointTestResult(BaseModel): system_metrics: Optional[SystemMetrics] = Field(default=None, alias="systemMetrics") original_target_profile: Optional[TargetProfile] = Field(default=None, alias="originalTargetProfile") vpn_profile: Optional[VpnProfile] = Field(default=None, alias="vpnProfile") + score: Optional[EndpointHttpDataPointScore] = None connect_time: Optional[StrictInt] = Field(default=None, description="Time required to establish a TCP connection to the server in milliseconds.", alias="connectTime") dns_time: Optional[StrictInt] = Field(default=None, description="Time required to resolve DNS in milliseconds.", alias="dnsTime") error_type: Optional[HttpErrorType] = Field(default=None, alias="errorType") @@ -54,7 +56,7 @@ class HttpEndpointTestResult(BaseModel): total_time: Optional[StrictInt] = Field(default=None, description="Total time is the response time + receive time.", alias="totalTime") wait_time: Optional[StrictInt] = Field(default=None, description="Time elapsed between completion of request and first byte of response in milliseconds.", alias="waitTime") wire_size: Optional[StrictInt] = Field(default=None, description="Size of content in bytes.", alias="wireSize") - __properties: ClassVar[List[str]] = ["aid", "testId", "agentId", "roundId", "serverIp", "networkProfile", "systemMetrics", "originalTargetProfile", "vpnProfile", "connectTime", "dnsTime", "errorType", "errorDetails", "headers", "numRedirects", "receiveTime", "redirectTime", "responseCode", "responseTime", "sslTime", "totalTime", "waitTime", "wireSize"] + __properties: ClassVar[List[str]] = ["aid", "testId", "agentId", "roundId", "serverIp", "networkProfile", "systemMetrics", "originalTargetProfile", "vpnProfile", "score", "connectTime", "dnsTime", "errorType", "errorDetails", "headers", "numRedirects", "receiveTime", "redirectTime", "responseCode", "responseTime", "sslTime", "totalTime", "waitTime", "wireSize"] model_config = ConfigDict( populate_by_name=True, @@ -140,6 +142,9 @@ class HttpEndpointTestResult(BaseModel): # override the default output from pydantic by calling `to_dict()` of vpn_profile if self.vpn_profile: _dict['vpnProfile'] = self.vpn_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of score + if self.score: + _dict['score'] = self.score.to_dict() # override the default output from pydantic by calling `to_dict()` of headers if self.headers: _dict['headers'] = self.headers.to_dict() @@ -164,6 +169,7 @@ class HttpEndpointTestResult(BaseModel): "systemMetrics": SystemMetrics.from_dict(obj["systemMetrics"]) if obj.get("systemMetrics") is not None else None, "originalTargetProfile": TargetProfile.from_dict(obj["originalTargetProfile"]) if obj.get("originalTargetProfile") is not None else None, "vpnProfile": VpnProfile.from_dict(obj["vpnProfile"]) if obj.get("vpnProfile") is not None else None, + "score": EndpointHttpDataPointScore.from_dict(obj["score"]) if obj.get("score") is not None else None, "connectTime": obj.get("connectTime"), "dnsTime": obj.get("dnsTime"), "errorType": obj.get("errorType"), diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/local_network_topology_result.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/local_network_topology_result.py index 49490d06..721a4322 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/local_network_topology_result.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/local_network_topology_result.py @@ -19,6 +19,11 @@ import json from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_agent_score import EndpointProbeAgentScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_connection_score import EndpointProbeConnectionScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_gateway_score import EndpointProbeGatewayScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_proxy_score import EndpointProbeProxyScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_vpn_score import EndpointProbeVpnScore from thousandeyes_sdk.endpoint_test_results.models.network_ping import NetworkPing from thousandeyes_sdk.endpoint_test_results.models.network_profile import NetworkProfile from thousandeyes_sdk.endpoint_test_results.models.network_topology_type import NetworkTopologyType @@ -46,11 +51,16 @@ class LocalNetworkTopologyResult(BaseModel): tcp_connect: Optional[TcpConnect] = Field(default=None, alias="tcpConnect") system_metrics: Optional[SystemMetrics] = Field(default=None, alias="systemMetrics") system_metric_details: Optional[SystemMetricDetails] = Field(default=None, alias="systemMetricDetails") + vpn_score: Optional[EndpointProbeVpnScore] = Field(default=None, alias="vpnScore") + gateway_score: Optional[EndpointProbeGatewayScore] = Field(default=None, alias="gatewayScore") + proxy_score: Optional[EndpointProbeProxyScore] = Field(default=None, alias="proxyScore") + connection_score: Optional[EndpointProbeConnectionScore] = Field(default=None, alias="connectionScore") + agent_score: Optional[EndpointProbeAgentScore] = Field(default=None, alias="agentScore") coordinates: Optional[RealUserEndpointTestCoordinates] = None network_profile: Optional[NetworkProfile] = Field(default=None, alias="networkProfile") icmp_traceroute: Optional[Traceroute] = Field(default=None, alias="icmpTraceroute") icmp_traceroutes: Optional[List[Traceroute]] = Field(default=None, alias="icmpTraceroutes") - __properties: ClassVar[List[str]] = ["agentId", "date", "networkTopologyId", "roundId", "target", "targetPort", "type", "icmpPing", "isIcmpBlocked", "tcpConnect", "systemMetrics", "systemMetricDetails", "coordinates", "networkProfile", "icmpTraceroute", "icmpTraceroutes"] + __properties: ClassVar[List[str]] = ["agentId", "date", "networkTopologyId", "roundId", "target", "targetPort", "type", "icmpPing", "isIcmpBlocked", "tcpConnect", "systemMetrics", "systemMetricDetails", "vpnScore", "gatewayScore", "proxyScore", "connectionScore", "agentScore", "coordinates", "networkProfile", "icmpTraceroute", "icmpTraceroutes"] model_config = ConfigDict( populate_by_name=True, @@ -118,6 +128,21 @@ class LocalNetworkTopologyResult(BaseModel): # override the default output from pydantic by calling `to_dict()` of system_metric_details if self.system_metric_details: _dict['systemMetricDetails'] = self.system_metric_details.to_dict() + # override the default output from pydantic by calling `to_dict()` of vpn_score + if self.vpn_score: + _dict['vpnScore'] = self.vpn_score.to_dict() + # override the default output from pydantic by calling `to_dict()` of gateway_score + if self.gateway_score: + _dict['gatewayScore'] = self.gateway_score.to_dict() + # override the default output from pydantic by calling `to_dict()` of proxy_score + if self.proxy_score: + _dict['proxyScore'] = self.proxy_score.to_dict() + # override the default output from pydantic by calling `to_dict()` of connection_score + if self.connection_score: + _dict['connectionScore'] = self.connection_score.to_dict() + # override the default output from pydantic by calling `to_dict()` of agent_score + if self.agent_score: + _dict['agentScore'] = self.agent_score.to_dict() # override the default output from pydantic by calling `to_dict()` of coordinates if self.coordinates: _dict['coordinates'] = self.coordinates.to_dict() @@ -158,6 +183,11 @@ class LocalNetworkTopologyResult(BaseModel): "tcpConnect": TcpConnect.from_dict(obj["tcpConnect"]) if obj.get("tcpConnect") is not None else None, "systemMetrics": SystemMetrics.from_dict(obj["systemMetrics"]) if obj.get("systemMetrics") is not None else None, "systemMetricDetails": SystemMetricDetails.from_dict(obj["systemMetricDetails"]) if obj.get("systemMetricDetails") is not None else None, + "vpnScore": EndpointProbeVpnScore.from_dict(obj["vpnScore"]) if obj.get("vpnScore") is not None else None, + "gatewayScore": EndpointProbeGatewayScore.from_dict(obj["gatewayScore"]) if obj.get("gatewayScore") is not None else None, + "proxyScore": EndpointProbeProxyScore.from_dict(obj["proxyScore"]) if obj.get("proxyScore") is not None else None, + "connectionScore": EndpointProbeConnectionScore.from_dict(obj["connectionScore"]) if obj.get("connectionScore") is not None else None, + "agentScore": EndpointProbeAgentScore.from_dict(obj["agentScore"]) if obj.get("agentScore") is not None else None, "coordinates": RealUserEndpointTestCoordinates.from_dict(obj["coordinates"]) if obj.get("coordinates") is not None else None, "networkProfile": NetworkProfile.from_dict(obj["networkProfile"]) if obj.get("networkProfile") is not None else None, "icmpTraceroute": Traceroute.from_dict(obj["icmpTraceroute"]) if obj.get("icmpTraceroute") is not None else None, diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/local_network_topology_result_base.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/local_network_topology_result_base.py index 92ac6bb3..00c4e818 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/local_network_topology_result_base.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/local_network_topology_result_base.py @@ -19,6 +19,11 @@ import json from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_agent_score import EndpointProbeAgentScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_connection_score import EndpointProbeConnectionScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_gateway_score import EndpointProbeGatewayScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_proxy_score import EndpointProbeProxyScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_probe_vpn_score import EndpointProbeVpnScore from thousandeyes_sdk.endpoint_test_results.models.network_ping import NetworkPing from thousandeyes_sdk.endpoint_test_results.models.network_topology_type import NetworkTopologyType from thousandeyes_sdk.endpoint_test_results.models.system_metric_details import SystemMetricDetails @@ -43,7 +48,12 @@ class LocalNetworkTopologyResultBase(BaseModel): tcp_connect: Optional[TcpConnect] = Field(default=None, alias="tcpConnect") system_metrics: Optional[SystemMetrics] = Field(default=None, alias="systemMetrics") system_metric_details: Optional[SystemMetricDetails] = Field(default=None, alias="systemMetricDetails") - __properties: ClassVar[List[str]] = ["agentId", "date", "networkTopologyId", "roundId", "target", "targetPort", "type", "icmpPing", "isIcmpBlocked", "tcpConnect", "systemMetrics", "systemMetricDetails"] + vpn_score: Optional[EndpointProbeVpnScore] = Field(default=None, alias="vpnScore") + gateway_score: Optional[EndpointProbeGatewayScore] = Field(default=None, alias="gatewayScore") + proxy_score: Optional[EndpointProbeProxyScore] = Field(default=None, alias="proxyScore") + connection_score: Optional[EndpointProbeConnectionScore] = Field(default=None, alias="connectionScore") + agent_score: Optional[EndpointProbeAgentScore] = Field(default=None, alias="agentScore") + __properties: ClassVar[List[str]] = ["agentId", "date", "networkTopologyId", "roundId", "target", "targetPort", "type", "icmpPing", "isIcmpBlocked", "tcpConnect", "systemMetrics", "systemMetricDetails", "vpnScore", "gatewayScore", "proxyScore", "connectionScore", "agentScore"] model_config = ConfigDict( populate_by_name=True, @@ -111,6 +121,21 @@ class LocalNetworkTopologyResultBase(BaseModel): # override the default output from pydantic by calling `to_dict()` of system_metric_details if self.system_metric_details: _dict['systemMetricDetails'] = self.system_metric_details.to_dict() + # override the default output from pydantic by calling `to_dict()` of vpn_score + if self.vpn_score: + _dict['vpnScore'] = self.vpn_score.to_dict() + # override the default output from pydantic by calling `to_dict()` of gateway_score + if self.gateway_score: + _dict['gatewayScore'] = self.gateway_score.to_dict() + # override the default output from pydantic by calling `to_dict()` of proxy_score + if self.proxy_score: + _dict['proxyScore'] = self.proxy_score.to_dict() + # override the default output from pydantic by calling `to_dict()` of connection_score + if self.connection_score: + _dict['connectionScore'] = self.connection_score.to_dict() + # override the default output from pydantic by calling `to_dict()` of agent_score + if self.agent_score: + _dict['agentScore'] = self.agent_score.to_dict() return _dict @classmethod @@ -134,7 +159,12 @@ class LocalNetworkTopologyResultBase(BaseModel): "isIcmpBlocked": obj.get("isIcmpBlocked"), "tcpConnect": TcpConnect.from_dict(obj["tcpConnect"]) if obj.get("tcpConnect") is not None else None, "systemMetrics": SystemMetrics.from_dict(obj["systemMetrics"]) if obj.get("systemMetrics") is not None else None, - "systemMetricDetails": SystemMetricDetails.from_dict(obj["systemMetricDetails"]) if obj.get("systemMetricDetails") is not None else None + "systemMetricDetails": SystemMetricDetails.from_dict(obj["systemMetricDetails"]) if obj.get("systemMetricDetails") is not None else None, + "vpnScore": EndpointProbeVpnScore.from_dict(obj["vpnScore"]) if obj.get("vpnScore") is not None else None, + "gatewayScore": EndpointProbeGatewayScore.from_dict(obj["gatewayScore"]) if obj.get("gatewayScore") is not None else None, + "proxyScore": EndpointProbeProxyScore.from_dict(obj["proxyScore"]) if obj.get("proxyScore") is not None else None, + "connectionScore": EndpointProbeConnectionScore.from_dict(obj["connectionScore"]) if obj.get("connectionScore") is not None else None, + "agentScore": EndpointProbeAgentScore.from_dict(obj["agentScore"]) if obj.get("agentScore") is not None else None }) return _obj diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/network_dynamic_endpoint_test_result.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/network_dynamic_endpoint_test_result.py index 54e0dd74..61439144 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/network_dynamic_endpoint_test_result.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/network_dynamic_endpoint_test_result.py @@ -19,7 +19,9 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from thousandeyes_sdk.endpoint_test_results.models.dynamic_endpoint_test_webex import DynamicEndpointTestWebex +from thousandeyes_sdk.endpoint_test_results.models.endpoint_ping_data_point_score import EndpointPingDataPointScore from thousandeyes_sdk.endpoint_test_results.models.endpoint_test_result_protocol import EndpointTestResultProtocol +from thousandeyes_sdk.endpoint_test_results.models.endpoint_zta_metrics import EndpointZtaMetrics from thousandeyes_sdk.endpoint_test_results.models.network_profile import NetworkProfile from thousandeyes_sdk.endpoint_test_results.models.system_metrics import SystemMetrics from thousandeyes_sdk.endpoint_test_results.models.target_profile import TargetProfile @@ -45,6 +47,8 @@ class NetworkDynamicEndpointTestResult(BaseModel): avg_latency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Average RTT for packets sent to destination.", alias="avgLatency") error_details: Optional[StrictStr] = Field(default=None, description="Error details, if an error was encountered.", alias="errorDetails") jitter: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Standard deviation of latency.") + score: Optional[EndpointPingDataPointScore] = None + zta_metrics: Optional[List[EndpointZtaMetrics]] = Field(default=None, alias="ztaMetrics") is_icmp_blocked: Optional[StrictBool] = Field(default=None, description="Set to `true` if network target is blocking ICMP echo (ping) queries.", alias="isIcmpBlocked") loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Percentage of packets not reaching destination.") max_latency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Maximum RTT for packets sent to destination.", alias="maxLatency") @@ -54,7 +58,7 @@ class NetworkDynamicEndpointTestResult(BaseModel): tcp_probe_mode: Optional[TestProbeModeResponse] = Field(default=None, alias="tcpProbeMode") udp_probe_mode: Optional[UdpProbeModeResponse] = Field(default=None, alias="udpProbeMode") webex: Optional[DynamicEndpointTestWebex] = None - __properties: ClassVar[List[str]] = ["aid", "testId", "agentId", "roundId", "serverIp", "networkProfile", "systemMetrics", "originalTargetProfile", "vpnProfile", "avgLatency", "errorDetails", "jitter", "isIcmpBlocked", "loss", "maxLatency", "minLatency", "application", "protocol", "tcpProbeMode", "udpProbeMode", "webex"] + __properties: ClassVar[List[str]] = ["aid", "testId", "agentId", "roundId", "serverIp", "networkProfile", "systemMetrics", "originalTargetProfile", "vpnProfile", "avgLatency", "errorDetails", "jitter", "score", "ztaMetrics", "isIcmpBlocked", "loss", "maxLatency", "minLatency", "application", "protocol", "tcpProbeMode", "udpProbeMode", "webex"] model_config = ConfigDict( populate_by_name=True, @@ -130,6 +134,16 @@ class NetworkDynamicEndpointTestResult(BaseModel): # override the default output from pydantic by calling `to_dict()` of vpn_profile if self.vpn_profile: _dict['vpnProfile'] = self.vpn_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of score + if self.score: + _dict['score'] = self.score.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in zta_metrics (list) + _items = [] + if self.zta_metrics: + for _item in self.zta_metrics: + if _item: + _items.append(_item.to_dict()) + _dict['ztaMetrics'] = _items # override the default output from pydantic by calling `to_dict()` of webex if self.webex: _dict['webex'] = self.webex.to_dict() @@ -157,6 +171,8 @@ class NetworkDynamicEndpointTestResult(BaseModel): "avgLatency": obj.get("avgLatency"), "errorDetails": obj.get("errorDetails"), "jitter": obj.get("jitter"), + "score": EndpointPingDataPointScore.from_dict(obj["score"]) if obj.get("score") is not None else None, + "ztaMetrics": [EndpointZtaMetrics.from_dict(_item) for _item in obj["ztaMetrics"]] if obj.get("ztaMetrics") is not None else None, "isIcmpBlocked": obj.get("isIcmpBlocked"), "loss": obj.get("loss"), "maxLatency": obj.get("maxLatency"), diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/network_endpoint_test_result.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/network_endpoint_test_result.py index 9bc43ad5..683d234b 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/network_endpoint_test_result.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/network_endpoint_test_result.py @@ -18,6 +18,8 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union +from thousandeyes_sdk.endpoint_test_results.models.endpoint_ping_data_point_score import EndpointPingDataPointScore +from thousandeyes_sdk.endpoint_test_results.models.endpoint_zta_metrics import EndpointZtaMetrics from thousandeyes_sdk.endpoint_test_results.models.network_profile import NetworkProfile from thousandeyes_sdk.endpoint_test_results.models.system_metrics import SystemMetrics from thousandeyes_sdk.endpoint_test_results.models.target_profile import TargetProfile @@ -41,11 +43,13 @@ class NetworkEndpointTestResult(BaseModel): avg_latency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Average RTT for packets sent to destination.", alias="avgLatency") error_details: Optional[StrictStr] = Field(default=None, description="Error details, if an error was encountered.", alias="errorDetails") jitter: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Standard deviation of latency.") + score: Optional[EndpointPingDataPointScore] = None + zta_metrics: Optional[List[EndpointZtaMetrics]] = Field(default=None, alias="ztaMetrics") is_icmp_blocked: Optional[StrictBool] = Field(default=None, description="Set to `true` if network target is blocking ICMP echo (ping) queries.", alias="isIcmpBlocked") loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Percentage of packets not reaching destination.") max_latency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Maximum RTT for packets sent to destination.", alias="maxLatency") min_latency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Minimum RTT for packets sent to destination.", alias="minLatency") - __properties: ClassVar[List[str]] = ["aid", "testId", "agentId", "roundId", "serverIp", "networkProfile", "systemMetrics", "originalTargetProfile", "vpnProfile", "avgLatency", "errorDetails", "jitter", "isIcmpBlocked", "loss", "maxLatency", "minLatency"] + __properties: ClassVar[List[str]] = ["aid", "testId", "agentId", "roundId", "serverIp", "networkProfile", "systemMetrics", "originalTargetProfile", "vpnProfile", "avgLatency", "errorDetails", "jitter", "score", "ztaMetrics", "isIcmpBlocked", "loss", "maxLatency", "minLatency"] model_config = ConfigDict( populate_by_name=True, @@ -121,6 +125,16 @@ class NetworkEndpointTestResult(BaseModel): # override the default output from pydantic by calling `to_dict()` of vpn_profile if self.vpn_profile: _dict['vpnProfile'] = self.vpn_profile.to_dict() + # override the default output from pydantic by calling `to_dict()` of score + if self.score: + _dict['score'] = self.score.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in zta_metrics (list) + _items = [] + if self.zta_metrics: + for _item in self.zta_metrics: + if _item: + _items.append(_item.to_dict()) + _dict['ztaMetrics'] = _items return _dict @classmethod @@ -145,6 +159,8 @@ class NetworkEndpointTestResult(BaseModel): "avgLatency": obj.get("avgLatency"), "errorDetails": obj.get("errorDetails"), "jitter": obj.get("jitter"), + "score": EndpointPingDataPointScore.from_dict(obj["score"]) if obj.get("score") is not None else None, + "ztaMetrics": [EndpointZtaMetrics.from_dict(_item) for _item in obj["ztaMetrics"]] if obj.get("ztaMetrics") is not None else None, "isIcmpBlocked": obj.get("isIcmpBlocked"), "loss": obj.get("loss"), "maxLatency": obj.get("maxLatency"), diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/network_topology_type.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/network_topology_type.py index 1105933b..953e0e2b 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/network_topology_type.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/network_topology_type.py @@ -28,6 +28,7 @@ class NetworkTopologyType(str, Enum): VPN = 'vpn' PROXY = 'proxy' GATEWAY = 'gateway' + DNS = 'dns' UNKNOWN = 'unknown' @classmethod diff --git a/thousandeyes-sdk-endpoint-test-results/test/test_http_server_endpoint_scheduled_test_results_api.py b/thousandeyes-sdk-endpoint-test-results/test/test_http_server_endpoint_scheduled_test_results_api.py index 1dcc3fca..ed1df409 100644 --- a/thousandeyes-sdk-endpoint-test-results/test/test_http_server_endpoint_scheduled_test_results_api.py +++ b/thousandeyes-sdk-endpoint-test-results/test/test_http_server_endpoint_scheduled_test_results_api.py @@ -140,6 +140,10 @@ class TestHTTPServerEndpointScheduledTestResultsApi(unittest.TestCase): "totalTime" : 15, "responseCode" : 200, "receiveTime" : 1, + "score" : { + "applicationScore" : 100.0, + "quality" : "great" + }, "systemMetrics" : { "cpuUtilization" : { "min" : 0.22, @@ -241,6 +245,10 @@ class TestHTTPServerEndpointScheduledTestResultsApi(unittest.TestCase): "totalTime" : 15, "responseCode" : 200, "receiveTime" : 1, + "score" : { + "applicationScore" : 100.0, + "quality" : "great" + }, "systemMetrics" : { "cpuUtilization" : { "min" : 0.22, @@ -409,6 +417,10 @@ class TestHTTPServerEndpointScheduledTestResultsApi(unittest.TestCase): "totalTime" : 15, "responseCode" : 200, "receiveTime" : 1, + "score" : { + "applicationScore" : 100.0, + "quality" : "great" + }, "systemMetrics" : { "cpuUtilization" : { "min" : 0.22, @@ -510,6 +522,287 @@ class TestHTTPServerEndpointScheduledTestResultsApi(unittest.TestCase): "totalTime" : 15, "responseCode" : 200, "receiveTime" : 1, + "score" : { + "applicationScore" : 100.0, + "quality" : "great" + }, + "systemMetrics" : { + "cpuUtilization" : { + "min" : 0.22, + "median" : 0.61, + "max" : 0.75, + "mean" : 0.55, + "count" : 150, + "stdDev" : 0.01 + }, + "physicalMemoryTotalBytes" : 1024, + "startTimeMs" : 1581508857327, + "physicalMemoryUsedBytes" : { + "min" : 1.2, + "median" : 1.85, + "max" : 2.5, + "mean" : 1.77, + "count" : 155, + "stdDev" : 0.25 + }, + "endTimeMs" : 1581508867333 + }, + "connectTime" : 2, + "dnsTime" : 0, + "serverIp" : "193.2.1.88", + "networkProfile" : { + "previousInterface" : { + "publicIpAddress" : "84.255.241.1", + "publicIpRange" : "84.255.241.0-84.255.241.255", + "ipAddress" : "10.0.0.13", + "hardwareType" : "wireless", + "localPrefix" : "10.0.0.0", + "interfaceName" : "en0", + "subnetMask" : "255.255.255.0", + "dnsServers" : [ "8.8.8.8", "8.8.8.4" ] + }, + "ethernetProfile" : { + "linkSpeed" : 860 + }, + "publicIpAddress" : "84.255.241.1", + "publicIpRange" : "84.255.241.0-84.255.241.255", + "ipAddress" : "10.0.0.13", + "hardwareType" : "wireless", + "localPrefix" : "10.0.0.0", + "proxyProfile" : { + "method" : "System", + "proxies" : [ { + "bypass" : "*.local;169.254/16", + "proxy" : "" + }, { + "bypass" : "*.local;169.254/16", + "proxy" : "" + } ] + }, + "subnetMask" : "255.255.255.0", + "error" : "An operation timed out.", + "wirelessProfile" : { + "rssi" : -38, + "bssid" : "4c:ba:ba:f4:fa:fa", + "vendor" : "Cisco", + "txRate" : 130, + "channel" : 1, + "noise" : -95, + "phyMode" : "802.11n", + "ssid" : "Internet for the masses", + "quality" : 100 + }, + "interfaceName" : "en0", + "dnsServers" : [ "8.8.8.8", "8.8.8.4" ], + "gateway" : "10.0.0.1" + }, + "testId" : "584739201", + "sslTime" : 9, + "aid" : "1234", + "roundId" : 1384309800, + "waitTime" : 3, + "errorDetails" : "errorDetails", + "wireSize" : 9993 + } ], + "startDate" : "2022-07-17T22:00:54Z" + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.endpoint_test_results.models.HttpMultiEndpointTestResults.from_json(response_body_json) + assert_constructed_model_matches_example_json(response_from_json, response_loaded_json) + + def test_get_single_test_filtered_http_server_scheduled_test_results_models_validation(self) -> None: + """Test case for get_single_test_filtered_http_server_scheduled_test_results request and response models""" + request_body_json = """ + { + "searchSort" : [ { + "sort" : "round-id", + "order" : "desc" + }, { + "sort" : "round-id", + "order" : "desc" + } ], + "searchFilters" : { + "agentId" : [ "52455b09-ff1b-4849-8194-99026cc890e0", "52455b09-ff1b-4849-8194-99026cc890e0" ], + "testId" : [ "5", "5" ] + }, + "thresholdFilter" : { + "conditionalOperator" : "and", + "filters" : [ { + "name" : "response-time", + "value" : 10.0, + "operator" : "gte" + }, { + "name" : "response-time", + "value" : 10.0, + "operator" : "gte" + } ] + } + }""" + + request_loaded_json = json.loads(request_body_json) + request_from_json = thousandeyes_sdk.endpoint_test_results.models.HttpEndpointTestsDataRoundsSearch.from_json(request_body_json) + assert_constructed_model_matches_example_json(request_from_json, request_loaded_json) + + response_body_json = """ + { + "totalHits" : 12, + "endDate" : "2022-07-18T22:00:54Z", + "_links" : { + "next" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + }, + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "results" : [ { + "originalTargetProfile" : { + "protocol" : "tcp", + "remotePort" : 80, + "remoteIpAddress" : "120.98.134.7" + }, + "headers" : { + "requestHeaders" : "GET / HTTP/1.1\\r\\nHost: www.thousandeyes.com\\r\\nUser-Agent: curl/7.58.0-DEV\\r\\nAccept: */*\\r\\nAccept-Encoding: deflate, gzip\\r\\nX-ThousandEyes-Agent: yes\\r\\n", + "responseHeaders" : "HTTP/1.1 200 OK\\r\\nContent-Type: text/html;charset=UTF-8\\r\\nContent-Length: 9993\\r\\nConnection: keep-alive\\r\\nDate: Mon, 04 May 2020 16:13:00 GMT\\r\\nServer: Apache\\r\\nContent-Language: en-US\\r\\nContent-Encoding: gzip\\r\\nX-Frame-Options: sameorigin\\r\\nCache-Control: max-age=600, must-revalidate\\r\\nStrict-Transport-Security: max-age=31536000\\r\\nX-Content-Type-Options: nosniff\\r\\nX-XSS-Protection: 1; mode=block\\r\\nVary: Accept-Encoding\\r\\nX-Cache: Hit from cloudfront\\r\\nVia: 1.1 7ba3caf71ae7a52dd411d1a543e80cd8.cloudfront.net (CloudFront)\\r\\nX-Amz-Cf-Pop: SFO5-C3\\r\\nX-Amz-Cf-Id: w4h42tkoJD-rEpkRDZUvnQBmy26GVGe6pUsuRr1Dphf7oajYbjXaOA==\\r\\nAge: 132\\r\\n" + }, + "agentId" : "861b7557-cd57-4bbb-b648-00bddf88ef49", + "redirectTime" : 10, + "numRedirects" : 0, + "vpnProfile" : { + "vpnClientNetworkRange" : [ "9.88.37.27", "9.88.37.27" ], + "vpnGatewayAddress" : "120.98.134.7", + "vpnType" : "cisco-anyconnect", + "vpnClientAddresses" : [ "184.81.113.85", "13.129.91.62" ] + }, + "errorType" : "connect", + "responseTime" : 14, + "totalTime" : 15, + "responseCode" : 200, + "receiveTime" : 1, + "score" : { + "applicationScore" : 100.0, + "quality" : "great" + }, + "systemMetrics" : { + "cpuUtilization" : { + "min" : 0.22, + "median" : 0.61, + "max" : 0.75, + "mean" : 0.55, + "count" : 150, + "stdDev" : 0.01 + }, + "physicalMemoryTotalBytes" : 1024, + "startTimeMs" : 1581508857327, + "physicalMemoryUsedBytes" : { + "min" : 1.2, + "median" : 1.85, + "max" : 2.5, + "mean" : 1.77, + "count" : 155, + "stdDev" : 0.25 + }, + "endTimeMs" : 1581508867333 + }, + "connectTime" : 2, + "dnsTime" : 0, + "serverIp" : "193.2.1.88", + "networkProfile" : { + "previousInterface" : { + "publicIpAddress" : "84.255.241.1", + "publicIpRange" : "84.255.241.0-84.255.241.255", + "ipAddress" : "10.0.0.13", + "hardwareType" : "wireless", + "localPrefix" : "10.0.0.0", + "interfaceName" : "en0", + "subnetMask" : "255.255.255.0", + "dnsServers" : [ "8.8.8.8", "8.8.8.4" ] + }, + "ethernetProfile" : { + "linkSpeed" : 860 + }, + "publicIpAddress" : "84.255.241.1", + "publicIpRange" : "84.255.241.0-84.255.241.255", + "ipAddress" : "10.0.0.13", + "hardwareType" : "wireless", + "localPrefix" : "10.0.0.0", + "proxyProfile" : { + "method" : "System", + "proxies" : [ { + "bypass" : "*.local;169.254/16", + "proxy" : "" + }, { + "bypass" : "*.local;169.254/16", + "proxy" : "" + } ] + }, + "subnetMask" : "255.255.255.0", + "error" : "An operation timed out.", + "wirelessProfile" : { + "rssi" : -38, + "bssid" : "4c:ba:ba:f4:fa:fa", + "vendor" : "Cisco", + "txRate" : 130, + "channel" : 1, + "noise" : -95, + "phyMode" : "802.11n", + "ssid" : "Internet for the masses", + "quality" : 100 + }, + "interfaceName" : "en0", + "dnsServers" : [ "8.8.8.8", "8.8.8.4" ], + "gateway" : "10.0.0.1" + }, + "testId" : "584739201", + "sslTime" : 9, + "aid" : "1234", + "roundId" : 1384309800, + "waitTime" : 3, + "errorDetails" : "errorDetails", + "wireSize" : 9993 + }, { + "originalTargetProfile" : { + "protocol" : "tcp", + "remotePort" : 80, + "remoteIpAddress" : "120.98.134.7" + }, + "headers" : { + "requestHeaders" : "GET / HTTP/1.1\\r\\nHost: www.thousandeyes.com\\r\\nUser-Agent: curl/7.58.0-DEV\\r\\nAccept: */*\\r\\nAccept-Encoding: deflate, gzip\\r\\nX-ThousandEyes-Agent: yes\\r\\n", + "responseHeaders" : "HTTP/1.1 200 OK\\r\\nContent-Type: text/html;charset=UTF-8\\r\\nContent-Length: 9993\\r\\nConnection: keep-alive\\r\\nDate: Mon, 04 May 2020 16:13:00 GMT\\r\\nServer: Apache\\r\\nContent-Language: en-US\\r\\nContent-Encoding: gzip\\r\\nX-Frame-Options: sameorigin\\r\\nCache-Control: max-age=600, must-revalidate\\r\\nStrict-Transport-Security: max-age=31536000\\r\\nX-Content-Type-Options: nosniff\\r\\nX-XSS-Protection: 1; mode=block\\r\\nVary: Accept-Encoding\\r\\nX-Cache: Hit from cloudfront\\r\\nVia: 1.1 7ba3caf71ae7a52dd411d1a543e80cd8.cloudfront.net (CloudFront)\\r\\nX-Amz-Cf-Pop: SFO5-C3\\r\\nX-Amz-Cf-Id: w4h42tkoJD-rEpkRDZUvnQBmy26GVGe6pUsuRr1Dphf7oajYbjXaOA==\\r\\nAge: 132\\r\\n" + }, + "agentId" : "861b7557-cd57-4bbb-b648-00bddf88ef49", + "redirectTime" : 10, + "numRedirects" : 0, + "vpnProfile" : { + "vpnClientNetworkRange" : [ "9.88.37.27", "9.88.37.27" ], + "vpnGatewayAddress" : "120.98.134.7", + "vpnType" : "cisco-anyconnect", + "vpnClientAddresses" : [ "184.81.113.85", "13.129.91.62" ] + }, + "errorType" : "connect", + "responseTime" : 14, + "totalTime" : 15, + "responseCode" : 200, + "receiveTime" : 1, + "score" : { + "applicationScore" : 100.0, + "quality" : "great" + }, "systemMetrics" : { "cpuUtilization" : { "min" : 0.22, diff --git a/thousandeyes-sdk-endpoint-test-results/test/test_local_network_endpoint_test_results_api.py b/thousandeyes-sdk-endpoint-test-results/test/test_local_network_endpoint_test_results_api.py index 2ef44928..3f9f1122 100644 --- a/thousandeyes-sdk-endpoint-test-results/test/test_local_network_endpoint_test_results_api.py +++ b/thousandeyes-sdk-endpoint-test-results/test/test_local_network_endpoint_test_results_api.py @@ -69,6 +69,28 @@ class TestLocalNetworkEndpointTestResultsApi(unittest.TestCase): "results" : [ { "date" : "2022-07-17T22:00:54Z", "agentId" : "861b7557-cd57-4bbb-b648-00bddf88ef49", + "isIcmpBlocked" : true, + "gatewayScore" : { + "score" : 100.0, + "quality" : "great" + }, + "tcpConnect" : { + "rtt" : 77.777, + "errorCode" : "ERR_TIMED_OUT", + "error" : "An operation timed out.", + "infoFlags" : [ "TE_INFO_ICMP_BLOCKED_BY_FIREWALL" ] + }, + "vpnScore" : { + "score" : 100.0, + "quality" : "great" + }, + "proxyScore" : { + "score" : 100.0, + "quality" : "great" + }, + "type" : "vpn", + "targetPort" : 80, + "target" : "10.0.2.2", "systemMetrics" : { "cpuUtilization" : { "min" : 0.22, @@ -166,12 +188,9 @@ class TestLocalNetworkEndpointTestResultsApi(unittest.TestCase): "totalMemoryPercentage" : 0.22 } ] }, - "isIcmpBlocked" : true, - "tcpConnect" : { - "rtt" : 77.777, - "errorCode" : "ERR_TIMED_OUT", - "error" : "An operation timed out.", - "infoFlags" : [ "TE_INFO_ICMP_BLOCKED_BY_FIREWALL" ] + "connectionScore" : { + "score" : 100.0, + "quality" : "great" }, "icmpPing" : { "maxRtt" : 66, @@ -183,14 +202,37 @@ class TestLocalNetworkEndpointTestResultsApi(unittest.TestCase): "infoFlags" : [ "TE_INFO_ICMP_BLOCKED_BY_FIREWALL" ], "pktsSent" : 10 }, - "type" : "vpn", "networkTopologyId" : "00160:54c3a4b180c6:1490536500:c7a58c49", "roundId" : 1384309800, - "targetPort" : 80, - "target" : "10.0.2.2" + "agentScore" : { + "score" : 100.0, + "quality" : "great" + } }, { "date" : "2022-07-17T22:00:54Z", "agentId" : "861b7557-cd57-4bbb-b648-00bddf88ef49", + "isIcmpBlocked" : true, + "gatewayScore" : { + "score" : 100.0, + "quality" : "great" + }, + "tcpConnect" : { + "rtt" : 77.777, + "errorCode" : "ERR_TIMED_OUT", + "error" : "An operation timed out.", + "infoFlags" : [ "TE_INFO_ICMP_BLOCKED_BY_FIREWALL" ] + }, + "vpnScore" : { + "score" : 100.0, + "quality" : "great" + }, + "proxyScore" : { + "score" : 100.0, + "quality" : "great" + }, + "type" : "vpn", + "targetPort" : 80, + "target" : "10.0.2.2", "systemMetrics" : { "cpuUtilization" : { "min" : 0.22, @@ -288,12 +330,9 @@ class TestLocalNetworkEndpointTestResultsApi(unittest.TestCase): "totalMemoryPercentage" : 0.22 } ] }, - "isIcmpBlocked" : true, - "tcpConnect" : { - "rtt" : 77.777, - "errorCode" : "ERR_TIMED_OUT", - "error" : "An operation timed out.", - "infoFlags" : [ "TE_INFO_ICMP_BLOCKED_BY_FIREWALL" ] + "connectionScore" : { + "score" : 100.0, + "quality" : "great" }, "icmpPing" : { "maxRtt" : 66, @@ -305,11 +344,12 @@ class TestLocalNetworkEndpointTestResultsApi(unittest.TestCase): "infoFlags" : [ "TE_INFO_ICMP_BLOCKED_BY_FIREWALL" ], "pktsSent" : 10 }, - "type" : "vpn", "networkTopologyId" : "00160:54c3a4b180c6:1490536500:c7a58c49", "roundId" : 1384309800, - "targetPort" : 80, - "target" : "10.0.2.2" + "agentScore" : { + "score" : 100.0, + "quality" : "great" + } } ], "startDate" : "2022-07-17T22:00:54Z" }""" @@ -373,12 +413,24 @@ class TestLocalNetworkEndpointTestResultsApi(unittest.TestCase): "date" : "2022-07-17T22:00:54Z", "agentId" : "861b7557-cd57-4bbb-b648-00bddf88ef49", "isIcmpBlocked" : true, + "gatewayScore" : { + "score" : 100.0, + "quality" : "great" + }, "tcpConnect" : { "rtt" : 77.777, "errorCode" : "ERR_TIMED_OUT", "error" : "An operation timed out.", "infoFlags" : [ "TE_INFO_ICMP_BLOCKED_BY_FIREWALL" ] }, + "vpnScore" : { + "score" : 100.0, + "quality" : "great" + }, + "proxyScore" : { + "score" : 100.0, + "quality" : "great" + }, "coordinates" : { "latitude" : 46.0552778, "location" : "Slovenia", @@ -598,6 +650,10 @@ class TestLocalNetworkEndpointTestResultsApi(unittest.TestCase): "dnsServers" : [ "8.8.8.8", "8.8.8.4" ], "gateway" : "10.0.0.1" }, + "connectionScore" : { + "score" : 100.0, + "quality" : "great" + }, "icmpPing" : { "maxRtt" : 66, "pktsReceived" : 10, @@ -609,17 +665,33 @@ class TestLocalNetworkEndpointTestResultsApi(unittest.TestCase): "pktsSent" : 10 }, "networkTopologyId" : "00160:54c3a4b180c6:1490536500:c7a58c49", - "roundId" : 1384309800 + "roundId" : 1384309800, + "agentScore" : { + "score" : 100.0, + "quality" : "great" + } }, { "date" : "2022-07-17T22:00:54Z", "agentId" : "861b7557-cd57-4bbb-b648-00bddf88ef49", "isIcmpBlocked" : true, + "gatewayScore" : { + "score" : 100.0, + "quality" : "great" + }, "tcpConnect" : { "rtt" : 77.777, "errorCode" : "ERR_TIMED_OUT", "error" : "An operation timed out.", "infoFlags" : [ "TE_INFO_ICMP_BLOCKED_BY_FIREWALL" ] }, + "vpnScore" : { + "score" : 100.0, + "quality" : "great" + }, + "proxyScore" : { + "score" : 100.0, + "quality" : "great" + }, "coordinates" : { "latitude" : 46.0552778, "location" : "Slovenia", @@ -839,6 +911,10 @@ class TestLocalNetworkEndpointTestResultsApi(unittest.TestCase): "dnsServers" : [ "8.8.8.8", "8.8.8.4" ], "gateway" : "10.0.0.1" }, + "connectionScore" : { + "score" : 100.0, + "quality" : "great" + }, "icmpPing" : { "maxRtt" : 66, "pktsReceived" : 10, @@ -850,7 +926,11 @@ class TestLocalNetworkEndpointTestResultsApi(unittest.TestCase): "pktsSent" : 10 }, "networkTopologyId" : "00160:54c3a4b180c6:1490536500:c7a58c49", - "roundId" : 1384309800 + "roundId" : 1384309800, + "agentScore" : { + "score" : 100.0, + "quality" : "great" + } } ] }""" diff --git a/thousandeyes-sdk-endpoint-test-results/test/test_network_dynamic_endpoint_test_results_api.py b/thousandeyes-sdk-endpoint-test-results/test/test_network_dynamic_endpoint_test_results_api.py index ed496b5f..117c2ed9 100644 --- a/thousandeyes-sdk-endpoint-test-results/test/test_network_dynamic_endpoint_test_results_api.py +++ b/thousandeyes-sdk-endpoint-test-results/test/test_network_dynamic_endpoint_test_results_api.py @@ -144,6 +144,10 @@ class TestNetworkDynamicEndpointTestResultsApi(unittest.TestCase): }, "maxLatency" : 168.0, "tcpProbeMode" : "auto", + "score" : { + "applicationScore" : 100.0, + "quality" : "great" + }, "loss" : 0.0, "protocol" : "tcp", "systemMetrics" : { @@ -216,6 +220,19 @@ class TestNetworkDynamicEndpointTestResultsApi(unittest.TestCase): "dnsServers" : [ "8.8.8.8", "8.8.8.4" ], "gateway" : "10.0.0.1" }, + "ztaMetrics" : [ { + "loss" : 50.0, + "jitter" : 5, + "avgLatency" : 3, + "errorMessage" : "ERR_NAME_NOT_RESOLVED", + "type" : "zta_service" + }, { + "loss" : 50.0, + "jitter" : 5, + "avgLatency" : 3, + "errorMessage" : "ERR_NAME_NOT_RESOLVED", + "type" : "zta_service" + } ], "testId" : "584739201", "webex" : { "remoteSipSessionId" : "22581707460321454", @@ -245,6 +262,10 @@ class TestNetworkDynamicEndpointTestResultsApi(unittest.TestCase): }, "maxLatency" : 168.0, "tcpProbeMode" : "auto", + "score" : { + "applicationScore" : 100.0, + "quality" : "great" + }, "loss" : 0.0, "protocol" : "tcp", "systemMetrics" : { @@ -317,6 +338,19 @@ class TestNetworkDynamicEndpointTestResultsApi(unittest.TestCase): "dnsServers" : [ "8.8.8.8", "8.8.8.4" ], "gateway" : "10.0.0.1" }, + "ztaMetrics" : [ { + "loss" : 50.0, + "jitter" : 5, + "avgLatency" : 3, + "errorMessage" : "ERR_NAME_NOT_RESOLVED", + "type" : "zta_service" + }, { + "loss" : 50.0, + "jitter" : 5, + "avgLatency" : 3, + "errorMessage" : "ERR_NAME_NOT_RESOLVED", + "type" : "zta_service" + } ], "testId" : "584739201", "webex" : { "remoteSipSessionId" : "22581707460321454", diff --git a/thousandeyes-sdk-endpoint-test-results/test/test_network_endpoint_scheduled_test_results_api.py b/thousandeyes-sdk-endpoint-test-results/test/test_network_endpoint_scheduled_test_results_api.py index c31e7a47..8e5857d2 100644 --- a/thousandeyes-sdk-endpoint-test-results/test/test_network_endpoint_scheduled_test_results_api.py +++ b/thousandeyes-sdk-endpoint-test-results/test/test_network_endpoint_scheduled_test_results_api.py @@ -142,6 +142,10 @@ class TestNetworkEndpointScheduledTestResultsApi(unittest.TestCase): "vpnClientAddresses" : [ "184.81.113.85", "13.129.91.62" ] }, "maxLatency" : 168.0, + "score" : { + "applicationScore" : 100.0, + "quality" : "great" + }, "loss" : 0.0, "systemMetrics" : { "cpuUtilization" : { @@ -212,6 +216,19 @@ class TestNetworkEndpointScheduledTestResultsApi(unittest.TestCase): "dnsServers" : [ "8.8.8.8", "8.8.8.4" ], "gateway" : "10.0.0.1" }, + "ztaMetrics" : [ { + "loss" : 50.0, + "jitter" : 5, + "avgLatency" : 3, + "errorMessage" : "ERR_NAME_NOT_RESOLVED", + "type" : "zta_service" + }, { + "loss" : 50.0, + "jitter" : 5, + "avgLatency" : 3, + "errorMessage" : "ERR_NAME_NOT_RESOLVED", + "type" : "zta_service" + } ], "testId" : "584739201", "aid" : "1234", "roundId" : 1384309800, @@ -233,6 +250,10 @@ class TestNetworkEndpointScheduledTestResultsApi(unittest.TestCase): "vpnClientAddresses" : [ "184.81.113.85", "13.129.91.62" ] }, "maxLatency" : 168.0, + "score" : { + "applicationScore" : 100.0, + "quality" : "great" + }, "loss" : 0.0, "systemMetrics" : { "cpuUtilization" : { @@ -303,6 +324,19 @@ class TestNetworkEndpointScheduledTestResultsApi(unittest.TestCase): "dnsServers" : [ "8.8.8.8", "8.8.8.4" ], "gateway" : "10.0.0.1" }, + "ztaMetrics" : [ { + "loss" : 50.0, + "jitter" : 5, + "avgLatency" : 3, + "errorMessage" : "ERR_NAME_NOT_RESOLVED", + "type" : "zta_service" + }, { + "loss" : 50.0, + "jitter" : 5, + "avgLatency" : 3, + "errorMessage" : "ERR_NAME_NOT_RESOLVED", + "type" : "zta_service" + } ], "testId" : "584739201", "aid" : "1234", "roundId" : 1384309800, @@ -381,6 +415,10 @@ class TestNetworkEndpointScheduledTestResultsApi(unittest.TestCase): "vpnClientAddresses" : [ "184.81.113.85", "13.129.91.62" ] }, "maxLatency" : 168.0, + "score" : { + "applicationScore" : 100.0, + "quality" : "great" + }, "loss" : 0.0, "systemMetrics" : { "cpuUtilization" : { @@ -451,6 +489,19 @@ class TestNetworkEndpointScheduledTestResultsApi(unittest.TestCase): "dnsServers" : [ "8.8.8.8", "8.8.8.4" ], "gateway" : "10.0.0.1" }, + "ztaMetrics" : [ { + "loss" : 50.0, + "jitter" : 5, + "avgLatency" : 3, + "errorMessage" : "ERR_NAME_NOT_RESOLVED", + "type" : "zta_service" + }, { + "loss" : 50.0, + "jitter" : 5, + "avgLatency" : 3, + "errorMessage" : "ERR_NAME_NOT_RESOLVED", + "type" : "zta_service" + } ], "testId" : "584739201", "aid" : "1234", "roundId" : 1384309800, @@ -472,6 +523,10 @@ class TestNetworkEndpointScheduledTestResultsApi(unittest.TestCase): "vpnClientAddresses" : [ "184.81.113.85", "13.129.91.62" ] }, "maxLatency" : 168.0, + "score" : { + "applicationScore" : 100.0, + "quality" : "great" + }, "loss" : 0.0, "systemMetrics" : { "cpuUtilization" : { @@ -542,6 +597,19 @@ class TestNetworkEndpointScheduledTestResultsApi(unittest.TestCase): "dnsServers" : [ "8.8.8.8", "8.8.8.4" ], "gateway" : "10.0.0.1" }, + "ztaMetrics" : [ { + "loss" : 50.0, + "jitter" : 5, + "avgLatency" : 3, + "errorMessage" : "ERR_NAME_NOT_RESOLVED", + "type" : "zta_service" + }, { + "loss" : 50.0, + "jitter" : 5, + "avgLatency" : 3, + "errorMessage" : "ERR_NAME_NOT_RESOLVED", + "type" : "zta_service" + } ], "testId" : "584739201", "aid" : "1234", "roundId" : 1384309800, diff --git a/thousandeyes-sdk-endpoint-tests/README.md b/thousandeyes-sdk-endpoint-tests/README.md index 1aeab091..88b6ea17 100644 --- a/thousandeyes-sdk-endpoint-tests/README.md +++ b/thousandeyes-sdk-endpoint-tests/README.md @@ -5,7 +5,7 @@ Manage endpoint agent dynamic and scheduled tests using the Endpoint Tests API. This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerInstantTest.md b/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerInstantTest.md index ddac5130..52170414 100644 --- a/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerInstantTest.md +++ b/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerInstantTest.md @@ -10,7 +10,8 @@ Name | Type | Description | Notes **endpoint_agent_labels** | **List[str]** | List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`. | [optional] **max_machines** | **int** | Maximum number of agents which can execute the test. | [optional] [default to 25] **test_name** | **str** | Name of the test. | -**server_name** | **str** | A server address without a protocol or IP address. | +**server_name** | **str** | A server address without a protocol or IP address. **Deprecated, use `server` instead**. | [optional] +**server** | **str** | Target domain name or IP address. | **port** | **int** | Port number. | [optional] [default to 443] ## Example diff --git a/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerTestRequest.md b/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerTestRequest.md index 77dda713..c49743fd 100644 --- a/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerTestRequest.md +++ b/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerTestRequest.md @@ -10,7 +10,8 @@ Name | Type | Description | Notes **endpoint_agent_labels** | **List[str]** | List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`. | [optional] **max_machines** | **int** | Maximum number of agents which can execute the test. | [optional] [default to 25] **test_name** | **str** | Name of the test. | -**server_name** | **str** | A server address without a protocol or IP address. | +**server_name** | **str** | A server address without a protocol or IP address. **Deprecated, use `server` instead**. | [optional] +**server** | **str** | Target domain name or IP address. | **port** | **int** | Port number. | [optional] [default to 443] **is_prioritized** | **bool** | Indicates whether the test should be prioritized when the number of tests assigned to an agent exceeds the license limit. | [optional] [default to False] **interval** | [**TestInterval**](TestInterval.md) | | [optional] diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_instant_test.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_instant_test.py index 54709c5b..a617fe5d 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_instant_test.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_instant_test.py @@ -31,9 +31,10 @@ class EndpointAgentToServerInstantTest(BaseModel): endpoint_agent_labels: Optional[List[StrictStr]] = Field(default=None, description="List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`.", alias="endpointAgentLabels") max_machines: Optional[StrictInt] = Field(default=25, description="Maximum number of agents which can execute the test.", alias="maxMachines") test_name: StrictStr = Field(description="Name of the test.", alias="testName") - server_name: StrictStr = Field(description="A server address without a protocol or IP address.", alias="serverName") + server_name: Optional[StrictStr] = Field(default=None, description="A server address without a protocol or IP address. **Deprecated, use `server` instead**.", alias="serverName") + server: StrictStr = Field(description="Target domain name or IP address.") port: Optional[StrictInt] = Field(default=443, description="Port number.") - __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "serverName", "port"] + __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "serverName", "server", "port"] model_config = ConfigDict( populate_by_name=True, @@ -93,6 +94,7 @@ class EndpointAgentToServerInstantTest(BaseModel): "maxMachines": obj.get("maxMachines") if obj.get("maxMachines") is not None else 25, "testName": obj.get("testName"), "serverName": obj.get("serverName"), + "server": obj.get("server"), "port": obj.get("port") if obj.get("port") is not None else 443 }) return _obj diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_test_request.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_test_request.py index 345a317c..ef29de13 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_test_request.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_test_request.py @@ -33,12 +33,13 @@ class EndpointAgentToServerTestRequest(BaseModel): endpoint_agent_labels: Optional[List[StrictStr]] = Field(default=None, description="List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`.", alias="endpointAgentLabels") max_machines: Optional[StrictInt] = Field(default=25, description="Maximum number of agents which can execute the test.", alias="maxMachines") test_name: StrictStr = Field(description="Name of the test.", alias="testName") - server_name: StrictStr = Field(description="A server address without a protocol or IP address.", alias="serverName") + server_name: Optional[StrictStr] = Field(default=None, description="A server address without a protocol or IP address. **Deprecated, use `server` instead**.", alias="serverName") + server: StrictStr = Field(description="Target domain name or IP address.") port: Optional[StrictInt] = Field(default=443, description="Port number.") is_prioritized: Optional[StrictBool] = Field(default=False, description="Indicates whether the test should be prioritized when the number of tests assigned to an agent exceeds the license limit.", alias="isPrioritized") interval: Optional[TestInterval] = None protocol: Optional[EndpointTestProtocol] = None - __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "serverName", "port", "isPrioritized", "interval", "protocol"] + __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "serverName", "server", "port", "isPrioritized", "interval", "protocol"] model_config = ConfigDict( populate_by_name=True, @@ -98,6 +99,7 @@ class EndpointAgentToServerTestRequest(BaseModel): "maxMachines": obj.get("maxMachines") if obj.get("maxMachines") is not None else 25, "testName": obj.get("testName"), "serverName": obj.get("serverName"), + "server": obj.get("server"), "port": obj.get("port") if obj.get("port") is not None else 443, "isPrioritized": obj.get("isPrioritized") if obj.get("isPrioritized") is not None else False, "interval": obj.get("interval"), diff --git a/thousandeyes-sdk-endpoint-tests/test/test_agent_to_server_endpoint_scheduled_tests_api.py b/thousandeyes-sdk-endpoint-tests/test/test_agent_to_server_endpoint_scheduled_tests_api.py index d9817121..87c465c6 100644 --- a/thousandeyes-sdk-endpoint-tests/test/test_agent_to_server_endpoint_scheduled_tests_api.py +++ b/thousandeyes-sdk-endpoint-tests/test/test_agent_to_server_endpoint_scheduled_tests_api.py @@ -32,6 +32,7 @@ class TestAgentToServerEndpointScheduledTestsApi(unittest.TestCase): """Test case for create_agent_to_server_endpoint_scheduled_test request and response models""" request_body_json = """ { + "server" : "www.example.com", "protocol" : "icmp", "port" : 443, "agentSelectorType" : "all-agents", diff --git a/thousandeyes-sdk-event-detection/README.md b/thousandeyes-sdk-event-detection/README.md index 74c4125f..fffc182f 100644 --- a/thousandeyes-sdk-event-detection/README.md +++ b/thousandeyes-sdk-event-detection/README.md @@ -12,7 +12,7 @@ With the Events API, you can perform the following tasks on the ThousandEyes pla This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-instant-tests/README.md b/thousandeyes-sdk-instant-tests/README.md index 1858ff10..77be6b65 100644 --- a/thousandeyes-sdk-instant-tests/README.md +++ b/thousandeyes-sdk-instant-tests/README.md @@ -6,7 +6,7 @@ The response does not include the immediate test results. Use the Test Results e This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-instant-tests/docs/ApiInstantTest.md b/thousandeyes-sdk-instant-tests/docs/ApiInstantTest.md index e3976684..ca458b50 100644 --- a/thousandeyes-sdk-instant-tests/docs/ApiInstantTest.md +++ b/thousandeyes-sdk-instant-tests/docs/ApiInstantTest.md @@ -18,7 +18,10 @@ Name | Type | Description | Notes **links** | [**TestLinks**](TestLinks.md) | | [optional] **labels** | [**List[TestLabel]**](TestLabel.md) | Labels to which the test is assigned. This field is not returned for Instant Tests. | [optional] [readonly] **shared_with_accounts** | [**List[SharedWithAccount]**](SharedWithAccount.md) | | [optional] [readonly] +**client_certificate** | **str** | String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate. | [optional] +**client_cert_domains_allow_list** | **str** | Comma separated list of domains to send the client certificate. | [optional] **collect_proxy_network_data** | **bool** | Indicates whether network data to the proxy should be collected. | [optional] [default to False] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **follow_redirects** | **bool** | To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`. | [optional] [default to True] **mtu_measurements** | **bool** | Set `true` to measure MTU sizes on network from agents to the target. | [optional] **network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True] diff --git a/thousandeyes-sdk-instant-tests/docs/ApiInstantTestRequest.md b/thousandeyes-sdk-instant-tests/docs/ApiInstantTestRequest.md index 64745fc8..c6693905 100644 --- a/thousandeyes-sdk-instant-tests/docs/ApiInstantTestRequest.md +++ b/thousandeyes-sdk-instant-tests/docs/ApiInstantTestRequest.md @@ -18,7 +18,10 @@ Name | Type | Description | Notes **links** | [**TestLinks**](TestLinks.md) | | [optional] **labels** | **List[str]** | A list of test label identifiers (get `labelId` from `/labels` endpoint). | [optional] **shared_with_accounts** | **List[str]** | A list of account group identifiers that the test is shared with (get `aid` from `/account-groups` endpoint). | [optional] +**client_certificate** | **str** | String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate. | [optional] +**client_cert_domains_allow_list** | **str** | Comma separated list of domains to send the client certificate. | [optional] **collect_proxy_network_data** | **bool** | Indicates whether network data to the proxy should be collected. | [optional] [default to False] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **follow_redirects** | **bool** | To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`. | [optional] [default to True] **mtu_measurements** | **bool** | Set `true` to measure MTU sizes on network from agents to the target. | [optional] **network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True] diff --git a/thousandeyes-sdk-instant-tests/docs/ApiInstantTestResponse.md b/thousandeyes-sdk-instant-tests/docs/ApiInstantTestResponse.md index 38917589..3ef2b6f3 100644 --- a/thousandeyes-sdk-instant-tests/docs/ApiInstantTestResponse.md +++ b/thousandeyes-sdk-instant-tests/docs/ApiInstantTestResponse.md @@ -18,7 +18,10 @@ Name | Type | Description | Notes **links** | [**TestLinks**](TestLinks.md) | | [optional] **labels** | [**List[TestLabel]**](TestLabel.md) | Labels to which the test is assigned. This field is not returned for Instant Tests. | [optional] [readonly] **shared_with_accounts** | [**List[SharedWithAccount]**](SharedWithAccount.md) | | [optional] [readonly] +**client_certificate** | **str** | String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate. | [optional] +**client_cert_domains_allow_list** | **str** | Comma separated list of domains to send the client certificate. | [optional] **collect_proxy_network_data** | **bool** | Indicates whether network data to the proxy should be collected. | [optional] [default to False] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **follow_redirects** | **bool** | To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`. | [optional] [default to True] **mtu_measurements** | **bool** | Set `true` to measure MTU sizes on network from agents to the target. | [optional] **network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True] diff --git a/thousandeyes-sdk-instant-tests/docs/ApiProperties.md b/thousandeyes-sdk-instant-tests/docs/ApiProperties.md index d2467897..ab440d66 100644 --- a/thousandeyes-sdk-instant-tests/docs/ApiProperties.md +++ b/thousandeyes-sdk-instant-tests/docs/ApiProperties.md @@ -5,7 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**client_certificate** | **str** | String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate. | [optional] +**client_cert_domains_allow_list** | **str** | Comma separated list of domains to send the client certificate. | [optional] **collect_proxy_network_data** | **bool** | Indicates whether network data to the proxy should be collected. | [optional] [default to False] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **follow_redirects** | **bool** | To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`. | [optional] [default to True] **mtu_measurements** | **bool** | Set `true` to measure MTU sizes on network from agents to the target. | [optional] **network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True] @@ -21,8 +24,8 @@ Name | Type | Description | Notes **ssl_version_id** | [**TestSslVersionId**](TestSslVersionId.md) | | [optional] **target_time** | **int** | Target time for completion metric, defaults to 50% of time limit specified in seconds. (0 means default behavior) | [optional] **time_limit** | **int** | Time limit for transaction in seconds. Exceeding this limit will result in a Timeout error. | [optional] [default to 30] -**url** | **str** | Target for the test. | **type** | **str** | | [optional] [readonly] +**url** | **str** | Target for the test. | ## Example diff --git a/thousandeyes-sdk-instant-tests/docs/ApiRequest.md b/thousandeyes-sdk-instant-tests/docs/ApiRequest.md index 2a444c69..9eb77c2e 100644 --- a/thousandeyes-sdk-instant-tests/docs/ApiRequest.md +++ b/thousandeyes-sdk-instant-tests/docs/ApiRequest.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **url** | **str** | Request url. Supports variables in the format `{{variableName}}`. | **username** | **str** | The username if `authType = basic`. | [optional] **variables** | [**List[ApiRequestVariable]**](ApiRequestVariable.md) | Array of API post request variable objects. | [optional] +**verify_certificate** | **bool** | Ignore or acknowledge certificate errors. Set to false to ignore certificate errors. | [optional] [default to False] **wait_time_ms** | **int** | Post request delay before executing the next API requests, in milliseconds. | [optional] ## Example diff --git a/thousandeyes-sdk-instant-tests/docs/HttpServerBaseProperties.md b/thousandeyes-sdk-instant-tests/docs/HttpServerBaseProperties.md index 154dbce9..2e6093a2 100644 --- a/thousandeyes-sdk-instant-tests/docs/HttpServerBaseProperties.md +++ b/thousandeyes-sdk-instant-tests/docs/HttpServerBaseProperties.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-instant-tests/docs/HttpServerInstantTest.md b/thousandeyes-sdk-instant-tests/docs/HttpServerInstantTest.md index 88da01b3..4c1ff62c 100644 --- a/thousandeyes-sdk-instant-tests/docs/HttpServerInstantTest.md +++ b/thousandeyes-sdk-instant-tests/docs/HttpServerInstantTest.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-instant-tests/docs/HttpServerInstantTestRequest.md b/thousandeyes-sdk-instant-tests/docs/HttpServerInstantTestRequest.md index 42cb1c4f..83ffdb71 100644 --- a/thousandeyes-sdk-instant-tests/docs/HttpServerInstantTestRequest.md +++ b/thousandeyes-sdk-instant-tests/docs/HttpServerInstantTestRequest.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-instant-tests/docs/HttpServerInstantTestResponse.md b/thousandeyes-sdk-instant-tests/docs/HttpServerInstantTestResponse.md index a23add0b..6c6bcad1 100644 --- a/thousandeyes-sdk-instant-tests/docs/HttpServerInstantTestResponse.md +++ b/thousandeyes-sdk-instant-tests/docs/HttpServerInstantTestResponse.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-instant-tests/docs/HttpServerProperties.md b/thousandeyes-sdk-instant-tests/docs/HttpServerProperties.md index 63bd7f59..cf92c045 100644 --- a/thousandeyes-sdk-instant-tests/docs/HttpServerProperties.md +++ b/thousandeyes-sdk-instant-tests/docs/HttpServerProperties.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-instant-tests/docs/PageLoadInstantTest.md b/thousandeyes-sdk-instant-tests/docs/PageLoadInstantTest.md index 71ff7de2..06b57ccf 100644 --- a/thousandeyes-sdk-instant-tests/docs/PageLoadInstantTest.md +++ b/thousandeyes-sdk-instant-tests/docs/PageLoadInstantTest.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-instant-tests/docs/PageLoadInstantTestRequest.md b/thousandeyes-sdk-instant-tests/docs/PageLoadInstantTestRequest.md index 9dbe8b59..ca638a79 100644 --- a/thousandeyes-sdk-instant-tests/docs/PageLoadInstantTestRequest.md +++ b/thousandeyes-sdk-instant-tests/docs/PageLoadInstantTestRequest.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-instant-tests/docs/PageLoadInstantTestResponse.md b/thousandeyes-sdk-instant-tests/docs/PageLoadInstantTestResponse.md index 13d471a8..0eb51173 100644 --- a/thousandeyes-sdk-instant-tests/docs/PageLoadInstantTestResponse.md +++ b/thousandeyes-sdk-instant-tests/docs/PageLoadInstantTestResponse.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-instant-tests/docs/PageLoadProperties.md b/thousandeyes-sdk-instant-tests/docs/PageLoadProperties.md index b4258d37..c3899a20 100644 --- a/thousandeyes-sdk-instant-tests/docs/PageLoadProperties.md +++ b/thousandeyes-sdk-instant-tests/docs/PageLoadProperties.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-instant-tests/docs/WebTransactionInstantTest.md b/thousandeyes-sdk-instant-tests/docs/WebTransactionInstantTest.md index bca81f95..99084e46 100644 --- a/thousandeyes-sdk-instant-tests/docs/WebTransactionInstantTest.md +++ b/thousandeyes-sdk-instant-tests/docs/WebTransactionInstantTest.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-instant-tests/docs/WebTransactionInstantTestRequest.md b/thousandeyes-sdk-instant-tests/docs/WebTransactionInstantTestRequest.md index 89ecc29b..d156974d 100644 --- a/thousandeyes-sdk-instant-tests/docs/WebTransactionInstantTestRequest.md +++ b/thousandeyes-sdk-instant-tests/docs/WebTransactionInstantTestRequest.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-instant-tests/docs/WebTransactionInstantTestResponse.md b/thousandeyes-sdk-instant-tests/docs/WebTransactionInstantTestResponse.md index b07c3088..378e29bb 100644 --- a/thousandeyes-sdk-instant-tests/docs/WebTransactionInstantTestResponse.md +++ b/thousandeyes-sdk-instant-tests/docs/WebTransactionInstantTestResponse.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-instant-tests/docs/WebTransactionProperties.md b/thousandeyes-sdk-instant-tests/docs/WebTransactionProperties.md index 28d9e820..2fcc0ad5 100644 --- a/thousandeyes-sdk-instant-tests/docs/WebTransactionProperties.md +++ b/thousandeyes-sdk-instant-tests/docs/WebTransactionProperties.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_instant_test.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_instant_test.py index 84bb48d7..2d243de7 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_instant_test.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_instant_test.py @@ -49,7 +49,10 @@ class ApiInstantTest(BaseModel): links: Optional[TestLinks] = Field(default=None, alias="_links") labels: Optional[List[TestLabel]] = Field(default=None, description="Labels to which the test is assigned. This field is not returned for Instant Tests.") shared_with_accounts: Optional[List[SharedWithAccount]] = Field(default=None, alias="sharedWithAccounts") + client_certificate: Optional[StrictStr] = Field(default=None, description="String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate.", alias="clientCertificate") + client_cert_domains_allow_list: Optional[StrictStr] = Field(default=None, description="Comma separated list of domains to send the client certificate.", alias="clientCertDomainsAllowList") collect_proxy_network_data: Optional[StrictBool] = Field(default=False, description="Indicates whether network data to the proxy should be collected.", alias="collectProxyNetworkData") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") follow_redirects: Optional[StrictBool] = Field(default=True, description="To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`.", alias="followRedirects") mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements") network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements") @@ -67,7 +70,7 @@ class ApiInstantTest(BaseModel): time_limit: Optional[Annotated[int, Field(le=180, strict=True, ge=5)]] = Field(default=30, description="Time limit for transaction in seconds. Exceeding this limit will result in a Timeout error.", alias="timeLimit") url: StrictStr = Field(description="Target for the test.") credentials: Optional[List[StrictStr]] = Field(default=None, description="Contains a list of credential IDs (get `credentialId` from `/credentials` endpoint).") - __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "collectProxyNetworkData", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "credentials"] + __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "clientCertificate", "clientCertDomainsAllowList", "collectProxyNetworkData", "distributedTracing", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "credentials"] model_config = ConfigDict( populate_by_name=True, @@ -185,7 +188,10 @@ class ApiInstantTest(BaseModel): "_links": TestLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None, "labels": [TestLabel.from_dict(_item) for _item in obj["labels"]] if obj.get("labels") is not None else None, "sharedWithAccounts": [SharedWithAccount.from_dict(_item) for _item in obj["sharedWithAccounts"]] if obj.get("sharedWithAccounts") is not None else None, + "clientCertificate": obj.get("clientCertificate"), + "clientCertDomainsAllowList": obj.get("clientCertDomainsAllowList"), "collectProxyNetworkData": obj.get("collectProxyNetworkData") if obj.get("collectProxyNetworkData") is not None else False, + "distributedTracing": obj.get("distributedTracing"), "followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True, "mtuMeasurements": obj.get("mtuMeasurements"), "networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True, diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_instant_test_request.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_instant_test_request.py index 44828cc5..5120c242 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_instant_test_request.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_instant_test_request.py @@ -48,7 +48,10 @@ class ApiInstantTestRequest(BaseModel): links: Optional[TestLinks] = Field(default=None, alias="_links") labels: Optional[List[StrictStr]] = Field(default=None, description="A list of test label identifiers (get `labelId` from `/labels` endpoint).") shared_with_accounts: Optional[List[StrictStr]] = Field(default=None, description="A list of account group identifiers that the test is shared with (get `aid` from `/account-groups` endpoint).", alias="sharedWithAccounts") + client_certificate: Optional[StrictStr] = Field(default=None, description="String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate.", alias="clientCertificate") + client_cert_domains_allow_list: Optional[StrictStr] = Field(default=None, description="Comma separated list of domains to send the client certificate.", alias="clientCertDomainsAllowList") collect_proxy_network_data: Optional[StrictBool] = Field(default=False, description="Indicates whether network data to the proxy should be collected.", alias="collectProxyNetworkData") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") follow_redirects: Optional[StrictBool] = Field(default=True, description="To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`.", alias="followRedirects") mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements") network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements") @@ -67,7 +70,7 @@ class ApiInstantTestRequest(BaseModel): url: StrictStr = Field(description="Target for the test.") credentials: Optional[List[StrictStr]] = Field(default=None, description="Contains a list of credential IDs (get `credentialId` from `/credentials` endpoint).") agents: List[TestAgent] = Field(description="A list of objects with `agentId` (required) and `sourceIpAddress` (optional).") - __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "collectProxyNetworkData", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "credentials", "agents"] + __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "clientCertificate", "clientCertDomainsAllowList", "collectProxyNetworkData", "distributedTracing", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "credentials", "agents"] model_config = ConfigDict( populate_by_name=True, @@ -174,7 +177,10 @@ class ApiInstantTestRequest(BaseModel): "_links": TestLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None, "labels": obj.get("labels"), "sharedWithAccounts": obj.get("sharedWithAccounts"), + "clientCertificate": obj.get("clientCertificate"), + "clientCertDomainsAllowList": obj.get("clientCertDomainsAllowList"), "collectProxyNetworkData": obj.get("collectProxyNetworkData") if obj.get("collectProxyNetworkData") is not None else False, + "distributedTracing": obj.get("distributedTracing"), "followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True, "mtuMeasurements": obj.get("mtuMeasurements"), "networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True, diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_instant_test_response.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_instant_test_response.py index 7c174ee4..9ce1ea1e 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_instant_test_response.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_instant_test_response.py @@ -50,7 +50,10 @@ class ApiInstantTestResponse(BaseModel): links: Optional[TestLinks] = Field(default=None, alias="_links") labels: Optional[List[TestLabel]] = Field(default=None, description="Labels to which the test is assigned. This field is not returned for Instant Tests.") shared_with_accounts: Optional[List[SharedWithAccount]] = Field(default=None, alias="sharedWithAccounts") + client_certificate: Optional[StrictStr] = Field(default=None, description="String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate.", alias="clientCertificate") + client_cert_domains_allow_list: Optional[StrictStr] = Field(default=None, description="Comma separated list of domains to send the client certificate.", alias="clientCertDomainsAllowList") collect_proxy_network_data: Optional[StrictBool] = Field(default=False, description="Indicates whether network data to the proxy should be collected.", alias="collectProxyNetworkData") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") follow_redirects: Optional[StrictBool] = Field(default=True, description="To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`.", alias="followRedirects") mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements") network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements") @@ -69,7 +72,7 @@ class ApiInstantTestResponse(BaseModel): url: StrictStr = Field(description="Target for the test.") credentials: Optional[List[StrictStr]] = Field(default=None, description="Contains a list of credential IDs (get `credentialId` from `/credentials` endpoint).") agents: Optional[List[AgentResponse]] = Field(default=None, description="Contains list of agents.") - __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "collectProxyNetworkData", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "credentials", "agents"] + __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "clientCertificate", "clientCertDomainsAllowList", "collectProxyNetworkData", "distributedTracing", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "credentials", "agents"] model_config = ConfigDict( populate_by_name=True, @@ -194,7 +197,10 @@ class ApiInstantTestResponse(BaseModel): "_links": TestLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None, "labels": [TestLabel.from_dict(_item) for _item in obj["labels"]] if obj.get("labels") is not None else None, "sharedWithAccounts": [SharedWithAccount.from_dict(_item) for _item in obj["sharedWithAccounts"]] if obj.get("sharedWithAccounts") is not None else None, + "clientCertificate": obj.get("clientCertificate"), + "clientCertDomainsAllowList": obj.get("clientCertDomainsAllowList"), "collectProxyNetworkData": obj.get("collectProxyNetworkData") if obj.get("collectProxyNetworkData") is not None else False, + "distributedTracing": obj.get("distributedTracing"), "followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True, "mtuMeasurements": obj.get("mtuMeasurements"), "networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True, diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_properties.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_properties.py index 1c0ca1b4..7f02128e 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_properties.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_properties.py @@ -32,7 +32,10 @@ class ApiProperties(BaseModel): """ ApiProperties """ # noqa: E501 + client_certificate: Optional[StrictStr] = Field(default=None, description="String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate.", alias="clientCertificate") + client_cert_domains_allow_list: Optional[StrictStr] = Field(default=None, description="Comma separated list of domains to send the client certificate.", alias="clientCertDomainsAllowList") collect_proxy_network_data: Optional[StrictBool] = Field(default=False, description="Indicates whether network data to the proxy should be collected.", alias="collectProxyNetworkData") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") follow_redirects: Optional[StrictBool] = Field(default=True, description="To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`.", alias="followRedirects") mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements") network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements") @@ -48,9 +51,9 @@ class ApiProperties(BaseModel): ssl_version_id: Optional[TestSslVersionId] = Field(default=None, alias="sslVersionId") target_time: Optional[Annotated[int, Field(le=60, strict=True, ge=0)]] = Field(default=None, description="Target time for completion metric, defaults to 50% of time limit specified in seconds. (0 means default behavior)", alias="targetTime") time_limit: Optional[Annotated[int, Field(le=180, strict=True, ge=5)]] = Field(default=30, description="Time limit for transaction in seconds. Exceeding this limit will result in a Timeout error.", alias="timeLimit") - url: StrictStr = Field(description="Target for the test.") type: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["collectProxyNetworkData", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "type"] + url: StrictStr = Field(description="Target for the test.") + __properties: ClassVar[List[str]] = ["clientCertificate", "clientCertDomainsAllowList", "collectProxyNetworkData", "distributedTracing", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "type", "url"] model_config = ConfigDict( populate_by_name=True, @@ -120,7 +123,10 @@ class ApiProperties(BaseModel): return cls.model_validate(obj) _obj = cls.model_validate({ + "clientCertificate": obj.get("clientCertificate"), + "clientCertDomainsAllowList": obj.get("clientCertDomainsAllowList"), "collectProxyNetworkData": obj.get("collectProxyNetworkData") if obj.get("collectProxyNetworkData") is not None else False, + "distributedTracing": obj.get("distributedTracing"), "followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True, "mtuMeasurements": obj.get("mtuMeasurements"), "networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True, @@ -136,8 +142,8 @@ class ApiProperties(BaseModel): "sslVersionId": obj.get("sslVersionId"), "targetTime": obj.get("targetTime"), "timeLimit": obj.get("timeLimit") if obj.get("timeLimit") is not None else 30, - "url": obj.get("url"), - "type": obj.get("type") + "type": obj.get("type"), + "url": obj.get("url") }) return _obj diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_request.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_request.py index 35785bb2..c7ec1437 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_request.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/api_request.py @@ -48,8 +48,9 @@ class ApiRequest(BaseModel): url: StrictStr = Field(description="Request url. Supports variables in the format `{{variableName}}`.") username: Optional[StrictStr] = Field(default=None, description="The username if `authType = basic`.") variables: Optional[List[ApiRequestVariable]] = Field(default=None, description="Array of API post request variable objects.") + verify_certificate: Optional[StrictBool] = Field(default=False, description="Ignore or acknowledge certificate errors. Set to false to ignore certificate errors.", alias="verifyCertificate") wait_time_ms: Optional[StrictInt] = Field(default=None, description="Post request delay before executing the next API requests, in milliseconds.", alias="waitTimeMs") - __properties: ClassVar[List[str]] = ["assertions", "authType", "bearerToken", "body", "clientAuthentication", "clientId", "clientSecret", "collectApiResponse", "headers", "method", "name", "password", "scope", "tokenUrl", "url", "username", "variables", "waitTimeMs"] + __properties: ClassVar[List[str]] = ["assertions", "authType", "bearerToken", "body", "clientAuthentication", "clientId", "clientSecret", "collectApiResponse", "headers", "method", "name", "password", "scope", "tokenUrl", "url", "username", "variables", "verifyCertificate", "waitTimeMs"] model_config = ConfigDict( populate_by_name=True, @@ -141,6 +142,7 @@ class ApiRequest(BaseModel): "url": obj.get("url"), "username": obj.get("username"), "variables": [ApiRequestVariable.from_dict(_item) for _item in obj["variables"]] if obj.get("variables") is not None else None, + "verifyCertificate": obj.get("verifyCertificate") if obj.get("verifyCertificate") is not None else False, "waitTimeMs": obj.get("waitTimeMs") }) return _obj diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_base_properties.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_base_properties.py index 2dca2137..4941f12d 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_base_properties.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_base_properties.py @@ -41,6 +41,7 @@ class HttpServerBaseProperties(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -68,7 +69,7 @@ class HttpServerBaseProperties(BaseModel): override_agent_proxy: Optional[StrictBool] = Field(default=False, description="Flag indicating if a proxy other than the default should be used. To override the default proxy for agents, set to `true` and specify a value for `overrideProxyId`.", alias="overrideAgentProxy") override_proxy_id: Optional[StrictStr] = Field(default=None, description="ID of the proxy to be used if the default proxy is overridden.", alias="overrideProxyId") collect_proxy_network_data: Optional[StrictBool] = Field(default=False, description="Indicates whether network data to the proxy should be collected.", alias="collectProxyNetworkData") - __properties: ClassVar[List[str]] = ["authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData"] + __properties: ClassVar[List[str]] = ["authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData"] model_config = ConfigDict( populate_by_name=True, @@ -140,6 +141,7 @@ class HttpServerBaseProperties(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_instant_test.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_instant_test.py index 44d89e3e..e09471b7 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_instant_test.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_instant_test.py @@ -59,6 +59,7 @@ class HttpServerInstantTest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -90,7 +91,7 @@ class HttpServerInstantTest(BaseModel): randomized_start_time: Optional[StrictBool] = Field(default=False, description="Indicates whether agents should randomize the start time in each test round.", alias="randomizedStartTime") post_body: Optional[StrictStr] = Field(default=None, description="Enter the body for the HTTP POST request in this field. No special escaping is necessary. If the post body is provided with content, the `requestMethod` is automatically set to POST.", alias="postBody") ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy") - __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy"] + __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy"] model_config = ConfigDict( populate_by_name=True, @@ -212,6 +213,7 @@ class HttpServerInstantTest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_instant_test_request.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_instant_test_request.py index fa76fed4..26ea771d 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_instant_test_request.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_instant_test_request.py @@ -58,6 +58,7 @@ class HttpServerInstantTestRequest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -90,7 +91,7 @@ class HttpServerInstantTestRequest(BaseModel): post_body: Optional[StrictStr] = Field(default=None, description="Enter the body for the HTTP POST request in this field. No special escaping is necessary. If the post body is provided with content, the `requestMethod` is automatically set to POST.", alias="postBody") ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy") agents: List[TestAgent] = Field(description="A list of objects with `agentId` (required) and `sourceIpAddress` (optional).") - __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy", "agents"] + __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy", "agents"] model_config = ConfigDict( populate_by_name=True, @@ -201,6 +202,7 @@ class HttpServerInstantTestRequest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_instant_test_response.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_instant_test_response.py index 35e9457b..259c9259 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_instant_test_response.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_instant_test_response.py @@ -60,6 +60,7 @@ class HttpServerInstantTestResponse(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -92,7 +93,7 @@ class HttpServerInstantTestResponse(BaseModel): post_body: Optional[StrictStr] = Field(default=None, description="Enter the body for the HTTP POST request in this field. No special escaping is necessary. If the post body is provided with content, the `requestMethod` is automatically set to POST.", alias="postBody") ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy") agents: Optional[List[AgentResponse]] = Field(default=None, description="Contains list of agents.") - __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy", "agents"] + __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy", "agents"] model_config = ConfigDict( populate_by_name=True, @@ -221,6 +222,7 @@ class HttpServerInstantTestResponse(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_properties.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_properties.py index d4c1504c..c14adf84 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_properties.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/http_server_properties.py @@ -42,6 +42,7 @@ class HttpServerProperties(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -74,7 +75,7 @@ class HttpServerProperties(BaseModel): post_body: Optional[StrictStr] = Field(default=None, description="Enter the body for the HTTP POST request in this field. No special escaping is necessary. If the post body is provided with content, the `requestMethod` is automatically set to POST.", alias="postBody") ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy") type: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy", "type"] + __properties: ClassVar[List[str]] = ["authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy", "type"] model_config = ConfigDict( populate_by_name=True, @@ -148,6 +149,7 @@ class HttpServerProperties(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/page_load_instant_test.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/page_load_instant_test.py index a183c983..f976f3ed 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/page_load_instant_test.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/page_load_instant_test.py @@ -59,6 +59,7 @@ class PageLoadInstantTest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -96,7 +97,7 @@ class PageLoadInstantTest(BaseModel): browser_language: Optional[StrictStr] = Field(default=None, description="Set one of the available browser language that you want to use to configure the browser.", alias="browserLanguage") page_loading_strategy: Optional[TestPageLoadingStrategy] = Field(default=None, alias="pageLoadingStrategy") randomized_start_time: Optional[StrictBool] = Field(default=False, description="Indicates whether agents should randomize the start time in each test round.", alias="randomizedStartTime") - __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime"] + __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime"] model_config = ConfigDict( populate_by_name=True, @@ -218,6 +219,7 @@ class PageLoadInstantTest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/page_load_instant_test_request.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/page_load_instant_test_request.py index d7f745cb..5e0d4799 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/page_load_instant_test_request.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/page_load_instant_test_request.py @@ -58,6 +58,7 @@ class PageLoadInstantTestRequest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -96,7 +97,7 @@ class PageLoadInstantTestRequest(BaseModel): page_loading_strategy: Optional[TestPageLoadingStrategy] = Field(default=None, alias="pageLoadingStrategy") randomized_start_time: Optional[StrictBool] = Field(default=False, description="Indicates whether agents should randomize the start time in each test round.", alias="randomizedStartTime") agents: List[TestAgent] = Field(description="A list of objects with `agentId` (required) and `sourceIpAddress` (optional).") - __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "agents"] + __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "agents"] model_config = ConfigDict( populate_by_name=True, @@ -207,6 +208,7 @@ class PageLoadInstantTestRequest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/page_load_instant_test_response.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/page_load_instant_test_response.py index 756c3009..0ccb1ffc 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/page_load_instant_test_response.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/page_load_instant_test_response.py @@ -60,6 +60,7 @@ class PageLoadInstantTestResponse(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -98,7 +99,7 @@ class PageLoadInstantTestResponse(BaseModel): page_loading_strategy: Optional[TestPageLoadingStrategy] = Field(default=None, alias="pageLoadingStrategy") randomized_start_time: Optional[StrictBool] = Field(default=False, description="Indicates whether agents should randomize the start time in each test round.", alias="randomizedStartTime") agents: Optional[List[AgentResponse]] = Field(default=None, description="Contains list of agents.") - __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "agents"] + __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "agents"] model_config = ConfigDict( populate_by_name=True, @@ -227,6 +228,7 @@ class PageLoadInstantTestResponse(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/page_load_properties.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/page_load_properties.py index 02b69e7c..e76b171a 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/page_load_properties.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/page_load_properties.py @@ -42,6 +42,7 @@ class PageLoadProperties(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -80,7 +81,7 @@ class PageLoadProperties(BaseModel): page_loading_strategy: Optional[TestPageLoadingStrategy] = Field(default=None, alias="pageLoadingStrategy") randomized_start_time: Optional[StrictBool] = Field(default=False, description="Indicates whether agents should randomize the start time in each test round.", alias="randomizedStartTime") type: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "type"] + __properties: ClassVar[List[str]] = ["authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "type"] model_config = ConfigDict( populate_by_name=True, @@ -154,6 +155,7 @@ class PageLoadProperties(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/web_transaction_instant_test.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/web_transaction_instant_test.py index bd1b5ff4..169d8aab 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/web_transaction_instant_test.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/web_transaction_instant_test.py @@ -59,6 +59,7 @@ class WebTransactionInstantTest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -98,7 +99,7 @@ class WebTransactionInstantTest(BaseModel): page_loading_strategy: Optional[TestPageLoadingStrategy] = Field(default=None, alias="pageLoadingStrategy") randomized_start_time: Optional[StrictBool] = Field(default=False, description="Indicates whether agents should randomize the start time in each test round.", alias="randomizedStartTime") credentials: Optional[List[StrictStr]] = Field(default=None, description="Contains a list of credential IDs (get `credentialId` from `/credentials` endpoint).") - __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "credentials"] + __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "credentials"] model_config = ConfigDict( populate_by_name=True, @@ -220,6 +221,7 @@ class WebTransactionInstantTest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/web_transaction_instant_test_request.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/web_transaction_instant_test_request.py index 637461f0..47fe9579 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/web_transaction_instant_test_request.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/web_transaction_instant_test_request.py @@ -58,6 +58,7 @@ class WebTransactionInstantTestRequest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -98,7 +99,7 @@ class WebTransactionInstantTestRequest(BaseModel): randomized_start_time: Optional[StrictBool] = Field(default=False, description="Indicates whether agents should randomize the start time in each test round.", alias="randomizedStartTime") credentials: Optional[List[StrictStr]] = Field(default=None, description="Contains a list of credential IDs (get `credentialId` from `/credentials` endpoint).") agents: List[TestAgent] = Field(description="A list of objects with `agentId` (required) and `sourceIpAddress` (optional).") - __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "credentials", "agents"] + __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "credentials", "agents"] model_config = ConfigDict( populate_by_name=True, @@ -209,6 +210,7 @@ class WebTransactionInstantTestRequest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/web_transaction_instant_test_response.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/web_transaction_instant_test_response.py index ac9d66d6..abe3814f 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/web_transaction_instant_test_response.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/web_transaction_instant_test_response.py @@ -60,6 +60,7 @@ class WebTransactionInstantTestResponse(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -100,7 +101,7 @@ class WebTransactionInstantTestResponse(BaseModel): randomized_start_time: Optional[StrictBool] = Field(default=False, description="Indicates whether agents should randomize the start time in each test round.", alias="randomizedStartTime") credentials: Optional[List[StrictStr]] = Field(default=None, description="Contains a list of credential IDs (get `credentialId` from `/credentials` endpoint).") agents: Optional[List[AgentResponse]] = Field(default=None, description="Contains list of agents.") - __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "credentials", "agents"] + __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "credentials", "agents"] model_config = ConfigDict( populate_by_name=True, @@ -229,6 +230,7 @@ class WebTransactionInstantTestResponse(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/web_transaction_properties.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/web_transaction_properties.py index 5bdc6893..88ee9d16 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/web_transaction_properties.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/web_transaction_properties.py @@ -42,6 +42,7 @@ class WebTransactionProperties(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -81,7 +82,7 @@ class WebTransactionProperties(BaseModel): page_loading_strategy: Optional[TestPageLoadingStrategy] = Field(default=None, alias="pageLoadingStrategy") randomized_start_time: Optional[StrictBool] = Field(default=False, description="Indicates whether agents should randomize the start time in each test round.", alias="randomizedStartTime") type: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "type"] + __properties: ClassVar[List[str]] = ["authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "type"] model_config = ConfigDict( populate_by_name=True, @@ -155,6 +156,7 @@ class WebTransactionProperties(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-instant-tests/test/test_api_instant_tests_api.py b/thousandeyes-sdk-instant-tests/test/test_api_instant_tests_api.py index ffdf407b..08796d1b 100644 --- a/thousandeyes-sdk-instant-tests/test/test_api_instant_tests_api.py +++ b/thousandeyes-sdk-instant-tests/test/test_api_instant_tests_api.py @@ -32,6 +32,7 @@ class TestAPIInstantTestsApi(unittest.TestCase): """Test case for create_api_instant_test request and response models""" request_body_json = """ { + "clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n", "mtuMeasurements" : false, "_links" : { "testResults" : [ { @@ -71,6 +72,7 @@ class TestAPIInstantTestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -110,6 +112,7 @@ class TestAPIInstantTestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -138,6 +141,7 @@ class TestAPIInstantTestsApi(unittest.TestCase): "followRedirects" : true, "pathTraceMode" : "classic", "modifiedBy" : "user@user.com", + "clientCertDomainsAllowList" : "www.thousandeyes.com", "testName" : "ThousandEyes Test", "numPathTraces" : 3, "overrideAgentProxy" : false, @@ -149,6 +153,7 @@ class TestAPIInstantTestsApi(unittest.TestCase): "value" : "ThousandEyesAccountUserName" } ], "liveShare" : false, + "distributedTracing" : false, "savedEvent" : true, "networkMeasurements" : true, "url" : "www.thousandeyes.com", @@ -178,6 +183,7 @@ class TestAPIInstantTestsApi(unittest.TestCase): response_body_json = """ { + "clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n", "mtuMeasurements" : false, "_links" : { "testResults" : [ { @@ -217,6 +223,7 @@ class TestAPIInstantTestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -256,6 +263,7 @@ class TestAPIInstantTestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -284,6 +292,7 @@ class TestAPIInstantTestsApi(unittest.TestCase): "followRedirects" : true, "pathTraceMode" : "classic", "modifiedBy" : "user@user.com", + "clientCertDomainsAllowList" : "www.thousandeyes.com", "testName" : "ThousandEyes Test", "numPathTraces" : 3, "overrideAgentProxy" : false, @@ -295,6 +304,7 @@ class TestAPIInstantTestsApi(unittest.TestCase): "value" : "ThousandEyesAccountUserName" } ], "liveShare" : false, + "distributedTracing" : false, "savedEvent" : true, "networkMeasurements" : true, "url" : "www.thousandeyes.com", diff --git a/thousandeyes-sdk-instant-tests/test/test_http_page_load_instant_tests_api.py b/thousandeyes-sdk-instant-tests/test/test_http_page_load_instant_tests_api.py index 85f66f7f..a0dad74a 100644 --- a/thousandeyes-sdk-instant-tests/test/test_http_page_load_instant_tests_api.py +++ b/thousandeyes-sdk-instant-tests/test/test_http_page_load_instant_tests_api.py @@ -116,6 +116,7 @@ class TestHTTPPageLoadInstantTestsApi(unittest.TestCase): }, "pageLoadTargetTime" : 10, "numPathTraces" : 3, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "pageLoadTimeLimit" : 10, @@ -242,6 +243,7 @@ class TestHTTPPageLoadInstantTestsApi(unittest.TestCase): }, "pageLoadTargetTime" : 10, "numPathTraces" : 3, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "pageLoadTimeLimit" : 10, diff --git a/thousandeyes-sdk-instant-tests/test/test_http_server_instant_tests_api.py b/thousandeyes-sdk-instant-tests/test/test_http_server_instant_tests_api.py index fc68f4e2..a798f543 100644 --- a/thousandeyes-sdk-instant-tests/test/test_http_server_instant_tests_api.py +++ b/thousandeyes-sdk-instant-tests/test/test_http_server_instant_tests_api.py @@ -111,6 +111,7 @@ class TestHTTPServerInstantTestsApi(unittest.TestCase): }, "headers" : [ "header1: value1", "header2: value2" ], "numPathTraces" : 3, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, @@ -231,6 +232,7 @@ class TestHTTPServerInstantTestsApi(unittest.TestCase): }, "headers" : [ "header1: value1", "header2: value2" ], "numPathTraces" : 3, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, diff --git a/thousandeyes-sdk-instant-tests/test/test_web_transaction_instant_tests_api.py b/thousandeyes-sdk-instant-tests/test/test_web_transaction_instant_tests_api.py index 526be388..b7cc4908 100644 --- a/thousandeyes-sdk-instant-tests/test/test_web_transaction_instant_tests_api.py +++ b/thousandeyes-sdk-instant-tests/test/test_web_transaction_instant_tests_api.py @@ -117,6 +117,7 @@ class TestWebTransactionInstantTestsApi(unittest.TestCase): }, "numPathTraces" : 3, "transactionScript" : "if (true) { return true; }", + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, @@ -245,6 +246,7 @@ class TestWebTransactionInstantTestsApi(unittest.TestCase): }, "numPathTraces" : 3, "transactionScript" : "if (true) { return true; }", + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, diff --git a/thousandeyes-sdk-internet-insights/README.md b/thousandeyes-sdk-internet-insights/README.md index eb6e75d9..90a53916 100644 --- a/thousandeyes-sdk-internet-insights/README.md +++ b/thousandeyes-sdk-internet-insights/README.md @@ -14,7 +14,7 @@ For more information about Internet Insights, see the [Internet Insights](https: This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-snapshots/README.md b/thousandeyes-sdk-snapshots/README.md index 12618637..702e40f6 100644 --- a/thousandeyes-sdk-snapshots/README.md +++ b/thousandeyes-sdk-snapshots/README.md @@ -3,7 +3,7 @@ Creates a new test snapshot in ThousandEyes. This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-streaming/README.md b/thousandeyes-sdk-streaming/README.md index b15a9052..a14deb1d 100644 --- a/thousandeyes-sdk-streaming/README.md +++ b/thousandeyes-sdk-streaming/README.md @@ -15,7 +15,7 @@ For more information about ThousandEyes for OpenTelemetry, see the [documentatio This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-streaming/docs/StreamingApi.md b/thousandeyes-sdk-streaming/docs/StreamingApi.md index 4dd141cf..a2091eac 100644 --- a/thousandeyes-sdk-streaming/docs/StreamingApi.md +++ b/thousandeyes-sdk-streaming/docs/StreamingApi.md @@ -272,7 +272,7 @@ Name | Type | Description | Notes List data streams -Retrieves a list of configured data streams. +Retrieves a list of configured data streams. Empty list is returned if no streams are configured. ### Example @@ -348,7 +348,6 @@ Name | Type | Description | Notes **400** | Bad Request | - | **401** | Unauthorized | - | **403** | Forbidden | - | -**404** | Not Found | - | **429** | Too Many Requests | - | **500** | Internal Server Error | - | diff --git a/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/api/streaming_api.py b/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/api/streaming_api.py index b4dc1307..c1161c69 100644 --- a/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/api/streaming_api.py +++ b/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/api/streaming_api.py @@ -977,7 +977,7 @@ class StreamingApi: ) -> List[GetStreamResponse]: """List data streams - Retrieves a list of configured data streams. + Retrieves a list of configured data streams. Empty list is returned if no streams are configured. :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str @@ -1019,7 +1019,6 @@ class StreamingApi: '400': "BadRequestError", '401': "UnauthorizedError", '403': None, - '404': None, '429': None, '500': "ApiError", } @@ -1055,7 +1054,7 @@ class StreamingApi: ) -> ApiResponse[List[GetStreamResponse]]: """List data streams - Retrieves a list of configured data streams. + Retrieves a list of configured data streams. Empty list is returned if no streams are configured. :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str @@ -1097,7 +1096,6 @@ class StreamingApi: '400': "BadRequestError", '401': "UnauthorizedError", '403': None, - '404': None, '429': None, '500': "ApiError", } @@ -1133,7 +1131,7 @@ class StreamingApi: ) -> RESTResponseType: """List data streams - Retrieves a list of configured data streams. + Retrieves a list of configured data streams. Empty list is returned if no streams are configured. :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str @@ -1175,7 +1173,6 @@ class StreamingApi: '400': "BadRequestError", '401': "UnauthorizedError", '403': None, - '404': None, '429': None, '500': "ApiError", } diff --git a/thousandeyes-sdk-tags/README.md b/thousandeyes-sdk-tags/README.md index fb08dc35..9d7738c7 100644 --- a/thousandeyes-sdk-tags/README.md +++ b/thousandeyes-sdk-tags/README.md @@ -16,7 +16,7 @@ Things to note with the ThousandEyes Tags API: This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-test-results/README.md b/thousandeyes-sdk-test-results/README.md index 9cdfe28e..15a42cc6 100644 --- a/thousandeyes-sdk-test-results/README.md +++ b/thousandeyes-sdk-test-results/README.md @@ -3,7 +3,7 @@ Get test result metrics for Network and Application Synthetics tests. This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-test-results/docs/APITestResultsApi.md b/thousandeyes-sdk-test-results/docs/APITestResultsApi.md index c8a78dba..516add08 100644 --- a/thousandeyes-sdk-test-results/docs/APITestResultsApi.md +++ b/thousandeyes-sdk-test-results/docs/APITestResultsApi.md @@ -105,7 +105,7 @@ Name | Type | Description | Notes Get API test results -Returns test results for API. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. +Returns test results for API. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. ### Example diff --git a/thousandeyes-sdk-test-results/docs/NetworkTestResultsApi.md b/thousandeyes-sdk-test-results/docs/NetworkTestResultsApi.md index d23bf672..03314992 100644 --- a/thousandeyes-sdk-test-results/docs/NetworkTestResultsApi.md +++ b/thousandeyes-sdk-test-results/docs/NetworkTestResultsApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description Get network test results -Returns network test results for every agent and round. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. +Returns network test results for every agent and round. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. ### Example diff --git a/thousandeyes-sdk-test-results/docs/VoiceRTPServerTestResultsApi.md b/thousandeyes-sdk-test-results/docs/VoiceRTPServerTestResultsApi.md index 70680ae5..8a5a373c 100644 --- a/thousandeyes-sdk-test-results/docs/VoiceRTPServerTestResultsApi.md +++ b/thousandeyes-sdk-test-results/docs/VoiceRTPServerTestResultsApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description Retrieve RTP server test metrics -Returns Voice RTP server test results. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. +Returns Voice RTP server test results. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. ### Example diff --git a/thousandeyes-sdk-test-results/docs/VoiceSIPServerTestResultsApi.md b/thousandeyes-sdk-test-results/docs/VoiceSIPServerTestResultsApi.md index 918a4f56..f8e3f083 100644 --- a/thousandeyes-sdk-test-results/docs/VoiceSIPServerTestResultsApi.md +++ b/thousandeyes-sdk-test-results/docs/VoiceSIPServerTestResultsApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description Get SIP server test results -Returns Voice SIP server test results. It returns data for each agent and each `roundId` within the selected time frame. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. +Returns Voice SIP server test results. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. ### Example diff --git a/thousandeyes-sdk-test-results/docs/WebFTPServerTestResultsApi.md b/thousandeyes-sdk-test-results/docs/WebFTPServerTestResultsApi.md index d77b61fc..eb320087 100644 --- a/thousandeyes-sdk-test-results/docs/WebFTPServerTestResultsApi.md +++ b/thousandeyes-sdk-test-results/docs/WebFTPServerTestResultsApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description Get FTP server test results -Returns test results for FTP server requests. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. +Returns test results for FTP server requests. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. ### Example diff --git a/thousandeyes-sdk-test-results/docs/WebTransactionsTestResultsApi.md b/thousandeyes-sdk-test-results/docs/WebTransactionsTestResultsApi.md index 534ce64a..2e8848c2 100644 --- a/thousandeyes-sdk-test-results/docs/WebTransactionsTestResultsApi.md +++ b/thousandeyes-sdk-test-results/docs/WebTransactionsTestResultsApi.md @@ -200,7 +200,7 @@ Name | Type | Description | Notes Get web transactions test results -Returns test results for web transactions. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. +Returns test results for web transactions. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. ### Example diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/api_test_results_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/api_test_results_api.py index 15379a07..0f7af5c8 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/api_test_results_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/api_test_results_api.py @@ -398,7 +398,7 @@ class APITestResultsApi: ) -> ApiTestResults: """Get API test results - Returns test results for API. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns test results for API. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str @@ -493,7 +493,7 @@ class APITestResultsApi: ) -> ApiResponse[ApiTestResults]: """Get API test results - Returns test results for API. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns test results for API. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str @@ -588,7 +588,7 @@ class APITestResultsApi: ) -> RESTResponseType: """Get API test results - Returns test results for API. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns test results for API. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/network_test_results_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/network_test_results_api.py index 65fdcea6..0e91362e 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/network_test_results_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/network_test_results_api.py @@ -72,7 +72,7 @@ class NetworkTestResultsApi: ) -> NetworkTestResults: """Get network test results - Returns network test results for every agent and round. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns network test results for every agent and round. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str @@ -171,7 +171,7 @@ class NetworkTestResultsApi: ) -> ApiResponse[NetworkTestResults]: """Get network test results - Returns network test results for every agent and round. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns network test results for every agent and round. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str @@ -270,7 +270,7 @@ class NetworkTestResultsApi: ) -> RESTResponseType: """Get network test results - Returns network test results for every agent and round. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns network test results for every agent and round. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/voice_rtp_server_test_results_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/voice_rtp_server_test_results_api.py index c285e7ae..9aad2438 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/voice_rtp_server_test_results_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/voice_rtp_server_test_results_api.py @@ -67,7 +67,7 @@ class VoiceRTPServerTestResultsApi: ) -> RtpStreamTestResults: """Retrieve RTP server test metrics - Returns Voice RTP server test results. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns Voice RTP server test results. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str @@ -162,7 +162,7 @@ class VoiceRTPServerTestResultsApi: ) -> ApiResponse[RtpStreamTestResults]: """Retrieve RTP server test metrics - Returns Voice RTP server test results. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns Voice RTP server test results. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str @@ -257,7 +257,7 @@ class VoiceRTPServerTestResultsApi: ) -> RESTResponseType: """Retrieve RTP server test metrics - Returns Voice RTP server test results. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns Voice RTP server test results. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/voice_sip_server_test_results_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/voice_sip_server_test_results_api.py index 031b8fab..ed775166 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/voice_sip_server_test_results_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/voice_sip_server_test_results_api.py @@ -67,7 +67,7 @@ class VoiceSIPServerTestResultsApi: ) -> SipServerTestResults: """Get SIP server test results - Returns Voice SIP server test results. It returns data for each agent and each `roundId` within the selected time frame. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns Voice SIP server test results. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str @@ -162,7 +162,7 @@ class VoiceSIPServerTestResultsApi: ) -> ApiResponse[SipServerTestResults]: """Get SIP server test results - Returns Voice SIP server test results. It returns data for each agent and each `roundId` within the selected time frame. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns Voice SIP server test results. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str @@ -257,7 +257,7 @@ class VoiceSIPServerTestResultsApi: ) -> RESTResponseType: """Get SIP server test results - Returns Voice SIP server test results. It returns data for each agent and each `roundId` within the selected time frame. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns Voice SIP server test results. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_ftp_server_test_results_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_ftp_server_test_results_api.py index bead1720..f622e8b1 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_ftp_server_test_results_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_ftp_server_test_results_api.py @@ -67,7 +67,7 @@ class WebFTPServerTestResultsApi: ) -> FtpServerTestResults: """Get FTP server test results - Returns test results for FTP server requests. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns test results for FTP server requests. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str @@ -162,7 +162,7 @@ class WebFTPServerTestResultsApi: ) -> ApiResponse[FtpServerTestResults]: """Get FTP server test results - Returns test results for FTP server requests. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns test results for FTP server requests. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str @@ -257,7 +257,7 @@ class WebFTPServerTestResultsApi: ) -> RESTResponseType: """Get FTP server test results - Returns test results for FTP server requests. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns test results for FTP server requests. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str diff --git a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_transactions_test_results_api.py b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_transactions_test_results_api.py index b6ee78fc..edc79114 100644 --- a/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_transactions_test_results_api.py +++ b/thousandeyes-sdk-test-results/src/thousandeyes_sdk/test_results/api/web_transactions_test_results_api.py @@ -744,7 +744,7 @@ class WebTransactionsTestResultsApi: ) -> WebTransactionTestResults: """Get web transactions test results - Returns test results for web transactions. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns test results for web transactions. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str @@ -839,7 +839,7 @@ class WebTransactionsTestResultsApi: ) -> ApiResponse[WebTransactionTestResults]: """Get web transactions test results - Returns test results for web transactions. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns test results for web transactions. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str @@ -934,7 +934,7 @@ class WebTransactionsTestResultsApi: ) -> RESTResponseType: """Get web transactions test results - Returns test results for web transactions. If you do not specify a window or a start and end date, data is displayed for the most recent testing round. + Returns test results for web transactions. If no window, start time, or end time is specified, data for the most recent round is returned. If a window or start time is specified, the results might include a round that started just before the specified start time. :param test_id: Test ID (required) :type test_id: str diff --git a/thousandeyes-sdk-tests/.openapi-generator/FILES b/thousandeyes-sdk-tests/.openapi-generator/FILES index 02cbe346..f3bc9e77 100644 --- a/thousandeyes-sdk-tests/.openapi-generator/FILES +++ b/thousandeyes-sdk-tests/.openapi-generator/FILES @@ -145,6 +145,8 @@ docs/TestSipCredentials.md docs/TestSslVersionId.md docs/TestSubInterval.md docs/TestType.md +docs/TestVersionHistory.md +docs/TestVersionHistoryResponse.md docs/Tests.md docs/TestsApi.md docs/UnauthorizedError.md @@ -333,6 +335,8 @@ src/thousandeyes_sdk/tests/models/test_sip_credentials.py src/thousandeyes_sdk/tests/models/test_ssl_version_id.py src/thousandeyes_sdk/tests/models/test_sub_interval.py src/thousandeyes_sdk/tests/models/test_type.py +src/thousandeyes_sdk/tests/models/test_version_history.py +src/thousandeyes_sdk/tests/models/test_version_history_response.py src/thousandeyes_sdk/tests/models/tests.py src/thousandeyes_sdk/tests/models/unauthorized_error.py src/thousandeyes_sdk/tests/models/unexpanded_agent_to_agent_test.py diff --git a/thousandeyes-sdk-tests/README.md b/thousandeyes-sdk-tests/README.md index 32fad6c5..b1fd3593 100644 --- a/thousandeyes-sdk-tests/README.md +++ b/thousandeyes-sdk-tests/README.md @@ -4,7 +4,7 @@ This API allows you to list, create, edit, and delete Network and Application Sy This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator @@ -156,6 +156,7 @@ Class | Method | HTTP request | Description *SIPServerTestsApi* | [**get_sip_server_test**](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/SIPServerTestsApi.md#get_sip_server_test) | **GET** /tests/sip-server/{testId} | Get SIP Server test *SIPServerTestsApi* | [**get_sip_server_tests**](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/SIPServerTestsApi.md#get_sip_server_tests) | **GET** /tests/sip-server | List SIP Server tests *SIPServerTestsApi* | [**update_sip_server_test**](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/SIPServerTestsApi.md#update_sip_server_test) | **PUT** /tests/sip-server/{testId} | Update SIP Server test +*TestsApi* | [**get_test_version_history**](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/TestsApi.md#get_test_version_history) | **GET** /tests/{testId}/history | Get test version history *TestsApi* | [**get_tests**](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/TestsApi.md#get_tests) | **GET** /tests | List configured tests *VoiceTestsApi* | [**create_voice_test**](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/VoiceTestsApi.md#create_voice_test) | **POST** /tests/voice | Create Voice test *VoiceTestsApi* | [**delete_voice_test**](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/VoiceTestsApi.md#delete_voice_test) | **DELETE** /tests/voice/{testId} | Delete Voice test @@ -303,6 +304,8 @@ Class | Method | HTTP request | Description - [TestSslVersionId](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/TestSslVersionId.md) - [TestSubInterval](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/TestSubInterval.md) - [TestType](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/TestType.md) + - [TestVersionHistory](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/TestVersionHistory.md) + - [TestVersionHistoryResponse](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/TestVersionHistoryResponse.md) - [Tests](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/Tests.md) - [UnauthorizedError](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/UnauthorizedError.md) - [UnexpandedAgentToAgentTest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/UnexpandedAgentToAgentTest.md) diff --git a/thousandeyes-sdk-tests/docs/APITestsApi.md b/thousandeyes-sdk-tests/docs/APITestsApi.md index 30ddcad9..afd1032e 100644 --- a/thousandeyes-sdk-tests/docs/APITestsApi.md +++ b/thousandeyes-sdk-tests/docs/APITestsApi.md @@ -188,7 +188,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_test** -> ApiTestResponse get_api_test(test_id, aid=aid, expand=expand) +> ApiTestResponse get_api_test(test_id, aid=aid, version_id=version_id, expand=expand) Get API test @@ -227,11 +227,12 @@ with thousandeyes_sdk.core.ApiClient(configuration) as api_client: api_instance = thousandeyes_sdk.tests.APITestsApi(api_client) test_id = '202701' # str | Test ID aid = '1234' # str | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional) + version_id = '1234' # str | The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. (optional) expand = [thousandeyes_sdk.tests.ExpandTestOptions()] # List[ExpandTestOptions] | Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. (optional) try: # Get API test - api_response = api_instance.get_api_test(test_id, aid=aid, expand=expand) + api_response = api_instance.get_api_test(test_id, aid=aid, version_id=version_id, expand=expand) print("The response of APITestsApi->get_api_test:\n") pprint(api_response) except Exception as e: @@ -247,6 +248,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **test_id** | **str**| Test ID | **aid** | **str**| A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | [optional] + **version_id** | **str**| The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. | [optional] **expand** | [**List[ExpandTestOptions]**](ExpandTestOptions.md)| Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. | [optional] ### Return type diff --git a/thousandeyes-sdk-tests/docs/AgentToAgentTestsApi.md b/thousandeyes-sdk-tests/docs/AgentToAgentTestsApi.md index 7ffcf10c..96c3ba22 100644 --- a/thousandeyes-sdk-tests/docs/AgentToAgentTestsApi.md +++ b/thousandeyes-sdk-tests/docs/AgentToAgentTestsApi.md @@ -188,7 +188,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_agent_to_agent_test** -> AgentToAgentTestResponse get_agent_to_agent_test(test_id, aid=aid, expand=expand) +> AgentToAgentTestResponse get_agent_to_agent_test(test_id, aid=aid, version_id=version_id, expand=expand) Get Agent to Agent test @@ -227,11 +227,12 @@ with thousandeyes_sdk.core.ApiClient(configuration) as api_client: api_instance = thousandeyes_sdk.tests.AgentToAgentTestsApi(api_client) test_id = '202701' # str | Test ID aid = '1234' # str | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional) + version_id = '1234' # str | The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. (optional) expand = [thousandeyes_sdk.tests.ExpandTestOptions()] # List[ExpandTestOptions] | Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. (optional) try: # Get Agent to Agent test - api_response = api_instance.get_agent_to_agent_test(test_id, aid=aid, expand=expand) + api_response = api_instance.get_agent_to_agent_test(test_id, aid=aid, version_id=version_id, expand=expand) print("The response of AgentToAgentTestsApi->get_agent_to_agent_test:\n") pprint(api_response) except Exception as e: @@ -247,6 +248,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **test_id** | **str**| Test ID | **aid** | **str**| A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | [optional] + **version_id** | **str**| The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. | [optional] **expand** | [**List[ExpandTestOptions]**](ExpandTestOptions.md)| Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. | [optional] ### Return type diff --git a/thousandeyes-sdk-tests/docs/AgentToServerTestsApi.md b/thousandeyes-sdk-tests/docs/AgentToServerTestsApi.md index 4772a148..3657a71a 100644 --- a/thousandeyes-sdk-tests/docs/AgentToServerTestsApi.md +++ b/thousandeyes-sdk-tests/docs/AgentToServerTestsApi.md @@ -188,7 +188,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_agent_to_server_test** -> AgentToServerTestResponse get_agent_to_server_test(test_id, aid=aid, expand=expand) +> AgentToServerTestResponse get_agent_to_server_test(test_id, aid=aid, version_id=version_id, expand=expand) Get Agent to Server test @@ -227,11 +227,12 @@ with thousandeyes_sdk.core.ApiClient(configuration) as api_client: api_instance = thousandeyes_sdk.tests.AgentToServerTestsApi(api_client) test_id = '202701' # str | Test ID aid = '1234' # str | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional) + version_id = '1234' # str | The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. (optional) expand = [thousandeyes_sdk.tests.ExpandTestOptions()] # List[ExpandTestOptions] | Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. (optional) try: # Get Agent to Server test - api_response = api_instance.get_agent_to_server_test(test_id, aid=aid, expand=expand) + api_response = api_instance.get_agent_to_server_test(test_id, aid=aid, version_id=version_id, expand=expand) print("The response of AgentToServerTestsApi->get_agent_to_server_test:\n") pprint(api_response) except Exception as e: @@ -247,6 +248,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **test_id** | **str**| Test ID | **aid** | **str**| A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | [optional] + **version_id** | **str**| The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. | [optional] **expand** | [**List[ExpandTestOptions]**](ExpandTestOptions.md)| Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. | [optional] ### Return type diff --git a/thousandeyes-sdk-tests/docs/ApiInstantTest.md b/thousandeyes-sdk-tests/docs/ApiInstantTest.md index 28493d4f..d3fec024 100644 --- a/thousandeyes-sdk-tests/docs/ApiInstantTest.md +++ b/thousandeyes-sdk-tests/docs/ApiInstantTest.md @@ -18,7 +18,10 @@ Name | Type | Description | Notes **links** | [**TestLinks**](TestLinks.md) | | [optional] **labels** | [**List[TestLabel]**](TestLabel.md) | Labels to which the test is assigned. This field is not returned for Instant Tests. | [optional] [readonly] **shared_with_accounts** | [**List[SharedWithAccount]**](SharedWithAccount.md) | | [optional] [readonly] +**client_certificate** | **str** | String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate. | [optional] +**client_cert_domains_allow_list** | **str** | Comma separated list of domains to send the client certificate. | [optional] **collect_proxy_network_data** | **bool** | Indicates whether network data to the proxy should be collected. | [optional] [default to False] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **follow_redirects** | **bool** | To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`. | [optional] [default to True] **mtu_measurements** | **bool** | Set `true` to measure MTU sizes on network from agents to the target. | [optional] **network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True] diff --git a/thousandeyes-sdk-tests/docs/ApiProperties.md b/thousandeyes-sdk-tests/docs/ApiProperties.md index 6bac752c..e1451742 100644 --- a/thousandeyes-sdk-tests/docs/ApiProperties.md +++ b/thousandeyes-sdk-tests/docs/ApiProperties.md @@ -5,7 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**client_certificate** | **str** | String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate. | [optional] +**client_cert_domains_allow_list** | **str** | Comma separated list of domains to send the client certificate. | [optional] **collect_proxy_network_data** | **bool** | Indicates whether network data to the proxy should be collected. | [optional] [default to False] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **follow_redirects** | **bool** | To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`. | [optional] [default to True] **mtu_measurements** | **bool** | Set `true` to measure MTU sizes on network from agents to the target. | [optional] **network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True] @@ -21,8 +24,8 @@ Name | Type | Description | Notes **ssl_version_id** | [**TestSslVersionId**](TestSslVersionId.md) | | [optional] **target_time** | **int** | Target time for completion metric, defaults to 50% of time limit specified in seconds. (0 means default behavior) | [optional] **time_limit** | **int** | Time limit for transaction in seconds. Exceeding this limit will result in a Timeout error. | [optional] [default to 30] -**url** | **str** | Target for the test. | **type** | **str** | | [optional] [readonly] +**url** | **str** | Target for the test. | ## Example diff --git a/thousandeyes-sdk-tests/docs/ApiRequest.md b/thousandeyes-sdk-tests/docs/ApiRequest.md index be2e5f9c..a0cf761b 100644 --- a/thousandeyes-sdk-tests/docs/ApiRequest.md +++ b/thousandeyes-sdk-tests/docs/ApiRequest.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **url** | **str** | Request url. Supports variables in the format `{{variableName}}`. | **username** | **str** | The username if `authType = basic`. | [optional] **variables** | [**List[ApiRequestVariable]**](ApiRequestVariable.md) | Array of API post request variable objects. | [optional] +**verify_certificate** | **bool** | Ignore or acknowledge certificate errors. Set to false to ignore certificate errors. | [optional] [default to False] **wait_time_ms** | **int** | Post request delay before executing the next API requests, in milliseconds. | [optional] ## Example diff --git a/thousandeyes-sdk-tests/docs/ApiTest.md b/thousandeyes-sdk-tests/docs/ApiTest.md index db81670b..f2c42570 100644 --- a/thousandeyes-sdk-tests/docs/ApiTest.md +++ b/thousandeyes-sdk-tests/docs/ApiTest.md @@ -22,7 +22,10 @@ Name | Type | Description | Notes **links** | [**TestLinks**](TestLinks.md) | | [optional] **labels** | [**List[TestLabel]**](TestLabel.md) | Labels to which the test is assigned. This field is not returned for Instant Tests. | [optional] [readonly] **shared_with_accounts** | [**List[SharedWithAccount]**](SharedWithAccount.md) | | [optional] [readonly] +**client_certificate** | **str** | String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate. | [optional] +**client_cert_domains_allow_list** | **str** | Comma separated list of domains to send the client certificate. | [optional] **collect_proxy_network_data** | **bool** | Indicates whether network data to the proxy should be collected. | [optional] [default to False] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **follow_redirects** | **bool** | To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`. | [optional] [default to True] **mtu_measurements** | **bool** | Set `true` to measure MTU sizes on network from agents to the target. | [optional] **network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True] diff --git a/thousandeyes-sdk-tests/docs/ApiTestRequest.md b/thousandeyes-sdk-tests/docs/ApiTestRequest.md index cd7686a3..2f544710 100644 --- a/thousandeyes-sdk-tests/docs/ApiTestRequest.md +++ b/thousandeyes-sdk-tests/docs/ApiTestRequest.md @@ -22,7 +22,10 @@ Name | Type | Description | Notes **links** | [**TestLinks**](TestLinks.md) | | [optional] **labels** | **List[str]** | Contains list of test label IDs (get `labelId` from `/labels` endpoint) | [optional] **shared_with_accounts** | **List[str]** | Contains list of account group IDs. Test is shared with the listed account groups (get `aid` from `/account-groups` endpoint) | [optional] +**client_certificate** | **str** | String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate. | [optional] +**client_cert_domains_allow_list** | **str** | Comma separated list of domains to send the client certificate. | [optional] **collect_proxy_network_data** | **bool** | Indicates whether network data to the proxy should be collected. | [optional] [default to False] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **follow_redirects** | **bool** | To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`. | [optional] [default to True] **mtu_measurements** | **bool** | Set `true` to measure MTU sizes on network from agents to the target. | [optional] **network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True] diff --git a/thousandeyes-sdk-tests/docs/ApiTestResponse.md b/thousandeyes-sdk-tests/docs/ApiTestResponse.md index 73471618..ff229c8c 100644 --- a/thousandeyes-sdk-tests/docs/ApiTestResponse.md +++ b/thousandeyes-sdk-tests/docs/ApiTestResponse.md @@ -22,7 +22,10 @@ Name | Type | Description | Notes **links** | [**TestLinks**](TestLinks.md) | | [optional] **labels** | [**List[TestLabel]**](TestLabel.md) | Labels to which the test is assigned. This field is not returned for Instant Tests. | [optional] [readonly] **shared_with_accounts** | [**List[SharedWithAccount]**](SharedWithAccount.md) | | [optional] [readonly] +**client_certificate** | **str** | String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate. | [optional] +**client_cert_domains_allow_list** | **str** | Comma separated list of domains to send the client certificate. | [optional] **collect_proxy_network_data** | **bool** | Indicates whether network data to the proxy should be collected. | [optional] [default to False] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **follow_redirects** | **bool** | To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`. | [optional] [default to True] **mtu_measurements** | **bool** | Set `true` to measure MTU sizes on network from agents to the target. | [optional] **network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True] diff --git a/thousandeyes-sdk-tests/docs/DNSSECTestsApi.md b/thousandeyes-sdk-tests/docs/DNSSECTestsApi.md index 56811fee..96b17e1c 100644 --- a/thousandeyes-sdk-tests/docs/DNSSECTestsApi.md +++ b/thousandeyes-sdk-tests/docs/DNSSECTestsApi.md @@ -188,7 +188,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_dns_sec_test** -> DnsSecTestResponse get_dns_sec_test(test_id, aid=aid, expand=expand) +> DnsSecTestResponse get_dns_sec_test(test_id, aid=aid, version_id=version_id, expand=expand) Get DNSSEC test @@ -227,11 +227,12 @@ with thousandeyes_sdk.core.ApiClient(configuration) as api_client: api_instance = thousandeyes_sdk.tests.DNSSECTestsApi(api_client) test_id = '202701' # str | Test ID aid = '1234' # str | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional) + version_id = '1234' # str | The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. (optional) expand = [thousandeyes_sdk.tests.ExpandTestOptions()] # List[ExpandTestOptions] | Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. (optional) try: # Get DNSSEC test - api_response = api_instance.get_dns_sec_test(test_id, aid=aid, expand=expand) + api_response = api_instance.get_dns_sec_test(test_id, aid=aid, version_id=version_id, expand=expand) print("The response of DNSSECTestsApi->get_dns_sec_test:\n") pprint(api_response) except Exception as e: @@ -247,6 +248,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **test_id** | **str**| Test ID | **aid** | **str**| A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | [optional] + **version_id** | **str**| The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. | [optional] **expand** | [**List[ExpandTestOptions]**](ExpandTestOptions.md)| Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. | [optional] ### Return type diff --git a/thousandeyes-sdk-tests/docs/DNSServerTestsApi.md b/thousandeyes-sdk-tests/docs/DNSServerTestsApi.md index f87b507e..65e0b84c 100644 --- a/thousandeyes-sdk-tests/docs/DNSServerTestsApi.md +++ b/thousandeyes-sdk-tests/docs/DNSServerTestsApi.md @@ -188,7 +188,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_dns_server_test** -> DnsServerTestResponse get_dns_server_test(test_id, aid=aid, expand=expand) +> DnsServerTestResponse get_dns_server_test(test_id, aid=aid, version_id=version_id, expand=expand) Get DNS Server test @@ -227,11 +227,12 @@ with thousandeyes_sdk.core.ApiClient(configuration) as api_client: api_instance = thousandeyes_sdk.tests.DNSServerTestsApi(api_client) test_id = '202701' # str | Test ID aid = '1234' # str | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional) + version_id = '1234' # str | The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. (optional) expand = [thousandeyes_sdk.tests.ExpandTestOptions()] # List[ExpandTestOptions] | Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. (optional) try: # Get DNS Server test - api_response = api_instance.get_dns_server_test(test_id, aid=aid, expand=expand) + api_response = api_instance.get_dns_server_test(test_id, aid=aid, version_id=version_id, expand=expand) print("The response of DNSServerTestsApi->get_dns_server_test:\n") pprint(api_response) except Exception as e: @@ -247,6 +248,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **test_id** | **str**| Test ID | **aid** | **str**| A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | [optional] + **version_id** | **str**| The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. | [optional] **expand** | [**List[ExpandTestOptions]**](ExpandTestOptions.md)| Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. | [optional] ### Return type diff --git a/thousandeyes-sdk-tests/docs/DNSTraceTestsApi.md b/thousandeyes-sdk-tests/docs/DNSTraceTestsApi.md index 281f7c33..40fb3454 100644 --- a/thousandeyes-sdk-tests/docs/DNSTraceTestsApi.md +++ b/thousandeyes-sdk-tests/docs/DNSTraceTestsApi.md @@ -188,7 +188,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_dns_trace_test** -> DnsTraceTestResponse get_dns_trace_test(test_id, aid=aid, expand=expand) +> DnsTraceTestResponse get_dns_trace_test(test_id, aid=aid, version_id=version_id, expand=expand) Get DNS Trace test @@ -227,11 +227,12 @@ with thousandeyes_sdk.core.ApiClient(configuration) as api_client: api_instance = thousandeyes_sdk.tests.DNSTraceTestsApi(api_client) test_id = '202701' # str | Test ID aid = '1234' # str | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional) + version_id = '1234' # str | The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. (optional) expand = [thousandeyes_sdk.tests.ExpandTestOptions()] # List[ExpandTestOptions] | Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. (optional) try: # Get DNS Trace test - api_response = api_instance.get_dns_trace_test(test_id, aid=aid, expand=expand) + api_response = api_instance.get_dns_trace_test(test_id, aid=aid, version_id=version_id, expand=expand) print("The response of DNSTraceTestsApi->get_dns_trace_test:\n") pprint(api_response) except Exception as e: @@ -247,6 +248,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **test_id** | **str**| Test ID | **aid** | **str**| A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | [optional] + **version_id** | **str**| The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. | [optional] **expand** | [**List[ExpandTestOptions]**](ExpandTestOptions.md)| Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. | [optional] ### Return type diff --git a/thousandeyes-sdk-tests/docs/FTPServerTestsApi.md b/thousandeyes-sdk-tests/docs/FTPServerTestsApi.md index f71ab80c..0b0c8fce 100644 --- a/thousandeyes-sdk-tests/docs/FTPServerTestsApi.md +++ b/thousandeyes-sdk-tests/docs/FTPServerTestsApi.md @@ -186,7 +186,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_ftp_server_test** -> FtpServerTestResponse get_ftp_server_test(test_id, aid=aid, expand=expand) +> FtpServerTestResponse get_ftp_server_test(test_id, aid=aid, version_id=version_id, expand=expand) Get FTP Server test @@ -225,11 +225,12 @@ with thousandeyes_sdk.core.ApiClient(configuration) as api_client: api_instance = thousandeyes_sdk.tests.FTPServerTestsApi(api_client) test_id = '202701' # str | Test ID aid = '1234' # str | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional) + version_id = '1234' # str | The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. (optional) expand = [thousandeyes_sdk.tests.ExpandTestOptions()] # List[ExpandTestOptions] | Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. (optional) try: # Get FTP Server test - api_response = api_instance.get_ftp_server_test(test_id, aid=aid, expand=expand) + api_response = api_instance.get_ftp_server_test(test_id, aid=aid, version_id=version_id, expand=expand) print("The response of FTPServerTestsApi->get_ftp_server_test:\n") pprint(api_response) except Exception as e: @@ -245,6 +246,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **test_id** | **str**| Test ID | **aid** | **str**| A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | [optional] + **version_id** | **str**| The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. | [optional] **expand** | [**List[ExpandTestOptions]**](ExpandTestOptions.md)| Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. | [optional] ### Return type diff --git a/thousandeyes-sdk-tests/docs/HTTPServerTestsApi.md b/thousandeyes-sdk-tests/docs/HTTPServerTestsApi.md index dbc4f252..6c227579 100644 --- a/thousandeyes-sdk-tests/docs/HTTPServerTestsApi.md +++ b/thousandeyes-sdk-tests/docs/HTTPServerTestsApi.md @@ -188,7 +188,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_http_server_test** -> HttpServerTestResponse get_http_server_test(test_id, aid=aid, expand=expand) +> HttpServerTestResponse get_http_server_test(test_id, aid=aid, version_id=version_id, expand=expand) Get HTTP Server test @@ -227,11 +227,12 @@ with thousandeyes_sdk.core.ApiClient(configuration) as api_client: api_instance = thousandeyes_sdk.tests.HTTPServerTestsApi(api_client) test_id = '202701' # str | Test ID aid = '1234' # str | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional) + version_id = '1234' # str | The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. (optional) expand = [thousandeyes_sdk.tests.ExpandTestOptions()] # List[ExpandTestOptions] | Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. (optional) try: # Get HTTP Server test - api_response = api_instance.get_http_server_test(test_id, aid=aid, expand=expand) + api_response = api_instance.get_http_server_test(test_id, aid=aid, version_id=version_id, expand=expand) print("The response of HTTPServerTestsApi->get_http_server_test:\n") pprint(api_response) except Exception as e: @@ -247,6 +248,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **test_id** | **str**| Test ID | **aid** | **str**| A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | [optional] + **version_id** | **str**| The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. | [optional] **expand** | [**List[ExpandTestOptions]**](ExpandTestOptions.md)| Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. | [optional] ### Return type diff --git a/thousandeyes-sdk-tests/docs/HttpServerBaseProperties.md b/thousandeyes-sdk-tests/docs/HttpServerBaseProperties.md index b00280f1..5500f85f 100644 --- a/thousandeyes-sdk-tests/docs/HttpServerBaseProperties.md +++ b/thousandeyes-sdk-tests/docs/HttpServerBaseProperties.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/HttpServerInstantTest.md b/thousandeyes-sdk-tests/docs/HttpServerInstantTest.md index bee2b9a6..57316264 100644 --- a/thousandeyes-sdk-tests/docs/HttpServerInstantTest.md +++ b/thousandeyes-sdk-tests/docs/HttpServerInstantTest.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/HttpServerProperties.md b/thousandeyes-sdk-tests/docs/HttpServerProperties.md index c0c8667f..52aa2599 100644 --- a/thousandeyes-sdk-tests/docs/HttpServerProperties.md +++ b/thousandeyes-sdk-tests/docs/HttpServerProperties.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/HttpServerTest.md b/thousandeyes-sdk-tests/docs/HttpServerTest.md index 7d35dd11..5d24b8bd 100644 --- a/thousandeyes-sdk-tests/docs/HttpServerTest.md +++ b/thousandeyes-sdk-tests/docs/HttpServerTest.md @@ -29,6 +29,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/HttpServerTestRequest.md b/thousandeyes-sdk-tests/docs/HttpServerTestRequest.md index 09cbc13b..3367ea83 100644 --- a/thousandeyes-sdk-tests/docs/HttpServerTestRequest.md +++ b/thousandeyes-sdk-tests/docs/HttpServerTestRequest.md @@ -29,6 +29,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/HttpServerTestResponse.md b/thousandeyes-sdk-tests/docs/HttpServerTestResponse.md index 4b8d50d3..deaf9f8a 100644 --- a/thousandeyes-sdk-tests/docs/HttpServerTestResponse.md +++ b/thousandeyes-sdk-tests/docs/HttpServerTestResponse.md @@ -29,6 +29,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/PageLoadInstantTest.md b/thousandeyes-sdk-tests/docs/PageLoadInstantTest.md index 020cda4d..bbd10e10 100644 --- a/thousandeyes-sdk-tests/docs/PageLoadInstantTest.md +++ b/thousandeyes-sdk-tests/docs/PageLoadInstantTest.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/PageLoadProperties.md b/thousandeyes-sdk-tests/docs/PageLoadProperties.md index 4b8838ec..9920da96 100644 --- a/thousandeyes-sdk-tests/docs/PageLoadProperties.md +++ b/thousandeyes-sdk-tests/docs/PageLoadProperties.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/PageLoadTest.md b/thousandeyes-sdk-tests/docs/PageLoadTest.md index 3c903d5a..ab2c8cc6 100644 --- a/thousandeyes-sdk-tests/docs/PageLoadTest.md +++ b/thousandeyes-sdk-tests/docs/PageLoadTest.md @@ -29,6 +29,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/PageLoadTestRequest.md b/thousandeyes-sdk-tests/docs/PageLoadTestRequest.md index ffc505e2..425a468f 100644 --- a/thousandeyes-sdk-tests/docs/PageLoadTestRequest.md +++ b/thousandeyes-sdk-tests/docs/PageLoadTestRequest.md @@ -29,6 +29,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/PageLoadTestResponse.md b/thousandeyes-sdk-tests/docs/PageLoadTestResponse.md index ddac6098..c70d5bfc 100644 --- a/thousandeyes-sdk-tests/docs/PageLoadTestResponse.md +++ b/thousandeyes-sdk-tests/docs/PageLoadTestResponse.md @@ -29,6 +29,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/PageLoadTestsApi.md b/thousandeyes-sdk-tests/docs/PageLoadTestsApi.md index fbd9d701..9445217e 100644 --- a/thousandeyes-sdk-tests/docs/PageLoadTestsApi.md +++ b/thousandeyes-sdk-tests/docs/PageLoadTestsApi.md @@ -188,7 +188,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_page_load_test** -> PageLoadTestResponse get_page_load_test(test_id, aid=aid, expand=expand) +> PageLoadTestResponse get_page_load_test(test_id, aid=aid, version_id=version_id, expand=expand) Get Page Load test @@ -227,11 +227,12 @@ with thousandeyes_sdk.core.ApiClient(configuration) as api_client: api_instance = thousandeyes_sdk.tests.PageLoadTestsApi(api_client) test_id = '202701' # str | Test ID aid = '1234' # str | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional) + version_id = '1234' # str | The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. (optional) expand = [thousandeyes_sdk.tests.ExpandTestOptions()] # List[ExpandTestOptions] | Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. (optional) try: # Get Page Load test - api_response = api_instance.get_page_load_test(test_id, aid=aid, expand=expand) + api_response = api_instance.get_page_load_test(test_id, aid=aid, version_id=version_id, expand=expand) print("The response of PageLoadTestsApi->get_page_load_test:\n") pprint(api_response) except Exception as e: @@ -247,6 +248,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **test_id** | **str**| Test ID | **aid** | **str**| A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | [optional] + **version_id** | **str**| The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. | [optional] **expand** | [**List[ExpandTestOptions]**](ExpandTestOptions.md)| Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. | [optional] ### Return type diff --git a/thousandeyes-sdk-tests/docs/SIPServerTestsApi.md b/thousandeyes-sdk-tests/docs/SIPServerTestsApi.md index 362bf64b..90fb2992 100644 --- a/thousandeyes-sdk-tests/docs/SIPServerTestsApi.md +++ b/thousandeyes-sdk-tests/docs/SIPServerTestsApi.md @@ -186,7 +186,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_sip_server_test** -> SipServerTestResponse get_sip_server_test(test_id, aid=aid, expand=expand) +> SipServerTestResponse get_sip_server_test(test_id, aid=aid, version_id=version_id, expand=expand) Get SIP Server test @@ -225,11 +225,12 @@ with thousandeyes_sdk.core.ApiClient(configuration) as api_client: api_instance = thousandeyes_sdk.tests.SIPServerTestsApi(api_client) test_id = '202701' # str | Test ID aid = '1234' # str | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional) + version_id = '1234' # str | The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. (optional) expand = [thousandeyes_sdk.tests.ExpandTestOptions()] # List[ExpandTestOptions] | Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. (optional) try: # Get SIP Server test - api_response = api_instance.get_sip_server_test(test_id, aid=aid, expand=expand) + api_response = api_instance.get_sip_server_test(test_id, aid=aid, version_id=version_id, expand=expand) print("The response of SIPServerTestsApi->get_sip_server_test:\n") pprint(api_response) except Exception as e: @@ -245,6 +246,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **test_id** | **str**| Test ID | **aid** | **str**| A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | [optional] + **version_id** | **str**| The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. | [optional] **expand** | [**List[ExpandTestOptions]**](ExpandTestOptions.md)| Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. | [optional] ### Return type diff --git a/thousandeyes-sdk-tests/docs/TestVersionHistory.md b/thousandeyes-sdk-tests/docs/TestVersionHistory.md new file mode 100644 index 00000000..f9d48bdd --- /dev/null +++ b/thousandeyes-sdk-tests/docs/TestVersionHistory.md @@ -0,0 +1,32 @@ +# TestVersionHistory + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**version_timestamp** | **datetime** | Timestamp when this version was created. | [optional] +**test_id** | **str** | The unique identifier of the test. | [optional] +**created_by** | **str** | The user who created the version. | [optional] +**version_id** | **str** | The unique identifier for a specific version of the test settings. | [optional] + +## Example + +```python +from thousandeyes_sdk.tests.models.test_version_history import TestVersionHistory + +# TODO update the JSON string below +json = "{}" +# create an instance of TestVersionHistory from a JSON string +test_version_history_instance = TestVersionHistory.from_json(json) +# print the JSON string representation of the object +print(TestVersionHistory.to_json()) + +# convert the object into a dict +test_version_history_dict = test_version_history_instance.to_dict() +# create an instance of TestVersionHistory from a dict +test_version_history_from_dict = TestVersionHistory.from_dict(test_version_history_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-tests/docs/TestVersionHistoryResponse.md b/thousandeyes-sdk-tests/docs/TestVersionHistoryResponse.md new file mode 100644 index 00000000..60578271 --- /dev/null +++ b/thousandeyes-sdk-tests/docs/TestVersionHistoryResponse.md @@ -0,0 +1,30 @@ +# TestVersionHistoryResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**SelfLinks**](SelfLinks.md) | | [optional] +**test_version_history** | [**List[TestVersionHistory]**](TestVersionHistory.md) | | [optional] + +## Example + +```python +from thousandeyes_sdk.tests.models.test_version_history_response import TestVersionHistoryResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of TestVersionHistoryResponse from a JSON string +test_version_history_response_instance = TestVersionHistoryResponse.from_json(json) +# print the JSON string representation of the object +print(TestVersionHistoryResponse.to_json()) + +# convert the object into a dict +test_version_history_response_dict = test_version_history_response_instance.to_dict() +# create an instance of TestVersionHistoryResponse from a dict +test_version_history_response_from_dict = TestVersionHistoryResponse.from_dict(test_version_history_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-tests/docs/TestsApi.md b/thousandeyes-sdk-tests/docs/TestsApi.md index 1398a8b0..93913e92 100644 --- a/thousandeyes-sdk-tests/docs/TestsApi.md +++ b/thousandeyes-sdk-tests/docs/TestsApi.md @@ -4,9 +4,96 @@ All URIs are relative to *https://api.thousandeyes.com/v7* Method | HTTP request | Description ------------- | ------------- | ------------- +[**get_test_version_history**](TestsApi.md#get_test_version_history) | **GET** /tests/{testId}/history | Get test version history [**get_tests**](TestsApi.md#get_tests) | **GET** /tests | List configured tests +# **get_test_version_history** +> TestVersionHistoryResponse get_test_version_history(test_id, aid=aid, limit=limit) + +Get test version history + +Retrieve the version history of a specific test. + +### Example + +* Bearer Authentication (BearerAuth): + +```python +import thousandeyes_sdk.tests +from thousandeyes_sdk.tests.models.test_version_history_response import TestVersionHistoryResponse +from thousandeyes_sdk.tests.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.thousandeyes.com/v7 +# See configuration.py for a list of all supported configuration parameters. +configuration = thousandeyes_sdk.core.Configuration( + host = "https://api.thousandeyes.com/v7" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: BearerAuth +configuration = thousandeyes_sdk.core.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with thousandeyes_sdk.core.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = thousandeyes_sdk.tests.TestsApi(api_client) + test_id = '202701' # str | Test ID + aid = '1234' # str | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional) + limit = 50 # int | The maximum number of version history entries to return. If not specified, the default is 50 or the total number of available versions, whichever is fewer. (optional) (default to 50) + + try: + # Get test version history + api_response = api_instance.get_test_version_history(test_id, aid=aid, limit=limit) + print("The response of TestsApi->get_test_version_history:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling TestsApi->get_test_version_history: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **test_id** | **str**| Test ID | + **aid** | **str**| A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | [optional] + **limit** | **int**| The maximum number of version history entries to return. If not specified, the default is 50 or the total number of available versions, whichever is fewer. | [optional] [default to 50] + +### Return type + +[**TestVersionHistoryResponse**](TestVersionHistoryResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/problem+json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | +**403** | Insufficient permissions to query endpoint | - | +**404** | Not found | - | +**500** | Internal server error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_tests** > Tests get_tests(aid=aid) diff --git a/thousandeyes-sdk-tests/docs/UnexpandedApiTest.md b/thousandeyes-sdk-tests/docs/UnexpandedApiTest.md index b916ef3b..37a9d8f0 100644 --- a/thousandeyes-sdk-tests/docs/UnexpandedApiTest.md +++ b/thousandeyes-sdk-tests/docs/UnexpandedApiTest.md @@ -19,7 +19,10 @@ Name | Type | Description | Notes **test_name** | **str** | The name of the test. Test name must be unique. | [optional] **type** | **str** | | [optional] [readonly] **links** | [**TestLinks**](TestLinks.md) | | [optional] +**client_certificate** | **str** | String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate. | [optional] +**client_cert_domains_allow_list** | **str** | Comma separated list of domains to send the client certificate. | [optional] **collect_proxy_network_data** | **bool** | Indicates whether network data to the proxy should be collected. | [optional] [default to False] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **follow_redirects** | **bool** | To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`. | [optional] [default to True] **mtu_measurements** | **bool** | Set `true` to measure MTU sizes on network from agents to the target. | [optional] **network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True] diff --git a/thousandeyes-sdk-tests/docs/UnexpandedHttpServerTest.md b/thousandeyes-sdk-tests/docs/UnexpandedHttpServerTest.md index 794e89ec..d13164b9 100644 --- a/thousandeyes-sdk-tests/docs/UnexpandedHttpServerTest.md +++ b/thousandeyes-sdk-tests/docs/UnexpandedHttpServerTest.md @@ -26,6 +26,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/UnexpandedPageLoadTest.md b/thousandeyes-sdk-tests/docs/UnexpandedPageLoadTest.md index 27825cf4..cc0f292c 100644 --- a/thousandeyes-sdk-tests/docs/UnexpandedPageLoadTest.md +++ b/thousandeyes-sdk-tests/docs/UnexpandedPageLoadTest.md @@ -26,6 +26,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/UnexpandedWebTransactionTest.md b/thousandeyes-sdk-tests/docs/UnexpandedWebTransactionTest.md index e1764cac..2b9dfddc 100644 --- a/thousandeyes-sdk-tests/docs/UnexpandedWebTransactionTest.md +++ b/thousandeyes-sdk-tests/docs/UnexpandedWebTransactionTest.md @@ -26,6 +26,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/VoiceTestsApi.md b/thousandeyes-sdk-tests/docs/VoiceTestsApi.md index 578698d1..5bb580f7 100644 --- a/thousandeyes-sdk-tests/docs/VoiceTestsApi.md +++ b/thousandeyes-sdk-tests/docs/VoiceTestsApi.md @@ -188,7 +188,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_voice_test** -> VoiceTestResponse get_voice_test(test_id, aid=aid, expand=expand) +> VoiceTestResponse get_voice_test(test_id, aid=aid, version_id=version_id, expand=expand) Get Voice test @@ -227,11 +227,12 @@ with thousandeyes_sdk.core.ApiClient(configuration) as api_client: api_instance = thousandeyes_sdk.tests.VoiceTestsApi(api_client) test_id = '202701' # str | Test ID aid = '1234' # str | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional) + version_id = '1234' # str | The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. (optional) expand = [thousandeyes_sdk.tests.ExpandTestOptions()] # List[ExpandTestOptions] | Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. (optional) try: # Get Voice test - api_response = api_instance.get_voice_test(test_id, aid=aid, expand=expand) + api_response = api_instance.get_voice_test(test_id, aid=aid, version_id=version_id, expand=expand) print("The response of VoiceTestsApi->get_voice_test:\n") pprint(api_response) except Exception as e: @@ -247,6 +248,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **test_id** | **str**| Test ID | **aid** | **str**| A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | [optional] + **version_id** | **str**| The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. | [optional] **expand** | [**List[ExpandTestOptions]**](ExpandTestOptions.md)| Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. | [optional] ### Return type diff --git a/thousandeyes-sdk-tests/docs/WebTransactionInstantTest.md b/thousandeyes-sdk-tests/docs/WebTransactionInstantTest.md index 5573f15f..6eb837d3 100644 --- a/thousandeyes-sdk-tests/docs/WebTransactionInstantTest.md +++ b/thousandeyes-sdk-tests/docs/WebTransactionInstantTest.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/WebTransactionProperties.md b/thousandeyes-sdk-tests/docs/WebTransactionProperties.md index 551ef44c..855fbb21 100644 --- a/thousandeyes-sdk-tests/docs/WebTransactionProperties.md +++ b/thousandeyes-sdk-tests/docs/WebTransactionProperties.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/WebTransactionTest.md b/thousandeyes-sdk-tests/docs/WebTransactionTest.md index 575ec4d6..7ee084e2 100644 --- a/thousandeyes-sdk-tests/docs/WebTransactionTest.md +++ b/thousandeyes-sdk-tests/docs/WebTransactionTest.md @@ -29,6 +29,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/WebTransactionTestRequest.md b/thousandeyes-sdk-tests/docs/WebTransactionTestRequest.md index 668d29e0..0a684ffe 100644 --- a/thousandeyes-sdk-tests/docs/WebTransactionTestRequest.md +++ b/thousandeyes-sdk-tests/docs/WebTransactionTestRequest.md @@ -29,6 +29,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/WebTransactionTestResponse.md b/thousandeyes-sdk-tests/docs/WebTransactionTestResponse.md index ce0425d5..b9fec850 100644 --- a/thousandeyes-sdk-tests/docs/WebTransactionTestResponse.md +++ b/thousandeyes-sdk-tests/docs/WebTransactionTestResponse.md @@ -29,6 +29,7 @@ Name | Type | Description | Notes **content_regex** | **str** | Content regex, this field does not require escaping. | [optional] **custom_headers** | [**TestCustomHeaders**](TestCustomHeaders.md) | | [optional] **desired_status_code** | **str** | Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code. | [optional] [default to 'default'] +**distributed_tracing** | **bool** | Adds distributed tracing headers to API requests using B3 and W3C standards. | [optional] **download_limit** | **int** | Specifies maximum number of bytes to download from the target object. | [optional] **dns_override** | **str** | IP address to use for DNS override. | [optional] **http_target_time** | **int** | Target time for HTTP server completion, specified in milliseconds. | [optional] diff --git a/thousandeyes-sdk-tests/docs/WebTransactionTestsApi.md b/thousandeyes-sdk-tests/docs/WebTransactionTestsApi.md index f0cd3317..c23a1f04 100644 --- a/thousandeyes-sdk-tests/docs/WebTransactionTestsApi.md +++ b/thousandeyes-sdk-tests/docs/WebTransactionTestsApi.md @@ -188,7 +188,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_web_transactions_test** -> WebTransactionTestResponse get_web_transactions_test(test_id, aid=aid, expand=expand) +> WebTransactionTestResponse get_web_transactions_test(test_id, aid=aid, version_id=version_id, expand=expand) Get Web Transactions test @@ -227,11 +227,12 @@ with thousandeyes_sdk.core.ApiClient(configuration) as api_client: api_instance = thousandeyes_sdk.tests.WebTransactionTestsApi(api_client) test_id = '202701' # str | Test ID aid = '1234' # str | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional) + version_id = '1234' # str | The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. (optional) expand = [thousandeyes_sdk.tests.ExpandTestOptions()] # List[ExpandTestOptions] | Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. (optional) try: # Get Web Transactions test - api_response = api_instance.get_web_transactions_test(test_id, aid=aid, expand=expand) + api_response = api_instance.get_web_transactions_test(test_id, aid=aid, version_id=version_id, expand=expand) print("The response of WebTransactionTestsApi->get_web_transactions_test:\n") pprint(api_response) except Exception as e: @@ -247,6 +248,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **test_id** | **str**| Test ID | **aid** | **str**| A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | [optional] + **version_id** | **str**| The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. | [optional] **expand** | [**List[ExpandTestOptions]**](ExpandTestOptions.md)| Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. | [optional] ### Return type diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/__init__.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/__init__.py index 0104dd91..85c7821e 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/__init__.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/__init__.py @@ -164,6 +164,8 @@ from thousandeyes_sdk.tests.models.test_sip_credentials import TestSipCredential from thousandeyes_sdk.tests.models.test_ssl_version_id import TestSslVersionId from thousandeyes_sdk.tests.models.test_sub_interval import TestSubInterval from thousandeyes_sdk.tests.models.test_type import TestType +from thousandeyes_sdk.tests.models.test_version_history import TestVersionHistory +from thousandeyes_sdk.tests.models.test_version_history_response import TestVersionHistoryResponse from thousandeyes_sdk.tests.models.tests import Tests from thousandeyes_sdk.tests.models.unauthorized_error import UnauthorizedError from thousandeyes_sdk.tests.models.unexpanded_agent_to_agent_test import UnexpandedAgentToAgentTest diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/agent_to_agent_tests_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/agent_to_agent_tests_api.py index 6f8884f2..7bab1931 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/agent_to_agent_tests_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/agent_to_agent_tests_api.py @@ -677,6 +677,7 @@ class AgentToAgentTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -699,6 +700,8 @@ class AgentToAgentTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -726,6 +729,7 @@ class AgentToAgentTestsApi: _param = self._get_agent_to_agent_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -759,6 +763,7 @@ class AgentToAgentTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -781,6 +786,8 @@ class AgentToAgentTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -808,6 +815,7 @@ class AgentToAgentTestsApi: _param = self._get_agent_to_agent_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -841,6 +849,7 @@ class AgentToAgentTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -863,6 +872,8 @@ class AgentToAgentTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -890,6 +901,7 @@ class AgentToAgentTestsApi: _param = self._get_agent_to_agent_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -917,6 +929,7 @@ class AgentToAgentTestsApi: self, test_id, aid, + version_id, expand, _request_auth, _content_type, @@ -945,6 +958,10 @@ class AgentToAgentTestsApi: _query_params.append(('aid', aid)) + if version_id is not None: + + _query_params.append(('versionId', version_id)) + if expand is not None: _query_params.append(('expand', expand)) diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/agent_to_server_tests_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/agent_to_server_tests_api.py index 980bb504..26f21eac 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/agent_to_server_tests_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/agent_to_server_tests_api.py @@ -677,6 +677,7 @@ class AgentToServerTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -699,6 +700,8 @@ class AgentToServerTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -726,6 +729,7 @@ class AgentToServerTestsApi: _param = self._get_agent_to_server_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -759,6 +763,7 @@ class AgentToServerTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -781,6 +786,8 @@ class AgentToServerTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -808,6 +815,7 @@ class AgentToServerTestsApi: _param = self._get_agent_to_server_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -841,6 +849,7 @@ class AgentToServerTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -863,6 +872,8 @@ class AgentToServerTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -890,6 +901,7 @@ class AgentToServerTestsApi: _param = self._get_agent_to_server_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -917,6 +929,7 @@ class AgentToServerTestsApi: self, test_id, aid, + version_id, expand, _request_auth, _content_type, @@ -945,6 +958,10 @@ class AgentToServerTestsApi: _query_params.append(('aid', aid)) + if version_id is not None: + + _query_params.append(('versionId', version_id)) + if expand is not None: _query_params.append(('expand', expand)) diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/api_tests_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/api_tests_api.py index 64fae4c0..9dec07e3 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/api_tests_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/api_tests_api.py @@ -677,6 +677,7 @@ class APITestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -699,6 +700,8 @@ class APITestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -726,6 +729,7 @@ class APITestsApi: _param = self._get_api_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -759,6 +763,7 @@ class APITestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -781,6 +786,8 @@ class APITestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -808,6 +815,7 @@ class APITestsApi: _param = self._get_api_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -841,6 +849,7 @@ class APITestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -863,6 +872,8 @@ class APITestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -890,6 +901,7 @@ class APITestsApi: _param = self._get_api_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -917,6 +929,7 @@ class APITestsApi: self, test_id, aid, + version_id, expand, _request_auth, _content_type, @@ -945,6 +958,10 @@ class APITestsApi: _query_params.append(('aid', aid)) + if version_id is not None: + + _query_params.append(('versionId', version_id)) + if expand is not None: _query_params.append(('expand', expand)) diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dns_server_tests_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dns_server_tests_api.py index 84d74283..3cb35889 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dns_server_tests_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dns_server_tests_api.py @@ -677,6 +677,7 @@ class DNSServerTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -699,6 +700,8 @@ class DNSServerTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -726,6 +729,7 @@ class DNSServerTestsApi: _param = self._get_dns_server_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -759,6 +763,7 @@ class DNSServerTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -781,6 +786,8 @@ class DNSServerTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -808,6 +815,7 @@ class DNSServerTestsApi: _param = self._get_dns_server_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -841,6 +849,7 @@ class DNSServerTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -863,6 +872,8 @@ class DNSServerTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -890,6 +901,7 @@ class DNSServerTestsApi: _param = self._get_dns_server_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -917,6 +929,7 @@ class DNSServerTestsApi: self, test_id, aid, + version_id, expand, _request_auth, _content_type, @@ -945,6 +958,10 @@ class DNSServerTestsApi: _query_params.append(('aid', aid)) + if version_id is not None: + + _query_params.append(('versionId', version_id)) + if expand is not None: _query_params.append(('expand', expand)) diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dns_trace_tests_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dns_trace_tests_api.py index 326620e5..a9ad8af3 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dns_trace_tests_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dns_trace_tests_api.py @@ -677,6 +677,7 @@ class DNSTraceTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -699,6 +700,8 @@ class DNSTraceTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -726,6 +729,7 @@ class DNSTraceTestsApi: _param = self._get_dns_trace_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -759,6 +763,7 @@ class DNSTraceTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -781,6 +786,8 @@ class DNSTraceTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -808,6 +815,7 @@ class DNSTraceTestsApi: _param = self._get_dns_trace_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -841,6 +849,7 @@ class DNSTraceTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -863,6 +872,8 @@ class DNSTraceTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -890,6 +901,7 @@ class DNSTraceTestsApi: _param = self._get_dns_trace_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -917,6 +929,7 @@ class DNSTraceTestsApi: self, test_id, aid, + version_id, expand, _request_auth, _content_type, @@ -945,6 +958,10 @@ class DNSTraceTestsApi: _query_params.append(('aid', aid)) + if version_id is not None: + + _query_params.append(('versionId', version_id)) + if expand is not None: _query_params.append(('expand', expand)) diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dnssec_tests_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dnssec_tests_api.py index 056f772f..4507aa52 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dnssec_tests_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/dnssec_tests_api.py @@ -677,6 +677,7 @@ class DNSSECTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -699,6 +700,8 @@ class DNSSECTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -726,6 +729,7 @@ class DNSSECTestsApi: _param = self._get_dns_sec_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -759,6 +763,7 @@ class DNSSECTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -781,6 +786,8 @@ class DNSSECTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -808,6 +815,7 @@ class DNSSECTestsApi: _param = self._get_dns_sec_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -841,6 +849,7 @@ class DNSSECTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -863,6 +872,8 @@ class DNSSECTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -890,6 +901,7 @@ class DNSSECTestsApi: _param = self._get_dns_sec_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -917,6 +929,7 @@ class DNSSECTestsApi: self, test_id, aid, + version_id, expand, _request_auth, _content_type, @@ -945,6 +958,10 @@ class DNSSECTestsApi: _query_params.append(('aid', aid)) + if version_id is not None: + + _query_params.append(('versionId', version_id)) + if expand is not None: _query_params.append(('expand', expand)) diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/ftp_server_tests_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/ftp_server_tests_api.py index 3da10103..48996f9e 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/ftp_server_tests_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/ftp_server_tests_api.py @@ -674,6 +674,7 @@ class FTPServerTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -696,6 +697,8 @@ class FTPServerTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -723,6 +726,7 @@ class FTPServerTestsApi: _param = self._get_ftp_server_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -756,6 +760,7 @@ class FTPServerTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -778,6 +783,8 @@ class FTPServerTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -805,6 +812,7 @@ class FTPServerTestsApi: _param = self._get_ftp_server_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -838,6 +846,7 @@ class FTPServerTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -860,6 +869,8 @@ class FTPServerTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -887,6 +898,7 @@ class FTPServerTestsApi: _param = self._get_ftp_server_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -914,6 +926,7 @@ class FTPServerTestsApi: self, test_id, aid, + version_id, expand, _request_auth, _content_type, @@ -942,6 +955,10 @@ class FTPServerTestsApi: _query_params.append(('aid', aid)) + if version_id is not None: + + _query_params.append(('versionId', version_id)) + if expand is not None: _query_params.append(('expand', expand)) diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/http_server_tests_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/http_server_tests_api.py index c7fae44b..425d62da 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/http_server_tests_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/http_server_tests_api.py @@ -677,6 +677,7 @@ class HTTPServerTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -699,6 +700,8 @@ class HTTPServerTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -726,6 +729,7 @@ class HTTPServerTestsApi: _param = self._get_http_server_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -759,6 +763,7 @@ class HTTPServerTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -781,6 +786,8 @@ class HTTPServerTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -808,6 +815,7 @@ class HTTPServerTestsApi: _param = self._get_http_server_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -841,6 +849,7 @@ class HTTPServerTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -863,6 +872,8 @@ class HTTPServerTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -890,6 +901,7 @@ class HTTPServerTestsApi: _param = self._get_http_server_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -917,6 +929,7 @@ class HTTPServerTestsApi: self, test_id, aid, + version_id, expand, _request_auth, _content_type, @@ -945,6 +958,10 @@ class HTTPServerTestsApi: _query_params.append(('aid', aid)) + if version_id is not None: + + _query_params.append(('versionId', version_id)) + if expand is not None: _query_params.append(('expand', expand)) diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/page_load_tests_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/page_load_tests_api.py index 8044e429..9efb470f 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/page_load_tests_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/page_load_tests_api.py @@ -677,6 +677,7 @@ class PageLoadTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -699,6 +700,8 @@ class PageLoadTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -726,6 +729,7 @@ class PageLoadTestsApi: _param = self._get_page_load_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -759,6 +763,7 @@ class PageLoadTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -781,6 +786,8 @@ class PageLoadTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -808,6 +815,7 @@ class PageLoadTestsApi: _param = self._get_page_load_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -841,6 +849,7 @@ class PageLoadTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -863,6 +872,8 @@ class PageLoadTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -890,6 +901,7 @@ class PageLoadTestsApi: _param = self._get_page_load_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -917,6 +929,7 @@ class PageLoadTestsApi: self, test_id, aid, + version_id, expand, _request_auth, _content_type, @@ -945,6 +958,10 @@ class PageLoadTestsApi: _query_params.append(('aid', aid)) + if version_id is not None: + + _query_params.append(('versionId', version_id)) + if expand is not None: _query_params.append(('expand', expand)) diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/sip_server_tests_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/sip_server_tests_api.py index 36ff065f..a2c0e4e9 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/sip_server_tests_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/sip_server_tests_api.py @@ -674,6 +674,7 @@ class SIPServerTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -696,6 +697,8 @@ class SIPServerTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -723,6 +726,7 @@ class SIPServerTestsApi: _param = self._get_sip_server_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -756,6 +760,7 @@ class SIPServerTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -778,6 +783,8 @@ class SIPServerTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -805,6 +812,7 @@ class SIPServerTestsApi: _param = self._get_sip_server_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -838,6 +846,7 @@ class SIPServerTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -860,6 +869,8 @@ class SIPServerTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -887,6 +898,7 @@ class SIPServerTestsApi: _param = self._get_sip_server_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -914,6 +926,7 @@ class SIPServerTestsApi: self, test_id, aid, + version_id, expand, _request_auth, _content_type, @@ -942,6 +955,10 @@ class SIPServerTestsApi: _query_params.append(('aid', aid)) + if version_id is not None: + + _query_params.append(('versionId', version_id)) + if expand is not None: _query_params.append(('expand', expand)) diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/tests_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/tests_api.py index a1631ecf..f90b786e 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/tests_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/tests_api.py @@ -21,6 +21,7 @@ import thousandeyes_sdk.tests.models from pydantic import Field, StrictStr from typing import Optional from typing_extensions import Annotated +from thousandeyes_sdk.tests.models.test_version_history_response import TestVersionHistoryResponse from thousandeyes_sdk.tests.models.tests import Tests from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized @@ -42,6 +43,313 @@ class TestsApi: self.api_client = api_client + @validate_call + def get_test_version_history( + self, + test_id: Annotated[StrictStr, Field(description="Test ID")], + aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=500, strict=True)]], Field(description="The maximum number of version history entries to return. If not specified, the default is 50 or the total number of available versions, whichever is fewer.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TestVersionHistoryResponse: + """Get test version history + + Retrieve the version history of a specific test. + + :param test_id: Test ID (required) + :type test_id: str + :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. + :type aid: str + :param limit: The maximum number of version history entries to return. If not specified, the default is 50 or the total number of available versions, whichever is fewer. + :type limit: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_test_version_history_serialize( + test_id=test_id, + aid=aid, + limit=limit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TestVersionHistoryResponse", + '401': "UnauthorizedError", + '403': "Error", + '404': "Error", + '500': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + models=thousandeyes_sdk.tests.models, + ).data + + + @validate_call + def get_test_version_history_with_http_info( + self, + test_id: Annotated[StrictStr, Field(description="Test ID")], + aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=500, strict=True)]], Field(description="The maximum number of version history entries to return. If not specified, the default is 50 or the total number of available versions, whichever is fewer.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TestVersionHistoryResponse]: + """Get test version history + + Retrieve the version history of a specific test. + + :param test_id: Test ID (required) + :type test_id: str + :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. + :type aid: str + :param limit: The maximum number of version history entries to return. If not specified, the default is 50 or the total number of available versions, whichever is fewer. + :type limit: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_test_version_history_serialize( + test_id=test_id, + aid=aid, + limit=limit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TestVersionHistoryResponse", + '401': "UnauthorizedError", + '403': "Error", + '404': "Error", + '500': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + models=thousandeyes_sdk.tests.models, + ) + + + @validate_call + def get_test_version_history_without_preload_content( + self, + test_id: Annotated[StrictStr, Field(description="Test ID")], + aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + limit: Annotated[Optional[Annotated[int, Field(le=500, strict=True)]], Field(description="The maximum number of version history entries to return. If not specified, the default is 50 or the total number of available versions, whichever is fewer.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get test version history + + Retrieve the version history of a specific test. + + :param test_id: Test ID (required) + :type test_id: str + :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. + :type aid: str + :param limit: The maximum number of version history entries to return. If not specified, the default is 50 or the total number of available versions, whichever is fewer. + :type limit: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_test_version_history_serialize( + test_id=test_id, + aid=aid, + limit=limit, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TestVersionHistoryResponse", + '401': "UnauthorizedError", + '403': "Error", + '404': "Error", + '500': "Error", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_test_version_history_serialize( + self, + test_id, + aid, + limit, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if test_id is not None: + _path_params['testId'] = test_id + # process the query parameters + if aid is not None: + + _query_params.append(('aid', aid)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json', + 'application/problem+json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/tests/{testId}/history', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def get_tests( self, diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/voice_tests_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/voice_tests_api.py index 3020e8b5..fbfd93b9 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/voice_tests_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/voice_tests_api.py @@ -677,6 +677,7 @@ class VoiceTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -699,6 +700,8 @@ class VoiceTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -726,6 +729,7 @@ class VoiceTestsApi: _param = self._get_voice_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -759,6 +763,7 @@ class VoiceTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -781,6 +786,8 @@ class VoiceTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -808,6 +815,7 @@ class VoiceTestsApi: _param = self._get_voice_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -841,6 +849,7 @@ class VoiceTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -863,6 +872,8 @@ class VoiceTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -890,6 +901,7 @@ class VoiceTestsApi: _param = self._get_voice_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -917,6 +929,7 @@ class VoiceTestsApi: self, test_id, aid, + version_id, expand, _request_auth, _content_type, @@ -945,6 +958,10 @@ class VoiceTestsApi: _query_params.append(('aid', aid)) + if version_id is not None: + + _query_params.append(('versionId', version_id)) + if expand is not None: _query_params.append(('expand', expand)) diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/web_transaction_tests_api.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/web_transaction_tests_api.py index ddb19835..f60ded30 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/web_transaction_tests_api.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/api/web_transaction_tests_api.py @@ -677,6 +677,7 @@ class WebTransactionTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -699,6 +700,8 @@ class WebTransactionTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -726,6 +729,7 @@ class WebTransactionTestsApi: _param = self._get_web_transactions_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -759,6 +763,7 @@ class WebTransactionTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -781,6 +786,8 @@ class WebTransactionTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -808,6 +815,7 @@ class WebTransactionTestsApi: _param = self._get_web_transactions_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -841,6 +849,7 @@ class WebTransactionTestsApi: self, test_id: Annotated[StrictStr, Field(description="Test ID")], aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None, + version_id: Annotated[Optional[StrictStr], Field(description="The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned.")] = None, expand: Annotated[Optional[List[ExpandTestOptions]], Field(description="Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query.")] = None, _request_timeout: Union[ None, @@ -863,6 +872,8 @@ class WebTransactionTestsApi: :type test_id: str :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. :type aid: str + :param version_id: The unique identifier for a specific version of the test settings. If provided, returns the test configuration as it existed at that version. To retrieve available version IDs, use the `/tests/{testId}/history` endpoint. If not specified, the current version of the test settings is returned. + :type version_id: str :param expand: Optional parameter on whether or not to expand the test sub-resources. By default no expansion is going to take place if the query parameter is not present. If the user wishes to expand the `agents` sub-resource, they need to pass the `?expand=agent` query. :type expand: List[ExpandTestOptions] :param _request_timeout: timeout setting for this request. If one @@ -890,6 +901,7 @@ class WebTransactionTestsApi: _param = self._get_web_transactions_test_serialize( test_id=test_id, aid=aid, + version_id=version_id, expand=expand, _request_auth=_request_auth, _content_type=_content_type, @@ -917,6 +929,7 @@ class WebTransactionTestsApi: self, test_id, aid, + version_id, expand, _request_auth, _content_type, @@ -945,6 +958,10 @@ class WebTransactionTestsApi: _query_params.append(('aid', aid)) + if version_id is not None: + + _query_params.append(('versionId', version_id)) + if expand is not None: _query_params.append(('expand', expand)) diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/__init__.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/__init__.py index 88bbc1ef..2aca74c9 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/__init__.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/__init__.py @@ -145,6 +145,8 @@ from thousandeyes_sdk.tests.models.test_sip_credentials import TestSipCredential from thousandeyes_sdk.tests.models.test_ssl_version_id import TestSslVersionId from thousandeyes_sdk.tests.models.test_sub_interval import TestSubInterval from thousandeyes_sdk.tests.models.test_type import TestType +from thousandeyes_sdk.tests.models.test_version_history import TestVersionHistory +from thousandeyes_sdk.tests.models.test_version_history_response import TestVersionHistoryResponse from thousandeyes_sdk.tests.models.tests import Tests from thousandeyes_sdk.tests.models.unauthorized_error import UnauthorizedError from thousandeyes_sdk.tests.models.unexpanded_agent_to_agent_test import UnexpandedAgentToAgentTest diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_instant_test.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_instant_test.py index cdbe46b2..c84dc6b6 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_instant_test.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_instant_test.py @@ -49,7 +49,10 @@ class ApiInstantTest(BaseModel): links: Optional[TestLinks] = Field(default=None, alias="_links") labels: Optional[List[TestLabel]] = Field(default=None, description="Labels to which the test is assigned. This field is not returned for Instant Tests.") shared_with_accounts: Optional[List[SharedWithAccount]] = Field(default=None, alias="sharedWithAccounts") + client_certificate: Optional[StrictStr] = Field(default=None, description="String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate.", alias="clientCertificate") + client_cert_domains_allow_list: Optional[StrictStr] = Field(default=None, description="Comma separated list of domains to send the client certificate.", alias="clientCertDomainsAllowList") collect_proxy_network_data: Optional[StrictBool] = Field(default=False, description="Indicates whether network data to the proxy should be collected.", alias="collectProxyNetworkData") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") follow_redirects: Optional[StrictBool] = Field(default=True, description="To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`.", alias="followRedirects") mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements") network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements") @@ -67,7 +70,7 @@ class ApiInstantTest(BaseModel): time_limit: Optional[Annotated[int, Field(le=180, strict=True, ge=5)]] = Field(default=30, description="Time limit for transaction in seconds. Exceeding this limit will result in a Timeout error.", alias="timeLimit") url: StrictStr = Field(description="Target for the test.") credentials: Optional[List[StrictStr]] = Field(default=None, description="Contains a list of credential IDs (get `credentialId` from `/credentials` endpoint).") - __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "collectProxyNetworkData", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "credentials"] + __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "clientCertificate", "clientCertDomainsAllowList", "collectProxyNetworkData", "distributedTracing", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "credentials"] model_config = ConfigDict( populate_by_name=True, @@ -185,7 +188,10 @@ class ApiInstantTest(BaseModel): "_links": TestLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None, "labels": [TestLabel.from_dict(_item) for _item in obj["labels"]] if obj.get("labels") is not None else None, "sharedWithAccounts": [SharedWithAccount.from_dict(_item) for _item in obj["sharedWithAccounts"]] if obj.get("sharedWithAccounts") is not None else None, + "clientCertificate": obj.get("clientCertificate"), + "clientCertDomainsAllowList": obj.get("clientCertDomainsAllowList"), "collectProxyNetworkData": obj.get("collectProxyNetworkData") if obj.get("collectProxyNetworkData") is not None else False, + "distributedTracing": obj.get("distributedTracing"), "followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True, "mtuMeasurements": obj.get("mtuMeasurements"), "networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True, diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_properties.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_properties.py index 64d02d70..471e1e9c 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_properties.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_properties.py @@ -32,7 +32,10 @@ class ApiProperties(BaseModel): """ ApiProperties """ # noqa: E501 + client_certificate: Optional[StrictStr] = Field(default=None, description="String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate.", alias="clientCertificate") + client_cert_domains_allow_list: Optional[StrictStr] = Field(default=None, description="Comma separated list of domains to send the client certificate.", alias="clientCertDomainsAllowList") collect_proxy_network_data: Optional[StrictBool] = Field(default=False, description="Indicates whether network data to the proxy should be collected.", alias="collectProxyNetworkData") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") follow_redirects: Optional[StrictBool] = Field(default=True, description="To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`.", alias="followRedirects") mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements") network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements") @@ -48,9 +51,9 @@ class ApiProperties(BaseModel): ssl_version_id: Optional[TestSslVersionId] = Field(default=None, alias="sslVersionId") target_time: Optional[Annotated[int, Field(le=60, strict=True, ge=0)]] = Field(default=None, description="Target time for completion metric, defaults to 50% of time limit specified in seconds. (0 means default behavior)", alias="targetTime") time_limit: Optional[Annotated[int, Field(le=180, strict=True, ge=5)]] = Field(default=30, description="Time limit for transaction in seconds. Exceeding this limit will result in a Timeout error.", alias="timeLimit") - url: StrictStr = Field(description="Target for the test.") type: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["collectProxyNetworkData", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "type"] + url: StrictStr = Field(description="Target for the test.") + __properties: ClassVar[List[str]] = ["clientCertificate", "clientCertDomainsAllowList", "collectProxyNetworkData", "distributedTracing", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "type", "url"] model_config = ConfigDict( populate_by_name=True, @@ -120,7 +123,10 @@ class ApiProperties(BaseModel): return cls.model_validate(obj) _obj = cls.model_validate({ + "clientCertificate": obj.get("clientCertificate"), + "clientCertDomainsAllowList": obj.get("clientCertDomainsAllowList"), "collectProxyNetworkData": obj.get("collectProxyNetworkData") if obj.get("collectProxyNetworkData") is not None else False, + "distributedTracing": obj.get("distributedTracing"), "followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True, "mtuMeasurements": obj.get("mtuMeasurements"), "networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True, @@ -136,8 +142,8 @@ class ApiProperties(BaseModel): "sslVersionId": obj.get("sslVersionId"), "targetTime": obj.get("targetTime"), "timeLimit": obj.get("timeLimit") if obj.get("timeLimit") is not None else 30, - "url": obj.get("url"), - "type": obj.get("type") + "type": obj.get("type"), + "url": obj.get("url") }) return _obj diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_request.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_request.py index 7eb8e738..c275873d 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_request.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_request.py @@ -48,8 +48,9 @@ class ApiRequest(BaseModel): url: StrictStr = Field(description="Request url. Supports variables in the format `{{variableName}}`.") username: Optional[StrictStr] = Field(default=None, description="The username if `authType = basic`.") variables: Optional[List[ApiRequestVariable]] = Field(default=None, description="Array of API post request variable objects.") + verify_certificate: Optional[StrictBool] = Field(default=False, description="Ignore or acknowledge certificate errors. Set to false to ignore certificate errors.", alias="verifyCertificate") wait_time_ms: Optional[StrictInt] = Field(default=None, description="Post request delay before executing the next API requests, in milliseconds.", alias="waitTimeMs") - __properties: ClassVar[List[str]] = ["assertions", "authType", "bearerToken", "body", "clientAuthentication", "clientId", "clientSecret", "collectApiResponse", "headers", "method", "name", "password", "scope", "tokenUrl", "url", "username", "variables", "waitTimeMs"] + __properties: ClassVar[List[str]] = ["assertions", "authType", "bearerToken", "body", "clientAuthentication", "clientId", "clientSecret", "collectApiResponse", "headers", "method", "name", "password", "scope", "tokenUrl", "url", "username", "variables", "verifyCertificate", "waitTimeMs"] model_config = ConfigDict( populate_by_name=True, @@ -141,6 +142,7 @@ class ApiRequest(BaseModel): "url": obj.get("url"), "username": obj.get("username"), "variables": [ApiRequestVariable.from_dict(_item) for _item in obj["variables"]] if obj.get("variables") is not None else None, + "verifyCertificate": obj.get("verifyCertificate") if obj.get("verifyCertificate") is not None else False, "waitTimeMs": obj.get("waitTimeMs") }) return _obj diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_test.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_test.py index 030261be..db717e4d 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_test.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_test.py @@ -56,7 +56,10 @@ class ApiTest(BaseModel): links: Optional[TestLinks] = Field(default=None, alias="_links") labels: Optional[List[TestLabel]] = Field(default=None, description="Labels to which the test is assigned. This field is not returned for Instant Tests.") shared_with_accounts: Optional[List[SharedWithAccount]] = Field(default=None, alias="sharedWithAccounts") + client_certificate: Optional[StrictStr] = Field(default=None, description="String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate.", alias="clientCertificate") + client_cert_domains_allow_list: Optional[StrictStr] = Field(default=None, description="Comma separated list of domains to send the client certificate.", alias="clientCertDomainsAllowList") collect_proxy_network_data: Optional[StrictBool] = Field(default=False, description="Indicates whether network data to the proxy should be collected.", alias="collectProxyNetworkData") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") follow_redirects: Optional[StrictBool] = Field(default=True, description="To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`.", alias="followRedirects") mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements") network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements") @@ -77,7 +80,7 @@ class ApiTest(BaseModel): bgp_measurements: Optional[StrictBool] = Field(default=True, description="Set to `true` to enable bgp measurements.", alias="bgpMeasurements") use_public_bgp: Optional[StrictBool] = Field(default=True, description="Indicate if all available public BGP monitors should be used, when ommited defaults to `bgpMeasurements` value.", alias="usePublicBgp") monitors: Optional[List[Monitor]] = Field(default=None, description="Contains list of enabled BGP monitors.") - __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "collectProxyNetworkData", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "credentials", "bgpMeasurements", "usePublicBgp", "monitors"] + __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "clientCertificate", "clientCertDomainsAllowList", "collectProxyNetworkData", "distributedTracing", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "credentials", "bgpMeasurements", "usePublicBgp", "monitors"] model_config = ConfigDict( populate_by_name=True, @@ -215,7 +218,10 @@ class ApiTest(BaseModel): "_links": TestLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None, "labels": [TestLabel.from_dict(_item) for _item in obj["labels"]] if obj.get("labels") is not None else None, "sharedWithAccounts": [SharedWithAccount.from_dict(_item) for _item in obj["sharedWithAccounts"]] if obj.get("sharedWithAccounts") is not None else None, + "clientCertificate": obj.get("clientCertificate"), + "clientCertDomainsAllowList": obj.get("clientCertDomainsAllowList"), "collectProxyNetworkData": obj.get("collectProxyNetworkData") if obj.get("collectProxyNetworkData") is not None else False, + "distributedTracing": obj.get("distributedTracing"), "followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True, "mtuMeasurements": obj.get("mtuMeasurements"), "networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True, diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_test_request.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_test_request.py index 97f9bd96..706eabba 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_test_request.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_test_request.py @@ -54,7 +54,10 @@ class ApiTestRequest(BaseModel): links: Optional[TestLinks] = Field(default=None, alias="_links") labels: Optional[List[StrictStr]] = Field(default=None, description="Contains list of test label IDs (get `labelId` from `/labels` endpoint)") shared_with_accounts: Optional[List[StrictStr]] = Field(default=None, description="Contains list of account group IDs. Test is shared with the listed account groups (get `aid` from `/account-groups` endpoint)", alias="sharedWithAccounts") + client_certificate: Optional[StrictStr] = Field(default=None, description="String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate.", alias="clientCertificate") + client_cert_domains_allow_list: Optional[StrictStr] = Field(default=None, description="Comma separated list of domains to send the client certificate.", alias="clientCertDomainsAllowList") collect_proxy_network_data: Optional[StrictBool] = Field(default=False, description="Indicates whether network data to the proxy should be collected.", alias="collectProxyNetworkData") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") follow_redirects: Optional[StrictBool] = Field(default=True, description="To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`.", alias="followRedirects") mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements") network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements") @@ -76,7 +79,7 @@ class ApiTestRequest(BaseModel): use_public_bgp: Optional[StrictBool] = Field(default=True, description="Indicate if all available public BGP monitors should be used, when ommited defaults to `bgpMeasurements` value.", alias="usePublicBgp") monitors: Optional[List[Monitor]] = Field(default=None, description="Contains list of enabled BGP monitors.") agents: List[TestAgentRequest] = Field(description="Contains list of Agent IDs (get `agentId` from `/agents` endpoint).") - __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "collectProxyNetworkData", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "credentials", "bgpMeasurements", "usePublicBgp", "monitors", "agents"] + __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "clientCertificate", "clientCertDomainsAllowList", "collectProxyNetworkData", "distributedTracing", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "credentials", "bgpMeasurements", "usePublicBgp", "monitors", "agents"] model_config = ConfigDict( populate_by_name=True, @@ -196,7 +199,10 @@ class ApiTestRequest(BaseModel): "_links": TestLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None, "labels": obj.get("labels"), "sharedWithAccounts": obj.get("sharedWithAccounts"), + "clientCertificate": obj.get("clientCertificate"), + "clientCertDomainsAllowList": obj.get("clientCertDomainsAllowList"), "collectProxyNetworkData": obj.get("collectProxyNetworkData") if obj.get("collectProxyNetworkData") is not None else False, + "distributedTracing": obj.get("distributedTracing"), "followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True, "mtuMeasurements": obj.get("mtuMeasurements"), "networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True, diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_test_response.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_test_response.py index 1c29e248..ec66f13c 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_test_response.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/api_test_response.py @@ -57,7 +57,10 @@ class ApiTestResponse(BaseModel): links: Optional[TestLinks] = Field(default=None, alias="_links") labels: Optional[List[TestLabel]] = Field(default=None, description="Labels to which the test is assigned. This field is not returned for Instant Tests.") shared_with_accounts: Optional[List[SharedWithAccount]] = Field(default=None, alias="sharedWithAccounts") + client_certificate: Optional[StrictStr] = Field(default=None, description="String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate.", alias="clientCertificate") + client_cert_domains_allow_list: Optional[StrictStr] = Field(default=None, description="Comma separated list of domains to send the client certificate.", alias="clientCertDomainsAllowList") collect_proxy_network_data: Optional[StrictBool] = Field(default=False, description="Indicates whether network data to the proxy should be collected.", alias="collectProxyNetworkData") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") follow_redirects: Optional[StrictBool] = Field(default=True, description="To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`.", alias="followRedirects") mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements") network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements") @@ -79,7 +82,7 @@ class ApiTestResponse(BaseModel): use_public_bgp: Optional[StrictBool] = Field(default=True, description="Indicate if all available public BGP monitors should be used, when ommited defaults to `bgpMeasurements` value.", alias="usePublicBgp") monitors: Optional[List[Monitor]] = Field(default=None, description="Contains list of enabled BGP monitors.") agents: Optional[List[AgentResponse]] = Field(default=None, description="Contains list of agents.") - __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "collectProxyNetworkData", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "credentials", "bgpMeasurements", "usePublicBgp", "monitors", "agents"] + __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "clientCertificate", "clientCertDomainsAllowList", "collectProxyNetworkData", "distributedTracing", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "credentials", "bgpMeasurements", "usePublicBgp", "monitors", "agents"] model_config = ConfigDict( populate_by_name=True, @@ -224,7 +227,10 @@ class ApiTestResponse(BaseModel): "_links": TestLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None, "labels": [TestLabel.from_dict(_item) for _item in obj["labels"]] if obj.get("labels") is not None else None, "sharedWithAccounts": [SharedWithAccount.from_dict(_item) for _item in obj["sharedWithAccounts"]] if obj.get("sharedWithAccounts") is not None else None, + "clientCertificate": obj.get("clientCertificate"), + "clientCertDomainsAllowList": obj.get("clientCertDomainsAllowList"), "collectProxyNetworkData": obj.get("collectProxyNetworkData") if obj.get("collectProxyNetworkData") is not None else False, + "distributedTracing": obj.get("distributedTracing"), "followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True, "mtuMeasurements": obj.get("mtuMeasurements"), "networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True, diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_base_properties.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_base_properties.py index a01a933e..435a7233 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_base_properties.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_base_properties.py @@ -41,6 +41,7 @@ class HttpServerBaseProperties(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -68,7 +69,7 @@ class HttpServerBaseProperties(BaseModel): override_agent_proxy: Optional[StrictBool] = Field(default=False, description="Flag indicating if a proxy other than the default should be used. To override the default proxy for agents, set to `true` and specify a value for `overrideProxyId`.", alias="overrideAgentProxy") override_proxy_id: Optional[StrictStr] = Field(default=None, description="ID of the proxy to be used if the default proxy is overridden.", alias="overrideProxyId") collect_proxy_network_data: Optional[StrictBool] = Field(default=False, description="Indicates whether network data to the proxy should be collected.", alias="collectProxyNetworkData") - __properties: ClassVar[List[str]] = ["authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData"] + __properties: ClassVar[List[str]] = ["authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData"] model_config = ConfigDict( populate_by_name=True, @@ -140,6 +141,7 @@ class HttpServerBaseProperties(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_instant_test.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_instant_test.py index 55cf72c5..8ae395bd 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_instant_test.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_instant_test.py @@ -59,6 +59,7 @@ class HttpServerInstantTest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -90,7 +91,7 @@ class HttpServerInstantTest(BaseModel): randomized_start_time: Optional[StrictBool] = Field(default=False, description="Indicates whether agents should randomize the start time in each test round.", alias="randomizedStartTime") post_body: Optional[StrictStr] = Field(default=None, description="Enter the body for the HTTP POST request in this field. No special escaping is necessary. If the post body is provided with content, the `requestMethod` is automatically set to POST.", alias="postBody") ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy") - __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy"] + __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy"] model_config = ConfigDict( populate_by_name=True, @@ -212,6 +213,7 @@ class HttpServerInstantTest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_properties.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_properties.py index 5ff4c10f..6f2419dc 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_properties.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_properties.py @@ -42,6 +42,7 @@ class HttpServerProperties(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -74,7 +75,7 @@ class HttpServerProperties(BaseModel): post_body: Optional[StrictStr] = Field(default=None, description="Enter the body for the HTTP POST request in this field. No special escaping is necessary. If the post body is provided with content, the `requestMethod` is automatically set to POST.", alias="postBody") ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy") type: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy", "type"] + __properties: ClassVar[List[str]] = ["authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy", "type"] model_config = ConfigDict( populate_by_name=True, @@ -148,6 +149,7 @@ class HttpServerProperties(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_test.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_test.py index d599d3fb..77ccf50e 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_test.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_test.py @@ -66,6 +66,7 @@ class HttpServerTest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -100,7 +101,7 @@ class HttpServerTest(BaseModel): bgp_measurements: Optional[StrictBool] = Field(default=True, description="Set to `true` to enable bgp measurements.", alias="bgpMeasurements") use_public_bgp: Optional[StrictBool] = Field(default=True, description="Indicate if all available public BGP monitors should be used, when ommited defaults to `bgpMeasurements` value.", alias="usePublicBgp") monitors: Optional[List[Monitor]] = Field(default=None, description="Contains list of enabled BGP monitors.") - __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy", "bgpMeasurements", "usePublicBgp", "monitors"] + __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy", "bgpMeasurements", "usePublicBgp", "monitors"] model_config = ConfigDict( populate_by_name=True, @@ -242,6 +243,7 @@ class HttpServerTest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_test_request.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_test_request.py index 8f09ec77..23c38b23 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_test_request.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_test_request.py @@ -63,6 +63,7 @@ class HttpServerTestRequest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -98,7 +99,7 @@ class HttpServerTestRequest(BaseModel): use_public_bgp: Optional[StrictBool] = Field(default=True, description="Indicate if all available public BGP monitors should be used, when ommited defaults to `bgpMeasurements` value.", alias="usePublicBgp") monitors: Optional[List[StrictStr]] = Field(default=None, description="Contains list of BGP monitor IDs (get `monitorId` from `/monitors` endpoint)") agents: List[TestAgentRequest] = Field(description="Contains list of Agent IDs (get `agentId` from `/agents` endpoint).") - __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy", "bgpMeasurements", "usePublicBgp", "monitors", "agents"] + __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy", "bgpMeasurements", "usePublicBgp", "monitors", "agents"] model_config = ConfigDict( populate_by_name=True, @@ -213,6 +214,7 @@ class HttpServerTestRequest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_test_response.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_test_response.py index 40e15755..4c86cbf2 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_test_response.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/http_server_test_response.py @@ -67,6 +67,7 @@ class HttpServerTestResponse(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -102,7 +103,7 @@ class HttpServerTestResponse(BaseModel): use_public_bgp: Optional[StrictBool] = Field(default=True, description="Indicate if all available public BGP monitors should be used, when ommited defaults to `bgpMeasurements` value.", alias="usePublicBgp") monitors: Optional[List[Monitor]] = Field(default=None, description="Contains list of enabled BGP monitors.") agents: Optional[List[AgentResponse]] = Field(default=None, description="Contains list of agents.") - __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy", "bgpMeasurements", "usePublicBgp", "monitors", "agents"] + __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy", "bgpMeasurements", "usePublicBgp", "monitors", "agents"] model_config = ConfigDict( populate_by_name=True, @@ -251,6 +252,7 @@ class HttpServerTestResponse(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_instant_test.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_instant_test.py index 0df95583..f45fe272 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_instant_test.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_instant_test.py @@ -59,6 +59,7 @@ class PageLoadInstantTest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -96,7 +97,7 @@ class PageLoadInstantTest(BaseModel): browser_language: Optional[StrictStr] = Field(default=None, description="Set one of the available browser language that you want to use to configure the browser.", alias="browserLanguage") page_loading_strategy: Optional[TestPageLoadingStrategy] = Field(default=None, alias="pageLoadingStrategy") randomized_start_time: Optional[StrictBool] = Field(default=False, description="Indicates whether agents should randomize the start time in each test round.", alias="randomizedStartTime") - __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime"] + __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime"] model_config = ConfigDict( populate_by_name=True, @@ -218,6 +219,7 @@ class PageLoadInstantTest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_properties.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_properties.py index e3c217b4..d1b3f060 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_properties.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_properties.py @@ -42,6 +42,7 @@ class PageLoadProperties(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -80,7 +81,7 @@ class PageLoadProperties(BaseModel): page_loading_strategy: Optional[TestPageLoadingStrategy] = Field(default=None, alias="pageLoadingStrategy") randomized_start_time: Optional[StrictBool] = Field(default=False, description="Indicates whether agents should randomize the start time in each test round.", alias="randomizedStartTime") type: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "type"] + __properties: ClassVar[List[str]] = ["authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "type"] model_config = ConfigDict( populate_by_name=True, @@ -154,6 +155,7 @@ class PageLoadProperties(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_test.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_test.py index 28580b6a..9f31bd7b 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_test.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_test.py @@ -68,6 +68,7 @@ class PageLoadTest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -110,7 +111,7 @@ class PageLoadTest(BaseModel): monitors: Optional[List[Monitor]] = Field(default=None, description="Contains list of enabled BGP monitors.") http_interval: Optional[TestHttpInterval] = Field(default=None, alias="httpInterval") subinterval: Optional[TestSubInterval] = None - __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "bgpMeasurements", "usePublicBgp", "monitors", "httpInterval", "subinterval"] + __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "bgpMeasurements", "usePublicBgp", "monitors", "httpInterval", "subinterval"] model_config = ConfigDict( populate_by_name=True, @@ -252,6 +253,7 @@ class PageLoadTest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_test_request.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_test_request.py index 90b8e7a0..c676cc35 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_test_request.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_test_request.py @@ -65,6 +65,7 @@ class PageLoadTestRequest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -108,7 +109,7 @@ class PageLoadTestRequest(BaseModel): http_interval: Optional[TestHttpInterval] = Field(default=None, alias="httpInterval") subinterval: Optional[TestSubInterval] = None agents: List[TestAgentRequest] = Field(description="Contains list of Agent IDs (get `agentId` from `/agents` endpoint).") - __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "bgpMeasurements", "usePublicBgp", "monitors", "httpInterval", "subinterval", "agents"] + __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "bgpMeasurements", "usePublicBgp", "monitors", "httpInterval", "subinterval", "agents"] model_config = ConfigDict( populate_by_name=True, @@ -223,6 +224,7 @@ class PageLoadTestRequest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_test_response.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_test_response.py index b334f745..b2ae8948 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_test_response.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/page_load_test_response.py @@ -69,6 +69,7 @@ class PageLoadTestResponse(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -112,7 +113,7 @@ class PageLoadTestResponse(BaseModel): http_interval: Optional[TestHttpInterval] = Field(default=None, alias="httpInterval") subinterval: Optional[TestSubInterval] = None agents: Optional[List[AgentResponse]] = Field(default=None, description="Contains list of agents.") - __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "bgpMeasurements", "usePublicBgp", "monitors", "httpInterval", "subinterval", "agents"] + __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "bgpMeasurements", "usePublicBgp", "monitors", "httpInterval", "subinterval", "agents"] model_config = ConfigDict( populate_by_name=True, @@ -261,6 +262,7 @@ class PageLoadTestResponse(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/test_version_history.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/test_version_history.py new file mode 100644 index 00000000..313cf913 --- /dev/null +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/test_version_history.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Tests API + + This API allows you to list, create, edit, and delete Network and Application Synthetics tests. + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TestVersionHistory(BaseModel): + """ + TestVersionHistory + """ # noqa: E501 + version_timestamp: Optional[datetime] = Field(default=None, description="Timestamp when this version was created.", alias="versionTimestamp") + test_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the test.", alias="testId") + created_by: Optional[StrictStr] = Field(default=None, description="The user who created the version.", alias="createdBy") + version_id: Optional[StrictStr] = Field(default=None, description="The unique identifier for a specific version of the test settings.", alias="versionId") + __properties: ClassVar[List[str]] = ["versionTimestamp", "testId", "createdBy", "versionId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + extra="allow", + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TestVersionHistory from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TestVersionHistory from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "versionTimestamp": obj.get("versionTimestamp"), + "testId": obj.get("testId"), + "createdBy": obj.get("createdBy"), + "versionId": obj.get("versionId") + }) + return _obj + + diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/test_version_history_response.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/test_version_history_response.py new file mode 100644 index 00000000..a7665967 --- /dev/null +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/test_version_history_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Tests API + + This API allows you to list, create, edit, and delete Network and Application Synthetics tests. + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.tests.models.self_links import SelfLinks +from thousandeyes_sdk.tests.models.test_version_history import TestVersionHistory +from typing import Optional, Set +from typing_extensions import Self + +class TestVersionHistoryResponse(BaseModel): + """ + TestVersionHistoryResponse + """ # noqa: E501 + links: Optional[SelfLinks] = Field(default=None, alias="_links") + test_version_history: Optional[List[TestVersionHistory]] = Field(default=None, alias="testVersionHistory") + __properties: ClassVar[List[str]] = ["_links", "testVersionHistory"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + extra="allow", + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TestVersionHistoryResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of links + if self.links: + _dict['_links'] = self.links.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in test_version_history (list) + _items = [] + if self.test_version_history: + for _item in self.test_version_history: + if _item: + _items.append(_item.to_dict()) + _dict['testVersionHistory'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TestVersionHistoryResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "_links": SelfLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None, + "testVersionHistory": [TestVersionHistory.from_dict(_item) for _item in obj["testVersionHistory"]] if obj.get("testVersionHistory") is not None else None + }) + return _obj + + diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/unexpanded_api_test.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/unexpanded_api_test.py index 6cd8d012..d08c51e6 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/unexpanded_api_test.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/unexpanded_api_test.py @@ -49,7 +49,10 @@ class UnexpandedApiTest(BaseModel): test_name: Optional[StrictStr] = Field(default=None, description="The name of the test. Test name must be unique.", alias="testName") type: Optional[StrictStr] = None links: Optional[TestLinks] = Field(default=None, alias="_links") + client_certificate: Optional[StrictStr] = Field(default=None, description="String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate.", alias="clientCertificate") + client_cert_domains_allow_list: Optional[StrictStr] = Field(default=None, description="Comma separated list of domains to send the client certificate.", alias="clientCertDomainsAllowList") collect_proxy_network_data: Optional[StrictBool] = Field(default=False, description="Indicates whether network data to the proxy should be collected.", alias="collectProxyNetworkData") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") follow_redirects: Optional[StrictBool] = Field(default=True, description="To disable following HTTP/301 or HTTP/302 redirect directives, set this parameter to `false`.", alias="followRedirects") mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements") network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements") @@ -68,7 +71,7 @@ class UnexpandedApiTest(BaseModel): url: StrictStr = Field(description="Target for the test.") bgp_measurements: Optional[StrictBool] = Field(default=True, description="Set to `true` to enable bgp measurements.", alias="bgpMeasurements") use_public_bgp: Optional[StrictBool] = Field(default=True, description="Indicate if all available public BGP monitors should be used, when ommited defaults to `bgpMeasurements` value.", alias="usePublicBgp") - __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "collectProxyNetworkData", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "bgpMeasurements", "usePublicBgp"] + __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "clientCertificate", "clientCertDomainsAllowList", "collectProxyNetworkData", "distributedTracing", "followRedirects", "mtuMeasurements", "networkMeasurements", "numPathTraces", "overrideAgentProxy", "overrideProxyId", "pathTraceMode", "predefinedVariables", "probeMode", "protocol", "randomizedStartTime", "requests", "sslVersionId", "targetTime", "timeLimit", "url", "bgpMeasurements", "usePublicBgp"] model_config = ConfigDict( populate_by_name=True, @@ -169,7 +172,10 @@ class UnexpandedApiTest(BaseModel): "testName": obj.get("testName"), "type": obj.get("type"), "_links": TestLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None, + "clientCertificate": obj.get("clientCertificate"), + "clientCertDomainsAllowList": obj.get("clientCertDomainsAllowList"), "collectProxyNetworkData": obj.get("collectProxyNetworkData") if obj.get("collectProxyNetworkData") is not None else False, + "distributedTracing": obj.get("distributedTracing"), "followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True, "mtuMeasurements": obj.get("mtuMeasurements"), "networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True, diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/unexpanded_http_server_test.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/unexpanded_http_server_test.py index 46615650..3a9217ab 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/unexpanded_http_server_test.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/unexpanded_http_server_test.py @@ -59,6 +59,7 @@ class UnexpandedHttpServerTest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -92,7 +93,7 @@ class UnexpandedHttpServerTest(BaseModel): ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy") bgp_measurements: Optional[StrictBool] = Field(default=True, description="Set to `true` to enable bgp measurements.", alias="bgpMeasurements") use_public_bgp: Optional[StrictBool] = Field(default=True, description="Indicate if all available public BGP monitors should be used, when ommited defaults to `bgpMeasurements` value.", alias="usePublicBgp") - __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy", "bgpMeasurements", "usePublicBgp"] + __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "headers", "randomizedStartTime", "postBody", "ipv6Policy", "bgpMeasurements", "usePublicBgp"] model_config = ConfigDict( populate_by_name=True, @@ -197,6 +198,7 @@ class UnexpandedHttpServerTest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/unexpanded_page_load_test.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/unexpanded_page_load_test.py index 4dc9d273..34589f74 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/unexpanded_page_load_test.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/unexpanded_page_load_test.py @@ -61,6 +61,7 @@ class UnexpandedPageLoadTest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -102,7 +103,7 @@ class UnexpandedPageLoadTest(BaseModel): subinterval: Optional[TestSubInterval] = None bgp_measurements: Optional[StrictBool] = Field(default=True, description="Set to `true` to enable bgp measurements.", alias="bgpMeasurements") use_public_bgp: Optional[StrictBool] = Field(default=True, description="Indicate if all available public BGP monitors should be used, when ommited defaults to `bgpMeasurements` value.", alias="usePublicBgp") - __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "httpInterval", "subinterval", "bgpMeasurements", "usePublicBgp"] + __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "httpInterval", "subinterval", "bgpMeasurements", "usePublicBgp"] model_config = ConfigDict( populate_by_name=True, @@ -207,6 +208,7 @@ class UnexpandedPageLoadTest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/unexpanded_web_transaction_test.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/unexpanded_web_transaction_test.py index 2b634eef..7102206c 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/unexpanded_web_transaction_test.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/unexpanded_web_transaction_test.py @@ -60,6 +60,7 @@ class UnexpandedWebTransactionTest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -101,7 +102,7 @@ class UnexpandedWebTransactionTest(BaseModel): subinterval: Optional[TestSubInterval] = None bgp_measurements: Optional[StrictBool] = Field(default=True, description="Set to `true` to enable bgp measurements.", alias="bgpMeasurements") use_public_bgp: Optional[StrictBool] = Field(default=True, description="Indicate if all available public BGP monitors should be used, when ommited defaults to `bgpMeasurements` value.", alias="usePublicBgp") - __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "subinterval", "bgpMeasurements", "usePublicBgp"] + __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "subinterval", "bgpMeasurements", "usePublicBgp"] model_config = ConfigDict( populate_by_name=True, @@ -206,6 +207,7 @@ class UnexpandedWebTransactionTest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_instant_test.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_instant_test.py index 79a7b819..76f94786 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_instant_test.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_instant_test.py @@ -59,6 +59,7 @@ class WebTransactionInstantTest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -98,7 +99,7 @@ class WebTransactionInstantTest(BaseModel): page_loading_strategy: Optional[TestPageLoadingStrategy] = Field(default=None, alias="pageLoadingStrategy") randomized_start_time: Optional[StrictBool] = Field(default=False, description="Indicates whether agents should randomize the start time in each test round.", alias="randomizedStartTime") credentials: Optional[List[StrictStr]] = Field(default=None, description="Contains a list of credential IDs (get `credentialId` from `/credentials` endpoint).") - __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "credentials"] + __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "credentials"] model_config = ConfigDict( populate_by_name=True, @@ -220,6 +221,7 @@ class WebTransactionInstantTest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_properties.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_properties.py index 7c937d4d..16cdaf37 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_properties.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_properties.py @@ -42,6 +42,7 @@ class WebTransactionProperties(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -81,7 +82,7 @@ class WebTransactionProperties(BaseModel): page_loading_strategy: Optional[TestPageLoadingStrategy] = Field(default=None, alias="pageLoadingStrategy") randomized_start_time: Optional[StrictBool] = Field(default=False, description="Indicates whether agents should randomize the start time in each test round.", alias="randomizedStartTime") type: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "type"] + __properties: ClassVar[List[str]] = ["authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "type"] model_config = ConfigDict( populate_by_name=True, @@ -155,6 +156,7 @@ class WebTransactionProperties(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_test.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_test.py index b2b60502..868286f3 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_test.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_test.py @@ -67,6 +67,7 @@ class WebTransactionTest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -110,7 +111,7 @@ class WebTransactionTest(BaseModel): use_public_bgp: Optional[StrictBool] = Field(default=True, description="Indicate if all available public BGP monitors should be used, when ommited defaults to `bgpMeasurements` value.", alias="usePublicBgp") monitors: Optional[List[Monitor]] = Field(default=None, description="Contains list of enabled BGP monitors.") subinterval: Optional[TestSubInterval] = None - __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "credentials", "bgpMeasurements", "usePublicBgp", "monitors", "subinterval"] + __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "credentials", "bgpMeasurements", "usePublicBgp", "monitors", "subinterval"] model_config = ConfigDict( populate_by_name=True, @@ -252,6 +253,7 @@ class WebTransactionTest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_test_request.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_test_request.py index 90052351..c5952248 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_test_request.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_test_request.py @@ -64,6 +64,7 @@ class WebTransactionTestRequest(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -108,7 +109,7 @@ class WebTransactionTestRequest(BaseModel): monitors: Optional[List[StrictStr]] = Field(default=None, description="Contains list of BGP monitor IDs (get `monitorId` from `/monitors` endpoint)") subinterval: Optional[TestSubInterval] = None agents: List[TestAgentRequest] = Field(description="Contains list of Agent IDs (get `agentId` from `/agents` endpoint).") - __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "credentials", "bgpMeasurements", "usePublicBgp", "monitors", "subinterval", "agents"] + __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "credentials", "bgpMeasurements", "usePublicBgp", "monitors", "subinterval", "agents"] model_config = ConfigDict( populate_by_name=True, @@ -223,6 +224,7 @@ class WebTransactionTestRequest(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_test_response.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_test_response.py index bb682701..9b665ea1 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_test_response.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/web_transaction_test_response.py @@ -68,6 +68,7 @@ class WebTransactionTestResponse(BaseModel): content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex") custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders") desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode") + distributed_tracing: Optional[StrictBool] = Field(default=None, description="Adds distributed tracing headers to API requests using B3 and W3C standards.", alias="distributedTracing") download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit") dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride") http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime") @@ -112,7 +113,7 @@ class WebTransactionTestResponse(BaseModel): monitors: Optional[List[Monitor]] = Field(default=None, description="Contains list of enabled BGP monitors.") subinterval: Optional[TestSubInterval] = None agents: Optional[List[AgentResponse]] = Field(default=None, description="Contains list of agents.") - __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "credentials", "bgpMeasurements", "usePublicBgp", "monitors", "subinterval", "agents"] + __properties: ClassVar[List[str]] = ["interval", "alertsEnabled", "enabled", "alertRules", "createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "distributedTracing", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "randomizedStartTime", "credentials", "bgpMeasurements", "usePublicBgp", "monitors", "subinterval", "agents"] model_config = ConfigDict( populate_by_name=True, @@ -261,6 +262,7 @@ class WebTransactionTestResponse(BaseModel): "contentRegex": obj.get("contentRegex"), "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None, "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default', + "distributedTracing": obj.get("distributedTracing"), "downloadLimit": obj.get("downloadLimit"), "dnsOverride": obj.get("dnsOverride"), "httpTargetTime": obj.get("httpTargetTime"), diff --git a/thousandeyes-sdk-tests/test/test_api_tests_api.py b/thousandeyes-sdk-tests/test/test_api_tests_api.py index 7ac05a64..d765acb8 100644 --- a/thousandeyes-sdk-tests/test/test_api_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_api_tests_api.py @@ -32,6 +32,7 @@ class TestAPITestsApi(unittest.TestCase): """Test case for create_api_test request and response models""" request_body_json = """ { + "clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n", "mtuMeasurements" : false, "_links" : { "testResults" : [ { @@ -72,6 +73,7 @@ class TestAPITestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -111,6 +113,7 @@ class TestAPITestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -142,6 +145,7 @@ class TestAPITestsApi(unittest.TestCase): "pathTraceMode" : "classic", "modifiedBy" : "user@user.com", "alertsEnabled" : true, + "clientCertDomainsAllowList" : "www.thousandeyes.com", "testName" : "ThousandEyes Test", "numPathTraces" : 3, "bgpMeasurements" : true, @@ -154,6 +158,7 @@ class TestAPITestsApi(unittest.TestCase): "value" : "ThousandEyesAccountUserName" } ], "liveShare" : false, + "distributedTracing" : false, "savedEvent" : true, "networkMeasurements" : true, "url" : "www.thousandeyes.com", @@ -199,6 +204,7 @@ class TestAPITestsApi(unittest.TestCase): response_body_json = """ { + "clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n", "mtuMeasurements" : false, "_links" : { "testResults" : [ { @@ -267,6 +273,7 @@ class TestAPITestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -306,6 +313,7 @@ class TestAPITestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -337,6 +345,7 @@ class TestAPITestsApi(unittest.TestCase): "pathTraceMode" : "classic", "modifiedBy" : "user@user.com", "alertsEnabled" : true, + "clientCertDomainsAllowList" : "www.thousandeyes.com", "testName" : "ThousandEyes Test", "numPathTraces" : 3, "bgpMeasurements" : true, @@ -349,6 +358,7 @@ class TestAPITestsApi(unittest.TestCase): "value" : "ThousandEyesAccountUserName" } ], "liveShare" : false, + "distributedTracing" : false, "savedEvent" : true, "networkMeasurements" : true, "url" : "www.thousandeyes.com", @@ -433,6 +443,7 @@ class TestAPITestsApi(unittest.TestCase): response_body_json = """ { + "clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n", "mtuMeasurements" : false, "_links" : { "testResults" : [ { @@ -501,6 +512,7 @@ class TestAPITestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -540,6 +552,7 @@ class TestAPITestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -571,6 +584,7 @@ class TestAPITestsApi(unittest.TestCase): "pathTraceMode" : "classic", "modifiedBy" : "user@user.com", "alertsEnabled" : true, + "clientCertDomainsAllowList" : "www.thousandeyes.com", "testName" : "ThousandEyes Test", "numPathTraces" : 3, "bgpMeasurements" : true, @@ -583,6 +597,7 @@ class TestAPITestsApi(unittest.TestCase): "value" : "ThousandEyesAccountUserName" } ], "liveShare" : false, + "distributedTracing" : false, "savedEvent" : true, "networkMeasurements" : true, "url" : "www.thousandeyes.com", @@ -664,6 +679,7 @@ class TestAPITestsApi(unittest.TestCase): response_body_json = """ { "tests" : [ { + "clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n", "mtuMeasurements" : false, "_links" : { "testResults" : [ { @@ -702,6 +718,7 @@ class TestAPITestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -741,6 +758,7 @@ class TestAPITestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -772,6 +790,7 @@ class TestAPITestsApi(unittest.TestCase): "pathTraceMode" : "classic", "modifiedBy" : "user@user.com", "alertsEnabled" : true, + "clientCertDomainsAllowList" : "www.thousandeyes.com", "testName" : "ThousandEyes Test", "numPathTraces" : 3, "bgpMeasurements" : true, @@ -784,6 +803,7 @@ class TestAPITestsApi(unittest.TestCase): "value" : "ThousandEyesAccountUserName" } ], "liveShare" : false, + "distributedTracing" : false, "savedEvent" : true, "networkMeasurements" : true, "url" : "www.thousandeyes.com", @@ -798,6 +818,7 @@ class TestAPITestsApi(unittest.TestCase): "sslVersionId" : "0", "targetTime" : 1 }, { + "clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n", "mtuMeasurements" : false, "_links" : { "testResults" : [ { @@ -836,6 +857,7 @@ class TestAPITestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -875,6 +897,7 @@ class TestAPITestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -906,6 +929,7 @@ class TestAPITestsApi(unittest.TestCase): "pathTraceMode" : "classic", "modifiedBy" : "user@user.com", "alertsEnabled" : true, + "clientCertDomainsAllowList" : "www.thousandeyes.com", "testName" : "ThousandEyes Test", "numPathTraces" : 3, "bgpMeasurements" : true, @@ -918,6 +942,7 @@ class TestAPITestsApi(unittest.TestCase): "value" : "ThousandEyesAccountUserName" } ], "liveShare" : false, + "distributedTracing" : false, "savedEvent" : true, "networkMeasurements" : true, "url" : "www.thousandeyes.com", @@ -954,6 +979,7 @@ class TestAPITestsApi(unittest.TestCase): """Test case for update_api_test request and response models""" request_body_json = """ { + "clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n", "mtuMeasurements" : false, "_links" : { "testResults" : [ { @@ -994,6 +1020,7 @@ class TestAPITestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -1033,6 +1060,7 @@ class TestAPITestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -1064,6 +1092,7 @@ class TestAPITestsApi(unittest.TestCase): "pathTraceMode" : "classic", "modifiedBy" : "user@user.com", "alertsEnabled" : true, + "clientCertDomainsAllowList" : "www.thousandeyes.com", "testName" : "ThousandEyes Test", "numPathTraces" : 3, "bgpMeasurements" : true, @@ -1076,6 +1105,7 @@ class TestAPITestsApi(unittest.TestCase): "value" : "ThousandEyesAccountUserName" } ], "liveShare" : false, + "distributedTracing" : false, "savedEvent" : true, "networkMeasurements" : true, "url" : "www.thousandeyes.com", @@ -1121,6 +1151,7 @@ class TestAPITestsApi(unittest.TestCase): response_body_json = """ { + "clientCertificate" : "-----BEGIN PRIVATE KEY-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END PRIVATE KEY-----\\n-----BEGIN CERTIFICATE-----\\nMIICUTCCAfugAwIBAgIBADANBgkqhkiG9w0BAQQFADBXMQswCQYDVQQGEwJDTjEL\\n-----END CERTIFICATE-----\\n", "mtuMeasurements" : false, "_links" : { "testResults" : [ { @@ -1189,6 +1220,7 @@ class TestAPITestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -1228,6 +1260,7 @@ class TestAPITestsApi(unittest.TestCase): "clientId" : "client-id", "tokenUrl" : "https://id.cisco.com/oauth2/default/v1/token", "method" : "get", + "verifyCertificate" : false, "body" : "body", "url" : "https://api.thousandeyes.com/v7/status", "password" : "basic_pw123", @@ -1259,6 +1292,7 @@ class TestAPITestsApi(unittest.TestCase): "pathTraceMode" : "classic", "modifiedBy" : "user@user.com", "alertsEnabled" : true, + "clientCertDomainsAllowList" : "www.thousandeyes.com", "testName" : "ThousandEyes Test", "numPathTraces" : 3, "bgpMeasurements" : true, @@ -1271,6 +1305,7 @@ class TestAPITestsApi(unittest.TestCase): "value" : "ThousandEyesAccountUserName" } ], "liveShare" : false, + "distributedTracing" : false, "savedEvent" : true, "networkMeasurements" : true, "url" : "www.thousandeyes.com", diff --git a/thousandeyes-sdk-tests/test/test_http_server_tests_api.py b/thousandeyes-sdk-tests/test/test_http_server_tests_api.py index 017875d8..0b35d872 100644 --- a/thousandeyes-sdk-tests/test/test_http_server_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_http_server_tests_api.py @@ -118,6 +118,7 @@ class TestHTTPServerTestsApi(unittest.TestCase): "headers" : [ "header1: value1", "header2: value2" ], "numPathTraces" : 3, "bgpMeasurements" : true, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, @@ -287,6 +288,7 @@ class TestHTTPServerTestsApi(unittest.TestCase): "headers" : [ "header1: value1", "header2: value2" ], "numPathTraces" : 3, "bgpMeasurements" : true, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, @@ -481,6 +483,7 @@ class TestHTTPServerTestsApi(unittest.TestCase): "headers" : [ "header1: value1", "header2: value2" ], "numPathTraces" : 3, "bgpMeasurements" : true, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, @@ -612,6 +615,7 @@ class TestHTTPServerTestsApi(unittest.TestCase): "headers" : [ "header1: value1", "header2: value2" ], "numPathTraces" : 3, "bgpMeasurements" : true, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, @@ -707,6 +711,7 @@ class TestHTTPServerTestsApi(unittest.TestCase): "headers" : [ "header1: value1", "header2: value2" ], "numPathTraces" : 3, "bgpMeasurements" : true, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, @@ -828,6 +833,7 @@ class TestHTTPServerTestsApi(unittest.TestCase): "headers" : [ "header1: value1", "header2: value2" ], "numPathTraces" : 3, "bgpMeasurements" : true, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, @@ -997,6 +1003,7 @@ class TestHTTPServerTestsApi(unittest.TestCase): "headers" : [ "header1: value1", "header2: value2" ], "numPathTraces" : 3, "bgpMeasurements" : true, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, diff --git a/thousandeyes-sdk-tests/test/test_page_load_tests_api.py b/thousandeyes-sdk-tests/test/test_page_load_tests_api.py index 12c0c87e..d650cdea 100644 --- a/thousandeyes-sdk-tests/test/test_page_load_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_page_load_tests_api.py @@ -124,6 +124,7 @@ class TestPageLoadTestsApi(unittest.TestCase): "pageLoadTargetTime" : 10, "numPathTraces" : 3, "bgpMeasurements" : true, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "pageLoadTimeLimit" : 10, @@ -301,6 +302,7 @@ class TestPageLoadTestsApi(unittest.TestCase): "pageLoadTargetTime" : 10, "numPathTraces" : 3, "bgpMeasurements" : true, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "pageLoadTimeLimit" : 10, @@ -503,6 +505,7 @@ class TestPageLoadTestsApi(unittest.TestCase): "pageLoadTargetTime" : 10, "numPathTraces" : 3, "bgpMeasurements" : true, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "pageLoadTimeLimit" : 10, @@ -642,6 +645,7 @@ class TestPageLoadTestsApi(unittest.TestCase): "pageLoadTargetTime" : 10, "numPathTraces" : 3, "bgpMeasurements" : true, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "pageLoadTimeLimit" : 10, @@ -745,6 +749,7 @@ class TestPageLoadTestsApi(unittest.TestCase): "pageLoadTargetTime" : 10, "numPathTraces" : 3, "bgpMeasurements" : true, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "pageLoadTimeLimit" : 10, @@ -874,6 +879,7 @@ class TestPageLoadTestsApi(unittest.TestCase): "pageLoadTargetTime" : 10, "numPathTraces" : 3, "bgpMeasurements" : true, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "pageLoadTimeLimit" : 10, @@ -1051,6 +1057,7 @@ class TestPageLoadTestsApi(unittest.TestCase): "pageLoadTargetTime" : 10, "numPathTraces" : 3, "bgpMeasurements" : true, + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "pageLoadTimeLimit" : 10, diff --git a/thousandeyes-sdk-tests/test/test_tests_api.py b/thousandeyes-sdk-tests/test/test_tests_api.py index 88c3ac11..afe19989 100644 --- a/thousandeyes-sdk-tests/test/test_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_tests_api.py @@ -28,6 +28,40 @@ class TestTestsApi(unittest.TestCase): def tearDown(self) -> None: pass + def test_get_test_version_history_models_validation(self) -> None: + """Test case for get_test_version_history request and response models""" + + response_body_json = """ + { + "_links" : { + "self" : { + "hreflang" : "hreflang", + "templated" : true, + "profile" : "profile", + "name" : "name", + "href" : "https://api.thousandeyes.com/v7/link/to/resource/id", + "type" : "type", + "deprecation" : "deprecation", + "title" : "title" + } + }, + "testVersionHistory" : [ { + "versionId" : "1234", + "versionTimestamp" : "2022-07-17T22:00:54Z", + "createdBy" : "user (user@user.com)", + "testId" : "474276" + }, { + "versionId" : "1234", + "versionTimestamp" : "2022-07-17T22:00:54Z", + "createdBy" : "user (user@user.com)", + "testId" : "474276" + } ] + }""" + + response_loaded_json = json.loads(response_body_json) + response_from_json = thousandeyes_sdk.tests.models.TestVersionHistoryResponse.from_json(response_body_json) + assert_constructed_model_matches_example_json(response_from_json, response_loaded_json) + def test_get_tests_models_validation(self) -> None: """Test case for get_tests request and response models""" diff --git a/thousandeyes-sdk-tests/test/test_web_transaction_tests_api.py b/thousandeyes-sdk-tests/test/test_web_transaction_tests_api.py index 9354378d..fa580dc5 100644 --- a/thousandeyes-sdk-tests/test/test_web_transaction_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_web_transaction_tests_api.py @@ -124,6 +124,7 @@ class TestWebTransactionTestsApi(unittest.TestCase): "numPathTraces" : 3, "bgpMeasurements" : true, "transactionScript" : "if (true) { return true; }", + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, @@ -302,6 +303,7 @@ class TestWebTransactionTestsApi(unittest.TestCase): "numPathTraces" : 3, "bgpMeasurements" : true, "transactionScript" : "if (true) { return true; }", + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, @@ -505,6 +507,7 @@ class TestWebTransactionTestsApi(unittest.TestCase): "numPathTraces" : 3, "bgpMeasurements" : true, "transactionScript" : "if (true) { return true; }", + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, @@ -644,6 +647,7 @@ class TestWebTransactionTestsApi(unittest.TestCase): "numPathTraces" : 3, "bgpMeasurements" : true, "transactionScript" : "if (true) { return true; }", + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, @@ -747,6 +751,7 @@ class TestWebTransactionTestsApi(unittest.TestCase): "numPathTraces" : 3, "bgpMeasurements" : true, "transactionScript" : "if (true) { return true; }", + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, @@ -877,6 +882,7 @@ class TestWebTransactionTestsApi(unittest.TestCase): "numPathTraces" : 3, "bgpMeasurements" : true, "transactionScript" : "if (true) { return true; }", + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, @@ -1055,6 +1061,7 @@ class TestWebTransactionTestsApi(unittest.TestCase): "numPathTraces" : 3, "bgpMeasurements" : true, "transactionScript" : "if (true) { return true; }", + "distributedTracing" : false, "savedEvent" : true, "userAgent" : "curl", "networkMeasurements" : true, diff --git a/thousandeyes-sdk-usage/README.md b/thousandeyes-sdk-usage/README.md index 55c61b70..1c4fe671 100644 --- a/thousandeyes-sdk-usage/README.md +++ b/thousandeyes-sdk-usage/README.md @@ -17,7 +17,7 @@ Refer to the Usage API operations for detailed usage instructions and optional p This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.44 +- API version: 7.0.52 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator