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
 
@@ -21,16 +21,16 @@ import thousandeyes_sdk.instant_tests.models
21
21
  from pydantic import Field, StrictStr
22
22
  from typing import List, Optional
23
23
  from typing_extensions import Annotated
24
- from thousandeyes_sdk.instant_tests.models.expand import Expand
25
- from thousandeyes_sdk.instant_tests.models.web_transaction_instant_test import WebTransactionInstantTest
24
+ from thousandeyes_sdk.instant_tests.models.expand_instant_test_options import ExpandInstantTestOptions
26
25
  from thousandeyes_sdk.instant_tests.models.web_transaction_instant_test_request import WebTransactionInstantTestRequest
26
+ from thousandeyes_sdk.instant_tests.models.web_transaction_instant_test_response import WebTransactionInstantTestResponse
27
27
 
28
28
  from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized
29
29
  from thousandeyes_sdk.core.api_response import ApiResponse
30
30
  from thousandeyes_sdk.core.rest import RESTResponseType
31
31
 
32
32
 
33
- class WebTransactionApi:
33
+ class WebTransactionInstantTestsApi:
34
34
  """NOTE: This class is auto generated by OpenAPI Generator
35
35
  Ref: https://openapi-generator.tech
36
36
 
@@ -49,7 +49,7 @@ class WebTransactionApi:
49
49
  self,
50
50
  web_transaction_instant_test_request: WebTransactionInstantTestRequest,
51
51
  aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None,
52
- expand: Annotated[Optional[List[Expand]], Field(description="(Optional) Indicates if the test sub-resources should be expanded. Defaults to no expansion. To expand the `agents` sub-resource, use the query `?expand=agent`.")] = None,
52
+ expand: Annotated[Optional[List[ExpandInstantTestOptions]], Field(description="(Optional) Indicates if the test sub-resources should be expanded. Defaults to no expansion. To expand the `agents` sub-resource, use the query `?expand=agent`.")] = None,
53
53
  _request_timeout: Union[
54
54
  None,
55
55
  Annotated[StrictFloat, Field(gt=0)],
@@ -62,7 +62,7 @@ class WebTransactionApi:
62
62
  _content_type: Optional[StrictStr] = None,
63
63
  _headers: Optional[Dict[StrictStr, Any]] = None,
64
64
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
65
- ) -> WebTransactionInstantTest:
65
+ ) -> WebTransactionInstantTestResponse:
66
66
  """Create web transactions instant test
67
67
 
68
68
  Creates and runs a new Web transactions instant test.
@@ -72,7 +72,7 @@ class WebTransactionApi:
72
72
  :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.
73
73
  :type aid: str
74
74
  :param expand: (Optional) Indicates if the test sub-resources should be expanded. Defaults to no expansion. To expand the `agents` sub-resource, use the query `?expand=agent`.
75
- :type expand: List[Expand]
75
+ :type expand: List[ExpandInstantTestOptions]
76
76
  :param _request_timeout: timeout setting for this request. If one
77
77
  number provided, it will be total request
78
78
  timeout. It can also be a pair (tuple) of
@@ -106,7 +106,7 @@ class WebTransactionApi:
106
106
  )
107
107
 
