thousandeyes-sdk-instant-tests 1.2.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.
Files changed (122) hide show
  1. thousandeyes_sdk/instant_tests/__init__.py +28 -18
  2. thousandeyes_sdk/instant_tests/api/__init__.py +13 -13
  3. thousandeyes_sdk/instant_tests/api/{agent_to_agent_api.py → agent_to_agent_instant_tests_api.py} +16 -16
  4. thousandeyes_sdk/instant_tests/api/{agent_to_server_api.py → agent_to_server_instant_tests_api.py} +16 -16
  5. thousandeyes_sdk/instant_tests/api/{api_api.py → api_instant_tests_api.py} +16 -16
  6. thousandeyes_sdk/instant_tests/api/{dns_server_api.py → dns_server_instant_tests_api.py} +16 -16
  7. thousandeyes_sdk/instant_tests/api/{dns_trace_api.py → dns_trace_instant_tests_api.py} +16 -16
  8. thousandeyes_sdk/instant_tests/api/{dns_security_api.py → dnssec_instant_tests_api.py} +22 -22
  9. thousandeyes_sdk/instant_tests/api/{ftp_server_api.py → ftp_server_instant_tests_api.py} +32 -32
  10. thousandeyes_sdk/instant_tests/api/{http_page_load_api.py → http_page_load_instant_tests_api.py} +16 -16
  11. thousandeyes_sdk/instant_tests/api/{http_server_api.py → http_server_instant_tests_api.py} +16 -16
  12. thousandeyes_sdk/instant_tests/api/{run_api.py → instant_tests_api.py} +3 -3
  13. thousandeyes_sdk/instant_tests/api/{sip_server_api.py → sip_server_instant_tests_api.py} +10 -10
  14. thousandeyes_sdk/instant_tests/api/{voice_api.py → voice_instant_tests_api.py} +16 -16
  15. thousandeyes_sdk/instant_tests/api/{web_transaction_api.py → web_transaction_instant_tests_api.py} +16 -16
  16. thousandeyes_sdk/instant_tests/models/__init__.py +15 -5
  17. thousandeyes_sdk/instant_tests/models/agent_base.py +1 -1
  18. thousandeyes_sdk/instant_tests/models/agent_interfaces.py +1 -1
  19. thousandeyes_sdk/instant_tests/models/{agent.py → agent_response.py} +5 -5
  20. thousandeyes_sdk/instant_tests/models/agent_to_agent_instant_test.py +3 -15
  21. thousandeyes_sdk/instant_tests/models/agent_to_agent_instant_test_request.py +1 -1
  22. thousandeyes_sdk/instant_tests/models/agent_to_agent_instant_test_response.py +195 -0
  23. thousandeyes_sdk/instant_tests/models/agent_to_agent_properties.py +1 -1
  24. thousandeyes_sdk/instant_tests/models/agent_to_agent_test_protocol.py +6 -1
  25. thousandeyes_sdk/instant_tests/models/agent_to_server_instant_test.py +3 -15
  26. thousandeyes_sdk/instant_tests/models/agent_to_server_instant_test_request.py +1 -1
  27. thousandeyes_sdk/instant_tests/models/agent_to_server_instant_test_response.py +200 -0
  28. thousandeyes_sdk/instant_tests/models/agent_to_server_properties.py +1 -1
  29. thousandeyes_sdk/instant_tests/models/api_instant_test.py +8 -14
  30. thousandeyes_sdk/instant_tests/models/api_instant_test_request.py +11 -5
  31. thousandeyes_sdk/instant_tests/models/api_instant_test_response.py +217 -0
  32. thousandeyes_sdk/instant_tests/models/api_predefined_variable.py +1 -1
  33. thousandeyes_sdk/instant_tests/models/api_properties.py +8 -2
  34. thousandeyes_sdk/instant_tests/models/api_request.py +1 -1
  35. thousandeyes_sdk/instant_tests/models/api_request_assertion.py +1 -1
  36. thousandeyes_sdk/instant_tests/models/api_request_assertion_name.py +6 -1
  37. thousandeyes_sdk/instant_tests/models/api_request_assertion_operator.py +6 -1
  38. thousandeyes_sdk/instant_tests/models/api_request_auth_type.py +6 -1
  39. thousandeyes_sdk/instant_tests/models/api_request_header.py +1 -1
  40. thousandeyes_sdk/instant_tests/models/api_request_method.py +6 -1
  41. thousandeyes_sdk/instant_tests/models/api_request_variable.py +1 -1
  42. thousandeyes_sdk/instant_tests/models/cloud_enterprise_agent_type.py +6 -1
  43. thousandeyes_sdk/instant_tests/models/dns_query_class.py +6 -1
  44. thousandeyes_sdk/instant_tests/models/dns_sec_instant_test.py +3 -15
  45. thousandeyes_sdk/instant_tests/models/dns_sec_instant_test_request.py +1 -1
  46. thousandeyes_sdk/instant_tests/models/dns_sec_instant_test_response.py +167 -0
  47. thousandeyes_sdk/instant_tests/models/dns_sec_properties.py +1 -1
  48. thousandeyes_sdk/instant_tests/models/dns_server_instant_test.py +3 -15
  49. thousandeyes_sdk/instant_tests/models/dns_server_instant_test_request.py +1 -1
  50. thousandeyes_sdk/instant_tests/models/{sip_server_instant_test_request1.py → dns_server_instant_test_response.py} +36 -27
  51. thousandeyes_sdk/instant_tests/models/dns_server_properties.py +1 -1
  52. thousandeyes_sdk/instant_tests/models/dns_servers_request.py +1 -1
  53. thousandeyes_sdk/instant_tests/models/dns_trace_instant_test.py +3 -15
  54. thousandeyes_sdk/instant_tests/models/dns_trace_instant_test_request.py +1 -1
  55. thousandeyes_sdk/instant_tests/models/dns_trace_instant_test_response.py +170 -0
  56. thousandeyes_sdk/instant_tests/models/dns_trace_properties.py +1 -1
  57. thousandeyes_sdk/instant_tests/models/error.py +1 -1
  58. thousandeyes_sdk/instant_tests/models/expand_instant_test_options.py +42 -0
  59. thousandeyes_sdk/instant_tests/models/ftp_server_instant_test.py +3 -15
  60. thousandeyes_sdk/instant_tests/models/{server_instant_test_request.py → ftp_server_instant_test_request.py} +5 -5
  61. thousandeyes_sdk/instant_tests/models/ftp_server_instant_test_response.py +204 -0
  62. thousandeyes_sdk/instant_tests/models/ftp_server_properties.py +1 -1
  63. thousandeyes_sdk/instant_tests/models/ftp_server_request_type.py +6 -1
  64. thousandeyes_sdk/instant_tests/models/http_server_base_properties.py +3 -3
  65. thousandeyes_sdk/instant_tests/models/http_server_instant_test.py +5 -17
  66. thousandeyes_sdk/instant_tests/models/http_server_instant_test_request.py +3 -3
  67. thousandeyes_sdk/instant_tests/models/http_server_instant_test_response.py +257 -0
  68. thousandeyes_sdk/instant_tests/models/http_server_properties.py +3 -3
  69. thousandeyes_sdk/instant_tests/models/instant_test.py +1 -1
  70. thousandeyes_sdk/instant_tests/models/instant_test_request.py +1 -1
  71. thousandeyes_sdk/instant_tests/models/link.py +1 -1
  72. thousandeyes_sdk/instant_tests/models/o_auth.py +1 -1
  73. thousandeyes_sdk/instant_tests/models/page_load_instant_test.py +5 -17
  74. thousandeyes_sdk/instant_tests/models/page_load_instant_test_request.py +3 -3
  75. thousandeyes_sdk/instant_tests/models/page_load_instant_test_response.py +269 -0
  76. thousandeyes_sdk/instant_tests/models/page_load_properties.py +3 -3
  77. thousandeyes_sdk/instant_tests/models/request_method.py +6 -1
  78. thousandeyes_sdk/instant_tests/models/shared_with_account.py +1 -1
  79. thousandeyes_sdk/instant_tests/models/simple_agent.py +1 -1
  80. thousandeyes_sdk/instant_tests/models/sip_server_instant_test.py +3 -15
  81. thousandeyes_sdk/instant_tests/models/sip_server_instant_test_request.py +1 -1
  82. thousandeyes_sdk/instant_tests/models/sip_server_instant_test_response.py +6 -8
  83. thousandeyes_sdk/instant_tests/models/sip_server_properties.py +1 -1
  84. thousandeyes_sdk/instant_tests/models/sip_test_protocol.py +6 -1
  85. thousandeyes_sdk/instant_tests/models/test_agent.py +1 -1
  86. thousandeyes_sdk/instant_tests/models/test_auth_type.py +6 -1
  87. thousandeyes_sdk/instant_tests/models/test_custom_headers.py +1 -1
  88. thousandeyes_sdk/instant_tests/models/test_direction.py +6 -1
  89. thousandeyes_sdk/instant_tests/models/test_dns_server.py +1 -1
  90. thousandeyes_sdk/instant_tests/models/test_dns_transport_protocol.py +6 -1
  91. thousandeyes_sdk/instant_tests/models/test_dscp_id.py +6 -1
  92. thousandeyes_sdk/instant_tests/models/test_ipv6_policy.py +6 -1
  93. thousandeyes_sdk/instant_tests/models/test_label.py +1 -1
  94. thousandeyes_sdk/instant_tests/models/test_links.py +1 -1
  95. thousandeyes_sdk/instant_tests/models/test_page_loading_strategy.py +6 -1
  96. thousandeyes_sdk/instant_tests/models/test_path_trace_mode.py +6 -1
  97. thousandeyes_sdk/instant_tests/models/test_probe_mode.py +6 -1
  98. thousandeyes_sdk/instant_tests/models/test_protocol.py +6 -1
  99. thousandeyes_sdk/instant_tests/models/test_self_link.py +1 -1
  100. thousandeyes_sdk/instant_tests/models/test_sip_credentials.py +1 -1
  101. thousandeyes_sdk/instant_tests/models/test_ssl_version_id.py +6 -1
  102. thousandeyes_sdk/instant_tests/models/test_type.py +6 -1
  103. thousandeyes_sdk/instant_tests/models/unauthorized_error.py +1 -1
  104. thousandeyes_sdk/instant_tests/models/unexpanded_instant_test.py +1 -1
  105. thousandeyes_sdk/instant_tests/models/validation_error.py +1 -1
  106. thousandeyes_sdk/instant_tests/models/validation_error_item.py +1 -1
  107. thousandeyes_sdk/instant_tests/models/voice_instant_test.py +3 -15
  108. thousandeyes_sdk/instant_tests/models/voice_instant_test_request.py +1 -1
  109. thousandeyes_sdk/instant_tests/models/voice_instant_test_response.py +186 -0
  110. thousandeyes_sdk/instant_tests/models/voice_properties.py +1 -1
  111. thousandeyes_sdk/instant_tests/models/web_transaction_instant_test.py +4 -16
  112. thousandeyes_sdk/instant_tests/models/web_transaction_instant_test_request.py +7 -7
  113. thousandeyes_sdk/instant_tests/models/web_transaction_instant_test_response.py +273 -0
  114. thousandeyes_sdk/instant_tests/models/web_transaction_properties.py +3 -3
  115. {thousandeyes_sdk_instant_tests-1.2.0.dist-info → thousandeyes_sdk_instant_tests-2.0.0rc1.dist-info}/METADATA +39 -29
  116. thousandeyes_sdk_instant_tests-2.0.0rc1.dist-info/RECORD +121 -0
  117. {thousandeyes_sdk_instant_tests-1.2.0.dist-info → thousandeyes_sdk_instant_tests-2.0.0rc1.dist-info}/WHEEL +1 -1
  118. thousandeyes_sdk/instant_tests/models/expand.py +0 -37
  119. thousandeyes_sdk_instant_tests-1.2.0.dist-info/RECORD +0 -111
  120. {thousandeyes_sdk_instant_tests-1.2.0.dist-info → thousandeyes_sdk_instant_tests-2.0.0rc1.dist-info}/LICENSE +0 -0
  121. {thousandeyes_sdk_instant_tests-1.2.0.dist-info → thousandeyes_sdk_instant_tests-2.0.0rc1.dist-info}/NOTICE +0 -0
  122. {thousandeyes_sdk_instant_tests-1.2.0.dist-info → thousandeyes_sdk_instant_tests-2.0.0rc1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,269 @@
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, StrictInt, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing_extensions import Annotated
23
+ from thousandeyes_sdk.instant_tests.models.agent_interfaces import AgentInterfaces
24
+ from thousandeyes_sdk.instant_tests.models.agent_response import AgentResponse
25
+ from thousandeyes_sdk.instant_tests.models.o_auth import OAuth
26
+ from thousandeyes_sdk.instant_tests.models.shared_with_account import SharedWithAccount
27
+ from thousandeyes_sdk.instant_tests.models.test_auth_type import TestAuthType
28
+ from thousandeyes_sdk.instant_tests.models.test_custom_headers import TestCustomHeaders
29
+ from thousandeyes_sdk.instant_tests.models.test_label import TestLabel
30
+ from thousandeyes_sdk.instant_tests.models.test_links import TestLinks
31
+ from thousandeyes_sdk.instant_tests.models.test_page_loading_strategy import TestPageLoadingStrategy
32
+ from thousandeyes_sdk.instant_tests.models.test_path_trace_mode import TestPathTraceMode
33
+ from thousandeyes_sdk.instant_tests.models.test_probe_mode import TestProbeMode
34
+ from thousandeyes_sdk.instant_tests.models.test_protocol import TestProtocol
35
+ from thousandeyes_sdk.instant_tests.models.test_ssl_version_id import TestSslVersionId
36
+ from typing import Optional, Set
37
+ from typing_extensions import Self
38
+
39
+ class PageLoadInstantTestResponse(BaseModel):
40
+ """
41
+ PageLoadInstantTestResponse
42
+ """ # noqa: E501
43
+ created_by: Optional[StrictStr] = Field(default=None, description="User that created the test.", alias="createdBy")
44
+ created_date: Optional[datetime] = Field(default=None, description="UTC created date (ISO date-time format).", alias="createdDate")
45
+ description: Optional[StrictStr] = Field(default=None, description="A description of the test.")
46
+ live_share: Optional[StrictBool] = Field(default=None, description="Indicates if the test is shared with the account group.", alias="liveShare")
47
+ modified_by: Optional[StrictStr] = Field(default=None, description="User that modified the test.", alias="modifiedBy")
48
+ modified_date: Optional[datetime] = Field(default=None, description="UTC last modification date (ISO date-time format).", alias="modifiedDate")
49
+ saved_event: Optional[StrictBool] = Field(default=None, description="Indicates if the test is a saved event.", alias="savedEvent")
50
+ 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")
51
+ test_name: Optional[StrictStr] = Field(default=None, description="The name of the test. Test name must be unique.", alias="testName")
52
+ type: Optional[StrictStr] = None
53
+ links: Optional[TestLinks] = Field(default=None, alias="_links")
54
+ labels: Optional[List[TestLabel]] = None
55
+ shared_with_accounts: Optional[List[SharedWithAccount]] = Field(default=None, alias="sharedWithAccounts")
56
+ auth_type: Optional[TestAuthType] = Field(default=None, alias="authType")
57
+ agent_interfaces: Optional[AgentInterfaces] = Field(default=None, alias="agentInterfaces")
58
+ bandwidth_measurements: Optional[StrictBool] = Field(default=None, description="Set to `true` to enable bandwidth measurements, only applies to Enterprise agents assigned to the test.", alias="bandwidthMeasurements")
59
+ client_certificate: Optional[StrictStr] = Field(default=None, description="String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate.", alias="clientCertificate")
60
+ content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex")
61
+ custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders")
62
+ desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode")
63
+ download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit")
64
+ dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride")
65
+ http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime")
66
+ http_time_limit: Optional[Annotated[int, Field(le=60, strict=True, ge=5)]] = Field(default=5, description="HTTP time limit in seconds.", alias="httpTimeLimit")
67
+ http_version: Optional[Annotated[int, Field(le=2, strict=True, ge=1)]] = Field(default=2, description="HTTP protocol version. Set to '2' to prefer HTTP/2, or '1' to use only HTTP/1.1.", alias="httpVersion")
68
+ include_headers: Optional[StrictBool] = Field(default=True, description="Set to `true` to capture response headers for objects loaded by the test.", alias="includeHeaders")
69
+ mtu_measurements: Optional[StrictBool] = Field(default=None, description="Set `true` to measure MTU sizes on network from agents to the target.", alias="mtuMeasurements")
70
+ network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements")
71
+ num_path_traces: Optional[Annotated[int, Field(le=10, strict=True, ge=1)]] = Field(default=3, description="Number of path traces executed by the agent.", alias="numPathTraces")
72
+ o_auth: Optional[OAuth] = Field(default=None, alias="oAuth")
73
+ password: Optional[StrictStr] = Field(default=None, description="Password for Basic/NTLM authentication.")
74
+ path_trace_mode: Optional[TestPathTraceMode] = Field(default=None, alias="pathTraceMode")
75
+ probe_mode: Optional[TestProbeMode] = Field(default=None, alias="probeMode")
76
+ protocol: Optional[TestProtocol] = None
77
+ ssl_version: Optional[StrictStr] = Field(default=None, description="Reflects the verbose SSL protocol version used by a test.", alias="sslVersion")
78
+ ssl_version_id: Optional[TestSslVersionId] = Field(default=None, alias="sslVersionId")
79
+ url: StrictStr = Field(description="Target for the test.")
80
+ 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")
81
+ user_agent: Optional[StrictStr] = Field(default=None, description="User-agent string to be provided during the test.", alias="userAgent")
82
+ username: Optional[StrictStr] = Field(default=None, description="Username for Basic/NTLM authentication.")
83
+ verify_certificate: Optional[StrictBool] = Field(default=False, description="Ignore or acknowledge certificate errors. Set to false to ignore certificate errors.", alias="verifyCertificate")
84
+ 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")
85
+ 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
+ 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
+ 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
+ override_proxy_id: Optional[StrictStr] = Field(default=None, description="ID of the proxy to be used if the default proxy is overridden.", alias="overrideProxyId")
89
+ collect_proxy_network_data: Optional[StrictBool] = Field(default=False, description="Indicates whether network data to the proxy should be collected.", alias="collectProxyNetworkData")
90
+ 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")
91
+ 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")
92
+ 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")
93
+ 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")
94
+ disable_screenshot: Optional[StrictBool] = Field(default=False, description="Enables or disables screenshots on error. Set true to not capture", alias="disableScreenshot")
95
+ 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")
96
+ allow_geolocation: Optional[StrictBool] = Field(default=False, description="Set true to use the agent’s geolocation by the web page.", alias="allowGeolocation")
97
+ 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")
98
+ page_loading_strategy: Optional[TestPageLoadingStrategy] = Field(default=None, alias="pageLoadingStrategy")
99
+ agents: Optional[List[AgentResponse]] = Field(default=None, description="Contains list of agents.")
100
+ __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "authType", "agentInterfaces", "bandwidthMeasurements", "clientCertificate", "contentRegex", "customHeaders", "desiredStatusCode", "downloadLimit", "dnsOverride", "httpTargetTime", "httpTimeLimit", "httpVersion", "includeHeaders", "mtuMeasurements", "networkMeasurements", "numPathTraces", "oAuth", "password", "pathTraceMode", "probeMode", "protocol", "sslVersion", "sslVersionId", "url", "useNtlm", "userAgent", "username", "verifyCertificate", "allowUnsafeLegacyRenegotiation", "followRedirects", "fixedPacketRate", "overrideAgentProxy", "overrideProxyId", "collectProxyNetworkData", "emulatedDeviceId", "pageLoadTargetTime", "pageLoadTimeLimit", "blockDomains", "disableScreenshot", "allowMicAndCamera", "allowGeolocation", "browserLanguage", "pageLoadingStrategy", "agents"]
101
+
102
+ model_config = ConfigDict(
103
+ populate_by_name=True,
104
+ validate_assignment=True,
105
+ protected_namespaces=(),
106
+ extra="allow",
107
+ )
108
+
109
+
110
+ def to_str(self) -> str:
111
+ """Returns the string representation of the model using alias"""
112
+ return pprint.pformat(self.model_dump(by_alias=True))
113
+
114
+ def to_json(self) -> str:
115
+ """Returns the JSON representation of the model using alias"""
116
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
117
+ return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True)
118
+
119
+ @classmethod
120
+ def from_json(cls, json_str: str) -> Optional[Self]:
121
+ """Create an instance of PageLoadInstantTestResponse from a JSON string"""
122
+ return cls.from_dict(json.loads(json_str))
123
+
124
+ def to_dict(self) -> Dict[str, Any]:
125
+ """Return the dictionary representation of the model using alias.
126
+
127
+ This has the following differences from calling pydantic's
128
+ `self.model_dump(by_alias=True)`:
129
+
130
+ * `None` is only added to the output dict for nullable fields that
131
+ were set at model initialization. Other fields with value `None`
132
+ are ignored.
133
+ * OpenAPI `readOnly` fields are excluded.
134
+ * OpenAPI `readOnly` fields are excluded.
135
+ * OpenAPI `readOnly` fields are excluded.
136
+ * OpenAPI `readOnly` fields are excluded.
137
+ * OpenAPI `readOnly` fields are excluded.
138
+ * OpenAPI `readOnly` fields are excluded.
139
+ * OpenAPI `readOnly` fields are excluded.
140
+ * OpenAPI `readOnly` fields are excluded.
141
+ * OpenAPI `readOnly` fields are excluded.
142
+ * OpenAPI `readOnly` fields are excluded.
143
+ * OpenAPI `readOnly` fields are excluded.
144
+ """
145
+ excluded_fields: Set[str] = set([
146
+ "created_by",
147
+ "created_date",
148
+ "live_share",
149
+ "modified_by",
150
+ "modified_date",
151
+ "saved_event",
152
+ "test_id",
153
+ "type",
154
+ "labels",
155
+ "shared_with_accounts",
156
+ "ssl_version",
157
+ ])
158
+
159
+ _dict = self.model_dump(
160
+ by_alias=True,
161
+ exclude=excluded_fields,
162
+ exclude_none=True,
163
+ )
164
+ # override the default output from pydantic by calling `to_dict()` of links
165
+ if self.links:
166
+ _dict['_links'] = self.links.to_dict()
167
+ # override the default output from pydantic by calling `to_dict()` of each item in labels (list)
168
+ _items = []
169
+ if self.labels:
170
+ for _item in self.labels:
171
+ if _item:
172
+ _items.append(_item.to_dict())
173
+ _dict['labels'] = _items
174
+ # override the default output from pydantic by calling `to_dict()` of each item in shared_with_accounts (list)
175
+ _items = []
176
+ if self.shared_with_accounts:
177
+ for _item in self.shared_with_accounts:
178
+ if _item:
179
+ _items.append(_item.to_dict())
180
+ _dict['sharedWithAccounts'] = _items
181
+ # override the default output from pydantic by calling `to_dict()` of agent_interfaces
182
+ if self.agent_interfaces:
183
+ _dict['agentInterfaces'] = self.agent_interfaces.to_dict()
184
+ # override the default output from pydantic by calling `to_dict()` of custom_headers
185
+ if self.custom_headers:
186
+ _dict['customHeaders'] = self.custom_headers.to_dict()
187
+ # override the default output from pydantic by calling `to_dict()` of o_auth
188
+ if self.o_auth:
189
+ _dict['oAuth'] = self.o_auth.to_dict()
190
+ # override the default output from pydantic by calling `to_dict()` of each item in agents (list)
191
+ _items = []
192
+ if self.agents:
193
+ for _item in self.agents:
194
+ if _item:
195
+ _items.append(_item.to_dict())
196
+ _dict['agents'] = _items
197
+ return _dict
198
+
199
+ @classmethod
200
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
201
+ """Create an instance of PageLoadInstantTestResponse from a dict"""
202
+ if obj is None:
203
+ return None
204
+
205
+ if not isinstance(obj, dict):
206
+ return cls.model_validate(obj)
207
+
208
+ _obj = cls.model_validate({
209
+ "createdBy": obj.get("createdBy"),
210
+ "createdDate": obj.get("createdDate"),
211
+ "description": obj.get("description"),
212
+ "liveShare": obj.get("liveShare"),
213
+ "modifiedBy": obj.get("modifiedBy"),
214
+ "modifiedDate": obj.get("modifiedDate"),
215
+ "savedEvent": obj.get("savedEvent"),
216
+ "testId": obj.get("testId"),
217
+ "testName": obj.get("testName"),
218
+ "type": obj.get("type"),
219
+ "_links": TestLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None,
220
+ "labels": [TestLabel.from_dict(_item) for _item in obj["labels"]] if obj.get("labels") is not None else None,
221
+ "sharedWithAccounts": [SharedWithAccount.from_dict(_item) for _item in obj["sharedWithAccounts"]] if obj.get("sharedWithAccounts") is not None else None,
222
+ "authType": obj.get("authType"),
223
+ "agentInterfaces": AgentInterfaces.from_dict(obj["agentInterfaces"]) if obj.get("agentInterfaces") is not None else None,
224
+ "bandwidthMeasurements": obj.get("bandwidthMeasurements"),
225
+ "clientCertificate": obj.get("clientCertificate"),
226
+ "contentRegex": obj.get("contentRegex"),
227
+ "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None,
228
+ "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default',
229
+ "downloadLimit": obj.get("downloadLimit"),
230
+ "dnsOverride": obj.get("dnsOverride"),
231
+ "httpTargetTime": obj.get("httpTargetTime"),
232
+ "httpTimeLimit": obj.get("httpTimeLimit") if obj.get("httpTimeLimit") is not None else 5,
233
+ "httpVersion": obj.get("httpVersion") if obj.get("httpVersion") is not None else 2,
234
+ "includeHeaders": obj.get("includeHeaders") if obj.get("includeHeaders") is not None else True,
235
+ "mtuMeasurements": obj.get("mtuMeasurements"),
236
+ "networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
237
+ "numPathTraces": obj.get("numPathTraces") if obj.get("numPathTraces") is not None else 3,
238
+ "oAuth": OAuth.from_dict(obj["oAuth"]) if obj.get("oAuth") is not None else None,
239
+ "password": obj.get("password"),
240
+ "pathTraceMode": obj.get("pathTraceMode"),
241
+ "probeMode": obj.get("probeMode"),
242
+ "protocol": obj.get("protocol"),
243
+ "sslVersion": obj.get("sslVersion"),
244
+ "sslVersionId": obj.get("sslVersionId"),
245
+ "url": obj.get("url"),
246
+ "useNtlm": obj.get("useNtlm"),
247
+ "userAgent": obj.get("userAgent"),
248
+ "username": obj.get("username"),
249
+ "verifyCertificate": obj.get("verifyCertificate") if obj.get("verifyCertificate") is not None else False,
250
+ "allowUnsafeLegacyRenegotiation": obj.get("allowUnsafeLegacyRenegotiation") if obj.get("allowUnsafeLegacyRenegotiation") is not None else True,
251
+ "followRedirects": obj.get("followRedirects") if obj.get("followRedirects") is not None else True,
252
+ "fixedPacketRate": obj.get("fixedPacketRate"),
253
+ "overrideAgentProxy": obj.get("overrideAgentProxy") if obj.get("overrideAgentProxy") is not None else False,
254
+ "overrideProxyId": obj.get("overrideProxyId"),
255
+ "collectProxyNetworkData": obj.get("collectProxyNetworkData") if obj.get("collectProxyNetworkData") is not None else False,
256
+ "emulatedDeviceId": obj.get("emulatedDeviceId"),
257
+ "pageLoadTargetTime": obj.get("pageLoadTargetTime"),
258
+ "pageLoadTimeLimit": obj.get("pageLoadTimeLimit") if obj.get("pageLoadTimeLimit") is not None else 10,
259
+ "blockDomains": obj.get("blockDomains"),
260
+ "disableScreenshot": obj.get("disableScreenshot") if obj.get("disableScreenshot") is not None else False,
261
+ "allowMicAndCamera": obj.get("allowMicAndCamera") if obj.get("allowMicAndCamera") is not None else False,
262
+ "allowGeolocation": obj.get("allowGeolocation") if obj.get("allowGeolocation") is not None else False,
263
+ "browserLanguage": obj.get("browserLanguage"),
264
+ "pageLoadingStrategy": obj.get("pageLoadingStrategy"),
265
+ "agents": [AgentResponse.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
266
+ })
267
+ return _obj
268
+
269
+
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Instant Tests API
5
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.
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
 
@@ -41,7 +41,7 @@ class PageLoadProperties(BaseModel):
41
41
  client_certificate: Optional[StrictStr] = Field(default=None, description="String representation (containing newline characters) of client certificate, the private key must be placed first, then the certificate.", alias="clientCertificate")
42
42
  content_regex: Optional[StrictStr] = Field(default=None, description="Content regex, this field does not require escaping.", alias="contentRegex")
43
43
  custom_headers: Optional[TestCustomHeaders] = Field(default=None, alias="customHeaders")
44
- desired_status_code: Optional[StrictStr] = Field(default='200', description="Specify the HTTP status code value that indicates a successful response.", alias="desiredStatusCode")
44
+ desired_status_code: Optional[StrictStr] = Field(default='default', description="Specify the HTTP status code value that indicates a successful response. The default value accepts any 2xx or 3xx status code.", alias="desiredStatusCode")
45
45
  download_limit: Optional[StrictInt] = Field(default=None, description="Specifies maximum number of bytes to download from the target object.", alias="downloadLimit")
46
46
  dns_override: Optional[StrictStr] = Field(default=None, description="IP address to use for DNS override.", alias="dnsOverride")
47
47
  http_target_time: Optional[Annotated[int, Field(le=5000, strict=True, ge=100)]] = Field(default=None, description="Target time for HTTP server completion, specified in milliseconds.", alias="httpTargetTime")
@@ -152,7 +152,7 @@ class PageLoadProperties(BaseModel):
152
152
  "clientCertificate": obj.get("clientCertificate"),
153
153
  "contentRegex": obj.get("contentRegex"),
154
154
  "customHeaders": TestCustomHeaders.from_dict(obj["customHeaders"]) if obj.get("customHeaders") is not None else None,
155
- "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else '200',
155
+ "desiredStatusCode": obj.get("desiredStatusCode") if obj.get("desiredStatusCode") is not None else 'default',
156
156
  "downloadLimit": obj.get("downloadLimit"),
157
157
  "dnsOverride": obj.get("dnsOverride"),
158
158
  "httpTargetTime": obj.get("httpTargetTime"),
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Instant Tests API
5
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.
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
 
@@ -32,10 +32,15 @@ class RequestMethod(str, Enum):
32
32
  PATCH = 'patch'
33
33
  OPTIONS = 'options'
34
34
  TRACE = 'trace'
35
+ UNKNOWN = 'unknown'
35
36
 
36
37
  @classmethod
37
38
  def from_json(cls, json_str: str) -> Self:
38
39
  """Create an instance of RequestMethod from a JSON string"""
39
40
  return cls(json.loads(json_str))
40
41
 
42
+ @classmethod
43
+ def _missing_(cls, value):
44
+ """Handle unknown values"""
45
+ return cls.UNKNOWN
41
46
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Instant Tests API
5
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.
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 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.
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 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.
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_ipv6_policy import TestIpv6Policy
26
25
  from thousandeyes_sdk.instant_tests.models.test_label import TestLabel
@@ -58,8 +57,7 @@ class SipServerInstantTest(BaseModel):
58
57
  sip_time_limit: Optional[Annotated[int, Field(le=10, strict=True, ge=5)]] = Field(default=5, description="Time limit in milliseconds.", alias="sipTimeLimit")
59
58
  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")
60
59
  ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy")
61
- agents: Optional[List[Agent]] = Field(default=None, description="Contains list of agents.")
62
- __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "mtuMeasurements", "networkMeasurements", "numPathTraces", "optionsRegex", "pathTraceMode", "probeMode", "registerEnabled", "sipTargetTime", "sipTimeLimit", "fixedPacketRate", "ipv6Policy", "agents"]
60
+ __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "mtuMeasurements", "networkMeasurements", "numPathTraces", "optionsRegex", "pathTraceMode", "probeMode", "registerEnabled", "sipTargetTime", "sipTimeLimit", "fixedPacketRate", "ipv6Policy"]
63
61
 
