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
@@ -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
 
@@ -27,10 +27,15 @@ class TestDnsTransportProtocol(str, Enum):
27
27
  """
28
28
  UDP = 'udp'
29
29
  TCP = 'tcp'
30
+ UNKNOWN = 'unknown'
30
31
 
31
32
  @classmethod
32
33
  def from_json(cls, json_str: str) -> Self:
33
34
  """Create an instance of TestDnsTransportProtocol 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 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
 
@@ -47,10 +47,15 @@ class TestDscpId(str, Enum):
47
47
  ENUM_38 = '38'
48
48
  ENUM_46 = '46'
49
49
  ENUM_44 = '44'
50
+ UNKNOWN = 'unknown'
50
51
 
51
52
  @classmethod
52
53
  def from_json(cls, json_str: str) -> Self:
53
54
  """Create an instance of TestDscpId from a JSON string"""
54
55
  return cls(json.loads(json_str))
55
56
 
57
+ @classmethod
58
+ def _missing_(cls, value):
59
+ """Handle unknown values"""
60
+ return cls.UNKNOWN
56
61
 
@@ -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
 
@@ -29,10 +29,15 @@ class TestIpv6Policy(str, Enum):
29
29
  PREFER_MINUS_IPV6 = 'prefer-ipv6'
30
30
  FORCE_MINUS_IPV6 = 'force-ipv6'
31
31
  USE_MINUS_AGENT_MINUS_POLICY = 'use-agent-policy'
32
+ UNKNOWN = 'unknown'
32
33
 
33
34
  @classmethod
34
35
  def from_json(cls, json_str: str) -> Self:
35
36
  """Create an instance of TestIpv6Policy from a JSON string"""
36
37
  return cls(json.loads(json_str))
37
38
 
39
+ @classmethod
40
+ def _missing_(cls, value):
41
+ """Handle unknown values"""
42
+ return cls.UNKNOWN
38
43
 
@@ -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
 
@@ -28,10 +28,15 @@ class TestPageLoadingStrategy(str, Enum):
28
28
  NORMAL = 'normal'
29
29
  EAGER = 'eager'
30
30
  NONE = 'none'
31
+ UNKNOWN = 'unknown'
31
32
 
32
33
  @classmethod
33
34
  def from_json(cls, json_str: str) -> Self:
34
35
  """Create an instance of TestPageLoadingStrategy 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
 
@@ -27,10 +27,15 @@ class TestPathTraceMode(str, Enum):
27
27
  """
28
28
  CLASSIC = 'classic'
29
29
  IN_MINUS_SESSION = 'in-session'
30
+ UNKNOWN = 'unknown'
30
31
 
31
32
  @classmethod
32
33
  def from_json(cls, json_str: str) -> Self:
33
34
  """Create an instance of TestPathTraceMode 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 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 TestProbeMode(str, Enum):
28
28
  AUTO = 'auto'
29
29
  SACK = 'sack'
30
30
  SYN = 'syn'
31
+ UNKNOWN = 'unknown'
31
32
 
32
33
  @classmethod
33
34
  def from_json(cls, json_str: str) -> Self:
34
35
  """Create an instance of TestProbeMode 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
 
@@ -28,10 +28,15 @@ class TestProtocol(str, Enum):
28
28
  TCP = 'tcp'
29
29
  ICMP = 'icmp'
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 TestProtocol 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
 
@@ -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 TestSslVersionId(str, Enum):
30
30
  ENUM_4 = '4'
31
31
  ENUM_5 = '5'
32
32
  ENUM_6 = '6'
33
+ UNKNOWN = 'unknown'
33
34
 
34
35
  @classmethod
35
36
  def from_json(cls, json_str: str) -> Self:
36
37
  """Create an instance of TestSslVersionId 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
 
@@ -38,10 +38,15 @@ class TestType(str, Enum):
38
38
  DNSSEC = 'dnssec'
39
39
  SIP_MINUS_SERVER = 'sip-server'
40
40
  VOICE = 'voice'
41
+ UNKNOWN = 'unknown'
41
42
 
42
43
  @classmethod
43
44
  def from_json(cls, json_str: str) -> Self:
44
45
  """Create an instance of TestType from a JSON string"""
45
46
  return cls(json.loads(json_str))
46
47
 
48
+ @classmethod
49
+ def _missing_(cls, value):
50
+ """Handle unknown values"""
51
+ return cls.UNKNOWN
47
52
 
@@ -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
 
@@ -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_dscp_id import TestDscpId
26
25
  from thousandeyes_sdk.instant_tests.models.test_label import TestLabel
@@ -54,8 +53,7 @@ class VoiceInstantTest(BaseModel):
54
53
  num_path_traces: Optional[Annotated[int, Field(le=10, strict=True, ge=1)]] = Field(default=3, description="Number of path traces executed by the agent.", alias="numPathTraces")
55
54
  port: Optional[Annotated[int, Field(le=65535, strict=True, ge=1024)]] = Field(default=None, description="Port number for the chosen protocol.")
56
55
  target_agent_id: StrictStr = Field(description="Agent ID of the target agent for the test.", alias="targetAgentId")
57
- agents: Optional[List[Agent]] = Field(default=None, description="Contains list of agents.")
58
- __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "codec", "codecId", "dscp", "dscpId", "duration", "jitterBuffer", "numPathTraces", "port", "targetAgentId", "agents"]
56
+ __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "codec", "codecId", "dscp", "dscpId", "duration", "jitterBuffer", "numPathTraces", "port", "targetAgentId"]
59
57
 
60
58
  model_config = ConfigDict(
61
59
  populate_by_name=True,
@@ -100,7 +98,6 @@ class VoiceInstantTest(BaseModel):
100
98
  * OpenAPI `readOnly` fields are excluded.
101
99
  * OpenAPI `readOnly` fields are excluded.
102
100
  * OpenAPI `readOnly` fields are excluded.
103
- * OpenAPI `readOnly` fields are excluded.
104
101
  """
105
102
  excluded_fields: Set[str] = set([
106
103
  "created_by",
@@ -115,7 +112,6 @@ class VoiceInstantTest(BaseModel):
115
112
  "shared_with_accounts",
116
113
  "codec",
117
114
  "dscp",
118
- "agents",
119
115
  ])
120
116
 