108
108
  _response_types_map: Dict[str, Optional[str]] = {
109
- '201': "WebTransactionInstantTest",
109
+ '201': "WebTransactionInstantTestResponse",
110
110
  '400': "ValidationError",
111
111
  '401': "UnauthorizedError",
112
112
  '403': "Error",
@@ -132,7 +132,7 @@ class WebTransactionApi:
132
132
  self,
133
133
  web_transaction_instant_test_request: WebTransactionInstantTestRequest,
134
134
  aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None,
135
- expand: Annotated[Optional[List[Expand]], Field(description="(Optional) Indicates if the test sub-resources should be expanded. Defaults to no expansion. To expand the `agents` sub-resource, use the query `?expand=agent`.")] = None,
135
+ expand: Annotated[Optional[List[ExpandInstantTestOptions]], Field(description="(Optional) Indicates if the test sub-resources should be expanded. Defaults to no expansion. To expand the `agents` sub-resource, use the query `?expand=agent`.")] = None,
136
136
  _request_timeout: Union[
137
137
  None,
138
138
  Annotated[StrictFloat, Field(gt=0)],
@@ -145,7 +145,7 @@ class WebTransactionApi:
145
145
  _content_type: Optional[StrictStr] = None,
146
146
  _headers: Optional[Dict[StrictStr, Any]] = None,
147
147
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
148
- ) -> ApiResponse[WebTransactionInstantTest]:
148
+ ) -> ApiResponse[WebTransactionInstantTestResponse]:
149
149
  """Create web transactions instant test
150
150
 
151
151
  Creates and runs a new Web transactions instant test.
@@ -155,7 +155,7 @@ class WebTransactionApi:
155
155
  :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.
156
156
  :type aid: str
157
157
  :param expand: (Optional) Indicates if the test sub-resources should be expanded. Defaults to no expansion. To expand the `agents` sub-resource, use the query `?expand=agent`.
158
- :type expand: List[Expand]
158
+ :type expand: List[ExpandInstantTestOptions]
159
159
  :param _request_timeout: timeout setting for this request. If one
160
160
  number provided, it will be total request
161
161
  timeout. It can also be a pair (tuple) of
@@ -189,7 +189,7 @@ class WebTransactionApi:
189
189
  )
190
190
 
191
191
  _response_types_map: Dict[str, Optional[str]] = {
192
- '201': "WebTransactionInstantTest",
192
+ '201': "WebTransactionInstantTestResponse",
193
193
  '400': "ValidationError",
194
194
  '401': "UnauthorizedError",
195
195
  '403': "Error",
@@ -215,7 +215,7 @@ class WebTransactionApi:
215
215
  self,
216
216
  web_transaction_instant_test_request: WebTransactionInstantTestRequest,
217
217
  aid: Annotated[Optional[StrictStr], Field(description="A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.")] = None,
218
- expand: Annotated[Optional[List[Expand]], Field(description="(Optional) Indicates if the test sub-resources should be expanded. Defaults to no expansion. To expand the `agents` sub-resource, use the query `?expand=agent`.")] = None,
218
+ expand: Annotated[Optional[List[ExpandInstantTestOptions]], Field(description="(Optional) Indicates if the test sub-resources should be expanded. Defaults to no expansion. To expand the `agents` sub-resource, use the query `?expand=agent`.")] = None,
219
219
  _request_timeout: Union[
220
220
  None,
221
221
  Annotated[StrictFloat, Field(gt=0)],
@@ -238,7 +238,7 @@ class WebTransactionApi:
238
238
  :param aid: A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.
239
239
  :type aid: str
240
240
  :param expand: (Optional) Indicates if the test sub-resources should be expanded. Defaults to no expansion. To expand the `agents` sub-resource, use the query `?expand=agent`.
241
- :type expand: List[Expand]
241
+ :type expand: List[ExpandInstantTestOptions]
242
242
  :param _request_timeout: timeout setting for this request. If one
243
243
  number provided, it will be total request
244
244
  timeout. It can also be a pair (tuple) of
@@ -272,7 +272,7 @@ class WebTransactionApi:
272
272
  )
273
273
 
274
274
  _response_types_map: Dict[str, Optional[str]] = {
275
- '201': "WebTransactionInstantTest",
275
+ '201': "WebTransactionInstantTestResponse",
276
276
  '400': "ValidationError",
277
277
  '401': "UnauthorizedError",
278
278
  '403': "Error",
@@ -359,7 +359,7 @@ class WebTransactionApi:
359
359
 
360
360
  return self.api_client.param_serialize(
361
361
  method='POST',
362
- resource_path='/v7/tests/web-transactions/instant',
362
+ resource_path='/tests/web-transactions/instant',
363
363
  path_params=_path_params,
364
364
  query_params=_query_params,
365
365
  header_params=_header_params,
@@ -4,7 +4,7 @@
4
4
  """
5
5
  Instant Tests API
6
6
 
7
- The Instant Tests API endpoint lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
7
+ The Instant Tests API operations lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
8
8
 
9
9
  Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
@@ -13,18 +13,21 @@
13
13
 
14
14
 
15
15
  # import models into model package
16
- from thousandeyes_sdk.instant_tests.models.agent import Agent
17
16
  from thousandeyes_sdk.instant_tests.models.agent_base import AgentBase
