thousandeyes-sdk-instant-tests 1.0.0__py3-none-any.whl → 1.1.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 +2 -1
- thousandeyes_sdk/instant_tests/api/agent_to_agent_api.py +1 -1
- thousandeyes_sdk/instant_tests/api/agent_to_server_api.py +1 -1
- thousandeyes_sdk/instant_tests/api/api_api.py +1 -1
- thousandeyes_sdk/instant_tests/api/dns_security_api.py +1 -1
- thousandeyes_sdk/instant_tests/api/dns_server_api.py +1 -1
- thousandeyes_sdk/instant_tests/api/dns_trace_api.py +1 -1
- thousandeyes_sdk/instant_tests/api/ftp_server_api.py +1 -1
- thousandeyes_sdk/instant_tests/api/http_page_load_api.py +1 -1
- thousandeyes_sdk/instant_tests/api/http_server_api.py +1 -1
- thousandeyes_sdk/instant_tests/api/run_api.py +1 -1
- thousandeyes_sdk/instant_tests/api/sip_server_api.py +1 -1
- thousandeyes_sdk/instant_tests/api/voice_api.py +1 -1
- thousandeyes_sdk/instant_tests/api/web_transaction_api.py +1 -1
- thousandeyes_sdk/instant_tests/models/__init__.py +2 -1
- thousandeyes_sdk/instant_tests/models/agent.py +1 -1
- thousandeyes_sdk/instant_tests/models/agent_base.py +1 -1
- thousandeyes_sdk/instant_tests/models/agent_to_agent_instant_test.py +1 -1
- thousandeyes_sdk/instant_tests/models/agent_to_agent_instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/agent_to_agent_properties.py +1 -1
- thousandeyes_sdk/instant_tests/models/agent_to_agent_test_protocol.py +1 -1
- thousandeyes_sdk/instant_tests/models/agent_to_server_instant_test.py +1 -1
- thousandeyes_sdk/instant_tests/models/agent_to_server_instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/agent_to_server_properties.py +1 -1
- thousandeyes_sdk/instant_tests/models/api_instant_test.py +1 -1
- thousandeyes_sdk/instant_tests/models/api_instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/api_predefined_variable.py +1 -1
- thousandeyes_sdk/instant_tests/models/api_properties.py +1 -1
- thousandeyes_sdk/instant_tests/models/api_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/api_request_assertion.py +1 -1
- thousandeyes_sdk/instant_tests/models/api_request_assertion_name.py +1 -1
- thousandeyes_sdk/instant_tests/models/api_request_assertion_operator.py +1 -1
- thousandeyes_sdk/instant_tests/models/api_request_auth_type.py +1 -1
- thousandeyes_sdk/instant_tests/models/api_request_header.py +1 -1
- thousandeyes_sdk/instant_tests/models/api_request_method.py +1 -1
- thousandeyes_sdk/instant_tests/models/api_request_variable.py +1 -1
- thousandeyes_sdk/instant_tests/models/cloud_enterprise_agent_type.py +1 -1
- thousandeyes_sdk/instant_tests/models/dns_query_class.py +1 -1
- thousandeyes_sdk/instant_tests/models/dns_sec_instant_test.py +1 -1
- thousandeyes_sdk/instant_tests/models/dns_sec_instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/dns_sec_properties.py +1 -1
- thousandeyes_sdk/instant_tests/models/dns_server_instant_test.py +1 -1
- thousandeyes_sdk/instant_tests/models/dns_server_instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/dns_server_properties.py +1 -1
- thousandeyes_sdk/instant_tests/models/dns_servers_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/dns_trace_instant_test.py +1 -1
- thousandeyes_sdk/instant_tests/models/dns_trace_instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/dns_trace_properties.py +1 -1
- thousandeyes_sdk/instant_tests/models/error.py +1 -1
- thousandeyes_sdk/instant_tests/models/expand.py +1 -1
- thousandeyes_sdk/instant_tests/models/ftp_server_instant_test.py +1 -1
- thousandeyes_sdk/instant_tests/models/ftp_server_properties.py +1 -1
- thousandeyes_sdk/instant_tests/models/ftp_server_request_type.py +1 -1
- thousandeyes_sdk/instant_tests/models/http_server_base_properties.py +156 -0
- thousandeyes_sdk/instant_tests/models/http_server_instant_test.py +12 -12
- thousandeyes_sdk/instant_tests/models/http_server_instant_test_request.py +12 -12
- thousandeyes_sdk/instant_tests/models/http_server_properties.py +12 -12
- thousandeyes_sdk/instant_tests/models/instant_test.py +1 -1
- thousandeyes_sdk/instant_tests/models/instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/link.py +1 -1
- thousandeyes_sdk/instant_tests/models/page_load_instant_test.py +17 -17
- thousandeyes_sdk/instant_tests/models/page_load_instant_test_request.py +17 -17
- thousandeyes_sdk/instant_tests/models/page_load_properties.py +18 -18
- thousandeyes_sdk/instant_tests/models/server_instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/shared_with_account.py +1 -1
- thousandeyes_sdk/instant_tests/models/simple_agent.py +1 -1
- thousandeyes_sdk/instant_tests/models/sip_server_instant_test.py +1 -1
- thousandeyes_sdk/instant_tests/models/sip_server_instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/sip_server_instant_test_request1.py +1 -1
- thousandeyes_sdk/instant_tests/models/sip_server_instant_test_response.py +1 -1
- thousandeyes_sdk/instant_tests/models/sip_server_properties.py +1 -1
- thousandeyes_sdk/instant_tests/models/sip_test_protocol.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_agent.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_auth_type.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_custom_headers.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_direction.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_dns_server.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_dns_transport_protocol.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_dscp_id.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_ipv6_policy.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_label.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_links.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_page_loading_strategy.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_path_trace_mode.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_probe_mode.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_protocol.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_self_link.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_sip_credentials.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_ssl_version_id.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_type.py +1 -1
- thousandeyes_sdk/instant_tests/models/unauthorized_error.py +1 -1
- thousandeyes_sdk/instant_tests/models/unexpanded_instant_test.py +1 -1
- thousandeyes_sdk/instant_tests/models/validation_error.py +1 -1
- thousandeyes_sdk/instant_tests/models/validation_error_item.py +1 -1
- thousandeyes_sdk/instant_tests/models/voice_instant_test.py +1 -1
- thousandeyes_sdk/instant_tests/models/voice_instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/voice_properties.py +1 -1
- thousandeyes_sdk/instant_tests/models/web_transaction_instant_test.py +19 -19
- thousandeyes_sdk/instant_tests/models/web_transaction_instant_test_request.py +19 -19
- thousandeyes_sdk/instant_tests/models/web_transaction_properties.py +20 -20
- {thousandeyes_sdk_instant_tests-1.0.0.dist-info → thousandeyes_sdk_instant_tests-1.1.0.dist-info}/METADATA +3 -2
- thousandeyes_sdk_instant_tests-1.1.0.dist-info/RECORD +108 -0
- thousandeyes_sdk_instant_tests-1.0.0.dist-info/RECORD +0 -107
- {thousandeyes_sdk_instant_tests-1.0.0.dist-info → thousandeyes_sdk_instant_tests-1.1.0.dist-info}/LICENSE +0 -0
- {thousandeyes_sdk_instant_tests-1.0.0.dist-info → thousandeyes_sdk_instant_tests-1.1.0.dist-info}/NOTICE +0 -0
- {thousandeyes_sdk_instant_tests-1.0.0.dist-info → thousandeyes_sdk_instant_tests-1.1.0.dist-info}/WHEEL +0 -0
- {thousandeyes_sdk_instant_tests-1.0.0.dist-info → thousandeyes_sdk_instant_tests-1.1.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,156 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Instant Tests API
|
5
|
+
|
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
|
+
|
8
|
+
The version of the OpenAPI document: 7.0.9
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
from __future__ import annotations
|
16
|
+
import pprint
|
17
|
+
import re # noqa: F401
|
18
|
+
import json
|
19
|
+
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
22
|
+
from typing_extensions import Annotated
|
23
|
+
from thousandeyes_sdk.instant_tests.models.test_auth_type import TestAuthType
|
24
|
+
from thousandeyes_sdk.instant_tests.models.test_custom_headers import TestCustomHeaders
|
25
|
+
from thousandeyes_sdk.instant_tests.models.test_path_trace_mode import TestPathTraceMode
|
26
|
+
from thousandeyes_sdk.instant_tests.models.test_probe_mode import TestProbeMode
|
27
|
+
from thousandeyes_sdk.instant_tests.models.test_protocol import TestProtocol
|
28
|
+
from thousandeyes_sdk.instant_tests.models.test_ssl_version_id import TestSslVersionId
|
29
|
+
from typing import Optional, Set
|
30
|
+
from typing_extensions import Self
|
31
|
+
|
32
|
+
class HttpServerBaseProperties(BaseModel):
|
33
|
+
"""
|
34
|
+
HttpServerBaseProperties
|
35
|
+
""" # noqa: E501
|
36
|
+
auth_type: Optional[TestAuthType] = Field(default=None, alias="authType")
|
37
|
+
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")
|
38
|
+
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")
|
39
|
+
content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex")
|
40
|
+
custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders")
|
41
|
+
desired_status_code: Optional[StrictStr] = Field(default='200', description="Specify the HTTP status code value that indicates a successful response.", alias="desiredStatusCode")
|
42
|
+
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")
|
43
|
+
http_time_limit: Optional[Annotated[int, Field(le=60, strict=True, ge=5)]] = Field(default=5, description="HTTP time limit in seconds.", alias="httpTimeLimit")
|
44
|
+
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")
|
45
|
+
include_headers: Optional[StrictBool] = Field(default=True, description="Set to `true` to capture response headers for objects loaded by the test.", alias="includeHeaders")
|
46
|
+
mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements")
|
47
|
+
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
|
+
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")
|
49
|
+
password: Optional[StrictStr] = Field(default=None, description="Password for Basic/NTLM authentication.")
|
50
|
+
path_trace_mode: Optional[TestPathTraceMode] = Field(default=None, alias="pathTraceMode")
|
51
|
+
probe_mode: Optional[TestProbeMode] = Field(default=None, alias="probeMode")
|
52
|
+
protocol: Optional[TestProtocol] = None
|
53
|
+
ssl_version: Optional[StrictStr] = Field(default=None, description="Reflects the verbose SSL protocol version used by a test.", alias="sslVersion")
|
54
|
+
ssl_version_id: Optional[TestSslVersionId] = Field(default=None, alias="sslVersionId")
|
55
|
+
url: Optional[StrictStr] = Field(default=None, description="Target for the test.")
|
56
|
+
use_ntlm: Optional[StrictBool] = Field(default=None, description="Set to true to use NTLM, false to use Basic Authentication. Requires username and password to be set.", alias="useNtlm")
|
57
|
+
user_agent: Optional[StrictStr] = Field(default=None, description="User-agent string to be provided during the test.", alias="userAgent")
|
58
|
+
username: Optional[StrictStr] = Field(default=None, description="Username for Basic/NTLM authentication.")
|
59
|
+
verify_certificate: Optional[StrictBool] = Field(default=False, description="Ignore or acknowledge certificate errors. Set to false to ignore certificate errors.", alias="verifyCertificate")
|
60
|
+
allow_unsafe_legacy_renegotiation: Optional[StrictBool] = Field(default=True, description="Allows TLS renegotiation with servers not supporting RFC 5746. Default Set to true to allow unsafe legacy renegotiation.", alias="allowUnsafeLegacyRenegotiation")
|
61
|
+
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")
|
62
|
+
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")
|
63
|
+
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")
|
64
|
+
override_proxy_id: Optional[StrictStr] = Field(default=None, description="ID of the proxy to be used if the default proxy is overridden.", alias="overrideProxyId")
|
65
|
+
__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"]
|
66
|
+
|
67
|
+
model_config = ConfigDict(
|
68
|
+
populate_by_name=True,
|
69
|
+
validate_assignment=True,
|
70
|
+
protected_namespaces=(),
|
71
|
+
extra="allow",
|
72
|
+
)
|
73
|
+
|
74
|
+
|
75
|
+
def to_str(self) -> str:
|
76
|
+
"""Returns the string representation of the model using alias"""
|
77
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
78
|
+
|
79
|
+
def to_json(self) -> str:
|
80
|
+
"""Returns the JSON representation of the model using alias"""
|
81
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
82
|
+
return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True)
|
83
|
+
|
84
|
+
@classmethod
|
85
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
86
|
+
"""Create an instance of HttpServerBaseProperties from a JSON string"""
|
87
|
+
return cls.from_dict(json.loads(json_str))
|
88
|
+
|
89
|
+
def to_dict(self) -> Dict[str, Any]:
|
90
|
+
"""Return the dictionary representation of the model using alias.
|
91
|
+
|
92
|
+
This has the following differences from calling pydantic's
|
93
|
+
`self.model_dump(by_alias=True)`:
|
94
|
+
|
95
|
+
* `None` is only added to the output dict for nullable fields that
|
96
|
+
were set at model initialization. Other fields with value `None`
|
97
|
+
are ignored.
|
98
|
+
* OpenAPI `readOnly` fields are excluded.
|
99
|
+
"""
|
100
|
+
excluded_fields: Set[str] = set([
|
101
|
+
"ssl_version",
|
102
|
+
])
|
103
|
+
|
104
|
+
_dict = self.model_dump(
|
105
|
+
by_alias=True,
|
106
|
+
exclude=excluded_fields,
|
107
|
+
exclude_none=True,
|
108
|
+
)
|
109
|
+
# override the default output from pydantic by calling `to_dict()` of custom_headers
|
110
|
+
if self.custom_headers:
|
111
|
+
_dict['customHeaders'] = self.custom_headers.to_dict()
|
112
|
+
return _dict
|
113
|
+
|
114
|
+
@classmethod
|
115
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
116
|
+
"""Create an instance of HttpServerBaseProperties from a dict"""
|
117
|
+
if obj is None:
|
118
|
+
return None
|
119
|
+
|
120
|
+
if not isinstance(obj, dict):
|
121
|
+
return cls.model_validate(obj)
|
122
|
+
|
123
|
+
_obj = cls.model_validate({
|
124
|
+
"authType": obj.get("authType"),
|
125
|
+
"bandwidthMeasurements": obj.get("bandwidthMeasurements"),
|
126
|
+
"clientCertificate": obj.get("clientCertificate"),
|
127
|
+
"contentRegex": obj.get("contentRegex"),
|
128
|
+
"customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None,
|
129
|
+
"desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else '200',
|
130
|
+
"httpTargetTime": obj.get("httpTargetTime"),
|
131
|
+
"httpTimeLimit": obj.get("httpTimeLimit") if obj.get("httpTimeLimit") is not None else 5,
|
132
|
+
"httpVersion": obj.get("httpVersion") if obj.get("httpVersion") is not None else 2,
|
133
|
+
"includeHeaders": obj.get("includeHeaders") if obj.get("includeHeaders") is not None else True,
|
134
|
+
"mtuMeasurements": obj.get("mtuMeasurements"),
|
135
|
+
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
|
136
|
+
"numPathTraces": obj.get("numPathTraces") if obj.get("numPathTraces") is not None else 3,
|
137
|
+
"password": obj.get("password"),
|
138
|
+
"pathTraceMode": obj.get("pathTraceMode"),
|
139
|
+
"probeMode": obj.get("probeMode"),
|
140
|
+
"protocol": obj.get("protocol"),
|
141
|
+
"sslVersion": obj.get("sslVersion"),
|
142
|
+
"sslVersionId": obj.get("sslVersionId"),
|
143
|
+
"url": obj.get("url"),
|
144
|
+
"useNtlm": obj.get("useNtlm"),
|
145
|
+
"userAgent": obj.get("userAgent"),
|
146
|
+
"username": obj.get("username"),
|
147
|
+
"verifyCertificate": obj.get("verifyCertificate") if obj.get("verifyCertificate") is not None else False,
|
148
|
+
"allowUnsafeLegacyRenegotiation": obj.get("allowUnsafeLegacyRenegotiation") if obj.get("allowUnsafeLegacyRenegotiation") is not None else True,
|
149
|
+
"followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True,
|
150
|
+
"fixedPacketRate": obj.get("fixedPacketRate"),
|
151
|
+
"overrideAgentProxy": obj.get("overrideAgentProxy") if obj.get("overrideAgentProxy") is not None else False,
|
152
|
+
"overrideProxyId": obj.get("overrideProxyId")
|
153
|
+
})
|
154
|
+
return _obj
|
155
|
+
|
156
|
+
|
@@ -5,7 +5,7 @@
|
|
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.
|
8
|
+
The version of the OpenAPI document: 7.0.9
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
10
|
|
11
11
|
Do not edit the class manually.
|
@@ -56,11 +56,8 @@ class HttpServerInstantTest(BaseModel):
|
|
56
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")
|
57
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")
|
58
58
|
content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex")
|
59
|
-
headers: Optional[List[StrictStr]] = Field(default=None, description="HTTP request headers used.")
|
60
59
|
custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders")
|
61
60
|
desired_status_code: Optional[StrictStr] = Field(default='200', description="Specify the HTTP status code value that indicates a successful response.", alias="desiredStatusCode")
|
62
|
-
download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit")
|
63
|
-
dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride")
|
64
61
|
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")
|
65
62
|
http_time_limit: Optional[Annotated[int, Field(le=60, strict=True, ge=5)]] = Field(default=5, description="HTTP time limit in seconds.", alias="httpTimeLimit")
|
66
63
|
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")
|
@@ -70,7 +67,6 @@ class HttpServerInstantTest(BaseModel):
|
|
70
67
|
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")
|
71
68
|
password: Optional[StrictStr] = Field(default=None, description="Password for Basic/NTLM authentication.")
|
72
69
|
path_trace_mode: Optional[TestPathTraceMode] = Field(default=None, alias="pathTraceMode")
|
73
|
-
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")
|
74
70
|
probe_mode: Optional[TestProbeMode] = Field(default=None, alias="probeMode")
|
75
71
|
protocol: Optional[TestProtocol] = None
|
76
72
|
ssl_version: Optional[StrictStr] = Field(default=None, description="Reflects the verbose SSL protocol version used by a test.", alias="sslVersion")
|
@@ -81,13 +77,17 @@ class HttpServerInstantTest(BaseModel):
|
|
81
77
|
username: Optional[StrictStr] = Field(default=None, description="Username for Basic/NTLM authentication.")
|
82
78
|
verify_certificate: Optional[StrictBool] = Field(default=False, description="Ignore or acknowledge certificate errors. Set to false to ignore certificate errors.", alias="verifyCertificate")
|
83
79
|
allow_unsafe_legacy_renegotiation: Optional[StrictBool] = Field(default=True, description="Allows TLS renegotiation with servers not supporting RFC 5746. Default Set to true to allow unsafe legacy renegotiation.", alias="allowUnsafeLegacyRenegotiation")
|
84
|
-
ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy")
|
85
80
|
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")
|
86
81
|
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")
|
87
82
|
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")
|
88
83
|
override_proxy_id: Optional[StrictStr] = Field(default=None, description="ID of the proxy to be used if the default proxy is overridden.", alias="overrideProxyId")
|
84
|
+
headers: Optional[List[StrictStr]] = Field(default=None, description="HTTP request headers used.")
|
85
|
+
download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit")
|
86
|
+
dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride")
|
87
|
+
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")
|
88
|
+
ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy")
|
89
89
|
agents: Optional[List[Agent]] = Field(default=None, description="Contains list of agents.")
|
90
|
-
__properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "bandwidthMeasurements", "clientCertificate", "contentRegex", "
|
90
|
+
__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", "headers", "downloadLimit", "dnsOverride", "postBody", "ipv6Policy", "agents"]
|
91
91
|
|
92
92
|
model_config = ConfigDict(
|
93
93
|
populate_by_name=True,
|
@@ -209,11 +209,8 @@ class HttpServerInstantTest(BaseModel):
|
|
209
209
|
"bandwidthMeasurements": obj.get("bandwidthMeasurements"),
|
210
210
|
"clientCertificate": obj.get("clientCertificate"),
|
211
211
|
"contentRegex": obj.get("contentRegex"),
|
212
|
-
"headers": obj.get("headers"),
|
213
212
|
"customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None,
|
214
213
|
"desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else '200',
|
215
|
-
"downloadLimit": obj.get("downloadLimit"),
|
216
|
-
"dnsOverride": obj.get("dnsOverride"),
|
217
214
|
"httpTargetTime": obj.get("httpTargetTime"),
|
218
215
|
"httpTimeLimit": obj.get("httpTimeLimit") if obj.get("httpTimeLimit") is not None else 5,
|
219
216
|
"httpVersion": obj.get("httpVersion") if obj.get("httpVersion") is not None else 2,
|
@@ -223,7 +220,6 @@ class HttpServerInstantTest(BaseModel):
|
|
223
220
|
"numPathTraces": obj.get("numPathTraces") if obj.get("numPathTraces") is not None else 3,
|
224
221
|
"password": obj.get("password"),
|
225
222
|
"pathTraceMode": obj.get("pathTraceMode"),
|
226
|
-
"postBody": obj.get("postBody"),
|
227
223
|
"probeMode": obj.get("probeMode"),
|
228
224
|
"protocol": obj.get("protocol"),
|
229
225
|
"sslVersion": obj.get("sslVersion"),
|
@@ -234,11 +230,15 @@ class HttpServerInstantTest(BaseModel):
|
|
234
230
|
"username": obj.get("username"),
|
235
231
|
"verifyCertificate": obj.get("verifyCertificate") if obj.get("verifyCertificate") is not None else False,
|
236
232
|
"allowUnsafeLegacyRenegotiation": obj.get("allowUnsafeLegacyRenegotiation") if obj.get("allowUnsafeLegacyRenegotiation") is not None else True,
|
237
|
-
"ipv6Policy": obj.get("ipv6Policy"),
|
238
233
|
"followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True,
|
239
234
|
"fixedPacketRate": obj.get("fixedPacketRate"),
|
240
235
|
"overrideAgentProxy": obj.get("overrideAgentProxy") if obj.get("overrideAgentProxy") is not None else False,
|
241
236
|
"overrideProxyId": obj.get("overrideProxyId"),
|
237
|
+
"headers": obj.get("headers"),
|
238
|
+
"downloadLimit": obj.get("downloadLimit"),
|
239
|
+
"dnsOverride": obj.get("dnsOverride"),
|
240
|
+
"postBody": obj.get("postBody"),
|
241
|
+
"ipv6Policy": obj.get("ipv6Policy"),
|
242
242
|
"agents": [Agent.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
|
243
243
|
})
|
244
244
|
return _obj
|
@@ -5,7 +5,7 @@
|
|
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.
|
8
|
+
The version of the OpenAPI document: 7.0.9
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
10
|
|
11
11
|
Do not edit the class manually.
|
@@ -54,11 +54,8 @@ class HttpServerInstantTestRequest(BaseModel):
|
|
54
54
|
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
55
|
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
56
|
content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex")
|
57
|
-
headers: Optional[List[StrictStr]] = Field(default=None, description="HTTP request headers used.")
|
58
57
|
custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders")
|
59
58
|
desired_status_code: Optional[StrictStr] = Field(default='200', description="Specify the HTTP status code value that indicates a successful response.", alias="desiredStatusCode")
|
60
|
-
download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit")
|
61
|
-
dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride")
|
62
59
|
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")
|
63
60
|
http_time_limit: Optional[Annotated[int, Field(le=60, strict=True, ge=5)]] = Field(default=5, description="HTTP time limit in seconds.", alias="httpTimeLimit")
|
64
61
|
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")
|
@@ -68,7 +65,6 @@ class HttpServerInstantTestRequest(BaseModel):
|
|
68
65
|
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")
|
69
66
|
password: Optional[StrictStr] = Field(default=None, description="Password for Basic/NTLM authentication.")
|
70
67
|
path_trace_mode: Optional[TestPathTraceMode] = Field(default=None, alias="pathTraceMode")
|
71
|
-
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")
|
72
68
|
probe_mode: Optional[TestProbeMode] = Field(default=None, alias="probeMode")
|
73
69
|
protocol: Optional[TestProtocol] = None
|
74
70
|
ssl_version: Optional[StrictStr] = Field(default=None, description="Reflects the verbose SSL protocol version used by a test.", alias="sslVersion")
|
@@ -79,13 +75,17 @@ class HttpServerInstantTestRequest(BaseModel):
|
|
79
75
|
username: Optional[StrictStr] = Field(default=None, description="Username for Basic/NTLM authentication.")
|
80
76
|
verify_certificate: Optional[StrictBool] = Field(default=False, description="Ignore or acknowledge certificate errors. Set to false to ignore certificate errors.", alias="verifyCertificate")
|
81
77
|
allow_unsafe_legacy_renegotiation: Optional[StrictBool] = Field(default=True, description="Allows TLS renegotiation with servers not supporting RFC 5746. Default Set to true to allow unsafe legacy renegotiation.", alias="allowUnsafeLegacyRenegotiation")
|
82
|
-
ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy")
|
83
78
|
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")
|
84
79
|
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")
|
85
80
|
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")
|
86
81
|
override_proxy_id: Optional[StrictStr] = Field(default=None, description="ID of the proxy to be used if the default proxy is overridden.", alias="overrideProxyId")
|
82
|
+
headers: Optional[List[StrictStr]] = Field(default=None, description="HTTP request headers used.")
|
83
|
+
download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit")
|
84
|
+
dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride")
|
85
|
+
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")
|
86
|
+
ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy")
|
87
87
|
agents: List[TestAgent] = Field(description="A list of objects with `agentId` (required) and `sourceIpAddress` (optional).")
|
88
|
-
__properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "bandwidthMeasurements", "clientCertificate", "contentRegex", "
|
88
|
+
__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", "headers", "downloadLimit", "dnsOverride", "postBody", "ipv6Policy", "agents"]
|
89
89
|
|
90
90
|
model_config = ConfigDict(
|
91
91
|
populate_by_name=True,
|
@@ -187,11 +187,8 @@ class HttpServerInstantTestRequest(BaseModel):
|
|
187
187
|
"bandwidthMeasurements": obj.get("bandwidthMeasurements"),
|
188
188
|
"clientCertificate": obj.get("clientCertificate"),
|
189
189
|
"contentRegex": obj.get("contentRegex"),
|
190
|
-
"headers": obj.get("headers"),
|
191
190
|
"customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None,
|
192
191
|
"desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else '200',
|
193
|
-
"downloadLimit": obj.get("downloadLimit"),
|
194
|
-
"dnsOverride": obj.get("dnsOverride"),
|
195
192
|
"httpTargetTime": obj.get("httpTargetTime"),
|
196
193
|
"httpTimeLimit": obj.get("httpTimeLimit") if obj.get("httpTimeLimit") is not None else 5,
|
197
194
|
"httpVersion": obj.get("httpVersion") if obj.get("httpVersion") is not None else 2,
|
@@ -201,7 +198,6 @@ class HttpServerInstantTestRequest(BaseModel):
|
|
201
198
|
"numPathTraces": obj.get("numPathTraces") if obj.get("numPathTraces") is not None else 3,
|
202
199
|
"password": obj.get("password"),
|
203
200
|
"pathTraceMode": obj.get("pathTraceMode"),
|
204
|
-
"postBody": obj.get("postBody"),
|
205
201
|
"probeMode": obj.get("probeMode"),
|
206
202
|
"protocol": obj.get("protocol"),
|
207
203
|
"sslVersion": obj.get("sslVersion"),
|
@@ -212,11 +208,15 @@ class HttpServerInstantTestRequest(BaseModel):
|
|
212
208
|
"username": obj.get("username"),
|
213
209
|
"verifyCertificate": obj.get("verifyCertificate") if obj.get("verifyCertificate") is not None else False,
|
214
210
|
"allowUnsafeLegacyRenegotiation": obj.get("allowUnsafeLegacyRenegotiation") if obj.get("allowUnsafeLegacyRenegotiation") is not None else True,
|
215
|
-
"ipv6Policy": obj.get("ipv6Policy"),
|
216
211
|
"followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True,
|
217
212
|
"fixedPacketRate": obj.get("fixedPacketRate"),
|
218
213
|
"overrideAgentProxy": obj.get("overrideAgentProxy") if obj.get("overrideAgentProxy") is not None else False,
|
219
214
|
"overrideProxyId": obj.get("overrideProxyId"),
|
215
|
+
"headers": obj.get("headers"),
|
216
|
+
"downloadLimit": obj.get("downloadLimit"),
|
217
|
+
"dnsOverride": obj.get("dnsOverride"),
|
218
|
+
"postBody": obj.get("postBody"),
|
219
|
+
"ipv6Policy": obj.get("ipv6Policy"),
|
220
220
|
"agents": [TestAgent.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
|
221
221
|
})
|
222
222
|
return _obj
|
@@ -5,7 +5,7 @@
|
|
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.
|
8
|
+
The version of the OpenAPI document: 7.0.9
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
10
|
|
11
11
|
Do not edit the class manually.
|
@@ -38,11 +38,8 @@ class HttpServerProperties(BaseModel):
|
|
38
38
|
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
39
|
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
40
|
content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex")
|
41
|
-
headers: Optional[List[StrictStr]] = Field(default=None, description="HTTP request headers used.")
|
42
41
|
custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders")
|
43
42
|
desired_status_code: Optional[StrictStr] = Field(default='200', description="Specify the HTTP status code value that indicates a successful response.", alias="desiredStatusCode")
|
44
|
-
download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit")
|
45
|
-
dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride")
|
46
43
|
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")
|
47
44
|
http_time_limit: Optional[Annotated[int, Field(le=60, strict=True, ge=5)]] = Field(default=5, description="HTTP time limit in seconds.", alias="httpTimeLimit")
|
48
45
|
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")
|
@@ -52,7 +49,6 @@ class HttpServerProperties(BaseModel):
|
|
52
49
|
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")
|
53
50
|
password: Optional[StrictStr] = Field(default=None, description="Password for Basic/NTLM authentication.")
|
54
51
|
path_trace_mode: Optional[TestPathTraceMode] = Field(default=None, alias="pathTraceMode")
|
55
|
-
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")
|
56
52
|
probe_mode: Optional[TestProbeMode] = Field(default=None, alias="probeMode")
|
57
53
|
protocol: Optional[TestProtocol] = None
|
58
54
|
ssl_version: Optional[StrictStr] = Field(default=None, description="Reflects the verbose SSL protocol version used by a test.", alias="sslVersion")
|
@@ -63,13 +59,17 @@ class HttpServerProperties(BaseModel):
|
|
63
59
|
username: Optional[StrictStr] = Field(default=None, description="Username for Basic/NTLM authentication.")
|
64
60
|
verify_certificate: Optional[StrictBool] = Field(default=False, description="Ignore or acknowledge certificate errors. Set to false to ignore certificate errors.", alias="verifyCertificate")
|
65
61
|
allow_unsafe_legacy_renegotiation: Optional[StrictBool] = Field(default=True, description="Allows TLS renegotiation with servers not supporting RFC 5746. Default Set to true to allow unsafe legacy renegotiation.", alias="allowUnsafeLegacyRenegotiation")
|
66
|
-
ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy")
|
67
62
|
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")
|
68
63
|
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")
|
69
64
|
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")
|
70
65
|
override_proxy_id: Optional[StrictStr] = Field(default=None, description="ID of the proxy to be used if the default proxy is overridden.", alias="overrideProxyId")
|
66
|
+
headers: Optional[List[StrictStr]] = Field(default=None, description="HTTP request headers used.")
|
67
|
+
download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit")
|
68
|
+
dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride")
|
69
|
+
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")
|
70
|
+
ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy")
|
71
71
|
type: Optional[StrictStr] = None
|
72
|
-
__properties: ClassVar[List[str]] = ["authType", "bandwidthMeasurements", "clientCertificate", "contentRegex", "
|
72
|
+
__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", "headers", "downloadLimit", "dnsOverride", "postBody", "ipv6Policy", "type"]
|
73
73
|
|
74
74
|
model_config = ConfigDict(
|
75
75
|
populate_by_name=True,
|
@@ -134,11 +134,8 @@ class HttpServerProperties(BaseModel):
|
|
134
134
|
"bandwidthMeasurements": obj.get("bandwidthMeasurements"),
|
135
135
|
"clientCertificate": obj.get("clientCertificate"),
|
136
136
|
"contentRegex": obj.get("contentRegex"),
|
137
|
-
"headers": obj.get("headers"),
|
138
137
|
"customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None,
|
139
138
|
"desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else '200',
|
140
|
-
"downloadLimit": obj.get("downloadLimit"),
|
141
|
-
"dnsOverride": obj.get("dnsOverride"),
|
142
139
|
"httpTargetTime": obj.get("httpTargetTime"),
|
143
140
|
"httpTimeLimit": obj.get("httpTimeLimit") if obj.get("httpTimeLimit") is not None else 5,
|
144
141
|
"httpVersion": obj.get("httpVersion") if obj.get("httpVersion") is not None else 2,
|
@@ -148,7 +145,6 @@ class HttpServerProperties(BaseModel):
|
|
148
145
|
"numPathTraces": obj.get("numPathTraces") if obj.get("numPathTraces") is not None else 3,
|
149
146
|
"password": obj.get("password"),
|
150
147
|
"pathTraceMode": obj.get("pathTraceMode"),
|
151
|
-
"postBody": obj.get("postBody"),
|
152
148
|
"probeMode": obj.get("probeMode"),
|
153
149
|
"protocol": obj.get("protocol"),
|
154
150
|
"sslVersion": obj.get("sslVersion"),
|
@@ -159,11 +155,15 @@ class HttpServerProperties(BaseModel):
|
|
159
155
|
"username": obj.get("username"),
|
160
156
|
"verifyCertificate": obj.get("verifyCertificate") if obj.get("verifyCertificate") is not None else False,
|
161
157
|
"allowUnsafeLegacyRenegotiation": obj.get("allowUnsafeLegacyRenegotiation") if obj.get("allowUnsafeLegacyRenegotiation") is not None else True,
|
162
|
-
"ipv6Policy": obj.get("ipv6Policy"),
|
163
158
|
"followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True,
|
164
159
|
"fixedPacketRate": obj.get("fixedPacketRate"),
|
165
160
|
"overrideAgentProxy": obj.get("overrideAgentProxy") if obj.get("overrideAgentProxy") is not None else False,
|
166
161
|
"overrideProxyId": obj.get("overrideProxyId"),
|
162
|
+
"headers": obj.get("headers"),
|
163
|
+
"downloadLimit": obj.get("downloadLimit"),
|
164
|
+
"dnsOverride": obj.get("dnsOverride"),
|
165
|
+
"postBody": obj.get("postBody"),
|
166
|
+
"ipv6Policy": obj.get("ipv6Policy"),
|
167
167
|
"type": obj.get("type")
|
168
168
|
})
|
169
169
|
return _obj
|
@@ -5,7 +5,7 @@
|
|
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.
|
8
|
+
The version of the OpenAPI document: 7.0.9
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
10
|
|
11
11
|
Do not edit the class manually.
|
@@ -5,7 +5,7 @@
|
|
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.
|
8
|
+
The version of the OpenAPI document: 7.0.9
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
10
|
|
11
11
|
Do not edit the class manually.
|
@@ -5,7 +5,7 @@
|
|
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.
|
8
|
+
The version of the OpenAPI document: 7.0.9
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
10
|
|
11
11
|
Do not edit the class manually.
|
@@ -5,7 +5,7 @@
|
|
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.
|
8
|
+
The version of the OpenAPI document: 7.0.9
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
10
|
|
11
11
|
Do not edit the class manually.
|
@@ -55,11 +55,9 @@ class PageLoadInstantTest(BaseModel):
|
|
55
55
|
auth_type: Optional[TestAuthType] = Field(default=None, alias="authType")
|
56
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")
|
57
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")
|
58
|
-
content_regex: Optional[StrictStr] = Field(default=None, description="
|
58
|
+
content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex")
|
59
59
|
custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders")
|
60
60
|
desired_status_code: Optional[StrictStr] = Field(default='200', description="Specify the HTTP status code value that indicates a successful response.", alias="desiredStatusCode")
|
61
|
-
emulated_device_id: Optional[StrictStr] = Field(default=None, description="id of the emulated device, if one was given when the test was created", alias="emulatedDeviceId")
|
62
|
-
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")
|
63
61
|
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")
|
64
62
|
http_time_limit: Optional[Annotated[int, Field(le=60, strict=True, ge=5)]] = Field(default=5, description="HTTP time limit in seconds.", alias="httpTimeLimit")
|
65
63
|
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")
|
@@ -67,8 +65,6 @@ class PageLoadInstantTest(BaseModel):
|
|
67
65
|
mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements")
|
68
66
|
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
67
|
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
|
-
page_load_target_time: Optional[Annotated[int, Field(le=30, strict=True, ge=1)]] = Field(default=None, description="Target time for page load completion, specified in seconds and cannot exceed the `pageLoadTimeLimit`.", alias="pageLoadTargetTime")
|
71
|
-
page_load_time_limit: Optional[Annotated[int, Field(le=60, strict=True, ge=5)]] = Field(default=10, description="Page load time limit. Must be larger than the `httpTimeLimit`.", alias="pageLoadTimeLimit")
|
72
68
|
password: Optional[StrictStr] = Field(default=None, description="Password for Basic/NTLM authentication.")
|
73
69
|
path_trace_mode: Optional[TestPathTraceMode] = Field(default=None, alias="pathTraceMode")
|
74
70
|
probe_mode: Optional[TestProbeMode] = Field(default=None, alias="probeMode")
|
@@ -81,17 +77,21 @@ class PageLoadInstantTest(BaseModel):
|
|
81
77
|
username: Optional[StrictStr] = Field(default=None, description="Username for Basic/NTLM authentication.")
|
82
78
|
verify_certificate: Optional[StrictBool] = Field(default=False, description="Ignore or acknowledge certificate errors. Set to false to ignore certificate errors.", alias="verifyCertificate")
|
83
79
|
allow_unsafe_legacy_renegotiation: Optional[StrictBool] = Field(default=True, description="Allows TLS renegotiation with servers not supporting RFC 5746. Default Set to true to allow unsafe legacy renegotiation.", alias="allowUnsafeLegacyRenegotiation")
|
80
|
+
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")
|
81
|
+
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
|
+
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
|
+
override_proxy_id: Optional[StrictStr] = Field(default=None, description="ID of the proxy to be used if the default proxy is overridden.", alias="overrideProxyId")
|
84
|
+
emulated_device_id: Optional[StrictStr] = Field(default=None, description="ID of the emulated device, if one was given when the test was created.", alias="emulatedDeviceId")
|
85
|
+
page_load_target_time: Optional[Annotated[int, Field(le=30, strict=True, ge=1)]] = Field(default=None, description="Target time for page load completion, specified in seconds and cannot exceed the `pageLoadTimeLimit`.", alias="pageLoadTargetTime")
|
86
|
+
page_load_time_limit: Optional[Annotated[int, Field(le=60, strict=True, ge=5)]] = Field(default=10, description="Page load time limit. Must be larger than the `httpTimeLimit`.", alias="pageLoadTimeLimit")
|
84
87
|
block_domains: Optional[StrictStr] = Field(default=None, description="Domains or full object URLs to be excluded from metrics and waterfall data for transaction tests.", alias="blockDomains")
|
85
88
|
disable_screenshot: Optional[StrictBool] = Field(default=False, description="Enables or disables screenshots on error. Set true to not capture", alias="disableScreenshot")
|
86
89
|
allow_mic_and_camera: Optional[StrictBool] = Field(default=False, description="Set true allow the use of a fake mic and camera in the browser.", alias="allowMicAndCamera")
|
87
90
|
allow_geolocation: Optional[StrictBool] = Field(default=False, description="Set true to use the agent’s geolocation by the web page.", alias="allowGeolocation")
|
88
91
|
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")
|
89
92
|
page_loading_strategy: Optional[TestPageLoadingStrategy] = Field(default=None, alias="pageLoadingStrategy")
|
90
|
-
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")
|
91
|
-
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")
|
92
|
-
override_proxy_id: Optional[StrictStr] = Field(default=None, description="ID of the proxy to be used if the default proxy is overridden.", alias="overrideProxyId")
|
93
93
|
agents: Optional[List[Agent]] = Field(default=None, description="Contains list of agents.")
|
94
|
-
__properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "
|
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", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "agents"]
|
95
95
|
|
96
96
|
model_config = ConfigDict(
|
97
97
|
populate_by_name=True,
|
@@ -215,8 +215,6 @@ class PageLoadInstantTest(BaseModel):
|
|
215
215
|
"contentRegex": obj.get("contentRegex"),
|
216
216
|
"customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None,
|
217
217
|
"desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else '200',
|
218
|
-
"emulatedDeviceId": obj.get("emulatedDeviceId"),
|
219
|
-
"followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True,
|
220
218
|
"httpTargetTime": obj.get("httpTargetTime"),
|
221
219
|
"httpTimeLimit": obj.get("httpTimeLimit") if obj.get("httpTimeLimit") is not None else 5,
|
222
220
|
"httpVersion": obj.get("httpVersion") if obj.get("httpVersion") is not None else 2,
|
@@ -224,8 +222,6 @@ class PageLoadInstantTest(BaseModel):
|
|
224
222
|
"mtuMeasurements": obj.get("mtuMeasurements"),
|
225
223
|
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
|
226
224
|
"numPathTraces": obj.get("numPathTraces") if obj.get("numPathTraces") is not None else 3,
|
227
|
-
"pageLoadTargetTime": obj.get("pageLoadTargetTime"),
|
228
|
-
"pageLoadTimeLimit": obj.get("pageLoadTimeLimit") if obj.get("pageLoadTimeLimit") is not None else 10,
|
229
225
|
"password": obj.get("password"),
|
230
226
|
"pathTraceMode": obj.get("pathTraceMode"),
|
231
227
|
"probeMode": obj.get("probeMode"),
|
@@ -238,15 +234,19 @@ class PageLoadInstantTest(BaseModel):
|
|
238
234
|
"username": obj.get("username"),
|
239
235
|
"verifyCertificate": obj.get("verifyCertificate") if obj.get("verifyCertificate") is not None else False,
|
240
236
|
"allowUnsafeLegacyRenegotiation": obj.get("allowUnsafeLegacyRenegotiation") if obj.get("allowUnsafeLegacyRenegotiation") is not None else True,
|
237
|
+
"followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True,
|
238
|
+
"fixedPacketRate": obj.get("fixedPacketRate"),
|
239
|
+
"overrideAgentProxy": obj.get("overrideAgentProxy") if obj.get("overrideAgentProxy") is not None else False,
|
240
|
+
"overrideProxyId": obj.get("overrideProxyId"),
|
241
|
+
"emulatedDeviceId": obj.get("emulatedDeviceId"),
|
242
|
+
"pageLoadTargetTime": obj.get("pageLoadTargetTime"),
|
243
|
+
"pageLoadTimeLimit": obj.get("pageLoadTimeLimit") if obj.get("pageLoadTimeLimit") is not None else 10,
|
241
244
|
"blockDomains": obj.get("blockDomains"),
|
242
245
|
"disableScreenshot": obj.get("disableScreenshot") if obj.get("disableScreenshot") is not None else False,
|
243
246
|
"allowMicAndCamera": obj.get("allowMicAndCamera") if obj.get("allowMicAndCamera") is not None else False,
|
244
247
|
"allowGeolocation": obj.get("allowGeolocation") if obj.get("allowGeolocation") is not None else False,
|
245
248
|
"browserLanguage": obj.get("browserLanguage"),
|
246
249
|
"pageLoadingStrategy": obj.get("pageLoadingStrategy"),
|
247
|
-
"fixedPacketRate": obj.get("fixedPacketRate"),
|
248
|
-
"overrideAgentProxy": obj.get("overrideAgentProxy") if obj.get("overrideAgentProxy") is not None else False,
|
249
|
-
"overrideProxyId": obj.get("overrideProxyId"),
|
250
250
|
"agents": [Agent.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
|
251
251
|
})
|
252
252
|
return _obj
|