thousandeyes-sdk-instant-tests 1.3.0__py3-none-any.whl → 2.0.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 +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.0.dist-info}/METADATA +36 -26
- thousandeyes_sdk_instant_tests-2.0.0.dist-info/RECORD +121 -0
- {thousandeyes_sdk_instant_tests-1.3.0.dist-info → thousandeyes_sdk_instant_tests-2.0.0.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.0.dist-info}/LICENSE +0 -0
- {thousandeyes_sdk_instant_tests-1.3.0.dist-info → thousandeyes_sdk_instant_tests-2.0.0.dist-info}/NOTICE +0 -0
- {thousandeyes_sdk_instant_tests-1.3.0.dist-info → thousandeyes_sdk_instant_tests-2.0.0.dist-info}/top_level.txt +0 -0
@@ -4,7 +4,7 @@
|
|
4
4
|
"""
|
5
5
|
Instant Tests API
|
6
6
|
|
7
|
-
The Instant Tests API
|
7
|
+
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.
|
8
8
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
10
|
|
@@ -13,18 +13,21 @@
|
|
13
13
|
|
14
14
|
|
15
15
|
# import models into model package
|
16
|
-
from thousandeyes_sdk.instant_tests.models.agent import Agent
|
17
16
|
from thousandeyes_sdk.instant_tests.models.agent_base import AgentBase
|
18
17
|
from thousandeyes_sdk.instant_tests.models.agent_interfaces import AgentInterfaces
|
18
|
+
from thousandeyes_sdk.instant_tests.models.agent_response import AgentResponse
|
19
19
|
from thousandeyes_sdk.instant_tests.models.agent_to_agent_instant_test import AgentToAgentInstantTest
|
20
20
|
from thousandeyes_sdk.instant_tests.models.agent_to_agent_instant_test_request import AgentToAgentInstantTestRequest
|
21
|
+
from thousandeyes_sdk.instant_tests.models.agent_to_agent_instant_test_response import AgentToAgentInstantTestResponse
|
21
22
|
from thousandeyes_sdk.instant_tests.models.agent_to_agent_properties import AgentToAgentProperties
|
22
23
|
from thousandeyes_sdk.instant_tests.models.agent_to_agent_test_protocol import AgentToAgentTestProtocol
|
23
24
|
from thousandeyes_sdk.instant_tests.models.agent_to_server_instant_test import AgentToServerInstantTest
|
24
25
|
from thousandeyes_sdk.instant_tests.models.agent_to_server_instant_test_request import AgentToServerInstantTestRequest
|
26
|
+
from thousandeyes_sdk.instant_tests.models.agent_to_server_instant_test_response import AgentToServerInstantTestResponse
|
25
27
|
from thousandeyes_sdk.instant_tests.models.agent_to_server_properties import AgentToServerProperties
|
26
28
|
from thousandeyes_sdk.instant_tests.models.api_instant_test import ApiInstantTest
|
27
29
|
from thousandeyes_sdk.instant_tests.models.api_instant_test_request import ApiInstantTestRequest
|
30
|
+
from thousandeyes_sdk.instant_tests.models.api_instant_test_response import ApiInstantTestResponse
|
28
31
|
from thousandeyes_sdk.instant_tests.models.api_predefined_variable import ApiPredefinedVariable
|
29
32
|
from thousandeyes_sdk.instant_tests.models.api_properties import ApiProperties
|
30
33
|
from thousandeyes_sdk.instant_tests.models.api_request import ApiRequest
|
@@ -39,22 +42,28 @@ from thousandeyes_sdk.instant_tests.models.cloud_enterprise_agent_type import Cl
|
|
39
42
|
from thousandeyes_sdk.instant_tests.models.dns_query_class import DnsQueryClass
|
40
43
|
from thousandeyes_sdk.instant_tests.models.dns_sec_instant_test import DnsSecInstantTest
|
41
44
|
from thousandeyes_sdk.instant_tests.models.dns_sec_instant_test_request import DnsSecInstantTestRequest
|
45
|
+
from thousandeyes_sdk.instant_tests.models.dns_sec_instant_test_response import DnsSecInstantTestResponse
|
42
46
|
from thousandeyes_sdk.instant_tests.models.dns_sec_properties import DnsSecProperties
|
43
47
|
from thousandeyes_sdk.instant_tests.models.dns_server_instant_test import DnsServerInstantTest
|
44
48
|
from thousandeyes_sdk.instant_tests.models.dns_server_instant_test_request import DnsServerInstantTestRequest
|
49
|
+
from thousandeyes_sdk.instant_tests.models.dns_server_instant_test_response import DnsServerInstantTestResponse
|
45
50
|
from thousandeyes_sdk.instant_tests.models.dns_server_properties import DnsServerProperties
|
46
51
|
from thousandeyes_sdk.instant_tests.models.dns_servers_request import DnsServersRequest
|
47
52
|
from thousandeyes_sdk.instant_tests.models.dns_trace_instant_test import DnsTraceInstantTest
|
48
53
|
from thousandeyes_sdk.instant_tests.models.dns_trace_instant_test_request import DnsTraceInstantTestRequest
|
54
|
+
from thousandeyes_sdk.instant_tests.models.dns_trace_instant_test_response import DnsTraceInstantTestResponse
|
49
55
|
from thousandeyes_sdk.instant_tests.models.dns_trace_properties import DnsTraceProperties
|
50
56
|
from thousandeyes_sdk.instant_tests.models.error import Error
|
51
|
-
from thousandeyes_sdk.instant_tests.models.
|
57
|
+
from thousandeyes_sdk.instant_tests.models.expand_instant_test_options import ExpandInstantTestOptions
|
52
58
|
from thousandeyes_sdk.instant_tests.models.ftp_server_instant_test import FtpServerInstantTest
|
59
|
+
from thousandeyes_sdk.instant_tests.models.ftp_server_instant_test_request import FtpServerInstantTestRequest
|
60
|
+
from thousandeyes_sdk.instant_tests.models.ftp_server_instant_test_response import FtpServerInstantTestResponse
|
53
61
|
from thousandeyes_sdk.instant_tests.models.ftp_server_properties import FtpServerProperties
|
54
62
|
from thousandeyes_sdk.instant_tests.models.ftp_server_request_type import FtpServerRequestType
|
55
63
|
from thousandeyes_sdk.instant_tests.models.http_server_base_properties import HttpServerBaseProperties
|
56
64
|
from thousandeyes_sdk.instant_tests.models.http_server_instant_test import HttpServerInstantTest
|
57
65
|
from thousandeyes_sdk.instant_tests.models.http_server_instant_test_request import HttpServerInstantTestRequest
|
66
|
+
from thousandeyes_sdk.instant_tests.models.http_server_instant_test_response import HttpServerInstantTestResponse
|
58
67
|
from thousandeyes_sdk.instant_tests.models.http_server_properties import HttpServerProperties
|
59
68
|
from thousandeyes_sdk.instant_tests.models.instant_test import InstantTest
|
60
69
|
from thousandeyes_sdk.instant_tests.models.instant_test_request import InstantTestRequest
|
@@ -62,14 +71,13 @@ from thousandeyes_sdk.instant_tests.models.link import Link
|
|
62
71
|
from thousandeyes_sdk.instant_tests.models.o_auth import OAuth
|
63
72
|
from thousandeyes_sdk.instant_tests.models.page_load_instant_test import PageLoadInstantTest
|
64
73
|
from thousandeyes_sdk.instant_tests.models.page_load_instant_test_request import PageLoadInstantTestRequest
|
74
|
+
from thousandeyes_sdk.instant_tests.models.page_load_instant_test_response import PageLoadInstantTestResponse
|
65
75
|
from thousandeyes_sdk.instant_tests.models.page_load_properties import PageLoadProperties
|
66
76
|
from thousandeyes_sdk.instant_tests.models.request_method import RequestMethod
|
67
|
-
from thousandeyes_sdk.instant_tests.models.server_instant_test_request import ServerInstantTestRequest
|
68
77
|
from thousandeyes_sdk.instant_tests.models.shared_with_account import SharedWithAccount
|
69
78
|
from thousandeyes_sdk.instant_tests.models.simple_agent import SimpleAgent
|
70
79
|
from thousandeyes_sdk.instant_tests.models.sip_server_instant_test import SipServerInstantTest
|
71
80
|
from thousandeyes_sdk.instant_tests.models.sip_server_instant_test_request import SipServerInstantTestRequest
|
72
|
-
from thousandeyes_sdk.instant_tests.models.sip_server_instant_test_request1 import SipServerInstantTestRequest1
|
73
81
|
from thousandeyes_sdk.instant_tests.models.sip_server_instant_test_response import SipServerInstantTestResponse
|
74
82
|
from thousandeyes_sdk.instant_tests.models.sip_server_properties import SipServerProperties
|
75
83
|
from thousandeyes_sdk.instant_tests.models.sip_test_protocol import SipTestProtocol
|
@@ -97,7 +105,9 @@ from thousandeyes_sdk.instant_tests.models.validation_error import ValidationErr
|
|
97
105
|
from thousandeyes_sdk.instant_tests.models.validation_error_item import ValidationErrorItem
|
98
106
|
from thousandeyes_sdk.instant_tests.models.voice_instant_test import VoiceInstantTest
|
99
107
|
from thousandeyes_sdk.instant_tests.models.voice_instant_test_request import VoiceInstantTestRequest
|
108
|
+
from thousandeyes_sdk.instant_tests.models.voice_instant_test_response import VoiceInstantTestResponse
|
100
109
|
from thousandeyes_sdk.instant_tests.models.voice_properties import VoiceProperties
|
101
110
|
from thousandeyes_sdk.instant_tests.models.web_transaction_instant_test import WebTransactionInstantTest
|
102
111
|
from thousandeyes_sdk.instant_tests.models.web_transaction_instant_test_request import WebTransactionInstantTestRequest
|
112
|
+
from thousandeyes_sdk.instant_tests.models.web_transaction_instant_test_response import WebTransactionInstantTestResponse
|
103
113
|
from thousandeyes_sdk.instant_tests.models.web_transaction_properties import WebTransactionProperties
|
@@ -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
|
|
@@ -22,9 +22,9 @@ from thousandeyes_sdk.instant_tests.models.cloud_enterprise_agent_type import Cl
|
|
22
22
|
from typing import Optional, Set
|
23
23
|
from typing_extensions import Self
|
24
24
|
|
25
|
-
class
|
25
|
+
class AgentResponse(BaseModel):
|
26
26
|
"""
|
27
|
-
|
27
|
+
AgentResponse
|
28
28
|
""" # noqa: E501
|
29
29
|
ip_addresses: Optional[List[StrictStr]] = Field(default=None, description="Array of private IP addresses.", alias="ipAddresses")
|
30
30
|
public_ip_addresses: Optional[List[StrictStr]] = Field(default=None, description="Array of public IP addresses.", alias="publicIpAddresses")
|
@@ -58,7 +58,7 @@ class Agent(BaseModel):
|
|
58
58
|
|
59
59
|
@classmethod
|
60
60
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
61
|
-
"""Create an instance of
|
61
|
+
"""Create an instance of AgentResponse from a JSON string"""
|
62
62
|
return cls.from_dict(json.loads(json_str))
|
63
63
|
|
64
64
|
def to_dict(self) -> Dict[str, Any]:
|
@@ -99,7 +99,7 @@ class Agent(BaseModel):
|
|
99
99
|
|
100
100
|
@classmethod
|
101
101
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
102
|
-
"""Create an instance of
|
102
|
+
"""Create an instance of AgentResponse from a dict"""
|
103
103
|
if obj is None:
|
104
104
|
return None
|
105
105
|
|
@@ -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, 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.agent_to_agent_test_protocol import AgentToAgentTestProtocol
|
25
24
|
from thousandeyes_sdk.instant_tests.models.shared_with_account import SharedWithAccount
|
26
25
|
from thousandeyes_sdk.instant_tests.models.test_direction import TestDirection
|
@@ -61,8 +60,7 @@ class AgentToAgentInstantTest(BaseModel):
|
|
61
60
|
throughput_duration: Optional[Annotated[int, Field(le=30000, strict=True, ge=5000)]] = Field(default=10000, description="The throughput duration.", alias="throughputDuration")
|
62
61
|
throughput_rate: Optional[Annotated[int, Field(le=1000, strict=True, ge=8)]] = Field(default=None, description="The throughput rate, only applicable for UDP protocol.", alias="throughputRate")
|
63
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")
|
64
|
-
|
65
|
-
__properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "direction", "dscp", "dscpId", "mss", "numPathTraces", "pathTraceMode", "port", "protocol", "targetAgentId", "throughputMeasurements", "throughputDuration", "throughputRate", "fixedPacketRate", "agents"]
|
63
|
+
__properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "direction", "dscp", "dscpId", "mss", "numPathTraces", "pathTraceMode", "port", "protocol", "targetAgentId", "throughputMeasurements", "throughputDuration", "throughputRate", "fixedPacketRate"]
|
66
64
|
|
67
65
|
model_config = ConfigDict(
|
68
66
|
populate_by_name=True,
|
@@ -106,7 +104,6 @@ class AgentToAgentInstantTest(BaseModel):
|
|
106
104
|
* OpenAPI `readOnly` fields are excluded.
|
107
105
|
* OpenAPI `readOnly` fields are excluded.
|
108
106
|
* OpenAPI `readOnly` fields are excluded.
|
109
|
-
* OpenAPI `readOnly` fields are excluded.
|
110
107
|
"""
|
111
108
|
excluded_fields: Set[str] = set([
|
112
109
|
"created_by",
|
@@ -120,7 +117,6 @@ class AgentToAgentInstantTest(BaseModel):
|
|
120
117
|
"labels",
|
121
118
|
"shared_with_accounts",
|
122
119
|
"dscp",
|
123
|
-
"agents",
|
124
120
|
])
|
125
121
|
|
126
122
|
_dict = self.model_dump(
|
@@ -145,13 +141,6 @@ class AgentToAgentInstantTest(BaseModel):
|
|
145
141
|
if _item:
|
146
142
|
_items.append(_item.to_dict())
|
147
143
|
_dict['sharedWithAccounts'] = _items
|
148
|
-
# override the default output from pydantic by calling `to_dict()` of each item in agents (list)
|
149
|
-
_items = []
|
150
|
-
if self.agents:
|
151
|
-
for _item in self.agents:
|
152
|
-
if _item:
|
153
|
-
_items.append(_item.to_dict())
|
154
|
-
_dict['agents'] = _items
|
155
144
|
return _dict
|
156
145
|
|
157
146
|
@classmethod
|
@@ -189,8 +178,7 @@ class AgentToAgentInstantTest(BaseModel):
|
|
189
178
|
"throughputMeasurements": obj.get("throughputMeasurements") if obj.get("throughputMeasurements") is not None else False,
|
190
179
|
"throughputDuration": obj.get("throughputDuration") if obj.get("throughputDuration") is not None else 10000,
|
191
180
|
"throughputRate": obj.get("throughputRate"),
|
192
|
-
"fixedPacketRate": obj.get("fixedPacketRate")
|
193
|
-
"agents": [Agent.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
|
181
|
+
"fixedPacketRate": obj.get("fixedPacketRate")
|
194
182
|
})
|
195
183
|
return _obj
|
196
184
|
|
@@ -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,195 @@
|
|
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 typing_extensions import Annotated
|
23
|
+
from thousandeyes_sdk.instant_tests.models.agent_response import AgentResponse
|
24
|
+
from thousandeyes_sdk.instant_tests.models.agent_to_agent_test_protocol import AgentToAgentTestProtocol
|
25
|
+
from thousandeyes_sdk.instant_tests.models.shared_with_account import SharedWithAccount
|
26
|
+
from thousandeyes_sdk.instant_tests.models.test_direction import TestDirection
|
27
|
+
from thousandeyes_sdk.instant_tests.models.test_dscp_id import TestDscpId
|
28
|
+
from thousandeyes_sdk.instant_tests.models.test_label import TestLabel
|
29
|
+
from thousandeyes_sdk.instant_tests.models.test_links import TestLinks
|
30
|
+
from thousandeyes_sdk.instant_tests.models.test_path_trace_mode import TestPathTraceMode
|
31
|
+
from typing import Optional, Set
|
32
|
+
from typing_extensions import Self
|
33
|
+
|
34
|
+
class AgentToAgentInstantTestResponse(BaseModel):
|
35
|
+
"""
|
36
|
+
AgentToAgentInstantTestResponse
|
37
|
+
""" # noqa: E501
|
38
|
+
created_by: Optional[StrictStr] = Field(default=None, description="User that created the test.", alias="createdBy")
|
39
|
+
created_date: Optional[datetime] = Field(default=None, description="UTC created date (ISO date-time format).", alias="createdDate")
|
40
|
+
description: Optional[StrictStr] = Field(default=None, description="A description of the test.")
|
41
|
+
live_share: Optional[StrictBool] = Field(default=None, description="Indicates if the test is shared with the account group.", alias="liveShare")
|
42
|
+
modified_by: Optional[StrictStr] = Field(default=None, description="User that modified the test.", alias="modifiedBy")
|
43
|
+
modified_date: Optional[datetime] = Field(default=None, description="UTC last modification date (ISO date-time format).", alias="modifiedDate")
|
44
|
+
saved_event: Optional[StrictBool] = Field(default=None, description="Indicates if the test is a saved event.", alias="savedEvent")
|
45
|
+
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")
|
46
|
+
test_name: Optional[StrictStr] = Field(default=None, description="The name of the test. Test name must be unique.", alias="testName")
|
47
|
+
type: Optional[StrictStr] = None
|
48
|
+
links: Optional[TestLinks] = Field(default=None, alias="_links")
|
49
|
+
labels: Optional[List[TestLabel]] = None
|
50
|
+
shared_with_accounts: Optional[List[SharedWithAccount]] = Field(default=None, alias="sharedWithAccounts")
|
51
|
+
direction: Optional[TestDirection] = None
|
52
|
+
dscp: Optional[StrictStr] = Field(default=None, description="DSCP label.")
|
53
|
+
dscp_id: Optional[TestDscpId] = Field(default=None, alias="dscpId")
|
54
|
+
mss: Optional[Annotated[int, Field(le=1400, strict=True, ge=20)]] = Field(default=None, description="Maximum segment size, in bytes.")
|
55
|
+
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")
|
56
|
+
path_trace_mode: Optional[TestPathTraceMode] = Field(default=None, alias="pathTraceMode")
|
57
|
+
port: Optional[Annotated[int, Field(le=65535, strict=True, ge=1)]] = Field(default=49153, description="Target port.")
|
58
|
+
protocol: Optional[AgentToAgentTestProtocol] = None
|
59
|
+
target_agent_id: StrictStr = Field(description="`agentId` of the target agent for the test.", alias="targetAgentId")
|
60
|
+
throughput_measurements: Optional[StrictBool] = Field(default=False, description="Enable or disable throughput measurements. Throughput measurements cannot be enabled when the source or target of the test is a cloud agent.", alias="throughputMeasurements")
|
61
|
+
throughput_duration: Optional[Annotated[int, Field(le=30000, strict=True, ge=5000)]] = Field(default=10000, description="The throughput duration.", alias="throughputDuration")
|
62
|
+
throughput_rate: Optional[Annotated[int, Field(le=1000, strict=True, ge=8)]] = Field(default=None, description="The throughput rate, only applicable for UDP protocol.", alias="throughputRate")
|
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")
|
64
|
+
agents: Optional[List[AgentResponse]] = Field(default=None, description="Contains list of agents.")
|
65
|
+
__properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "direction", "dscp", "dscpId", "mss", "numPathTraces", "pathTraceMode", "port", "protocol", "targetAgentId", "throughputMeasurements", "throughputDuration", "throughputRate", "fixedPacketRate", "agents"]
|
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 AgentToAgentInstantTestResponse 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
|
+
* OpenAPI `readOnly` fields are excluded.
|
100
|
+
* OpenAPI `readOnly` fields are excluded.
|
101
|
+
* OpenAPI `readOnly` fields are excluded.
|
102
|
+
* OpenAPI `readOnly` fields are excluded.
|
103
|
+
* OpenAPI `readOnly` fields are excluded.
|
104
|
+
* OpenAPI `readOnly` fields are excluded.
|
105
|
+
* OpenAPI `readOnly` fields are excluded.
|
106
|
+
* OpenAPI `readOnly` fields are excluded.
|
107
|
+
* OpenAPI `readOnly` fields are excluded.
|
108
|
+
* OpenAPI `readOnly` fields are excluded.
|
109
|
+
"""
|
110
|
+
excluded_fields: Set[str] = set([
|
111
|
+
"created_by",
|
112
|
+
"created_date",
|
113
|
+
"live_share",
|
114
|
+
"modified_by",
|
115
|
+
"modified_date",
|
116
|
+
"saved_event",
|
117
|
+
"test_id",
|
118
|
+
"type",
|
119
|
+
"labels",
|
120
|
+
"shared_with_accounts",
|
121
|
+
"dscp",
|
122
|
+
])
|
123
|
+
|
124
|
+
_dict = self.model_dump(
|
125
|
+
by_alias=True,
|
126
|
+
exclude=excluded_fields,
|
127
|
+
exclude_none=True,
|
128
|
+
)
|
129
|
+
# override the default output from pydantic by calling `to_dict()` of links
|
130
|
+
if self.links:
|
131
|
+
_dict['_links'] = self.links.to_dict()
|
132
|
+
# override the default output from pydantic by calling `to_dict()` of each item in labels (list)
|
133
|
+
_items = []
|
134
|
+
if self.labels:
|
135
|
+
for _item in self.labels:
|
136
|
+
if _item:
|
137
|
+
_items.append(_item.to_dict())
|
138
|
+
_dict['labels'] = _items
|
139
|
+
# override the default output from pydantic by calling `to_dict()` of each item in shared_with_accounts (list)
|
140
|
+
_items = []
|
141
|
+
if self.shared_with_accounts:
|
142
|
+
for _item in self.shared_with_accounts:
|
143
|
+
if _item:
|
144
|
+
_items.append(_item.to_dict())
|
145
|
+
_dict['sharedWithAccounts'] = _items
|
146
|
+
# override the default output from pydantic by calling `to_dict()` of each item in agents (list)
|
147
|
+
_items = []
|
148
|
+
if self.agents:
|
149
|
+
for _item in self.agents:
|
150
|
+
if _item:
|
151
|
+
_items.append(_item.to_dict())
|
152
|
+
_dict['agents'] = _items
|
153
|
+
return _dict
|
154
|
+
|
155
|
+
@classmethod
|
156
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
157
|
+
"""Create an instance of AgentToAgentInstantTestResponse from a dict"""
|
158
|
+
if obj is None:
|
159
|
+
return None
|
160
|
+
|
161
|
+
if not isinstance(obj, dict):
|
162
|
+
return cls.model_validate(obj)
|
163
|
+
|
164
|
+
_obj = cls.model_validate({
|
165
|
+
"createdBy": obj.get("createdBy"),
|
166
|
+
"createdDate": obj.get("createdDate"),
|
167
|
+
"description": obj.get("description"),
|
168
|
+
"liveShare": obj.get("liveShare"),
|
169
|
+
"modifiedBy": obj.get("modifiedBy"),
|
170
|
+
"modifiedDate": obj.get("modifiedDate"),
|
171
|
+
"savedEvent": obj.get("savedEvent"),
|
172
|
+
"testId": obj.get("testId"),
|
173
|
+
"testName": obj.get("testName"),
|
174
|
+
"type": obj.get("type"),
|
175
|
+
"_links": TestLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None,
|
176
|
+
"labels": [TestLabel.from_dict(_item) for _item in obj["labels"]] if obj.get("labels") is not None else None,
|
177
|
+
"sharedWithAccounts": [SharedWithAccount.from_dict(_item) for _item in obj["sharedWithAccounts"]] if obj.get("sharedWithAccounts") is not None else None,
|
178
|
+
"direction": obj.get("direction"),
|
179
|
+
"dscp": obj.get("dscp"),
|
180
|
+
"dscpId": obj.get("dscpId"),
|
181
|
+
"mss": obj.get("mss"),
|
182
|
+
"numPathTraces": obj.get("numPathTraces") if obj.get("numPathTraces") is not None else 3,
|
183
|
+
"pathTraceMode": obj.get("pathTraceMode"),
|
184
|
+
"port": obj.get("port") if obj.get("port") is not None else 49153,
|
185
|
+
"protocol": obj.get("protocol"),
|
186
|
+
"targetAgentId": obj.get("targetAgentId"),
|
187
|
+
"throughputMeasurements": obj.get("throughputMeasurements") if obj.get("throughputMeasurements") is not None else False,
|
188
|
+
"throughputDuration": obj.get("throughputDuration") if obj.get("throughputDuration") is not None else 10000,
|
189
|
+
"throughputRate": obj.get("throughputRate"),
|
190
|
+
"fixedPacketRate": obj.get("fixedPacketRate"),
|
191
|
+
"agents": [AgentResponse.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
|
192
|
+
})
|
193
|
+
return _obj
|
194
|
+
|
195
|
+
|
@@ -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
|
|
@@ -27,10 +27,15 @@ class AgentToAgentTestProtocol(str, Enum):
|
|
27
27
|
"""
|
28
28
|
TCP = 'tcp'
|
29
29
|
UDP = 'udp'
|
30
|
+
UNKNOWN = 'unknown'
|
30
31
|
|
31
32
|
@classmethod
|
32
33
|
def from_json(cls, json_str: str) -> Self:
|
33
34
|
"""Create an instance of AgentToAgentTestProtocol from a JSON string"""
|
34
35
|
return cls(json.loads(json_str))
|
35
36
|
|
37
|
+
@classmethod
|
38
|
+
def _missing_(cls, value):
|
39
|
+
"""Handle unknown values"""
|
40
|
+
return cls.UNKNOWN
|
36
41
|
|
@@ -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, 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.shared_with_account import SharedWithAccount
|
25
24
|
from thousandeyes_sdk.instant_tests.models.test_dscp_id import TestDscpId
|
26
25
|
from thousandeyes_sdk.instant_tests.models.test_ipv6_policy import TestIpv6Policy
|
@@ -64,8 +63,7 @@ class AgentToServerInstantTest(BaseModel):
|
|
64
63
|
ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy")
|
65
64
|
ping_payload_size: Optional[Annotated[int, Field(le=1400, strict=True, ge=0)]] = Field(default=None, description="Payload size (not total packet size) for the end-to-end metric's probes, ping payload size allows values from 0 to 1400 bytes. When set to null, payload sizes are 0 bytes for ICMP-based tests and 1 byte for TCP-based tests.", alias="pingPayloadSize")
|
66
65
|
network_measurements: Optional[StrictBool] = Field(default=False, description="View packet loss in 1-second intervals. This is only available for 1-minute interval tests. Set to `true` to enable network measurements.", alias="networkMeasurements")
|
67
|
-
|
68
|
-
__properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "bandwidthMeasurements", "continuousMode", "fixedPacketRate", "mtuMeasurements", "numPathTraces", "pathTraceMode", "port", "probeMode", "protocol", "server", "dscp", "dscpId", "ipv6Policy", "pingPayloadSize", "networkMeasurements", "agents"]
|
66
|
+
__properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "bandwidthMeasurements", "continuousMode", "fixedPacketRate", "mtuMeasurements", "numPathTraces", "pathTraceMode", "port", "probeMode", "protocol", "server", "dscp", "dscpId", "ipv6Policy", "pingPayloadSize", "networkMeasurements"]
|
69
67
|
|
70
68
|
model_config = ConfigDict(
|
71
69
|
populate_by_name=True,
|
@@ -109,7 +107,6 @@ class AgentToServerInstantTest(BaseModel):
|
|
109
107
|
* OpenAPI `readOnly` fields are excluded.
|
110
108
|
* OpenAPI `readOnly` fields are excluded.
|
111
109
|
* OpenAPI `readOnly` fields are excluded.
|
112
|
-
* OpenAPI `readOnly` fields are excluded.
|
113
110
|
"""
|
114
111
|
excluded_fields: Set[str] = set([
|
115
112
|
"created_by",
|
@@ -123,7 +120,6 @@ class AgentToServerInstantTest(BaseModel):
|
|
123
120
|
"labels",
|
124
121
|
"shared_with_accounts",
|
125
122
|
"dscp",
|
126
|
-
"agents",
|
127
123
|
])
|
128
124
|
|
129
125
|
_dict = self.model_dump(
|
@@ -148,13 +144,6 @@ class AgentToServerInstantTest(BaseModel):
|
|
148
144
|
if _item:
|
149
145
|
_items.append(_item.to_dict())
|
150
146
|
_dict['sharedWithAccounts'] = _items
|
151
|
-
# override the default output from pydantic by calling `to_dict()` of each item in agents (list)
|
152
|
-
_items = []
|
153
|
-
if self.agents:
|
154
|
-
for _item in self.agents:
|
155
|
-
if _item:
|
156
|
-
_items.append(_item.to_dict())
|
157
|
-
_dict['agents'] = _items
|
158
147
|
return _dict
|
159
148
|
|
160
149
|
@classmethod
|
@@ -194,8 +183,7 @@ class AgentToServerInstantTest(BaseModel):
|
|
194
183
|
"dscpId": obj.get("dscpId"),
|
195
184
|
"ipv6Policy": obj.get("ipv6Policy"),
|
196
185
|
"pingPayloadSize": obj.get("pingPayloadSize"),
|
197
|
-
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else False
|
198
|
-
"agents": [Agent.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
|
186
|
+
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else False
|
199
187
|
})
|
200
188
|
return _obj
|
201
189
|
|
@@ -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
|
|