18
17
  from thousandeyes_sdk.instant_tests.models.agent_interfaces import AgentInterfaces
18
+ from thousandeyes_sdk.instant_tests.models.agent_response import AgentResponse
19
19
  from thousandeyes_sdk.instant_tests.models.agent_to_agent_instant_test import AgentToAgentInstantTest
20
20
  from thousandeyes_sdk.instant_tests.models.agent_to_agent_instant_test_request import AgentToAgentInstantTestRequest
21
+ from thousandeyes_sdk.instant_tests.models.agent_to_agent_instant_test_response import AgentToAgentInstantTestResponse
21
22
  from thousandeyes_sdk.instant_tests.models.agent_to_agent_properties import AgentToAgentProperties
22
23
  from thousandeyes_sdk.instant_tests.models.agent_to_agent_test_protocol import AgentToAgentTestProtocol
23
24
  from thousandeyes_sdk.instant_tests.models.agent_to_server_instant_test import AgentToServerInstantTest
24
25
  from thousandeyes_sdk.instant_tests.models.agent_to_server_instant_test_request import AgentToServerInstantTestRequest
26
+ from thousandeyes_sdk.instant_tests.models.agent_to_server_instant_test_response import AgentToServerInstantTestResponse
25
27
  from thousandeyes_sdk.instant_tests.models.agent_to_server_properties import AgentToServerProperties
26
28
  from thousandeyes_sdk.instant_tests.models.api_instant_test import ApiInstantTest
27
29
  from thousandeyes_sdk.instant_tests.models.api_instant_test_request import ApiInstantTestRequest
30
+ from thousandeyes_sdk.instant_tests.models.api_instant_test_response import ApiInstantTestResponse
28
31
  from thousandeyes_sdk.instant_tests.models.api_predefined_variable import ApiPredefinedVariable
29
32
  from thousandeyes_sdk.instant_tests.models.api_properties import ApiProperties
30
33
  from thousandeyes_sdk.instant_tests.models.api_request import ApiRequest
@@ -39,22 +42,28 @@ from thousandeyes_sdk.instant_tests.models.cloud_enterprise_agent_type import Cl
39
42
  from thousandeyes_sdk.instant_tests.models.dns_query_class import DnsQueryClass
40
43
  from thousandeyes_sdk.instant_tests.models.dns_sec_instant_test import DnsSecInstantTest
41
44
  from thousandeyes_sdk.instant_tests.models.dns_sec_instant_test_request import DnsSecInstantTestRequest
45
+ from thousandeyes_sdk.instant_tests.models.dns_sec_instant_test_response import DnsSecInstantTestResponse
42
46
  from thousandeyes_sdk.instant_tests.models.dns_sec_properties import DnsSecProperties
43
47
  from thousandeyes_sdk.instant_tests.models.dns_server_instant_test import DnsServerInstantTest
44
48
  from thousandeyes_sdk.instant_tests.models.dns_server_instant_test_request import DnsServerInstantTestRequest
49
+ from thousandeyes_sdk.instant_tests.models.dns_server_instant_test_response import DnsServerInstantTestResponse
45
50
  from thousandeyes_sdk.instant_tests.models.dns_server_properties import DnsServerProperties
46
51
  from thousandeyes_sdk.instant_tests.models.dns_servers_request import DnsServersRequest
47
52
  from thousandeyes_sdk.instant_tests.models.dns_trace_instant_test import DnsTraceInstantTest
48
53
  from thousandeyes_sdk.instant_tests.models.dns_trace_instant_test_request import DnsTraceInstantTestRequest
54
+ from thousandeyes_sdk.instant_tests.models.dns_trace_instant_test_response import DnsTraceInstantTestResponse
49
55
  from thousandeyes_sdk.instant_tests.models.dns_trace_properties import DnsTraceProperties
50
56
  from thousandeyes_sdk.instant_tests.models.error import Error
51
- from thousandeyes_sdk.instant_tests.models.expand import Expand
57
+ from thousandeyes_sdk.instant_tests.models.expand_instant_test_options import ExpandInstantTestOptions
52
58
  from thousandeyes_sdk.instant_tests.models.ftp_server_instant_test import FtpServerInstantTest
