thousandeyes-sdk-instant-tests 1.3.0__py3-none-any.whl → 2.0.0rc1__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 +28 -18
- thousandeyes_sdk/instant_tests/api/__init__.py +13 -13
- thousandeyes_sdk/instant_tests/api/{agent_to_agent_api.py → agent_to_agent_instant_tests_api.py} +15 -15
- thousandeyes_sdk/instant_tests/api/{agent_to_server_api.py → agent_to_server_instant_tests_api.py} +15 -15
- thousandeyes_sdk/instant_tests/api/{api_api.py → api_instant_tests_api.py} +15 -15
- thousandeyes_sdk/instant_tests/api/{dns_server_api.py → dns_server_instant_tests_api.py} +15 -15
- thousandeyes_sdk/instant_tests/api/{dns_trace_api.py → dns_trace_instant_tests_api.py} +15 -15
- thousandeyes_sdk/instant_tests/api/{dns_security_api.py → dnssec_instant_tests_api.py} +21 -21
- thousandeyes_sdk/instant_tests/api/{ftp_server_api.py → ftp_server_instant_tests_api.py} +31 -31
- thousandeyes_sdk/instant_tests/api/{http_page_load_api.py → http_page_load_instant_tests_api.py} +15 -15
- thousandeyes_sdk/instant_tests/api/{http_server_api.py → http_server_instant_tests_api.py} +15 -15
- thousandeyes_sdk/instant_tests/api/{run_api.py → instant_tests_api.py} +2 -2
- thousandeyes_sdk/instant_tests/api/{sip_server_api.py → sip_server_instant_tests_api.py} +9 -9
- thousandeyes_sdk/instant_tests/api/{voice_api.py → voice_instant_tests_api.py} +15 -15
- thousandeyes_sdk/instant_tests/api/{web_transaction_api.py → web_transaction_instant_tests_api.py} +15 -15
- thousandeyes_sdk/instant_tests/models/__init__.py +15 -5
- thousandeyes_sdk/instant_tests/models/agent_base.py +1 -1
- thousandeyes_sdk/instant_tests/models/agent_interfaces.py +1 -1
- thousandeyes_sdk/instant_tests/models/{agent.py → agent_response.py} +5 -5
- thousandeyes_sdk/instant_tests/models/agent_to_agent_instant_test.py +3 -15
- thousandeyes_sdk/instant_tests/models/agent_to_agent_instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/agent_to_agent_instant_test_response.py +195 -0
- thousandeyes_sdk/instant_tests/models/agent_to_agent_properties.py +1 -1
- thousandeyes_sdk/instant_tests/models/agent_to_agent_test_protocol.py +6 -1
- thousandeyes_sdk/instant_tests/models/agent_to_server_instant_test.py +3 -15
- thousandeyes_sdk/instant_tests/models/agent_to_server_instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/agent_to_server_instant_test_response.py +200 -0
- thousandeyes_sdk/instant_tests/models/agent_to_server_properties.py +1 -1
- thousandeyes_sdk/instant_tests/models/api_instant_test.py +8 -14
- thousandeyes_sdk/instant_tests/models/api_instant_test_request.py +11 -5
- thousandeyes_sdk/instant_tests/models/api_instant_test_response.py +217 -0
- thousandeyes_sdk/instant_tests/models/api_predefined_variable.py +1 -1
- thousandeyes_sdk/instant_tests/models/api_properties.py +8 -2
- 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 +6 -1
- thousandeyes_sdk/instant_tests/models/api_request_assertion_operator.py +6 -1
- thousandeyes_sdk/instant_tests/models/api_request_auth_type.py +6 -1
- thousandeyes_sdk/instant_tests/models/api_request_header.py +1 -1
- thousandeyes_sdk/instant_tests/models/api_request_method.py +6 -1
- thousandeyes_sdk/instant_tests/models/api_request_variable.py +1 -1
- thousandeyes_sdk/instant_tests/models/cloud_enterprise_agent_type.py +6 -1
- thousandeyes_sdk/instant_tests/models/dns_query_class.py +6 -1
- thousandeyes_sdk/instant_tests/models/dns_sec_instant_test.py +3 -15
- thousandeyes_sdk/instant_tests/models/dns_sec_instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/dns_sec_instant_test_response.py +167 -0
- thousandeyes_sdk/instant_tests/models/dns_sec_properties.py +1 -1
- thousandeyes_sdk/instant_tests/models/dns_server_instant_test.py +3 -15
- thousandeyes_sdk/instant_tests/models/dns_server_instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/{sip_server_instant_test_request1.py → dns_server_instant_test_response.py} +36 -27
- 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 +3 -15
- thousandeyes_sdk/instant_tests/models/dns_trace_instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/dns_trace_instant_test_response.py +170 -0
- 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_instant_test_options.py +42 -0
- thousandeyes_sdk/instant_tests/models/ftp_server_instant_test.py +3 -15
- thousandeyes_sdk/instant_tests/models/{server_instant_test_request.py → ftp_server_instant_test_request.py} +5 -5
- thousandeyes_sdk/instant_tests/models/ftp_server_instant_test_response.py +204 -0
- thousandeyes_sdk/instant_tests/models/ftp_server_properties.py +1 -1
- thousandeyes_sdk/instant_tests/models/ftp_server_request_type.py +6 -1
- thousandeyes_sdk/instant_tests/models/http_server_base_properties.py +3 -3
- thousandeyes_sdk/instant_tests/models/http_server_instant_test.py +5 -17
- thousandeyes_sdk/instant_tests/models/http_server_instant_test_request.py +3 -3
- thousandeyes_sdk/instant_tests/models/http_server_instant_test_response.py +257 -0
- thousandeyes_sdk/instant_tests/models/http_server_properties.py +3 -3
- 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/o_auth.py +1 -1
- thousandeyes_sdk/instant_tests/models/page_load_instant_test.py +5 -17
- thousandeyes_sdk/instant_tests/models/page_load_instant_test_request.py +3 -3
- thousandeyes_sdk/instant_tests/models/page_load_instant_test_response.py +269 -0
- thousandeyes_sdk/instant_tests/models/page_load_properties.py +3 -3
- thousandeyes_sdk/instant_tests/models/request_method.py +6 -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 +3 -15
- thousandeyes_sdk/instant_tests/models/sip_server_instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/sip_server_instant_test_response.py +6 -8
- thousandeyes_sdk/instant_tests/models/sip_server_properties.py +1 -1
- thousandeyes_sdk/instant_tests/models/sip_test_protocol.py +6 -1
- thousandeyes_sdk/instant_tests/models/test_agent.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_auth_type.py +6 -1
- thousandeyes_sdk/instant_tests/models/test_custom_headers.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_direction.py +6 -1
- thousandeyes_sdk/instant_tests/models/test_dns_server.py +1 -1
- thousandeyes_sdk/instant_tests/models/test_dns_transport_protocol.py +6 -1
- thousandeyes_sdk/instant_tests/models/test_dscp_id.py +6 -1
- thousandeyes_sdk/instant_tests/models/test_ipv6_policy.py +6 -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 +6 -1
- thousandeyes_sdk/instant_tests/models/test_path_trace_mode.py +6 -1
- thousandeyes_sdk/instant_tests/models/test_probe_mode.py +6 -1
- thousandeyes_sdk/instant_tests/models/test_protocol.py +6 -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 +6 -1
- thousandeyes_sdk/instant_tests/models/test_type.py +6 -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 +3 -15
- thousandeyes_sdk/instant_tests/models/voice_instant_test_request.py +1 -1
- thousandeyes_sdk/instant_tests/models/voice_instant_test_response.py +186 -0
- thousandeyes_sdk/instant_tests/models/voice_properties.py +1 -1
- thousandeyes_sdk/instant_tests/models/web_transaction_instant_test.py +4 -16
- thousandeyes_sdk/instant_tests/models/web_transaction_instant_test_request.py +7 -7
- thousandeyes_sdk/instant_tests/models/web_transaction_instant_test_response.py +273 -0
- thousandeyes_sdk/instant_tests/models/web_transaction_properties.py +3 -3
- {thousandeyes_sdk_instant_tests-1.3.0.dist-info → thousandeyes_sdk_instant_tests-2.0.0rc1.dist-info}/METADATA +36 -26
- thousandeyes_sdk_instant_tests-2.0.0rc1.dist-info/RECORD +121 -0
- {thousandeyes_sdk_instant_tests-1.3.0.dist-info → thousandeyes_sdk_instant_tests-2.0.0rc1.dist-info}/WHEEL +1 -1
- thousandeyes_sdk/instant_tests/models/expand.py +0 -37
- thousandeyes_sdk_instant_tests-1.3.0.dist-info/RECORD +0 -111
- {thousandeyes_sdk_instant_tests-1.3.0.dist-info → thousandeyes_sdk_instant_tests-2.0.0rc1.dist-info}/LICENSE +0 -0
- {thousandeyes_sdk_instant_tests-1.3.0.dist-info → thousandeyes_sdk_instant_tests-2.0.0rc1.dist-info}/NOTICE +0 -0
- {thousandeyes_sdk_instant_tests-1.3.0.dist-info → thousandeyes_sdk_instant_tests-2.0.0rc1.dist-info}/top_level.txt +0 -0
@@ -3,7 +3,7 @@
|
|
3
3
|
"""
|
4
4
|
Instant Tests API
|
5
5
|
|
6
|
-
The Instant Tests API
|
6
|
+
The Instant Tests API operations 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
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
9
9
|
|
@@ -20,20 +20,23 @@ from datetime import datetime
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
22
22
|
from typing_extensions import Annotated
|
23
|
-
from thousandeyes_sdk.instant_tests.models.
|
23
|
+
from thousandeyes_sdk.instant_tests.models.agent_response import AgentResponse
|
24
|
+
from thousandeyes_sdk.instant_tests.models.dns_query_class import DnsQueryClass
|
24
25
|
from thousandeyes_sdk.instant_tests.models.shared_with_account import SharedWithAccount
|
26
|
+
from thousandeyes_sdk.instant_tests.models.test_dns_server import TestDnsServer
|
27
|
+
from thousandeyes_sdk.instant_tests.models.test_dns_transport_protocol import TestDnsTransportProtocol
|
25
28
|
from thousandeyes_sdk.instant_tests.models.test_ipv6_policy import TestIpv6Policy
|
26
29
|
from thousandeyes_sdk.instant_tests.models.test_label import TestLabel
|
27
30
|
from thousandeyes_sdk.instant_tests.models.test_links import TestLinks
|
28
31
|
from thousandeyes_sdk.instant_tests.models.test_path_trace_mode import TestPathTraceMode
|
29
32
|
from thousandeyes_sdk.instant_tests.models.test_probe_mode import TestProbeMode
|
30
|
-
from thousandeyes_sdk.instant_tests.models.
|
33
|
+
from thousandeyes_sdk.instant_tests.models.test_protocol import TestProtocol
|
31
34
|
from typing import Optional, Set
|
32
35
|
from typing_extensions import Self
|
33
36
|
|
34
|
-
class
|
37
|
+
class DnsServerInstantTestResponse(BaseModel):
|
35
38
|
"""
|
36
|
-
|
39
|
+
DnsServerInstantTestResponse
|
37
40
|
""" # noqa: E501
|
38
41
|
created_by: Optional[StrictStr] = Field(default=None, description="User that created the test.", alias="createdBy")
|
39
42
|
created_date: Optional[datetime] = Field(default=None, description="UTC created date (ISO date-time format).", alias="createdDate")
|
@@ -48,20 +51,22 @@ class SipServerInstantTestRequest1(BaseModel):
|
|
48
51
|
links: Optional[TestLinks] = Field(default=None, alias="_links")
|
49
52
|
labels: Optional[List[TestLabel]] = None
|
50
53
|
shared_with_accounts: Optional[List[SharedWithAccount]] = Field(default=None, alias="sharedWithAccounts")
|
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
|
+
dns_servers: List[TestDnsServer] = Field(alias="dnsServers")
|
56
|
+
dns_transport_protocol: Optional[TestDnsTransportProtocol] = Field(default=None, alias="dnsTransportProtocol")
|
57
|
+
domain: StrictStr = Field(description="The target record for the test, with the record type suffixed. If no record type is specified, the test defaults to an ANY record.")
|
51
58
|
mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements")
|
52
59
|
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")
|
53
60
|
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
|
-
options_regex: Optional[StrictStr] = Field(default=None, description="Options regex, this field does not require escaping.", alias="optionsRegex")
|
55
61
|
path_trace_mode: Optional[TestPathTraceMode] = Field(default=None, alias="pathTraceMode")
|
56
62
|
probe_mode: Optional[TestProbeMode] = Field(default=None, alias="probeMode")
|
57
|
-
|
58
|
-
|
59
|
-
sip_time_limit: Optional[Annotated[int, Field(le=10, strict=True, ge=5)]] = Field(default=5, description="Time limit in milliseconds.", alias="sipTimeLimit")
|
60
|
-
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
|
+
protocol: Optional[TestProtocol] = None
|
64
|
+
recursive_queries: Optional[StrictBool] = Field(default=None, description="Set true to run query with RD (recursion desired) flag enabled.", alias="recursiveQueries")
|
61
65
|
ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy")
|
62
|
-
|
63
|
-
|
64
|
-
|
66
|
+
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")
|
67
|
+
dns_query_class: Optional[DnsQueryClass] = Field(default=None, alias="dnsQueryClass")
|
68
|
+
agents: Optional[List[AgentResponse]] = Field(default=None, description="Contains list of agents.")
|
69
|
+
__properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "bandwidthMeasurements", "dnsServers", "dnsTransportProtocol", "domain", "mtuMeasurements", "networkMeasurements", "numPathTraces", "pathTraceMode", "probeMode", "protocol", "recursiveQueries", "ipv6Policy", "fixedPacketRate", "dnsQueryClass", "agents"]
|
65
70
|
|
66
71
|
model_config = ConfigDict(
|
67
72
|
populate_by_name=True,
|
@@ -82,7 +87,7 @@ class SipServerInstantTestRequest1(BaseModel):
|
|
82
87
|
|
83
88
|
@classmethod
|
84
89
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
85
|
-
"""Create an instance of
|
90
|
+
"""Create an instance of DnsServerInstantTestResponse from a JSON string"""
|
86
91
|
return cls.from_dict(json.loads(json_str))
|
87
92
|
|
88
93
|
def to_dict(self) -> Dict[str, Any]:
|
@@ -104,7 +109,6 @@ class SipServerInstantTestRequest1(BaseModel):
|
|
104
109
|
* OpenAPI `readOnly` fields are excluded.
|
105
110
|
* OpenAPI `readOnly` fields are excluded.
|
106
111
|
* OpenAPI `readOnly` fields are excluded.
|
107
|
-
* OpenAPI `readOnly` fields are excluded.
|
108
112
|
"""
|
109
113
|
excluded_fields: Set[str] = set([
|
110
114
|
"created_by",
|
@@ -117,7 +121,6 @@ class SipServerInstantTestRequest1(BaseModel):
|
|
117
121
|
"type",
|
118
122
|
"labels",
|
119
123
|
"shared_with_accounts",
|
120
|
-
"agents",
|
121
124
|
])
|
122
125
|
|
123
126
|
_dict = self.model_dump(
|
@@ -142,6 +145,13 @@ class SipServerInstantTestRequest1(BaseModel):
|
|
142
145
|
if _item:
|
143
146
|
_items.append(_item.to_dict())
|
144
147
|
_dict['sharedWithAccounts'] = _items
|
148
|
+
# override the default output from pydantic by calling `to_dict()` of each item in dns_servers (list)
|
149
|
+
_items = []
|
150
|
+
if self.dns_servers:
|
151
|
+
for _item in self.dns_servers:
|
152
|
+
if _item:
|
153
|
+
_items.append(_item.to_dict())
|
154
|
+
_dict['dnsServers'] = _items
|
145
155
|
# override the default output from pydantic by calling `to_dict()` of each item in agents (list)
|
146
156
|
_items = []
|
147
157
|
if self.agents:
|
@@ -149,14 +159,11 @@ class SipServerInstantTestRequest1(BaseModel):
|
|
149
159
|
if _item:
|
150
160
|
_items.append(_item.to_dict())
|
151
161
|
_dict['agents'] = _items
|
152
|
-
# override the default output from pydantic by calling `to_dict()` of target_sip_credentials
|
153
|
-
if self.target_sip_credentials:
|
154
|
-
_dict['targetSipCredentials'] = self.target_sip_credentials.to_dict()
|
155
162
|
return _dict
|
156
163
|
|
157
164
|
@classmethod
|
158
165
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
159
|
-
"""Create an instance of
|
166
|
+
"""Create an instance of DnsServerInstantTestResponse from a dict"""
|
160
167
|
if obj is None:
|
161
168
|
return None
|
162
169
|
|
@@ -177,19 +184,21 @@ class SipServerInstantTestRequest1(BaseModel):
|
|
177
184
|
"_links": TestLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None,
|
178
185
|
"labels": [TestLabel.from_dict(_item) for _item in obj["labels"]] if obj.get("labels") is not None else None,
|
179
186
|
"sharedWithAccounts": [SharedWithAccount.from_dict(_item) for _item in obj["sharedWithAccounts"]] if obj.get("sharedWithAccounts") is not None else None,
|
187
|
+
"bandwidthMeasurements": obj.get("bandwidthMeasurements"),
|
188
|
+
"dnsServers": [TestDnsServer.from_dict(_item) for _item in obj["dnsServers"]] if obj.get("dnsServers") is not None else None,
|
189
|
+
"dnsTransportProtocol": obj.get("dnsTransportProtocol"),
|
190
|
+
"domain": obj.get("domain"),
|
180
191
|
"mtuMeasurements": obj.get("mtuMeasurements"),
|
181
192
|
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
|
182
193
|
"numPathTraces": obj.get("numPathTraces") if obj.get("numPathTraces") is not None else 3,
|
183
|
-
"optionsRegex": obj.get("optionsRegex"),
|
184
194
|
"pathTraceMode": obj.get("pathTraceMode"),
|
185
195
|
"probeMode": obj.get("probeMode"),
|
186
|
-
"
|
187
|
-
"
|
188
|
-
"sipTimeLimit": obj.get("sipTimeLimit") if obj.get("sipTimeLimit") is not None else 5,
|
189
|
-
"fixedPacketRate": obj.get("fixedPacketRate"),
|
196
|
+
"protocol": obj.get("protocol"),
|
197
|
+
"recursiveQueries": obj.get("recursiveQueries"),
|
190
198
|
"ipv6Policy": obj.get("ipv6Policy"),
|
191
|
-
"
|
192
|
-
"
|
199
|
+
"fixedPacketRate": obj.get("fixedPacketRate"),
|
200
|
+
"dnsQueryClass": obj.get("dnsQueryClass"),
|
201
|
+
"agents": [AgentResponse.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
|
193
202
|
})
|
194
203
|
return _obj
|
195
204
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"""
|
4
4
|
Instant Tests API
|
5
5
|
|
6
|
-
The Instant Tests API
|
6
|
+
The Instant Tests API operations 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
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"""
|
4
4
|
Instant Tests API
|
5
5
|
|
6
|
-
The Instant Tests API
|
6
|
+
The Instant Tests API operations 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
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"""
|
4
4
|
Instant Tests API
|
5
5
|
|
6
|
-
The Instant Tests API
|
6
|
+
The Instant Tests API operations 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
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
9
9
|
|
@@ -19,7 +19,6 @@ import json
|
|
19
19
|
from datetime import datetime
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
22
|
-
from thousandeyes_sdk.instant_tests.models.agent import Agent
|
23
22
|
from thousandeyes_sdk.instant_tests.models.dns_query_class import DnsQueryClass
|
24
23
|
from thousandeyes_sdk.instant_tests.models.shared_with_account import SharedWithAccount
|
25
24
|
from thousandeyes_sdk.instant_tests.models.test_dns_transport_protocol import TestDnsTransportProtocol
|
@@ -48,8 +47,7 @@ class DnsTraceInstantTest(BaseModel):
|
|
48
47
|
dns_transport_protocol: Optional[TestDnsTransportProtocol] = Field(default=None, alias="dnsTransportProtocol")
|
49
48
|
domain: StrictStr = Field(description="The target record for the test, with the record type suffixed. If no record type is specified, the test defaults to an ANY record.")
|
50
49
|
dns_query_class: Optional[DnsQueryClass] = Field(default=None, alias="dnsQueryClass")
|
51
|
-
|
52
|
-
__properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "dnsTransportProtocol", "domain", "dnsQueryClass", "agents"]
|
50
|
+
__properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "dnsTransportProtocol", "domain", "dnsQueryClass"]
|
53
51
|
|
54
52
|
model_config = ConfigDict(
|
55
53
|
populate_by_name=True,
|
@@ -92,7 +90,6 @@ class DnsTraceInstantTest(BaseModel):
|
|
92
90
|
* OpenAPI `readOnly` fields are excluded.
|
93
91
|
* OpenAPI `readOnly` fields are excluded.
|
94
92
|
* OpenAPI `readOnly` fields are excluded.
|
95
|
-
* OpenAPI `readOnly` fields are excluded.
|
96
93
|
"""
|
97
94
|
excluded_fields: Set[str] = set([
|
98
95
|
"created_by",
|
@@ -105,7 +102,6 @@ class DnsTraceInstantTest(BaseModel):
|
|
105
102
|
"type",
|
106
103
|
"labels",
|
107
104
|
"shared_with_accounts",
|
108
|
-
"agents",
|
109
105
|
])
|
110
106
|
|
111
107
|
_dict = self.model_dump(
|
@@ -130,13 +126,6 @@ class DnsTraceInstantTest(BaseModel):
|
|
130
126
|
if _item:
|
131
127
|
_items.append(_item.to_dict())
|
132
128
|
_dict['sharedWithAccounts'] = _items
|
133
|
-
# override the default output from pydantic by calling `to_dict()` of each item in agents (list)
|
134
|
-
_items = []
|
135
|
-
if self.agents:
|
136
|
-
for _item in self.agents:
|
137
|
-
if _item:
|
138
|
-
_items.append(_item.to_dict())
|
139
|
-
_dict['agents'] = _items
|
140
129
|
return _dict
|
141
130
|
|
142
131
|
@classmethod
|
@@ -164,8 +153,7 @@ class DnsTraceInstantTest(BaseModel):
|
|
164
153
|
"sharedWithAccounts": [SharedWithAccount.from_dict(_item) for _item in obj["sharedWithAccounts"]] if obj.get("sharedWithAccounts") is not None else None,
|
165
154
|
"dnsTransportProtocol": obj.get("dnsTransportProtocol"),
|
166
155
|
"domain": obj.get("domain"),
|
167
|
-
"dnsQueryClass": obj.get("dnsQueryClass")
|
168
|
-
"agents": [Agent.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
|
156
|
+
"dnsQueryClass": obj.get("dnsQueryClass")
|
169
157
|
})
|
170
158
|
return _obj
|
171
159
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"""
|
4
4
|
Instant Tests API
|
5
5
|
|
6
|
-
The Instant Tests API
|
6
|
+
The Instant Tests API operations 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
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
9
9
|
|
@@ -0,0 +1,170 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Instant Tests API
|
5
|
+
|
6
|
+
The Instant Tests API operations 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
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
9
|
+
|
10
|
+
Do not edit the class manually.
|
11
|
+
""" # noqa: E501
|
12
|
+
|
13
|
+
|
14
|
+
from __future__ import annotations
|
15
|
+
import pprint
|
16
|
+
import re # noqa: F401
|
17
|
+
import json
|
18
|
+
|
19
|
+
from datetime import datetime
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
22
|
+
from thousandeyes_sdk.instant_tests.models.agent_response import AgentResponse
|
23
|
+
from thousandeyes_sdk.instant_tests.models.dns_query_class import DnsQueryClass
|
24
|
+
from thousandeyes_sdk.instant_tests.models.shared_with_account import SharedWithAccount
|
25
|
+
from thousandeyes_sdk.instant_tests.models.test_dns_transport_protocol import TestDnsTransportProtocol
|
26
|
+
from thousandeyes_sdk.instant_tests.models.test_label import TestLabel
|
27
|
+
from thousandeyes_sdk.instant_tests.models.test_links import TestLinks
|
28
|
+
from typing import Optional, Set
|
29
|
+
from typing_extensions import Self
|
30
|
+
|
31
|
+
class DnsTraceInstantTestResponse(BaseModel):
|
32
|
+
"""
|
33
|
+
DnsTraceInstantTestResponse
|
34
|
+
""" # noqa: E501
|
35
|
+
created_by: Optional[StrictStr] = Field(default=None, description="User that created the test.", alias="createdBy")
|
36
|
+
created_date: Optional[datetime] = Field(default=None, description="UTC created date (ISO date-time format).", alias="createdDate")
|
37
|
+
description: Optional[StrictStr] = Field(default=None, description="A description of the test.")
|
38
|
+
live_share: Optional[StrictBool] = Field(default=None, description="Indicates if the test is shared with the account group.", alias="liveShare")
|
39
|
+
modified_by: Optional[StrictStr] = Field(default=None, description="User that modified the test.", alias="modifiedBy")
|
40
|
+
modified_date: Optional[datetime] = Field(default=None, description="UTC last modification date (ISO date-time format).", alias="modifiedDate")
|
41
|
+
saved_event: Optional[StrictBool] = Field(default=None, description="Indicates if the test is a saved event.", alias="savedEvent")
|
42
|
+
test_id: Optional[StrictStr] = Field(default=None, description="Each test is assigned an unique ID; this is used to access test information and results from other endpoints.", alias="testId")
|
43
|
+
test_name: Optional[StrictStr] = Field(default=None, description="The name of the test. Test name must be unique.", alias="testName")
|
44
|
+
type: Optional[StrictStr] = None
|
45
|
+
links: Optional[TestLinks] = Field(default=None, alias="_links")
|
46
|
+
labels: Optional[List[TestLabel]] = None
|
47
|
+
shared_with_accounts: Optional[List[SharedWithAccount]] = Field(default=None, alias="sharedWithAccounts")
|
48
|
+
dns_transport_protocol: Optional[TestDnsTransportProtocol] = Field(default=None, alias="dnsTransportProtocol")
|
49
|
+
domain: StrictStr = Field(description="The target record for the test, with the record type suffixed. If no record type is specified, the test defaults to an ANY record.")
|
50
|
+
dns_query_class: Optional[DnsQueryClass] = Field(default=None, alias="dnsQueryClass")
|
51
|
+
agents: Optional[List[AgentResponse]] = Field(default=None, description="Contains list of agents.")
|
52
|
+
__properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "dnsTransportProtocol", "domain", "dnsQueryClass", "agents"]
|
53
|
+
|
54
|
+
model_config = ConfigDict(
|
55
|
+
populate_by_name=True,
|
56
|
+
validate_assignment=True,
|
57
|
+
protected_namespaces=(),
|
58
|
+
extra="allow",
|
59
|
+
)
|
60
|
+
|
61
|
+
|
62
|
+
def to_str(self) -> str:
|
63
|
+
"""Returns the string representation of the model using alias"""
|
64
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
65
|
+
|
66
|
+
def to_json(self) -> str:
|
67
|
+
"""Returns the JSON representation of the model using alias"""
|
68
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
69
|
+
return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True)
|
70
|
+
|
71
|
+
@classmethod
|
72
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
73
|
+
"""Create an instance of DnsTraceInstantTestResponse from a JSON string"""
|
74
|
+
return cls.from_dict(json.loads(json_str))
|
75
|
+
|
76
|
+
def to_dict(self) -> Dict[str, Any]:
|
77
|
+
"""Return the dictionary representation of the model using alias.
|
78
|
+
|
79
|
+
This has the following differences from calling pydantic's
|
80
|
+
`self.model_dump(by_alias=True)`:
|
81
|
+
|
82
|
+
* `None` is only added to the output dict for nullable fields that
|
83
|
+
were set at model initialization. Other fields with value `None`
|
84
|
+
are ignored.
|
85
|
+
* OpenAPI `readOnly` fields are excluded.
|
86
|
+
* OpenAPI `readOnly` fields are excluded.
|
87
|
+
* OpenAPI `readOnly` fields are excluded.
|
88
|
+
* OpenAPI `readOnly` fields are excluded.
|
89
|
+
* OpenAPI `readOnly` fields are excluded.
|
90
|
+
* OpenAPI `readOnly` fields are excluded.
|
91
|
+
* OpenAPI `readOnly` fields are excluded.
|
92
|
+
* OpenAPI `readOnly` fields are excluded.
|
93
|
+
* OpenAPI `readOnly` fields are excluded.
|
94
|
+
* OpenAPI `readOnly` fields are excluded.
|
95
|
+
"""
|
96
|
+
excluded_fields: Set[str] = set([
|
97
|
+
"created_by",
|
98
|
+
"created_date",
|
99
|
+
"live_share",
|
100
|
+
"modified_by",
|
101
|
+
"modified_date",
|
102
|
+
"saved_event",
|
103
|
+
"test_id",
|
104
|
+
"type",
|
105
|
+
"labels",
|
106
|
+
"shared_with_accounts",
|
107
|
+
])
|
108
|
+
|
109
|
+
_dict = self.model_dump(
|
110
|
+
by_alias=True,
|
111
|
+
exclude=excluded_fields,
|
112
|
+
exclude_none=True,
|
113
|
+
)
|
114
|
+
# override the default output from pydantic by calling `to_dict()` of links
|
115
|
+
if self.links:
|
116
|
+
_dict['_links'] = self.links.to_dict()
|
117
|
+
# override the default output from pydantic by calling `to_dict()` of each item in labels (list)
|
118
|
+
_items = []
|
119
|
+
if self.labels:
|
120
|
+
for _item in self.labels:
|
121
|
+
if _item:
|
122
|
+
_items.append(_item.to_dict())
|
123
|
+
_dict['labels'] = _items
|
124
|
+
# override the default output from pydantic by calling `to_dict()` of each item in shared_with_accounts (list)
|
125
|
+
_items = []
|
126
|
+
if self.shared_with_accounts:
|
127
|
+
for _item in self.shared_with_accounts:
|
128
|
+
if _item:
|
129
|
+
_items.append(_item.to_dict())
|
130
|
+
_dict['sharedWithAccounts'] = _items
|
131
|
+
# override the default output from pydantic by calling `to_dict()` of each item in agents (list)
|
132
|
+
_items = []
|
133
|
+
if self.agents:
|
134
|
+
for _item in self.agents:
|
135
|
+
if _item:
|
136
|
+
_items.append(_item.to_dict())
|
137
|
+
_dict['agents'] = _items
|
138
|
+
return _dict
|
139
|
+
|
140
|
+
@classmethod
|
141
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
142
|
+
"""Create an instance of DnsTraceInstantTestResponse from a dict"""
|
143
|
+
if obj is None:
|
144
|
+
return None
|
145
|
+
|
146
|
+
if not isinstance(obj, dict):
|
147
|
+
return cls.model_validate(obj)
|
148
|
+
|
149
|
+
_obj = cls.model_validate({
|
150
|
+
"createdBy": obj.get("createdBy"),
|
151
|
+
"createdDate": obj.get("createdDate"),
|
152
|
+
"description": obj.get("description"),
|
153
|
+
"liveShare": obj.get("liveShare"),
|
154
|
+
"modifiedBy": obj.get("modifiedBy"),
|
155
|
+
"modifiedDate": obj.get("modifiedDate"),
|
156
|
+
"savedEvent": obj.get("savedEvent"),
|
157
|
+
"testId": obj.get("testId"),
|
158
|
+
"testName": obj.get("testName"),
|
159
|
+
"type": obj.get("type"),
|
160
|
+
"_links": TestLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None,
|
161
|
+
"labels": [TestLabel.from_dict(_item) for _item in obj["labels"]] if obj.get("labels") is not None else None,
|
162
|
+
"sharedWithAccounts": [SharedWithAccount.from_dict(_item) for _item in obj["sharedWithAccounts"]] if obj.get("sharedWithAccounts") is not None else None,
|
163
|
+
"dnsTransportProtocol": obj.get("dnsTransportProtocol"),
|
164
|
+
"domain": obj.get("domain"),
|
165
|
+
"dnsQueryClass": obj.get("dnsQueryClass"),
|
166
|
+
"agents": [AgentResponse.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
|
167
|
+
})
|
168
|
+
return _obj
|
169
|
+
|
170
|
+
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"""
|
4
4
|
Instant Tests API
|
5
5
|
|
6
|
-
The Instant Tests API
|
6
|
+
The Instant Tests API operations 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
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"""
|
4
4
|
Instant Tests API
|
5
5
|
|
6
|
-
The Instant Tests API
|
6
|
+
The Instant Tests API operations 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
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
9
9
|
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Instant Tests API
|
5
|
+
|
6
|
+
The Instant Tests API operations 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
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
9
|
+
|
10
|
+
Do not edit the class manually.
|
11
|
+
""" # noqa: E501
|
12
|
+
|
13
|
+
|
14
|
+
from __future__ import annotations
|
15
|
+
import json
|
16
|
+
from enum import Enum
|
17
|
+
from typing_extensions import Self
|
18
|
+
|
19
|
+
|
20
|
+
class ExpandInstantTestOptions(str, Enum):
|
21
|
+
"""
|
22
|
+
ExpandInstantTestOptions
|
23
|
+
"""
|
24
|
+
|
25
|
+
"""
|
26
|
+
allowed enum values
|
27
|
+
"""
|
28
|
+
AGENT = 'agent'
|
29
|
+
LABEL = 'label'
|
30
|
+
SHARED_MINUS_WITH_MINUS_ACCOUNT = 'shared-with-account'
|
31
|
+
UNKNOWN = 'unknown'
|
32
|
+
|
33
|
+
@classmethod
|
34
|
+
def from_json(cls, json_str: str) -> Self:
|
35
|
+
"""Create an instance of ExpandInstantTestOptions from a JSON string"""
|
36
|
+
return cls(json.loads(json_str))
|
37
|
+
|
38
|
+
@classmethod
|
39
|
+
def _missing_(cls, value):
|
40
|
+
"""Handle unknown values"""
|
41
|
+
return cls.UNKNOWN
|
42
|
+
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"""
|
4
4
|
Instant Tests API
|
5
5
|
|
6
|
-
The Instant Tests API
|
6
|
+
The Instant Tests API operations 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
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
9
9
|
|
@@ -20,7 +20,6 @@ from datetime import datetime
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
22
22
|
from typing_extensions import Annotated
|
23
|
-
from thousandeyes_sdk.instant_tests.models.agent import Agent
|
24
23
|
from thousandeyes_sdk.instant_tests.models.ftp_server_request_type import FtpServerRequestType
|
25
24
|
from thousandeyes_sdk.instant_tests.models.shared_with_account import SharedWithAccount
|
26
25
|
from thousandeyes_sdk.instant_tests.models.test_ipv6_policy import TestIpv6Policy
|
@@ -67,8 +66,7 @@ class FtpServerInstantTest(BaseModel):
|
|
67
66
|
username: StrictStr = Field(description="Username for Basic/NTLM authentication.")
|
68
67
|
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
68
|
ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy")
|
70
|
-
|
71
|
-
__properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "bandwidthMeasurements", "downloadLimit", "ftpTargetTime", "ftpTimeLimit", "mtuMeasurements", "networkMeasurements", "numPathTraces", "password", "pathTraceMode", "probeMode", "protocol", "requestType", "url", "useActiveFtp", "useExplicitFtps", "username", "fixedPacketRate", "ipv6Policy", "agents"]
|
69
|
+
__properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "bandwidthMeasurements", "downloadLimit", "ftpTargetTime", "ftpTimeLimit", "mtuMeasurements", "networkMeasurements", "numPathTraces", "password", "pathTraceMode", "probeMode", "protocol", "requestType", "url", "useActiveFtp", "useExplicitFtps", "username", "fixedPacketRate", "ipv6Policy"]
|
72
70
|
|
73
71
|
model_config = ConfigDict(
|
74
72
|
populate_by_name=True,
|
@@ -111,7 +109,6 @@ class FtpServerInstantTest(BaseModel):
|
|
111
109
|
* OpenAPI `readOnly` fields are excluded.
|
112
110
|
* OpenAPI `readOnly` fields are excluded.
|
113
111
|
* OpenAPI `readOnly` fields are excluded.
|
114
|
-
* OpenAPI `readOnly` fields are excluded.
|
115
112
|
"""
|
116
113
|
excluded_fields: Set[str] = set([
|
117
114
|
"created_by",
|
@@ -124,7 +121,6 @@ class FtpServerInstantTest(BaseModel):
|
|
124
121
|
"type",
|
125
122
|
"labels",
|
126
123
|
"shared_with_accounts",
|
127
|
-
"agents",
|
128
124
|
])
|
129
125
|
|
130
126
|
_dict = self.model_dump(
|
@@ -149,13 +145,6 @@ class FtpServerInstantTest(BaseModel):
|
|
149
145
|
if _item:
|
150
146
|
_items.append(_item.to_dict())
|
151
147
|
_dict['sharedWithAccounts'] = _items
|
152
|
-
# override the default output from pydantic by calling `to_dict()` of each item in agents (list)
|
153
|
-
_items = []
|
154
|
-
if self.agents:
|
155
|
-
for _item in self.agents:
|
156
|
-
if _item:
|
157
|
-
_items.append(_item.to_dict())
|
158
|
-
_dict['agents'] = _items
|
159
148
|
return _dict
|
160
149
|
|
161
150
|
@classmethod
|
@@ -198,8 +187,7 @@ class FtpServerInstantTest(BaseModel):
|
|
198
187
|
"useExplicitFtps": obj.get("useExplicitFtps"),
|
199
188
|
"username": obj.get("username"),
|
200
189
|
"fixedPacketRate": obj.get("fixedPacketRate"),
|
201
|
-
"ipv6Policy": obj.get("ipv6Policy")
|
202
|
-
"agents": [Agent.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
|
190
|
+
"ipv6Policy": obj.get("ipv6Policy")
|
203
191
|
})
|
204
192
|
return _obj
|
205
193
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"""
|
4
4
|
Instant Tests API
|
5
5
|
|
6
|
-
The Instant Tests API
|
6
|
+
The Instant Tests API operations 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
8
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
9
9
|
|
@@ -30,9 +30,9 @@ from thousandeyes_sdk.instant_tests.models.test_protocol import TestProtocol
|
|
30
30
|
from typing import Optional, Set
|
31
31
|
from typing_extensions import Self
|
32
32
|
|
33
|
-
class
|
33
|
+
class FtpServerInstantTestRequest(BaseModel):
|
34
34
|
"""
|
35
|
-
|
35
|
+
FtpServerInstantTestRequest
|
36
36
|
""" # noqa: E501
|
37
37
|
created_by: Optional[StrictStr] = Field(default=None, description="User that created the test.", alias="createdBy")
|
38
38
|
created_date: Optional[datetime] = Field(default=None, description="UTC created date (ISO date-time format).", alias="createdDate")
|
@@ -87,7 +87,7 @@ class ServerInstantTestRequest(BaseModel):
|
|
87
87
|
|
88
88
|
@classmethod
|
89
89
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
90
|
-
"""Create an instance of
|
90
|
+
"""Create an instance of FtpServerInstantTestRequest from a JSON string"""
|
91
91
|
return cls.from_dict(json.loads(json_str))
|
92
92
|
|
93
93
|
def to_dict(self) -> Dict[str, Any]:
|
@@ -138,7 +138,7 @@ class ServerInstantTestRequest(BaseModel):
|
|
138
138
|
|
139
139
|
@classmethod
|
140
140
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
141
|
-
"""Create an instance of
|
141
|
+
"""Create an instance of FtpServerInstantTestRequest from a dict"""
|
142
142
|
if obj is None:
|
143
143
|
return None
|
144
144
|
|