thousandeyes-sdk-instant-tests 1.1.0__py3-none-any.whl → 1.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- thousandeyes_sdk/instant_tests/__init__.py +3 -1
- thousandeyes_sdk/instant_tests/api/agent_to_agent_api.py +0 -1
- thousandeyes_sdk/instant_tests/api/agent_to_server_api.py +0 -1
- thousandeyes_sdk/instant_tests/api/api_api.py +0 -1
- thousandeyes_sdk/instant_tests/api/dns_security_api.py +0 -1
- thousandeyes_sdk/instant_tests/api/dns_server_api.py +0 -1
- thousandeyes_sdk/instant_tests/api/dns_trace_api.py +0 -1
- thousandeyes_sdk/instant_tests/api/ftp_server_api.py +0 -1
- thousandeyes_sdk/instant_tests/api/http_page_load_api.py +0 -1
- thousandeyes_sdk/instant_tests/api/http_server_api.py +0 -1
- thousandeyes_sdk/instant_tests/api/run_api.py +0 -1
- thousandeyes_sdk/instant_tests/api/sip_server_api.py +0 -1
- thousandeyes_sdk/instant_tests/api/voice_api.py +0 -1
- thousandeyes_sdk/instant_tests/api/web_transaction_api.py +0 -1
- thousandeyes_sdk/instant_tests/models/__init__.py +3 -1
- thousandeyes_sdk/instant_tests/models/agent.py +0 -1
- thousandeyes_sdk/instant_tests/models/agent_base.py +0 -1
- thousandeyes_sdk/instant_tests/models/agent_interfaces.py +89 -0
- thousandeyes_sdk/instant_tests/models/agent_to_agent_instant_test.py +0 -1
- thousandeyes_sdk/instant_tests/models/agent_to_agent_instant_test_request.py +0 -1
- thousandeyes_sdk/instant_tests/models/agent_to_agent_properties.py +0 -1
- thousandeyes_sdk/instant_tests/models/agent_to_agent_test_protocol.py +0 -1
- thousandeyes_sdk/instant_tests/models/agent_to_server_instant_test.py +0 -1
- thousandeyes_sdk/instant_tests/models/agent_to_server_instant_test_request.py +0 -1
- thousandeyes_sdk/instant_tests/models/agent_to_server_properties.py +0 -1
- thousandeyes_sdk/instant_tests/models/api_instant_test.py +0 -1
- thousandeyes_sdk/instant_tests/models/api_instant_test_request.py +0 -1
- thousandeyes_sdk/instant_tests/models/api_predefined_variable.py +0 -1
- thousandeyes_sdk/instant_tests/models/api_properties.py +0 -1
- thousandeyes_sdk/instant_tests/models/api_request.py +0 -1
- thousandeyes_sdk/instant_tests/models/api_request_assertion.py +0 -1
- thousandeyes_sdk/instant_tests/models/api_request_assertion_name.py +0 -1
- thousandeyes_sdk/instant_tests/models/api_request_assertion_operator.py +0 -1
- thousandeyes_sdk/instant_tests/models/api_request_auth_type.py +0 -1
- thousandeyes_sdk/instant_tests/models/api_request_header.py +0 -1
- thousandeyes_sdk/instant_tests/models/api_request_method.py +0 -1
- thousandeyes_sdk/instant_tests/models/api_request_variable.py +0 -1
- thousandeyes_sdk/instant_tests/models/cloud_enterprise_agent_type.py +0 -1
- thousandeyes_sdk/instant_tests/models/dns_query_class.py +0 -1
- thousandeyes_sdk/instant_tests/models/dns_sec_instant_test.py +0 -1
- thousandeyes_sdk/instant_tests/models/dns_sec_instant_test_request.py +0 -1
- thousandeyes_sdk/instant_tests/models/dns_sec_properties.py +0 -1
- thousandeyes_sdk/instant_tests/models/dns_server_instant_test.py +0 -1
- thousandeyes_sdk/instant_tests/models/dns_server_instant_test_request.py +0 -1
- thousandeyes_sdk/instant_tests/models/dns_server_properties.py +0 -1
- thousandeyes_sdk/instant_tests/models/dns_servers_request.py +0 -1
- thousandeyes_sdk/instant_tests/models/dns_trace_instant_test.py +0 -1
- thousandeyes_sdk/instant_tests/models/dns_trace_instant_test_request.py +0 -1
- thousandeyes_sdk/instant_tests/models/dns_trace_properties.py +0 -1
- thousandeyes_sdk/instant_tests/models/error.py +0 -1
- thousandeyes_sdk/instant_tests/models/expand.py +0 -1
- thousandeyes_sdk/instant_tests/models/ftp_server_instant_test.py +0 -1
- thousandeyes_sdk/instant_tests/models/ftp_server_properties.py +0 -1
- thousandeyes_sdk/instant_tests/models/ftp_server_request_type.py +0 -1
- thousandeyes_sdk/instant_tests/models/http_server_base_properties.py +21 -4
- thousandeyes_sdk/instant_tests/models/http_server_instant_test.py +19 -6
- thousandeyes_sdk/instant_tests/models/http_server_instant_test_request.py +19 -6
- thousandeyes_sdk/instant_tests/models/http_server_properties.py +19 -6
- thousandeyes_sdk/instant_tests/models/instant_test.py +0 -1
- thousandeyes_sdk/instant_tests/models/instant_test_request.py +0 -1
- thousandeyes_sdk/instant_tests/models/link.py +0 -1
- thousandeyes_sdk/instant_tests/models/o_auth.py +103 -0
- thousandeyes_sdk/instant_tests/models/page_load_instant_test.py +20 -3
- thousandeyes_sdk/instant_tests/models/page_load_instant_test_request.py +20 -3
- thousandeyes_sdk/instant_tests/models/page_load_properties.py +20 -3
- thousandeyes_sdk/instant_tests/models/request_method.py +41 -0
- thousandeyes_sdk/instant_tests/models/server_instant_test_request.py +0 -1
- thousandeyes_sdk/instant_tests/models/shared_with_account.py +0 -1
- thousandeyes_sdk/instant_tests/models/simple_agent.py +0 -1
- thousandeyes_sdk/instant_tests/models/sip_server_instant_test.py +0 -1
- thousandeyes_sdk/instant_tests/models/sip_server_instant_test_request.py +0 -1
- thousandeyes_sdk/instant_tests/models/sip_server_instant_test_request1.py +0 -1
- thousandeyes_sdk/instant_tests/models/sip_server_instant_test_response.py +0 -1
- thousandeyes_sdk/instant_tests/models/sip_server_properties.py +0 -1
- thousandeyes_sdk/instant_tests/models/sip_test_protocol.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_agent.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_auth_type.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_custom_headers.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_direction.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_dns_server.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_dns_transport_protocol.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_dscp_id.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_ipv6_policy.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_label.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_links.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_page_loading_strategy.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_path_trace_mode.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_probe_mode.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_protocol.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_self_link.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_sip_credentials.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_ssl_version_id.py +0 -1
- thousandeyes_sdk/instant_tests/models/test_type.py +0 -1
- thousandeyes_sdk/instant_tests/models/unauthorized_error.py +0 -1
- thousandeyes_sdk/instant_tests/models/unexpanded_instant_test.py +0 -1
- thousandeyes_sdk/instant_tests/models/validation_error.py +0 -1
- thousandeyes_sdk/instant_tests/models/validation_error_item.py +0 -1
- thousandeyes_sdk/instant_tests/models/voice_instant_test.py +0 -1
- thousandeyes_sdk/instant_tests/models/voice_instant_test_request.py +0 -1
- thousandeyes_sdk/instant_tests/models/voice_properties.py +0 -1
- thousandeyes_sdk/instant_tests/models/web_transaction_instant_test.py +20 -3
- thousandeyes_sdk/instant_tests/models/web_transaction_instant_test_request.py +20 -3
- thousandeyes_sdk/instant_tests/models/web_transaction_properties.py +20 -3
- {thousandeyes_sdk_instant_tests-1.1.0.dist-info → thousandeyes_sdk_instant_tests-1.2.0.dist-info}/METADATA +5 -2
- thousandeyes_sdk_instant_tests-1.2.0.dist-info/RECORD +111 -0
- {thousandeyes_sdk_instant_tests-1.1.0.dist-info → thousandeyes_sdk_instant_tests-1.2.0.dist-info}/WHEEL +1 -1
- thousandeyes_sdk_instant_tests-1.1.0.dist-info/RECORD +0 -108
- {thousandeyes_sdk_instant_tests-1.1.0.dist-info → thousandeyes_sdk_instant_tests-1.2.0.dist-info}/LICENSE +0 -0
- {thousandeyes_sdk_instant_tests-1.1.0.dist-info → thousandeyes_sdk_instant_tests-1.2.0.dist-info}/NOTICE +0 -0
- {thousandeyes_sdk_instant_tests-1.1.0.dist-info → thousandeyes_sdk_instant_tests-1.2.0.dist-info}/top_level.txt +0 -0
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
The Instant Tests API endpoint lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 7.0.9
|
9
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
9
|
|
11
10
|
Do not edit the class manually.
|
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
The Instant Tests API endpoint lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 7.0.9
|
9
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
9
|
|
11
10
|
Do not edit the class manually.
|
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
The Instant Tests API endpoint lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 7.0.9
|
9
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
9
|
|
11
10
|
Do not edit the class manually.
|
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
The Instant Tests API endpoint lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 7.0.9
|
9
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
9
|
|
11
10
|
Do not edit the class manually.
|
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
The Instant Tests API endpoint lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 7.0.9
|
9
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
9
|
|
11
10
|
Do not edit the class manually.
|
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
The Instant Tests API endpoint lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 7.0.9
|
9
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
9
|
|
11
10
|
Do not edit the class manually.
|
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
The Instant Tests API endpoint lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 7.0.9
|
9
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
9
|
|
11
10
|
Do not edit the class manually.
|
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
The Instant Tests API endpoint lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 7.0.9
|
9
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
9
|
|
11
10
|
Do not edit the class manually.
|
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
The Instant Tests API endpoint lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 7.0.9
|
9
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
9
|
|
11
10
|
Do not edit the class manually.
|
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
The Instant Tests API endpoint lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 7.0.9
|
9
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
9
|
|
11
10
|
Do not edit the class manually.
|
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
The Instant Tests API endpoint lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 7.0.9
|
9
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
9
|
|
11
10
|
Do not edit the class manually.
|
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
The Instant Tests API endpoint lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 7.0.9
|
9
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
9
|
|
11
10
|
Do not edit the class manually.
|
@@ -18,10 +17,12 @@ import re # noqa: F401
|
|
18
17
|
import json
|
19
18
|
|
20
19
|
from datetime import datetime
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
|
22
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
23
22
|
from typing_extensions import Annotated
|
24
23
|
from thousandeyes_sdk.instant_tests.models.agent import Agent
|
24
|
+
from thousandeyes_sdk.instant_tests.models.agent_interfaces import AgentInterfaces
|
25
|
+
from thousandeyes_sdk.instant_tests.models.o_auth import OAuth
|
25
26
|
from thousandeyes_sdk.instant_tests.models.shared_with_account import SharedWithAccount
|
26
27
|
from thousandeyes_sdk.instant_tests.models.test_auth_type import TestAuthType
|
27
28
|
from thousandeyes_sdk.instant_tests.models.test_custom_headers import TestCustomHeaders
|
@@ -53,11 +54,14 @@ class WebTransactionInstantTest(BaseModel):
|
|
53
54
|
labels: Optional[List[TestLabel]] = None
|
54
55
|
shared_with_accounts: Optional[List[SharedWithAccount]] = Field(default=None, alias="sharedWithAccounts")
|
55
56
|
auth_type: Optional[TestAuthType] = Field(default=None, alias="authType")
|
57
|
+
agent_interfaces: Optional[AgentInterfaces] = Field(default=None, alias="agentInterfaces")
|
56
58
|
bandwidth_measurements: Optional[StrictBool] = Field(default=None, description="Set to `true` to enable bandwidth measurements, only applies to Enterprise agents assigned to the test.", alias="bandwidthMeasurements")
|
57
59
|
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")
|
58
60
|
content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex")
|
59
61
|
custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders")
|
60
62
|
desired_status_code: Optional[StrictStr] = Field(default='200', description="Specify the HTTP status code value that indicates a successful response.", alias="desiredStatusCode")
|
63
|
+
download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit")
|
64
|
+
dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride")
|
61
65
|
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")
|
62
66
|
http_time_limit: Optional[Annotated[int, Field(le=60, strict=True, ge=5)]] = Field(default=5, description="HTTP time limit in seconds.", alias="httpTimeLimit")
|
63
67
|
http_version: Optional[Annotated[int, Field(le=2, strict=True, ge=1)]] = Field(default=2, description="HTTP protocol version. Set to '2' to prefer HTTP/2, or '1' to use only HTTP/1.1.", alias="httpVersion")
|
@@ -65,6 +69,7 @@ class WebTransactionInstantTest(BaseModel):
|
|
65
69
|
mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements")
|
66
70
|
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
71
|
num_path_traces: Optional[Annotated[int, Field(le=10, strict=True, ge=1)]] = Field(default=3, description="Number of path traces executed by the agent.", alias="numPathTraces")
|
72
|
+
o_auth: Optional[OAuth] = Field(default=None, alias="oAuth")
|
68
73
|
password: Optional[StrictStr] = Field(default=None, description="Password for Basic/NTLM authentication.")
|
69
74
|
path_trace_mode: Optional[TestPathTraceMode] = Field(default=None, alias="pathTraceMode")
|
70
75
|
probe_mode: Optional[TestProbeMode] = Field(default=None, alias="probeMode")
|
@@ -81,6 +86,7 @@ class WebTransactionInstantTest(BaseModel):
|
|
81
86
|
fixed_packet_rate: Optional[Annotated[int, Field(le=100, strict=True, ge=0)]] = Field(default=None, description="Sets packets rate sent to measure the network in packets per second.", alias="fixedPacketRate")
|
82
87
|
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")
|
83
88
|
override_proxy_id: Optional[StrictStr] = Field(default=None, description="ID of the proxy to be used if the default proxy is overridden.", alias="overrideProxyId")
|
89
|
+
collect_proxy_network_data: Optional[StrictBool] = Field(default=False, description="Indicates whether network data to the proxy should be collected.", alias="collectProxyNetworkData")
|
84
90
|
emulated_device_id: Optional[StrictStr] = Field(default=None, description="ID of the emulated device, if specified when the test was created.", alias="emulatedDeviceId")
|
85
91
|
target_time: Optional[Annotated[int, Field(le=60, strict=True, ge=0)]] = Field(default=None, description="Target completion time. The default is 50% of the specified time limit in seconds. (Set to 0 to use the default behavior).", alias="targetTime")
|
86
92
|
time_limit: Optional[Annotated[int, Field(le=180, strict=True, ge=5)]] = Field(default=30, description="Time limit for transaction in seconds.", alias="timeLimit")
|
@@ -93,7 +99,7 @@ class WebTransactionInstantTest(BaseModel):
|
|
93
99
|
page_loading_strategy: Optional[TestPageLoadingStrategy] = Field(default=None, alias="pageLoadingStrategy")
|
94
100
|
agents: Optional[List[Agent]] = Field(default=None, description="Contains list of agents.")
|
95
101
|
credentials: Optional[List[StrictStr]] = Field(default=None, description="Contains a list of credential IDs (get `credentialId` from `/credentials` endpoint).")
|
96
|
-
__properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "agents", "credentials"]
|
102
|
+
__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", "agents", "credentials"]
|
97
103
|
|
98
104
|
model_config = ConfigDict(
|
99
105
|
populate_by_name=True,
|
@@ -176,9 +182,15 @@ class WebTransactionInstantTest(BaseModel):
|
|
176
182
|
if _item:
|
177
183
|
_items.append(_item.to_dict())
|
178
184
|
_dict['sharedWithAccounts'] = _items
|
185
|
+
# override the default output from pydantic by calling `to_dict()` of agent_interfaces
|
186
|
+
if self.agent_interfaces:
|
187
|
+
_dict['agentInterfaces'] = self.agent_interfaces.to_dict()
|
179
188
|
# override the default output from pydantic by calling `to_dict()` of custom_headers
|
180
189
|
if self.custom_headers:
|
181
190
|
_dict['customHeaders'] = self.custom_headers.to_dict()
|
191
|
+
# override the default output from pydantic by calling `to_dict()` of o_auth
|
192
|
+
if self.o_auth:
|
193
|
+
_dict['oAuth'] = self.o_auth.to_dict()
|
182
194
|
# override the default output from pydantic by calling `to_dict()` of each item in agents (list)
|
183
195
|
_items = []
|
184
196
|
if self.agents:
|
@@ -212,11 +224,14 @@ class WebTransactionInstantTest(BaseModel):
|
|
212
224
|
"labels": [TestLabel.from_dict(_item) for _item in obj["labels"]] if obj.get("labels") is not None else None,
|
213
225
|
"sharedWithAccounts": [SharedWithAccount.from_dict(_item) for _item in obj["sharedWithAccounts"]] if obj.get("sharedWithAccounts") is not None else None,
|
214
226
|
"authType": obj.get("authType"),
|
227
|
+
"agentInterfaces": AgentInterfaces.from_dict(obj["agentInterfaces"]) if obj.get("agentInterfaces") is not None else None,
|
215
228
|
"bandwidthMeasurements": obj.get("bandwidthMeasurements"),
|
216
229
|
"clientCertificate": obj.get("clientCertificate"),
|
217
230
|
"contentRegex": obj.get("contentRegex"),
|
218
231
|
"customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None,
|
219
232
|
"desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else '200',
|
233
|
+
"downloadLimit": obj.get("downloadLimit"),
|
234
|
+
"dnsOverride": obj.get("dnsOverride"),
|
220
235
|
"httpTargetTime": obj.get("httpTargetTime"),
|
221
236
|
"httpTimeLimit": obj.get("httpTimeLimit") if obj.get("httpTimeLimit") is not None else 5,
|
222
237
|
"httpVersion": obj.get("httpVersion") if obj.get("httpVersion") is not None else 2,
|
@@ -224,6 +239,7 @@ class WebTransactionInstantTest(BaseModel):
|
|
224
239
|
"mtuMeasurements": obj.get("mtuMeasurements"),
|
225
240
|
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
|
226
241
|
"numPathTraces": obj.get("numPathTraces") if obj.get("numPathTraces") is not None else 3,
|
242
|
+
"oAuth": OAuth.from_dict(obj["oAuth"]) if obj.get("oAuth") is not None else None,
|
227
243
|
"password": obj.get("password"),
|
228
244
|
"pathTraceMode": obj.get("pathTraceMode"),
|
229
245
|
"probeMode": obj.get("probeMode"),
|
@@ -240,6 +256,7 @@ class WebTransactionInstantTest(BaseModel):
|
|
240
256
|
"fixedPacketRate": obj.get("fixedPacketRate"),
|
241
257
|
"overrideAgentProxy": obj.get("overrideAgentProxy") if obj.get("overrideAgentProxy") is not None else False,
|
242
258
|
"overrideProxyId": obj.get("overrideProxyId"),
|
259
|
+
"collectProxyNetworkData": obj.get("collectProxyNetworkData") if obj.get("collectProxyNetworkData") is not None else False,
|
243
260
|
"emulatedDeviceId": obj.get("emulatedDeviceId"),
|
244
261
|
"targetTime": obj.get("targetTime"),
|
245
262
|
"timeLimit": obj.get("timeLimit") if obj.get("timeLimit") is not None else 30,
|
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
The Instant Tests API endpoint lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 7.0.9
|
9
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
9
|
|
11
10
|
Do not edit the class manually.
|
@@ -18,9 +17,11 @@ import re # noqa: F401
|
|
18
17
|
import json
|
19
18
|
|
20
19
|
from datetime import datetime
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
|
22
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
23
22
|
from typing_extensions import Annotated
|
23
|
+
from thousandeyes_sdk.instant_tests.models.agent_interfaces import AgentInterfaces
|
24
|
+
from thousandeyes_sdk.instant_tests.models.o_auth import OAuth
|
24
25
|
from thousandeyes_sdk.instant_tests.models.test_agent import TestAgent
|
25
26
|
from thousandeyes_sdk.instant_tests.models.test_auth_type import TestAuthType
|
26
27
|
from thousandeyes_sdk.instant_tests.models.test_custom_headers import TestCustomHeaders
|
@@ -51,11 +52,14 @@ class WebTransactionInstantTestRequest(BaseModel):
|
|
51
52
|
labels: Optional[List[StrictStr]] = Field(default=None, description="A list of test label identifiers (get `labelId` from `/labels` endpoint).")
|
52
53
|
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")
|
53
54
|
auth_type: Optional[TestAuthType] = Field(default=None, alias="authType")
|
55
|
+
agent_interfaces: Optional[AgentInterfaces] = Field(default=None, alias="agentInterfaces")
|
54
56
|
bandwidth_measurements: Optional[StrictBool] = Field(default=None, description="Set to `true` to enable bandwidth measurements, only applies to Enterprise agents assigned to the test.", alias="bandwidthMeasurements")
|
55
57
|
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")
|
56
58
|
content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex")
|
57
59
|
custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders")
|
58
60
|
desired_status_code: Optional[StrictStr] = Field(default='200', description="Specify the HTTP status code value that indicates a successful response.", alias="desiredStatusCode")
|
61
|
+
download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit")
|
62
|
+
dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride")
|
59
63
|
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")
|
60
64
|
http_time_limit: Optional[Annotated[int, Field(le=60, strict=True, ge=5)]] = Field(default=5, description="HTTP time limit in seconds.", alias="httpTimeLimit")
|
61
65
|
http_version: Optional[Annotated[int, Field(le=2, strict=True, ge=1)]] = Field(default=2, description="HTTP protocol version. Set to '2' to prefer HTTP/2, or '1' to use only HTTP/1.1.", alias="httpVersion")
|
@@ -63,6 +67,7 @@ class WebTransactionInstantTestRequest(BaseModel):
|
|
63
67
|
mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements")
|
64
68
|
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")
|
65
69
|
num_path_traces: Optional[Annotated[int, Field(le=10, strict=True, ge=1)]] = Field(default=3, description="Number of path traces executed by the agent.", alias="numPathTraces")
|
70
|
+
o_auth: Optional[OAuth] = Field(default=None, alias="oAuth")
|
66
71
|
password: Optional[StrictStr] = Field(default=None, description="Password for Basic/NTLM authentication.")
|
67
72
|
path_trace_mode: Optional[TestPathTraceMode] = Field(default=None, alias="pathTraceMode")
|
68
73
|
probe_mode: Optional[TestProbeMode] = Field(default=None, alias="probeMode")
|
@@ -79,6 +84,7 @@ class WebTransactionInstantTestRequest(BaseModel):
|
|
79
84
|
fixed_packet_rate: Optional[Annotated[int, Field(le=100, strict=True, ge=0)]] = Field(default=None, description="Sets packets rate sent to measure the network in packets per second.", alias="fixedPacketRate")
|
80
85
|
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")
|
81
86
|
override_proxy_id: Optional[StrictStr] = Field(default=None, description="ID of the proxy to be used if the default proxy is overridden.", alias="overrideProxyId")
|
87
|
+
collect_proxy_network_data: Optional[StrictBool] = Field(default=False, description="Indicates whether network data to the proxy should be collected.", alias="collectProxyNetworkData")
|
82
88
|
emulated_device_id: Optional[StrictStr] = Field(default=None, description="ID of the emulated device, if specified when the test was created.", alias="emulatedDeviceId")
|
83
89
|
target_time: Optional[Annotated[int, Field(le=60, strict=True, ge=0)]] = Field(default=None, description="Target completion time. The default is 50% of the specified time limit in seconds. (Set to 0 to use the default behavior).", alias="targetTime")
|
84
90
|
time_limit: Optional[Annotated[int, Field(le=180, strict=True, ge=5)]] = Field(default=30, description="Time limit for transaction in seconds.", alias="timeLimit")
|
@@ -91,7 +97,7 @@ class WebTransactionInstantTestRequest(BaseModel):
|
|
91
97
|
page_loading_strategy: Optional[TestPageLoadingStrategy] = Field(default=None, alias="pageLoadingStrategy")
|
92
98
|
agents: List[TestAgent] = Field(description="A list of objects with `agentId` (required) and `sourceIpAddress` (optional).")
|
93
99
|
credentials: Optional[List[StrictStr]] = Field(default=None, description="Contains a list of credential IDs (get `credentialId` from `/credentials` endpoint).")
|
94
|
-
__properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "agents", "credentials"]
|
100
|
+
__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", "agents", "credentials"]
|
95
101
|
|
96
102
|
model_config = ConfigDict(
|
97
103
|
populate_by_name=True,
|
@@ -154,9 +160,15 @@ class WebTransactionInstantTestRequest(BaseModel):
|
|
154
160
|
# override the default output from pydantic by calling `to_dict()` of links
|
155
161
|
if self.links:
|
156
162
|
_dict['_links'] = self.links.to_dict()
|
163
|
+
# override the default output from pydantic by calling `to_dict()` of agent_interfaces
|
164
|
+
if self.agent_interfaces:
|
165
|
+
_dict['agentInterfaces'] = self.agent_interfaces.to_dict()
|
157
166
|
# override the default output from pydantic by calling `to_dict()` of custom_headers
|
158
167
|
if self.custom_headers:
|
159
168
|
_dict['customHeaders'] = self.custom_headers.to_dict()
|
169
|
+
# override the default output from pydantic by calling `to_dict()` of o_auth
|
170
|
+
if self.o_auth:
|
171
|
+
_dict['oAuth'] = self.o_auth.to_dict()
|
160
172
|
# override the default output from pydantic by calling `to_dict()` of each item in agents (list)
|
161
173
|
_items = []
|
162
174
|
if self.agents:
|
@@ -190,11 +202,14 @@ class WebTransactionInstantTestRequest(BaseModel):
|
|
190
202
|
"labels": obj.get("labels"),
|
191
203
|
"sharedWithAccounts": obj.get("sharedWithAccounts"),
|
192
204
|
"authType": obj.get("authType"),
|
205
|
+
"agentInterfaces": AgentInterfaces.from_dict(obj["agentInterfaces"]) if obj.get("agentInterfaces") is not None else None,
|
193
206
|
"bandwidthMeasurements": obj.get("bandwidthMeasurements"),
|
194
207
|
"clientCertificate": obj.get("clientCertificate"),
|
195
208
|
"contentRegex": obj.get("contentRegex"),
|
196
209
|
"customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None,
|
197
210
|
"desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else '200',
|
211
|
+
"downloadLimit": obj.get("downloadLimit"),
|
212
|
+
"dnsOverride": obj.get("dnsOverride"),
|
198
213
|
"httpTargetTime": obj.get("httpTargetTime"),
|
199
214
|
"httpTimeLimit": obj.get("httpTimeLimit") if obj.get("httpTimeLimit") is not None else 5,
|
200
215
|
"httpVersion": obj.get("httpVersion") if obj.get("httpVersion") is not None else 2,
|
@@ -202,6 +217,7 @@ class WebTransactionInstantTestRequest(BaseModel):
|
|
202
217
|
"mtuMeasurements": obj.get("mtuMeasurements"),
|
203
218
|
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
|
204
219
|
"numPathTraces": obj.get("numPathTraces") if obj.get("numPathTraces") is not None else 3,
|
220
|
+
"oAuth": OAuth.from_dict(obj["oAuth"]) if obj.get("oAuth") is not None else None,
|
205
221
|
"password": obj.get("password"),
|
206
222
|
"pathTraceMode": obj.get("pathTraceMode"),
|
207
223
|
"probeMode": obj.get("probeMode"),
|
@@ -218,6 +234,7 @@ class WebTransactionInstantTestRequest(BaseModel):
|
|
218
234
|
"fixedPacketRate": obj.get("fixedPacketRate"),
|
219
235
|
"overrideAgentProxy": obj.get("overrideAgentProxy") if obj.get("overrideAgentProxy") is not None else False,
|
220
236
|
"overrideProxyId": obj.get("overrideProxyId"),
|
237
|
+
"collectProxyNetworkData": obj.get("collectProxyNetworkData") if obj.get("collectProxyNetworkData") is not None else False,
|
221
238
|
"emulatedDeviceId": obj.get("emulatedDeviceId"),
|
222
239
|
"targetTime": obj.get("targetTime"),
|
223
240
|
"timeLimit": obj.get("timeLimit") if obj.get("timeLimit") is not None else 30,
|
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
The Instant Tests API endpoint lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 7.0.9
|
9
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
9
|
|
11
10
|
Do not edit the class manually.
|
@@ -17,9 +16,11 @@ import pprint
|
|
17
16
|
import re # noqa: F401
|
18
17
|
import json
|
19
18
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
19
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
|
21
20
|
from typing import Any, ClassVar, Dict, List, Optional
|
22
21
|
from typing_extensions import Annotated
|
22
|
+
from thousandeyes_sdk.instant_tests.models.agent_interfaces import AgentInterfaces
|
23
|
+
from thousandeyes_sdk.instant_tests.models.o_auth import OAuth
|
23
24
|
from thousandeyes_sdk.instant_tests.models.test_auth_type import TestAuthType
|
24
25
|
from thousandeyes_sdk.instant_tests.models.test_custom_headers import TestCustomHeaders
|
25
26
|
from thousandeyes_sdk.instant_tests.models.test_page_loading_strategy import TestPageLoadingStrategy
|
@@ -35,11 +36,14 @@ class WebTransactionProperties(BaseModel):
|
|
35
36
|
WebTransactionProperties
|
36
37
|
""" # noqa: E501
|
37
38
|
auth_type: Optional[TestAuthType] = Field(default=None, alias="authType")
|
39
|
+
agent_interfaces: Optional[AgentInterfaces] = Field(default=None, alias="agentInterfaces")
|
38
40
|
bandwidth_measurements: Optional[StrictBool] = Field(default=None, description="Set to `true` to enable bandwidth measurements, only applies to Enterprise agents assigned to the test.", alias="bandwidthMeasurements")
|
39
41
|
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")
|
40
42
|
content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex")
|
41
43
|
custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders")
|
42
44
|
desired_status_code: Optional[StrictStr] = Field(default='200', description="Specify the HTTP status code value that indicates a successful response.", alias="desiredStatusCode")
|
45
|
+
download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit")
|
46
|
+
dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride")
|
43
47
|
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")
|
44
48
|
http_time_limit: Optional[Annotated[int, Field(le=60, strict=True, ge=5)]] = Field(default=5, description="HTTP time limit in seconds.", alias="httpTimeLimit")
|
45
49
|
http_version: Optional[Annotated[int, Field(le=2, strict=True, ge=1)]] = Field(default=2, description="HTTP protocol version. Set to '2' to prefer HTTP/2, or '1' to use only HTTP/1.1.", alias="httpVersion")
|
@@ -47,6 +51,7 @@ class WebTransactionProperties(BaseModel):
|
|
47
51
|
mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements")
|
48
52
|
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")
|
49
53
|
num_path_traces: Optional[Annotated[int, Field(le=10, strict=True, ge=1)]] = Field(default=3, description="Number of path traces executed by the agent.", alias="numPathTraces")
|
54
|
+
o_auth: Optional[OAuth] = Field(default=None, alias="oAuth")
|
50
55
|
password: Optional[StrictStr] = Field(default=None, description="Password for Basic/NTLM authentication.")
|
51
56
|
path_trace_mode: Optional[TestPathTraceMode] = Field(default=None, alias="pathTraceMode")
|
52
57
|
probe_mode: Optional[TestProbeMode] = Field(default=None, alias="probeMode")
|
@@ -63,6 +68,7 @@ class WebTransactionProperties(BaseModel):
|
|
63
68
|
fixed_packet_rate: Optional[Annotated[int, Field(le=100, strict=True, ge=0)]] = Field(default=None, description="Sets packets rate sent to measure the network in packets per second.", alias="fixedPacketRate")
|
64
69
|
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")
|
65
70
|
override_proxy_id: Optional[StrictStr] = Field(default=None, description="ID of the proxy to be used if the default proxy is overridden.", alias="overrideProxyId")
|
71
|
+
collect_proxy_network_data: Optional[StrictBool] = Field(default=False, description="Indicates whether network data to the proxy should be collected.", alias="collectProxyNetworkData")
|
66
72
|
emulated_device_id: Optional[StrictStr] = Field(default=None, description="ID of the emulated device, if specified when the test was created.", alias="emulatedDeviceId")
|
67
73
|
target_time: Optional[Annotated[int, Field(le=60, strict=True, ge=0)]] = Field(default=None, description="Target completion time. The default is 50% of the specified time limit in seconds. (Set to 0 to use the default behavior).", alias="targetTime")
|
68
74
|
time_limit: Optional[Annotated[int, Field(le=180, strict=True, ge=5)]] = Field(default=30, description="Time limit for transaction in seconds.", alias="timeLimit")
|
@@ -74,7 +80,7 @@ class WebTransactionProperties(BaseModel):
|
|
74
80
|
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")
|
75
81
|
page_loading_strategy: Optional[TestPageLoadingStrategy] = Field(default=None, alias="pageLoadingStrategy")
|
76
82
|
type: Optional[StrictStr] = None
|
77
|
-
__properties: ClassVar[List[str]] = ["authType", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "emulatedDeviceId", "targetTime", "timeLimit", "transactionScript", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "type"]
|
83
|
+
__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", "type"]
|
78
84
|
|
79
85
|
model_config = ConfigDict(
|
80
86
|
populate_by_name=True,
|
@@ -120,9 +126,15 @@ class WebTransactionProperties(BaseModel):
|
|
120
126
|
exclude=excluded_fields,
|
121
127
|
exclude_none=True,
|
122
128
|
)
|
129
|
+
# override the default output from pydantic by calling `to_dict()` of agent_interfaces
|
130
|
+
if self.agent_interfaces:
|
131
|
+
_dict['agentInterfaces'] = self.agent_interfaces.to_dict()
|
123
132
|
# override the default output from pydantic by calling `to_dict()` of custom_headers
|
124
133
|
if self.custom_headers:
|
125
134
|
_dict['customHeaders'] = self.custom_headers.to_dict()
|
135
|
+
# override the default output from pydantic by calling `to_dict()` of o_auth
|
136
|
+
if self.o_auth:
|
137
|
+
_dict['oAuth'] = self.o_auth.to_dict()
|
126
138
|
return _dict
|
127
139
|
|
128
140
|
@classmethod
|
@@ -136,11 +148,14 @@ class WebTransactionProperties(BaseModel):
|
|
136
148
|
|
137
149
|
_obj = cls.model_validate({
|
138
150
|
"authType": obj.get("authType"),
|
151
|
+
"agentInterfaces": AgentInterfaces.from_dict(obj["agentInterfaces"]) if obj.get("agentInterfaces") is not None else None,
|
139
152
|
"bandwidthMeasurements": obj.get("bandwidthMeasurements"),
|
140
153
|
"clientCertificate": obj.get("clientCertificate"),
|
141
154
|
"contentRegex": obj.get("contentRegex"),
|
142
155
|
"customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None,
|
143
156
|
"desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else '200',
|
157
|
+
"downloadLimit": obj.get("downloadLimit"),
|
158
|
+
"dnsOverride": obj.get("dnsOverride"),
|
144
159
|
"httpTargetTime": obj.get("httpTargetTime"),
|
145
160
|
"httpTimeLimit": obj.get("httpTimeLimit") if obj.get("httpTimeLimit") is not None else 5,
|
146
161
|
"httpVersion": obj.get("httpVersion") if obj.get("httpVersion") is not None else 2,
|
@@ -148,6 +163,7 @@ class WebTransactionProperties(BaseModel):
|
|
148
163
|
"mtuMeasurements": obj.get("mtuMeasurements"),
|
149
164
|
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
|
150
165
|
"numPathTraces": obj.get("numPathTraces") if obj.get("numPathTraces") is not None else 3,
|
166
|
+
"oAuth": OAuth.from_dict(obj["oAuth"]) if obj.get("oAuth") is not None else None,
|
151
167
|
"password": obj.get("password"),
|
152
168
|
"pathTraceMode": obj.get("pathTraceMode"),
|
153
169
|
"probeMode": obj.get("probeMode"),
|
@@ -164,6 +180,7 @@ class WebTransactionProperties(BaseModel):
|
|
164
180
|
"fixedPacketRate": obj.get("fixedPacketRate"),
|
165
181
|
"overrideAgentProxy": obj.get("overrideAgentProxy") if obj.get("overrideAgentProxy") is not None else False,
|
166
182
|
"overrideProxyId": obj.get("overrideProxyId"),
|
183
|
+
"collectProxyNetworkData": obj.get("collectProxyNetworkData") if obj.get("collectProxyNetworkData") is not None else False,
|
167
184
|
"emulatedDeviceId": obj.get("emulatedDeviceId"),
|
168
185
|
"targetTime": obj.get("targetTime"),
|
169
186
|
"timeLimit": obj.get("timeLimit") if obj.get("timeLimit") is not None else 30,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: thousandeyes-sdk-instant-tests
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.2.0
|
4
4
|
Summary: ThousandEyes SDK Instant Tests API
|
5
5
|
Author-email: ThousandEyes API Team <api-team@thousandeyes.com>
|
6
6
|
License: Apache License
|
@@ -209,7 +209,7 @@ The response does not include the immediate test results. Use the Test Results e
|
|
209
209
|
|
210
210
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
211
211
|
|
212
|
-
- API version: 7.0.
|
212
|
+
- API version: 7.0.14
|
213
213
|
- Generator version: 7.6.0
|
214
214
|
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
|
215
215
|
|
@@ -321,6 +321,7 @@ Class | Method | HTTP request | Description
|
|
321
321
|
|
322
322
|
- [Agent](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/Agent.md)
|
323
323
|
- [AgentBase](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/AgentBase.md)
|
324
|
+
- [AgentInterfaces](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/AgentInterfaces.md)
|
324
325
|
- [AgentToAgentInstantTest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/AgentToAgentInstantTest.md)
|
325
326
|
- [AgentToAgentInstantTestRequest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/AgentToAgentInstantTestRequest.md)
|
326
327
|
- [AgentToAgentProperties](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/AgentToAgentProperties.md)
|
@@ -364,9 +365,11 @@ Class | Method | HTTP request | Description
|
|
364
365
|
- [InstantTest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/InstantTest.md)
|
365
366
|
- [InstantTestRequest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/InstantTestRequest.md)
|
366
367
|
- [Link](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/Link.md)
|
368
|
+
- [OAuth](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/OAuth.md)
|
367
369
|
- [PageLoadInstantTest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/PageLoadInstantTest.md)
|
368
370
|
- [PageLoadInstantTestRequest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/PageLoadInstantTestRequest.md)
|
369
371
|
- [PageLoadProperties](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/PageLoadProperties.md)
|
372
|
+
- [RequestMethod](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/RequestMethod.md)
|
370
373
|
- [ServerInstantTestRequest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/ServerInstantTestRequest.md)
|
371
374
|
- [SharedWithAccount](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/SharedWithAccount.md)
|
372
375
|
- [SimpleAgent](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/SimpleAgent.md)
|