59
+ from thousandeyes_sdk.instant_tests.models.ftp_server_instant_test_request import FtpServerInstantTestRequest
60
+ from thousandeyes_sdk.instant_tests.models.ftp_server_instant_test_response import FtpServerInstantTestResponse
53
61
  from thousandeyes_sdk.instant_tests.models.ftp_server_properties import FtpServerProperties
54
62
  from thousandeyes_sdk.instant_tests.models.ftp_server_request_type import FtpServerRequestType
55
63
  from thousandeyes_sdk.instant_tests.models.http_server_base_properties import HttpServerBaseProperties
56
64
  from thousandeyes_sdk.instant_tests.models.http_server_instant_test import HttpServerInstantTest
57
65
  from thousandeyes_sdk.instant_tests.models.http_server_instant_test_request import HttpServerInstantTestRequest
66
+ from thousandeyes_sdk.instant_tests.models.http_server_instant_test_response import HttpServerInstantTestResponse
58
67
  from thousandeyes_sdk.instant_tests.models.http_server_properties import HttpServerProperties
59
68
  from thousandeyes_sdk.instant_tests.models.instant_test import InstantTest
60
69
  from thousandeyes_sdk.instant_tests.models.instant_test_request import InstantTestRequest
@@ -62,14 +71,13 @@ from thousandeyes_sdk.instant_tests.models.link import Link
62
71
  from thousandeyes_sdk.instant_tests.models.o_auth import OAuth
63
72
  from thousandeyes_sdk.instant_tests.models.page_load_instant_test import PageLoadInstantTest
64
73
  from thousandeyes_sdk.instant_tests.models.page_load_instant_test_request import PageLoadInstantTestRequest
74
+ from thousandeyes_sdk.instant_tests.models.page_load_instant_test_response import PageLoadInstantTestResponse
65
75
  from thousandeyes_sdk.instant_tests.models.page_load_properties import PageLoadProperties
66
76
  from thousandeyes_sdk.instant_tests.models.request_method import RequestMethod
67
- from thousandeyes_sdk.instant_tests.models.server_instant_test_request import ServerInstantTestRequest
68
77
  from thousandeyes_sdk.instant_tests.models.shared_with_account import SharedWithAccount
69
78
  from thousandeyes_sdk.instant_tests.models.simple_agent import SimpleAgent
70
79
  from thousandeyes_sdk.instant_tests.models.sip_server_instant_test import SipServerInstantTest
71
80
  from thousandeyes_sdk.instant_tests.models.sip_server_instant_test_request import SipServerInstantTestRequest
72
- from thousandeyes_sdk.instant_tests.models.sip_server_instant_test_request1 import SipServerInstantTestRequest1
73
81
  from thousandeyes_sdk.instant_tests.models.sip_server_instant_test_response import SipServerInstantTestResponse
74
82
  from thousandeyes_sdk.instant_tests.models.sip_server_properties import SipServerProperties
75
83
  from thousandeyes_sdk.instant_tests.models.sip_test_protocol import SipTestProtocol
@@ -97,7 +105,9 @@ from thousandeyes_sdk.instant_tests.models.validation_error import ValidationErr
97
105
  from thousandeyes_sdk.instant_tests.models.validation_error_item import ValidationErrorItem
98
106
  from thousandeyes_sdk.instant_tests.models.voice_instant_test import VoiceInstantTest
99
107
  from thousandeyes_sdk.instant_tests.models.voice_instant_test_request import VoiceInstantTestRequest
108
+ from thousandeyes_sdk.instant_tests.models.voice_instant_test_response import VoiceInstantTestResponse
100
109
  from thousandeyes_sdk.instant_tests.models.voice_properties import VoiceProperties
101
110
  from thousandeyes_sdk.instant_tests.models.web_transaction_instant_test import WebTransactionInstantTest
102
111
  from thousandeyes_sdk.instant_tests.models.web_transaction_instant_test_request import WebTransactionInstantTestRequest
112
+ from thousandeyes_sdk.instant_tests.models.web_transaction_instant_test_response import WebTransactionInstantTestResponse
103
113
  from thousandeyes_sdk.instant_tests.models.web_transaction_properties import WebTransactionProperties
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Instant Tests API
5
5
 
6
- The Instant Tests API 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
 
@@ -22,9 +22,9 @@ from thousandeyes_sdk.instant_tests.models.cloud_enterprise_agent_type import Cl
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
24
24
 