121
117
  _dict = self.model_dump(
@@ -140,13 +136,6 @@ class VoiceInstantTest(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
@@ -180,8 +169,7 @@ class VoiceInstantTest(BaseModel):
180
169
  "jitterBuffer": obj.get("jitterBuffer") if obj.get("jitterBuffer") is not None else 40,
181
170
  "numPathTraces": obj.get("numPathTraces") if obj.get("numPathTraces") is not None else 3,
182
171
  "port": obj.get("port"),
183
- "targetAgentId": obj.get("targetAgentId"),
184
- "agents": [Agent.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
172
+ "targetAgentId": obj.get("targetAgentId")
185
173
  })
186
174
  return _obj
187
175
 
@@ -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
 
@@ -0,0 +1,186 @@
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.shared_with_account import SharedWithAccount
25
+ from thousandeyes_sdk.instant_tests.models.test_dscp_id import TestDscpId
26
+ from thousandeyes_sdk.instant_tests.models.test_label import TestLabel
27
+ from thousandeyes_sdk.instant_tests.models.test_links import TestLinks
28
+ from typing import Optional, Set
29
+ from typing_extensions import Self
30
+
31
+ class VoiceInstantTestResponse(BaseModel):
32
+ """
33
+ VoiceInstantTestResponse
34
+ """ # noqa: E501
35
+ created_by: Optional[StrictStr] = Field(default=None, description="User that created the test.", alias="createdBy")
36
+ created_date: Optional[datetime] = Field(default=None, description="UTC created date (ISO date-time format).", alias="createdDate")
37
+ description: Optional[StrictStr] = Field(default=None, description="A description of the test.")
38
+ live_share: Optional[StrictBool] = Field(default=None, description="Indicates if the test is shared with the account group.", alias="liveShare")
39
+ modified_by: Optional[StrictStr] = Field(default=None, description="User that modified the test.", alias="modifiedBy")
40
+ modified_date: Optional[datetime] = Field(default=None, description="UTC last modification date (ISO date-time format).", alias="modifiedDate")
41
+ saved_event: Optional[StrictBool] = Field(default=None, description="Indicates if the test is a saved event.", alias="savedEvent")
42
+ test_id: Optional[StrictStr] = Field(default=None, description="Each test is assigned an unique ID; this is used to access test information and results from other endpoints.", alias="testId")
43
+ test_name: Optional[StrictStr] = Field(default=None, description="The name of the test. Test name must be unique.", alias="testName")
44
+ type: Optional[StrictStr] = None
45
+ links: Optional[TestLinks] = Field(default=None, alias="_links")
46
+ labels: Optional[List[TestLabel]] = None
47
+ shared_with_accounts: Optional[List[SharedWithAccount]] = Field(default=None, alias="sharedWithAccounts")
48
+ codec: Optional[StrictStr] = Field(default=None, description="Codec label")
49
+ codec_id: Optional[StrictStr] = Field(default=None, description="Coded ID, [see the list of acceptable values](https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/working-with-test-settings#rtp-stream-advanced-settings-tab)", alias="codecId")
50
+ dscp: Optional[StrictStr] = Field(default=None, description="DSCP label.")
51
+ dscp_id: Optional[TestDscpId] = Field(default=None, alias="dscpId")
52
+ duration: Optional[Annotated[int, Field(le=30, strict=True, ge=5)]] = Field(default=5, description="Duration of the test in seconds.")
53
+ jitter_buffer: Optional[Annotated[int, Field(le=150, strict=True, ge=0)]] = Field(default=40, description="De-jitter buffer size in seconds.", alias="jitterBuffer")
54
+ 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")
55
+ port: Optional[Annotated[int, Field(le=65535, strict=True, ge=1024)]] = Field(default=None, description="Port number for the chosen protocol.")
56
+ target_agent_id: StrictStr = Field(description="Agent ID of the target agent for the test.", alias="targetAgentId")
57
+ agents: Optional[List[AgentResponse]] = Field(default=None, description="Contains list of agents.")
58
+ __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "codec", "codecId", "dscp", "dscpId", "duration", "jitterBuffer", "numPathTraces", "port", "targetAgentId", "agents"]
59
+
60
+ model_config = ConfigDict(
61
+ populate_by_name=True,
62
+ validate_assignment=True,
63
+ protected_namespaces=(),
64
+ extra="allow",
65
+ )
66
+
67
+
68
+ def to_str(self) -> str:
69
+ """Returns the string representation of the model using alias"""
70
+ return pprint.pformat(self.model_dump(by_alias=True))
71
+
72
+ def to_json(self) -> str:
73
+ """Returns the JSON representation of the model using alias"""
74
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
75
+ return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True)
76
+
77
+ @classmethod
78
+ def from_json(cls, json_str: str) -> Optional[Self]:
79
+ """Create an instance of VoiceInstantTestResponse from a JSON string"""
80
+ return cls.from_dict(json.loads(json_str))
81
+
82
+ def to_dict(self) -> Dict[str, Any]:
83
+ """Return the dictionary representation of the model using alias.
84
+
85
+ This has the following differences from calling pydantic's
86
+ `self.model_dump(by_alias=True)`:
87
+
88
+ * `None` is only added to the output dict for nullable fields that
89
+ were set at model initialization. Other fields with value `None`
90
+ are ignored.
91
+ * OpenAPI `readOnly` fields are excluded.
92
+ * OpenAPI `readOnly` fields are excluded.
93
+ * OpenAPI `readOnly` fields are excluded.
94
+ * OpenAPI `readOnly` fields are excluded.
95
+ * OpenAPI `readOnly` fields are excluded.
96
+ * OpenAPI `readOnly` fields are excluded.
97
+ * OpenAPI `readOnly` fields are excluded.
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
+ """
104
+ excluded_fields: Set[str] = set([
105
+ "created_by",
106
+ "created_date",
107
+ "live_share",
108
+ "modified_by",
109
+ "modified_date",
110
+ "saved_event",
111
+ "test_id",
112
+ "type",
113
+ "labels",
114
+ "shared_with_accounts",
115
+ "codec",
116
+ "dscp",
117
+ ])
118
+
119
+ _dict = self.model_dump(
120
+ by_alias=True,
121
+ exclude=excluded_fields,
122
+ exclude_none=True,
123
+ )
124
+ # override the default output from pydantic by calling `to_dict()` of links
125
+ if self.links:
126
+ _dict['_links'] = self.links.to_dict()
127
+ # override the default output from pydantic by calling `to_dict()` of each item in labels (list)
128
+ _items = []
129
+ if self.labels:
130
+ for _item in self.labels:
131
+ if _item:
132
+ _items.append(_item.to_dict())
133
+ _dict['labels'] = _items
134
+ # override the default output from pydantic by calling `to_dict()` of each item in shared_with_accounts (list)
135
+ _items = []
136
+ if self.shared_with_accounts:
137
+ for _item in self.shared_with_accounts:
138
+ if _item:
139
+ _items.append(_item.to_dict())
140
+ _dict['sharedWithAccounts'] = _items
141
+ # override the default output from pydantic by calling `to_dict()` of each item in agents (list)
142
+ _items = []
143
+ if self.agents:
144
+ for _item in self.agents:
145
+ if _item:
146
+ _items.append(_item.to_dict())
147
+ _dict['agents'] = _items
148
+ return _dict
149
+
150
+ @classmethod
151
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
152
+ """Create an instance of VoiceInstantTestResponse from a dict"""
153
+ if obj is None:
154
+ return None
155
+
156
+ if not isinstance(obj, dict):
157
+ return cls.model_validate(obj)
158
+
159
+ _obj = cls.model_validate({
160
+ "createdBy": obj.get("createdBy"),
161
+ "createdDate": obj.get("createdDate"),
162
+ "description": obj.get("description"),
163
+ "liveShare": obj.get("liveShare"),
164
+ "modifiedBy": obj.get("modifiedBy"),
165
+ "modifiedDate": obj.get("modifiedDate"),
166
+ "savedEvent": obj.get("savedEvent"),
167
+ "testId": obj.get("testId"),
168
+ "testName": obj.get("testName"),
169
+ "type": obj.get("type"),
170
+ "_links": TestLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None,
171
+ "labels": [TestLabel.from_dict(_item) for _item in obj["labels"]] if obj.get("labels") is not None else None,
172
+ "sharedWithAccounts": [SharedWithAccount.from_dict(_item) for _item in obj["sharedWithAccounts"]] if obj.get("sharedWithAccounts") is not None else None,
173
+ "codec": obj.get("codec"),
174
+ "codecId": obj.get("codecId"),
175
+ "dscp": obj.get("dscp"),
176
+ "dscpId": obj.get("dscpId"),
177
+ "duration": obj.get("duration") if obj.get("duration") is not None else 5,
178
+ "jitterBuffer": obj.get("jitterBuffer") if obj.get("jitterBuffer") is not None else 40,
179
+ "numPathTraces": obj.get("numPathTraces") if obj.get("numPathTraces") is not None else 3,
180
+ "port": obj.get("port"),
181
+ "targetAgentId": obj.get("targetAgentId"),
182
+ "agents": [AgentResponse.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
183
+ })
184
+ return _obj
185
+
186
+
@@ -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