64
62
  model_config = ConfigDict(
65
63
  populate_by_name=True,
@@ -102,7 +100,6 @@ class SipServerInstantTest(BaseModel):
102
100
  * OpenAPI `readOnly` fields are excluded.
103
101
  * OpenAPI `readOnly` fields are excluded.
104
102
  * OpenAPI `readOnly` fields are excluded.
105
- * OpenAPI `readOnly` fields are excluded.
106
103
  """
107
104
  excluded_fields: Set[str] = set([
108
105
  "created_by",
@@ -115,7 +112,6 @@ class SipServerInstantTest(BaseModel):
115
112
  "type",
116
113
  "labels",
117
114
  "shared_with_accounts",
118
- "agents",
119
115
  ])
120
116
 
121
117
  _dict = self.model_dump(
@@ -140,13 +136,6 @@ class SipServerInstantTest(BaseModel):
140
136
  if _item:
141
137
  _items.append(_item.to_dict())
142
138
  _dict['sharedWithAccounts'] = _items
143
- # override the default output from pydantic by calling `to_dict()` of each item in agents (list)
144
- _items = []
145
- if self.agents:
146
- for _item in self.agents:
147
- if _item:
148
- _items.append(_item.to_dict())
149
- _dict['agents'] = _items
150
139
  return _dict
151
140
 
152
141
  @classmethod
@@ -182,8 +171,7 @@ class SipServerInstantTest(BaseModel):
182
171
  "sipTargetTime": obj.get("sipTargetTime"),
183
172
  "sipTimeLimit": obj.get("sipTimeLimit") if obj.get("sipTimeLimit") is not None else 5,
184
173
  "fixedPacketRate": obj.get("fixedPacketRate"),
185
- "ipv6Policy": obj.get("ipv6Policy"),
186
- "agents": [Agent.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
174
+ "ipv6Policy": obj.get("ipv6Policy")
187
175
  })
188
176
  return _obj
189
177
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Instant Tests API
5
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.
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 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.
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,7 @@ 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
23
+ from thousandeyes_sdk.instant_tests.models.agent_response import AgentResponse
24
24
  from thousandeyes_sdk.instant_tests.models.shared_with_account import SharedWithAccount
25
25
  from thousandeyes_sdk.instant_tests.models.sip_test_protocol import SipTestProtocol
26
26
  from thousandeyes_sdk.instant_tests.models.test_ipv6_policy import TestIpv6Policy
@@ -59,14 +59,14 @@ class SipServerInstantTestResponse(BaseModel):
59
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
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")
61
61
  ipv6_policy: Optional[TestIpv6Policy] = Field(default=None, alias="ipv6Policy")
62
- agents: Optional[List[Agent]] = Field(default=None, description="Contains list of agents.")
63
62
  auth_user: Optional[StrictStr] = Field(default=None, description="Username for authentication with SIP server.", alias="authUser")
64
63
  password: Optional[StrictStr] = Field(default=None, description="Password for Basic/NTLM authentication.")
65
64
  port: Annotated[int, Field(le=65535, strict=True, ge=1)] = Field(description="Target port.")
66
65
  protocol: Optional[SipTestProtocol] = None
67
66
  sip_registrar: Optional[StrictStr] = Field(default=None, description="SIP server to be tested, specified by domain name or IP address.", alias="sipRegistrar")
68
67
  user: Optional[StrictStr] = Field(default=None, description="Username for SIP registration, should be unique within a ThousandEyes account group.")
69
- __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "mtuMeasurements", "networkMeasurements", "numPathTraces", "optionsRegex", "pathTraceMode", "probeMode", "registerEnabled", "sipTargetTime", "sipTimeLimit", "fixedPacketRate", "ipv6Policy", "agents", "authUser", "password", "port", "protocol", "sipRegistrar", "user"]
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", "mtuMeasurements", "networkMeasurements", "numPathTraces", "optionsRegex", "pathTraceMode", "probeMode", "registerEnabled", "sipTargetTime", "sipTimeLimit", "fixedPacketRate", "ipv6Policy", "authUser", "password", "port", "protocol", "sipRegistrar", "user", "agents"]
70
70
 
71
71
  model_config = ConfigDict(
72
72
  populate_by_name=True,
@@ -109,7 +109,6 @@ class SipServerInstantTestResponse(BaseModel):
109
109
  * OpenAPI `readOnly` fields are excluded.
110
110
  * OpenAPI `readOnly` fields are excluded.
111
111
  * OpenAPI `readOnly` fields are excluded.
112
- * OpenAPI `readOnly` fields are excluded.
113
112
  """
114
113
  excluded_fields: Set[str] = set([
115
114
  "created_by",
@@ -122,7 +121,6 @@ class SipServerInstantTestResponse(BaseModel):
122
121
  "type",
123
122
  "labels",
124
123
  "shared_with_accounts",
125
- "agents",
126
124
  ])
127
125
 
128
126
  _dict = self.model_dump(
@@ -190,13 +188,13 @@ class SipServerInstantTestResponse(BaseModel):
190
188
  "sipTimeLimit": obj.get("sipTimeLimit") if obj.get("sipTimeLimit") is not None else 5,
191
189
  "fixedPacketRate": obj.get("fixedPacketRate"),
192
190
  "ipv6Policy": obj.get("ipv6Policy"),
193
- "agents": [Agent.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None,
194
191
  "authUser": obj.get("authUser"),
195
192
  "password": obj.get("password"),
196
193
  "port": obj.get("port") if obj.get("port") is not None else 49153,
197
194
  "protocol": obj.get("protocol"),
198
195
  "sipRegistrar": obj.get("sipRegistrar"),
199
- "user": obj.get("user")
196
+ "user": obj.get("user"),
197
+ "agents": [AgentResponse.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
200
198
  })
201
199
  return _obj
202
200
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Instant Tests API
5
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.
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 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.
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
 
@@ -28,10 +28,15 @@ class SipTestProtocol(str, Enum):
28
28
  TCP = 'tcp'
29
29
  TLS = 'tls'
30
30
  UDP = 'udp'
31
+ UNKNOWN = 'unknown'
31
32
 
32
33
  @classmethod
33
34
  def from_json(cls, json_str: str) -> Self:
34
35
  """Create an instance of SipTestProtocol from a JSON string"""
35
36
  return cls(json.loads(json_str))
36
37
 
38
+ @classmethod
39
+ def _missing_(cls, value):
40
+ """Handle unknown values"""
41
+ return cls.UNKNOWN
37
42
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Instant Tests API
5
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.
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 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.
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,10 +30,15 @@ class TestAuthType(str, Enum):
30
30
  NTLM = 'ntlm'
31
31
  KERBEROS = 'kerberos'
32
32
  OAUTH = 'oauth'
33
+ UNKNOWN = 'unknown'
33
34
 
34
35
  @classmethod
35
36
  def from_json(cls, json_str: str) -> Self:
36
37
  """Create an instance of TestAuthType from a JSON string"""
37
38
  return cls(json.loads(json_str))
38
39
 
40
+ @classmethod
41
+ def _missing_(cls, value):
42
+ """Handle unknown values"""
43
+ return cls.UNKNOWN
39
44
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Instant Tests API
5
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.
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 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.
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
 
@@ -28,10 +28,15 @@ class TestDirection(str, Enum):
28
28
  TO_MINUS_TARGET = 'to-target'
29
29
  FROM_MINUS_TARGET = 'from-target'
30
30
  BIDIRECTIONAL = 'bidirectional'
31
+ UNKNOWN = 'unknown'
31
32
 
32
33
  @classmethod
33
34
  def from_json(cls, json_str: str) -> Self:
34
35
  """Create an instance of TestDirection from a JSON string"""
35
36
  return cls(json.loads(json_str))
36
37
 
38
+ @classmethod
39
+ def _missing_(cls, value):
40
+ """Handle unknown values"""
41
+ return cls.UNKNOWN
37
42
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Instant Tests API
5
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.
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