25
- class Agent(BaseModel):
25
+ class AgentResponse(BaseModel):
26
26
  """
27
- Agent
27
+ AgentResponse
28
28
  """ # noqa: E501
29
29
  ip_addresses: Optional[List[StrictStr]] = Field(default=None, description="Array of private IP addresses.", alias="ipAddresses")
30
30
  public_ip_addresses: Optional[List[StrictStr]] = Field(default=None, description="Array of public IP addresses.", alias="publicIpAddresses")
@@ -58,7 +58,7 @@ class Agent(BaseModel):
58
58
 
59
59
  @classmethod
60
60
  def from_json(cls, json_str: str) -> Optional[Self]:
61
- """Create an instance of Agent from a JSON string"""
61
+ """Create an instance of AgentResponse from a JSON string"""
62
62
  return cls.from_dict(json.loads(json_str))
63
63
 
64
64
  def to_dict(self) -> Dict[str, Any]:
@@ -99,7 +99,7 @@ class Agent(BaseModel):
99
99
 
100
100
  @classmethod
101
101
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
102
- """Create an instance of Agent from a dict"""
102
+ """Create an instance of AgentResponse from a dict"""
103
103
  if obj is None:
104
104
  return None
105
105
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Instant Tests API
5
5
 
6
- The Instant Tests API 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.agent_to_agent_test_protocol import AgentToAgentTestProtocol
25
24
  from thousandeyes_sdk.instant_tests.models.shared_with_account import SharedWithAccount
26
25
  from thousandeyes_sdk.instant_tests.models.test_direction import TestDirection
@@ -61,8 +60,7 @@ class AgentToAgentInstantTest(BaseModel):
61
60
  throughput_duration: Optional[Annotated[int, Field(le=30000, strict=True, ge=5000)]] = Field(default=10000, description="The throughput duration.", alias="throughputDuration")
62
61
  throughput_rate: Optional[Annotated[int, Field(le=1000, strict=True, ge=8)]] = Field(default=None, description="The throughput rate, only applicable for UDP protocol.", alias="throughputRate")
63
62
  fixed_packet_rate: Optional[Annotated[int, Field(le=100, strict=True, ge=0)]] = Field(default=None, description="Sets packets rate sent to measure the network in packets per second.", alias="fixedPacketRate")
64
- agents: Optional[List[Agent]] = Field(default=None, description="Contains list of agents.")
65
- __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "direction", "dscp", "dscpId", "mss", "numPathTraces", "pathTraceMode", "port", "protocol", "targetAgentId", "throughputMeasurements", "throughputDuration", "throughputRate", "fixedPacketRate", "agents"]
63
+ __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "direction", "dscp", "dscpId", "mss", "numPathTraces", "pathTraceMode", "port", "protocol", "targetAgentId", "throughputMeasurements", "throughputDuration", "throughputRate", "fixedPacketRate"]
66
64
 
67
65
  model_config = ConfigDict(
68
66
  populate_by_name=True,
@@ -106,7 +104,6 @@ class AgentToAgentInstantTest(BaseModel):
106
104
  * OpenAPI `readOnly` fields are excluded.
107
105
  * OpenAPI `readOnly` fields are excluded.
108
106
  * OpenAPI `readOnly` fields are excluded.
109
- * OpenAPI `readOnly` fields are excluded.
110
107
  """
111
108
  excluded_fields: Set[str] = set([
112
109
  "created_by",
@@ -120,7 +117,6 @@ class AgentToAgentInstantTest(BaseModel):
120
117
  "labels",
121
118
  "shared_with_accounts",
122
119
  "dscp",
123
- "agents",
124
120
  ])
125
121
 
126
122
  _dict = self.model_dump(
@@ -145,13 +141,6 @@ class AgentToAgentInstantTest(BaseModel):
145
141
  if _item:
146
142
  _items.append(_item.to_dict())
147
143
  _dict['sharedWithAccounts'] = _items
148
- # override the default output from pydantic by calling `to_dict()` of each item in agents (list)
149
- _items = []
150
- if self.agents:
151
- for _item in self.agents:
152
- if _item:
153
- _items.append(_item.to_dict())
154
- _dict['agents'] = _items
155
144
  return _dict
156
145
 
157
146
  @classmethod
@@ -189,8 +178,7 @@ class AgentToAgentInstantTest(BaseModel):
189
178
  "throughputMeasurements": obj.get("throughputMeasurements") if obj.get("throughputMeasurements") is not None else False,
190
179
  "throughputDuration": obj.get("throughputDuration") if obj.get("throughputDuration") is not None else 10000,
191
180
  "throughputRate": obj.get("throughputRate"),
192
- "fixedPacketRate": obj.get("fixedPacketRate"),
193
- "agents": [Agent.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
181
+ "fixedPacketRate": obj.get("fixedPacketRate")
194
182
  })
195
183
  return _obj
196
184
 
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Instant Tests API
5
5
 
6
- The Instant Tests API 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,195 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Instant Tests API
5
+
6
+ The Instant Tests API operations lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` * `View tests` The response does not include the immediate test results. Use the Test Results endpoints to get test results after creating and executing an instant test. You can find the URLs for these endpoints in the _links section of the test definition that is returned when you create the instant test.
7
+
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
12
+
13
+
14
+ from __future__ import annotations
15
+ import pprint
16
+ import re # noqa: F401
17
+ import json
18
+
19
+ from datetime import datetime
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing_extensions import Annotated
23
+ from thousandeyes_sdk.instant_tests.models.agent_response import AgentResponse
24
+ from thousandeyes_sdk.instant_tests.models.agent_to_agent_test_protocol import AgentToAgentTestProtocol
25
+ from thousandeyes_sdk.instant_tests.models.shared_with_account import SharedWithAccount
26
+ from thousandeyes_sdk.instant_tests.models.test_direction import TestDirection
27
+ from thousandeyes_sdk.instant_tests.models.test_dscp_id import TestDscpId
28
+ from thousandeyes_sdk.instant_tests.models.test_label import TestLabel
29
+ from thousandeyes_sdk.instant_tests.models.test_links import TestLinks
30
+ from thousandeyes_sdk.instant_tests.models.test_path_trace_mode import TestPathTraceMode
31
+ from typing import Optional, Set
32
+ from typing_extensions import Self
33
+
34
+ class AgentToAgentInstantTestResponse(BaseModel):
35
+ """
36
+ AgentToAgentInstantTestResponse
37
+ """ # noqa: E501
38
+ created_by: Optional[StrictStr] = Field(default=None, description="User that created the test.", alias="createdBy")
39
+ created_date: Optional[datetime] = Field(default=None, description="UTC created date (ISO date-time format).", alias="createdDate")
40
+ description: Optional[StrictStr] = Field(default=None, description="A description of the test.")
41
+ live_share: Optional[StrictBool] = Field(default=None, description="Indicates if the test is shared with the account group.", alias="liveShare")
42
+ modified_by: Optional[StrictStr] = Field(default=None, description="User that modified the test.", alias="modifiedBy")
43
+ modified_date: Optional[datetime] = Field(default=None, description="UTC last modification date (ISO date-time format).", alias="modifiedDate")
44
+ saved_event: Optional[StrictBool] = Field(default=None, description="Indicates if the test is a saved event.", alias="savedEvent")
45
+ test_id: Optional[StrictStr] = Field(default=None, description="Each test is assigned an unique ID; this is used to access test information and results from other endpoints.", alias="testId")
46
+ test_name: Optional[StrictStr] = Field(default=None, description="The name of the test. Test name must be unique.", alias="testName")
47
+ type: Optional[StrictStr] = None
48
+ links: Optional[TestLinks] = Field(default=None, alias="_links")
49
+ labels: Optional[List[TestLabel]] = None
50
+ shared_with_accounts: Optional[List[SharedWithAccount]] = Field(default=None, alias="sharedWithAccounts")
51
+ direction: Optional[TestDirection] = None
52
+ dscp: Optional[StrictStr] = Field(default=None, description="DSCP label.")
53
+ dscp_id: Optional[TestDscpId] = Field(default=None, alias="dscpId")
54
+ mss: Optional[Annotated[int, Field(le=1400, strict=True, ge=20)]] = Field(default=None, description="Maximum segment size, in bytes.")
55
+ num_path_traces: Optional[Annotated[int, Field(le=10, strict=True, ge=1)]] = Field(default=3, description="Number of path traces executed by the agent.", alias="numPathTraces")
56
+ path_trace_mode: Optional[TestPathTraceMode] = Field(default=None, alias="pathTraceMode")
57
+ port: Optional[Annotated[int, Field(le=65535, strict=True, ge=1)]] = Field(default=49153, description="Target port.")
58
+ protocol: Optional[AgentToAgentTestProtocol] = None
59
+ target_agent_id: StrictStr = Field(description="`agentId` of the target agent for the test.", alias="targetAgentId")
60
+ throughput_measurements: Optional[StrictBool] = Field(default=False, description="Enable or disable throughput measurements. Throughput measurements cannot be enabled when the source or target of the test is a cloud agent.", alias="throughputMeasurements")
61
+ throughput_duration: Optional[Annotated[int, Field(le=30000, strict=True, ge=5000)]] = Field(default=10000, description="The throughput duration.", alias="throughputDuration")
62
+ throughput_rate: Optional[Annotated[int, Field(le=1000, strict=True, ge=8)]] = Field(default=None, description="The throughput rate, only applicable for UDP protocol.", alias="throughputRate")
63
+ fixed_packet_rate: Optional[Annotated[int, Field(le=100, strict=True, ge=0)]] = Field(default=None, description="Sets packets rate sent to measure the network in packets per second.", alias="fixedPacketRate")
64
+ agents: Optional[List[AgentResponse]] = Field(default=None, description="Contains list of agents.")
65
+ __properties: ClassVar[List[str]] = ["createdBy", "createdDate", "description", "liveShare", "modifiedBy", "modifiedDate", "savedEvent", "testId", "testName", "type", "_links", "labels", "sharedWithAccounts", "direction", "dscp", "dscpId", "mss", "numPathTraces", "pathTraceMode", "port", "protocol", "targetAgentId", "throughputMeasurements", "throughputDuration", "throughputRate", "fixedPacketRate", "agents"]
66
+
67
+ model_config = ConfigDict(
68
+ populate_by_name=True,
69
+ validate_assignment=True,
70
+ protected_namespaces=(),
71
+ extra="allow",
72
+ )
73
+
74
+
75
+ def to_str(self) -> str:
76
+ """Returns the string representation of the model using alias"""
77
+ return pprint.pformat(self.model_dump(by_alias=True))
78
+
79
+ def to_json(self) -> str:
80
+ """Returns the JSON representation of the model using alias"""
81
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
82
+ return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True)
83
+
84
+ @classmethod
85
+ def from_json(cls, json_str: str) -> Optional[Self]:
86
+ """Create an instance of AgentToAgentInstantTestResponse from a JSON string"""
87
+ return cls.from_dict(json.loads(json_str))
88
+
89
+ def to_dict(self) -> Dict[str, Any]:
90
+ """Return the dictionary representation of the model using alias.
91
+
92
+ This has the following differences from calling pydantic's
93
+ `self.model_dump(by_alias=True)`:
94
+
95
+ * `None` is only added to the output dict for nullable fields that
96
+ were set at model initialization. Other fields with value `None`
97
+ are ignored.
98
+ * OpenAPI `readOnly` fields are excluded.
99
+ * OpenAPI `readOnly` fields are excluded.
100
+ * OpenAPI `readOnly` fields are excluded.
101
+ * OpenAPI `readOnly` fields are excluded.
102
+ * OpenAPI `readOnly` fields are excluded.
103
+ * OpenAPI `readOnly` fields are excluded.
104
+ * OpenAPI `readOnly` fields are excluded.
105
+ * OpenAPI `readOnly` fields are excluded.
106
+ * OpenAPI `readOnly` fields are excluded.
107
+ * OpenAPI `readOnly` fields are excluded.
108
+ * OpenAPI `readOnly` fields are excluded.
109
+ """
110
+ excluded_fields: Set[str] = set([
111
+ "created_by",
112
+ "created_date",
113
+ "live_share",
114
+ "modified_by",
115
+ "modified_date",
116
+ "saved_event",
117
+ "test_id",
118
+ "type",
119
+ "labels",
120
+ "shared_with_accounts",
121
+ "dscp",
122
+ ])
123
+
124
+ _dict = self.model_dump(
125
+ by_alias=True,
126
+ exclude=excluded_fields,
127
+ exclude_none=True,
128
+ )
129
+ # override the default output from pydantic by calling `to_dict()` of links
130
+ if self.links:
131
+ _dict['_links'] = self.links.to_dict()
132
+ # override the default output from pydantic by calling `to_dict()` of each item in labels (list)
133
+ _items = []
134
+ if self.labels:
135
+ for _item in self.labels:
136
+ if _item:
137
+ _items.append(_item.to_dict())
138
+ _dict['labels'] = _items
139
+ # override the default output from pydantic by calling `to_dict()` of each item in shared_with_accounts (list)
140
+ _items = []
141
+ if self.shared_with_accounts:
142
+ for _item in self.shared_with_accounts:
143
+ if _item:
144
+ _items.append(_item.to_dict())
145
+ _dict['sharedWithAccounts'] = _items
146
+ # override the default output from pydantic by calling `to_dict()` of each item in agents (list)
147
+ _items = []
148
+ if self.agents:
149
+ for _item in self.agents:
150
+ if _item:
151
+ _items.append(_item.to_dict())
152
+ _dict['agents'] = _items
153
+ return _dict
154
+
155
+ @classmethod
156
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
157
+ """Create an instance of AgentToAgentInstantTestResponse from a dict"""
158
+ if obj is None:
159
+ return None
160
+
161
+ if not isinstance(obj, dict):
162
+ return cls.model_validate(obj)
163
+
164
+ _obj = cls.model_validate({
165
+ "createdBy": obj.get("createdBy"),
166
+ "createdDate": obj.get("createdDate"),
167
+ "description": obj.get("description"),
168
+ "liveShare": obj.get("liveShare"),
169
+ "modifiedBy": obj.get("modifiedBy"),
170
+ "modifiedDate": obj.get("modifiedDate"),
171
+ "savedEvent": obj.get("savedEvent"),
172
+ "testId": obj.get("testId"),
173
+ "testName": obj.get("testName"),
174
+ "type": obj.get("type"),
175
+ "_links": TestLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None,
176
+ "labels": [TestLabel.from_dict(_item) for _item in obj["labels"]] if obj.get("labels") is not None else None,
177
+ "sharedWithAccounts": [SharedWithAccount.from_dict(_item) for _item in obj["sharedWithAccounts"]] if obj.get("sharedWithAccounts") is not None else None,
178
+ "direction": obj.get("direction"),
179
+ "dscp": obj.get("dscp"),
180
+ "dscpId": obj.get("dscpId"),
181
+ "mss": obj.get("mss"),
182
+ "numPathTraces": obj.get("numPathTraces") if obj.get("numPathTraces") is not None else 3,
183
+ "pathTraceMode": obj.get("pathTraceMode"),
184
+ "port": obj.get("port") if obj.get("port") is not None else 49153,
185
+ "protocol": obj.get("protocol"),
186
+ "targetAgentId": obj.get("targetAgentId"),
187
+ "throughputMeasurements": obj.get("throughputMeasurements") if obj.get("throughputMeasurements") is not None else False,
188
+ "throughputDuration": obj.get("throughputDuration") if obj.get("throughputDuration") is not None else 10000,
189
+ "throughputRate": obj.get("throughputRate"),
190
+ "fixedPacketRate": obj.get("fixedPacketRate"),
191
+ "agents": [AgentResponse.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None
192
+ })
193
+ return _obj
194
+
195
+
@@ -3,7 +3,7 @@
3
3
  """
4
4
  Instant Tests API
5
5
 
6
- The Instant Tests API 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
 
@@ -27,10 +27,15 @@ class AgentToAgentTestProtocol(str, Enum):
27
27
  """
28
28
  TCP = 'tcp'
29
29
  UDP = 'udp'
30
+ UNKNOWN = 'unknown'
30
31
 
31
32
  @classmethod
32
33
  def from_json(cls, json_str: str) -> Self:
33
34
  """Create an instance of AgentToAgentTestProtocol from a JSON string"""
34
35
  return cls(json.loads(json_str))
35
36
 
37
+ @classmethod
38
+ def _missing_(cls, value):
39
+ """Handle unknown values"""
40
+ return cls.UNKNOWN
36
41