thousandeyes-sdk-instant-tests 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- thousandeyes_sdk/instant_tests/__init__.py +117 -0
- thousandeyes_sdk/instant_tests/api/__init__.py +17 -0
- thousandeyes_sdk/instant_tests/api/agent_to_agent_api.py +376 -0
- thousandeyes_sdk/instant_tests/api/agent_to_server_api.py +376 -0
- thousandeyes_sdk/instant_tests/api/api_api.py +376 -0
- thousandeyes_sdk/instant_tests/api/dns_security_api.py +376 -0
- thousandeyes_sdk/instant_tests/api/dns_server_api.py +376 -0
- thousandeyes_sdk/instant_tests/api/dns_trace_api.py +376 -0
- thousandeyes_sdk/instant_tests/api/ftp_server_api.py +376 -0
- thousandeyes_sdk/instant_tests/api/http_page_load_api.py +376 -0
- thousandeyes_sdk/instant_tests/api/http_server_api.py +376 -0
- thousandeyes_sdk/instant_tests/api/run_api.py +338 -0
- thousandeyes_sdk/instant_tests/api/sip_server_api.py +376 -0
- thousandeyes_sdk/instant_tests/api/voice_api.py +376 -0
- thousandeyes_sdk/instant_tests/api/web_transaction_api.py +376 -0
- thousandeyes_sdk/instant_tests/models/__init__.py +100 -0
- thousandeyes_sdk/instant_tests/models/agent.py +125 -0
- thousandeyes_sdk/instant_tests/models/agent_base.py +98 -0
- thousandeyes_sdk/instant_tests/models/agent_to_agent_instant_test.py +198 -0
- thousandeyes_sdk/instant_tests/models/agent_to_agent_instant_test_request.py +176 -0
- thousandeyes_sdk/instant_tests/models/agent_to_agent_properties.py +123 -0
- thousandeyes_sdk/instant_tests/models/agent_to_agent_test_protocol.py +37 -0
- thousandeyes_sdk/instant_tests/models/agent_to_server_instant_test.py +203 -0
- thousandeyes_sdk/instant_tests/models/agent_to_server_instant_test_request.py +181 -0
- thousandeyes_sdk/instant_tests/models/agent_to_server_properties.py +128 -0
- thousandeyes_sdk/instant_tests/models/api_instant_test.py +214 -0
- thousandeyes_sdk/instant_tests/models/api_instant_test_request.py +192 -0
- thousandeyes_sdk/instant_tests/models/api_predefined_variable.py +90 -0
- thousandeyes_sdk/instant_tests/models/api_properties.py +137 -0
- thousandeyes_sdk/instant_tests/models/api_request.py +138 -0
- thousandeyes_sdk/instant_tests/models/api_request_assertion.py +94 -0
- thousandeyes_sdk/instant_tests/models/api_request_assertion_name.py +37 -0
- thousandeyes_sdk/instant_tests/models/api_request_assertion_operator.py +39 -0
- thousandeyes_sdk/instant_tests/models/api_request_auth_type.py +38 -0
- thousandeyes_sdk/instant_tests/models/api_request_header.py +90 -0
- thousandeyes_sdk/instant_tests/models/api_request_method.py +40 -0
- thousandeyes_sdk/instant_tests/models/api_request_variable.py +90 -0
- thousandeyes_sdk/instant_tests/models/cloud_enterprise_agent_type.py +38 -0
- thousandeyes_sdk/instant_tests/models/dns_query_class.py +37 -0
- thousandeyes_sdk/instant_tests/models/dns_sec_instant_test.py +170 -0
- thousandeyes_sdk/instant_tests/models/dns_sec_instant_test_request.py +148 -0
- thousandeyes_sdk/instant_tests/models/dns_sec_properties.py +95 -0
- thousandeyes_sdk/instant_tests/models/dns_server_instant_test.py +208 -0
- thousandeyes_sdk/instant_tests/models/dns_server_instant_test_request.py +178 -0
- thousandeyes_sdk/instant_tests/models/dns_server_properties.py +133 -0
- thousandeyes_sdk/instant_tests/models/dns_servers_request.py +88 -0
- thousandeyes_sdk/instant_tests/models/dns_trace_instant_test.py +173 -0
- thousandeyes_sdk/instant_tests/models/dns_trace_instant_test_request.py +151 -0
- thousandeyes_sdk/instant_tests/models/dns_trace_properties.py +98 -0
- thousandeyes_sdk/instant_tests/models/error.py +96 -0
- thousandeyes_sdk/instant_tests/models/expand.py +38 -0
- thousandeyes_sdk/instant_tests/models/ftp_server_instant_test.py +207 -0
- thousandeyes_sdk/instant_tests/models/ftp_server_properties.py +132 -0
- thousandeyes_sdk/instant_tests/models/ftp_server_request_type.py +38 -0
- thousandeyes_sdk/instant_tests/models/http_server_instant_test.py +246 -0
- thousandeyes_sdk/instant_tests/models/http_server_instant_test_request.py +224 -0
- thousandeyes_sdk/instant_tests/models/http_server_properties.py +171 -0
- thousandeyes_sdk/instant_tests/models/instant_test.py +152 -0
- thousandeyes_sdk/instant_tests/models/instant_test_request.py +100 -0
- thousandeyes_sdk/instant_tests/models/link.py +102 -0
- thousandeyes_sdk/instant_tests/models/page_load_instant_test.py +254 -0
- thousandeyes_sdk/instant_tests/models/page_load_instant_test_request.py +232 -0
- thousandeyes_sdk/instant_tests/models/page_load_properties.py +179 -0
- thousandeyes_sdk/instant_tests/models/server_instant_test_request.py +185 -0
- thousandeyes_sdk/instant_tests/models/shared_with_account.py +90 -0
- thousandeyes_sdk/instant_tests/models/simple_agent.py +122 -0
- thousandeyes_sdk/instant_tests/models/sip_server_instant_test.py +191 -0
- thousandeyes_sdk/instant_tests/models/sip_server_instant_test_request.py +175 -0
- thousandeyes_sdk/instant_tests/models/sip_server_instant_test_request1.py +197 -0
- thousandeyes_sdk/instant_tests/models/sip_server_instant_test_response.py +204 -0
- thousandeyes_sdk/instant_tests/models/sip_server_properties.py +116 -0
- thousandeyes_sdk/instant_tests/models/sip_test_protocol.py +38 -0
- thousandeyes_sdk/instant_tests/models/test_agent.py +90 -0
- thousandeyes_sdk/instant_tests/models/test_auth_type.py +40 -0
- thousandeyes_sdk/instant_tests/models/test_custom_headers.py +92 -0
- thousandeyes_sdk/instant_tests/models/test_direction.py +38 -0
- thousandeyes_sdk/instant_tests/models/test_dns_server.py +90 -0
- thousandeyes_sdk/instant_tests/models/test_dns_transport_protocol.py +37 -0
- thousandeyes_sdk/instant_tests/models/test_dscp_id.py +57 -0
- thousandeyes_sdk/instant_tests/models/test_ipv6_policy.py +39 -0
- thousandeyes_sdk/instant_tests/models/test_label.py +92 -0
- thousandeyes_sdk/instant_tests/models/test_links.py +102 -0
- thousandeyes_sdk/instant_tests/models/test_page_loading_strategy.py +38 -0
- thousandeyes_sdk/instant_tests/models/test_path_trace_mode.py +37 -0
- thousandeyes_sdk/instant_tests/models/test_probe_mode.py +38 -0
- thousandeyes_sdk/instant_tests/models/test_protocol.py +38 -0
- thousandeyes_sdk/instant_tests/models/test_self_link.py +102 -0
- thousandeyes_sdk/instant_tests/models/test_sip_credentials.py +100 -0
- thousandeyes_sdk/instant_tests/models/test_ssl_version_id.py +40 -0
- thousandeyes_sdk/instant_tests/models/test_type.py +48 -0
- thousandeyes_sdk/instant_tests/models/unauthorized_error.py +90 -0
- thousandeyes_sdk/instant_tests/models/unexpanded_instant_test.py +128 -0
- thousandeyes_sdk/instant_tests/models/validation_error.py +111 -0
- thousandeyes_sdk/instant_tests/models/validation_error_item.py +92 -0
- thousandeyes_sdk/instant_tests/models/voice_instant_test.py +189 -0
- thousandeyes_sdk/instant_tests/models/voice_instant_test_request.py +167 -0
- thousandeyes_sdk/instant_tests/models/voice_properties.py +114 -0
- thousandeyes_sdk/instant_tests/models/web_transaction_instant_test.py +258 -0
- thousandeyes_sdk/instant_tests/models/web_transaction_instant_test_request.py +236 -0
- thousandeyes_sdk/instant_tests/models/web_transaction_properties.py +181 -0
- thousandeyes_sdk/instant_tests/py.typed +0 -0
- thousandeyes_sdk_instant_tests-1.0.0.dist-info/LICENSE +176 -0
- thousandeyes_sdk_instant_tests-1.0.0.dist-info/METADATA +423 -0
- thousandeyes_sdk_instant_tests-1.0.0.dist-info/NOTICE +7 -0
- thousandeyes_sdk_instant_tests-1.0.0.dist-info/RECORD +107 -0
- thousandeyes_sdk_instant_tests-1.0.0.dist-info/WHEEL +5 -0
- thousandeyes_sdk_instant_tests-1.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,117 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
# flake8: noqa
|
4
|
+
|
5
|
+
"""
|
6
|
+
Instant Tests API
|
7
|
+
|
8
|
+
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.
|
9
|
+
|
10
|
+
The version of the OpenAPI document: 7.0.8
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
12
|
+
|
13
|
+
Do not edit the class manually.
|
14
|
+
""" # noqa: E501
|
15
|
+
|
16
|
+
|
17
|
+
# import apis into sdk package
|
18
|
+
from thousandeyes_sdk.instant_tests.api.api_api import APIApi
|
19
|
+
from thousandeyes_sdk.instant_tests.api.agent_to_agent_api import AgentToAgentApi
|
20
|
+
from thousandeyes_sdk.instant_tests.api.agent_to_server_api import AgentToServerApi
|
21
|
+
from thousandeyes_sdk.instant_tests.api.dns_security_api import DNSSecurityApi
|
22
|
+
from thousandeyes_sdk.instant_tests.api.dns_server_api import DNSServerApi
|
23
|
+
from thousandeyes_sdk.instant_tests.api.dns_trace_api import DNSTraceApi
|
24
|
+
from thousandeyes_sdk.instant_tests.api.ftp_server_api import FTPServerApi
|
25
|
+
from thousandeyes_sdk.instant_tests.api.http_page_load_api import HTTPPageLoadApi
|
26
|
+
from thousandeyes_sdk.instant_tests.api.http_server_api import HTTPServerApi
|
27
|
+
from thousandeyes_sdk.instant_tests.api.run_api import RunApi
|
28
|
+
from thousandeyes_sdk.instant_tests.api.sip_server_api import SIPServerApi
|
29
|
+
from thousandeyes_sdk.instant_tests.api.voice_api import VoiceApi
|
30
|
+
from thousandeyes_sdk.instant_tests.api.web_transaction_api import WebTransactionApi
|
31
|
+
|
32
|
+
|
33
|
+
# import models into sdk package
|
34
|
+
from thousandeyes_sdk.instant_tests.models.agent import Agent
|
35
|
+
from thousandeyes_sdk.instant_tests.models.agent_base import AgentBase
|
36
|
+
from thousandeyes_sdk.instant_tests.models.agent_to_agent_instant_test import AgentToAgentInstantTest
|
37
|
+
from thousandeyes_sdk.instant_tests.models.agent_to_agent_instant_test_request import AgentToAgentInstantTestRequest
|
38
|
+
from thousandeyes_sdk.instant_tests.models.agent_to_agent_properties import AgentToAgentProperties
|
39
|
+
from thousandeyes_sdk.instant_tests.models.agent_to_agent_test_protocol import AgentToAgentTestProtocol
|
40
|
+
from thousandeyes_sdk.instant_tests.models.agent_to_server_instant_test import AgentToServerInstantTest
|
41
|
+
from thousandeyes_sdk.instant_tests.models.agent_to_server_instant_test_request import AgentToServerInstantTestRequest
|
42
|
+
from thousandeyes_sdk.instant_tests.models.agent_to_server_properties import AgentToServerProperties
|
43
|
+
from thousandeyes_sdk.instant_tests.models.api_instant_test import ApiInstantTest
|
44
|
+
from thousandeyes_sdk.instant_tests.models.api_instant_test_request import ApiInstantTestRequest
|
45
|
+
from thousandeyes_sdk.instant_tests.models.api_predefined_variable import ApiPredefinedVariable
|
46
|
+
from thousandeyes_sdk.instant_tests.models.api_properties import ApiProperties
|
47
|
+
from thousandeyes_sdk.instant_tests.models.api_request import ApiRequest
|
48
|
+
from thousandeyes_sdk.instant_tests.models.api_request_assertion import ApiRequestAssertion
|
49
|
+
from thousandeyes_sdk.instant_tests.models.api_request_assertion_name import ApiRequestAssertionName
|
50
|
+
from thousandeyes_sdk.instant_tests.models.api_request_assertion_operator import ApiRequestAssertionOperator
|
51
|
+
from thousandeyes_sdk.instant_tests.models.api_request_auth_type import ApiRequestAuthType
|
52
|
+
from thousandeyes_sdk.instant_tests.models.api_request_header import ApiRequestHeader
|
53
|
+
from thousandeyes_sdk.instant_tests.models.api_request_method import ApiRequestMethod
|
54
|
+
from thousandeyes_sdk.instant_tests.models.api_request_variable import ApiRequestVariable
|
55
|
+
from thousandeyes_sdk.instant_tests.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType
|
56
|
+
from thousandeyes_sdk.instant_tests.models.dns_query_class import DnsQueryClass
|
57
|
+
from thousandeyes_sdk.instant_tests.models.dns_sec_instant_test import DnsSecInstantTest
|
58
|
+
from thousandeyes_sdk.instant_tests.models.dns_sec_instant_test_request import DnsSecInstantTestRequest
|
59
|
+
from thousandeyes_sdk.instant_tests.models.dns_sec_properties import DnsSecProperties
|
60
|
+
from thousandeyes_sdk.instant_tests.models.dns_server_instant_test import DnsServerInstantTest
|
61
|
+
from thousandeyes_sdk.instant_tests.models.dns_server_instant_test_request import DnsServerInstantTestRequest
|
62
|
+
from thousandeyes_sdk.instant_tests.models.dns_server_properties import DnsServerProperties
|
63
|
+
from thousandeyes_sdk.instant_tests.models.dns_servers_request import DnsServersRequest
|
64
|
+
from thousandeyes_sdk.instant_tests.models.dns_trace_instant_test import DnsTraceInstantTest
|
65
|
+
from thousandeyes_sdk.instant_tests.models.dns_trace_instant_test_request import DnsTraceInstantTestRequest
|
66
|
+
from thousandeyes_sdk.instant_tests.models.dns_trace_properties import DnsTraceProperties
|
67
|
+
from thousandeyes_sdk.instant_tests.models.error import Error
|
68
|
+
from thousandeyes_sdk.instant_tests.models.expand import Expand
|
69
|
+
from thousandeyes_sdk.instant_tests.models.ftp_server_instant_test import FtpServerInstantTest
|
70
|
+
from thousandeyes_sdk.instant_tests.models.ftp_server_properties import FtpServerProperties
|
71
|
+
from thousandeyes_sdk.instant_tests.models.ftp_server_request_type import FtpServerRequestType
|
72
|
+
from thousandeyes_sdk.instant_tests.models.http_server_instant_test import HttpServerInstantTest
|
73
|
+
from thousandeyes_sdk.instant_tests.models.http_server_instant_test_request import HttpServerInstantTestRequest
|
74
|
+
from thousandeyes_sdk.instant_tests.models.http_server_properties import HttpServerProperties
|
75
|
+
from thousandeyes_sdk.instant_tests.models.instant_test import InstantTest
|
76
|
+
from thousandeyes_sdk.instant_tests.models.instant_test_request import InstantTestRequest
|
77
|
+
from thousandeyes_sdk.instant_tests.models.link import Link
|
78
|
+
from thousandeyes_sdk.instant_tests.models.page_load_instant_test import PageLoadInstantTest
|
79
|
+
from thousandeyes_sdk.instant_tests.models.page_load_instant_test_request import PageLoadInstantTestRequest
|
80
|
+
from thousandeyes_sdk.instant_tests.models.page_load_properties import PageLoadProperties
|
81
|
+
from thousandeyes_sdk.instant_tests.models.server_instant_test_request import ServerInstantTestRequest
|
82
|
+
from thousandeyes_sdk.instant_tests.models.shared_with_account import SharedWithAccount
|
83
|
+
from thousandeyes_sdk.instant_tests.models.simple_agent import SimpleAgent
|
84
|
+
from thousandeyes_sdk.instant_tests.models.sip_server_instant_test import SipServerInstantTest
|
85
|
+
from thousandeyes_sdk.instant_tests.models.sip_server_instant_test_request import SipServerInstantTestRequest
|
86
|
+
from thousandeyes_sdk.instant_tests.models.sip_server_instant_test_request1 import SipServerInstantTestRequest1
|
87
|
+
from thousandeyes_sdk.instant_tests.models.sip_server_instant_test_response import SipServerInstantTestResponse
|
88
|
+
from thousandeyes_sdk.instant_tests.models.sip_server_properties import SipServerProperties
|
89
|
+
from thousandeyes_sdk.instant_tests.models.sip_test_protocol import SipTestProtocol
|
90
|
+
from thousandeyes_sdk.instant_tests.models.test_agent import TestAgent
|
91
|
+
from thousandeyes_sdk.instant_tests.models.test_auth_type import TestAuthType
|
92
|
+
from thousandeyes_sdk.instant_tests.models.test_custom_headers import TestCustomHeaders
|
93
|
+
from thousandeyes_sdk.instant_tests.models.test_direction import TestDirection
|
94
|
+
from thousandeyes_sdk.instant_tests.models.test_dns_server import TestDnsServer
|
95
|
+
from thousandeyes_sdk.instant_tests.models.test_dns_transport_protocol import TestDnsTransportProtocol
|
96
|
+
from thousandeyes_sdk.instant_tests.models.test_dscp_id import TestDscpId
|
97
|
+
from thousandeyes_sdk.instant_tests.models.test_ipv6_policy import TestIpv6Policy
|
98
|
+
from thousandeyes_sdk.instant_tests.models.test_label import TestLabel
|
99
|
+
from thousandeyes_sdk.instant_tests.models.test_links import TestLinks
|
100
|
+
from thousandeyes_sdk.instant_tests.models.test_page_loading_strategy import TestPageLoadingStrategy
|
101
|
+
from thousandeyes_sdk.instant_tests.models.test_path_trace_mode import TestPathTraceMode
|
102
|
+
from thousandeyes_sdk.instant_tests.models.test_probe_mode import TestProbeMode
|
103
|
+
from thousandeyes_sdk.instant_tests.models.test_protocol import TestProtocol
|
104
|
+
from thousandeyes_sdk.instant_tests.models.test_self_link import TestSelfLink
|
105
|
+
from thousandeyes_sdk.instant_tests.models.test_sip_credentials import TestSipCredentials
|
106
|
+
from thousandeyes_sdk.instant_tests.models.test_ssl_version_id import TestSslVersionId
|
107
|
+
from thousandeyes_sdk.instant_tests.models.test_type import TestType
|
108
|
+
from thousandeyes_sdk.instant_tests.models.unauthorized_error import UnauthorizedError
|
109
|
+
from thousandeyes_sdk.instant_tests.models.unexpanded_instant_test import UnexpandedInstantTest
|
110
|
+
from thousandeyes_sdk.instant_tests.models.validation_error import ValidationError
|
111
|
+
from thousandeyes_sdk.instant_tests.models.validation_error_item import ValidationErrorItem
|
112
|
+
from thousandeyes_sdk.instant_tests.models.voice_instant_test import VoiceInstantTest
|
113
|
+
from thousandeyes_sdk.instant_tests.models.voice_instant_test_request import VoiceInstantTestRequest
|
114
|
+
from thousandeyes_sdk.instant_tests.models.voice_properties import VoiceProperties
|
115
|
+
from thousandeyes_sdk.instant_tests.models.web_transaction_instant_test import WebTransactionInstantTest
|
116
|
+
from thousandeyes_sdk.instant_tests.models.web_transaction_instant_test_request import WebTransactionInstantTestRequest
|
117
|
+
from thousandeyes_sdk.instant_tests.models.web_transaction_properties import WebTransactionProperties
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# flake8: noqa
|
2
|
+
|
3
|
+
# import apis into api package
|
4
|
+
from thousandeyes_sdk.instant_tests.api.api_api import APIApi
|
5
|
+
from thousandeyes_sdk.instant_tests.api.agent_to_agent_api import AgentToAgentApi
|
6
|
+
from thousandeyes_sdk.instant_tests.api.agent_to_server_api import AgentToServerApi
|
7
|
+
from thousandeyes_sdk.instant_tests.api.dns_security_api import DNSSecurityApi
|
8
|
+
from thousandeyes_sdk.instant_tests.api.dns_server_api import DNSServerApi
|
9
|
+
from thousandeyes_sdk.instant_tests.api.dns_trace_api import DNSTraceApi
|
10
|
+
from thousandeyes_sdk.instant_tests.api.ftp_server_api import FTPServerApi
|
11
|
+
from thousandeyes_sdk.instant_tests.api.http_page_load_api import HTTPPageLoadApi
|
12
|
+
from thousandeyes_sdk.instant_tests.api.http_server_api import HTTPServerApi
|
13
|
+
from thousandeyes_sdk.instant_tests.api.run_api import RunApi
|
14
|
+
from thousandeyes_sdk.instant_tests.api.sip_server_api import SIPServerApi
|
15
|
+
from thousandeyes_sdk.instant_tests.api.voice_api import VoiceApi
|
16
|
+
from thousandeyes_sdk.instant_tests.api.web_transaction_api import WebTransactionApi
|
17
|
+
|
@@ -0,0 +1,376 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Instant Tests API
|
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.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 7.0.8
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
import warnings
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
|
+
from typing_extensions import Annotated
|
18
|
+
from importlib.metadata import version
|
19
|
+
|
20
|
+
import thousandeyes_sdk.instant_tests.models
|
21
|
+
|
22
|
+
from pydantic import Field, StrictStr
|
23
|
+
from typing import List, Optional
|
24
|
+
from typing_extensions import Annotated
|
25
|
+
from thousandeyes_sdk.instant_tests.models.agent_to_agent_instant_test import AgentToAgentInstantTest
|
26
|
+
from thousandeyes_sdk.instant_tests.models.agent_to_agent_instant_test_request import AgentToAgentInstantTestRequest
|
27
|
+
from thousandeyes_sdk.instant_tests.models.expand import Expand
|
28
|
+
|
29
|
+
from thousandeyes_sdk.core.api_client import ApiClient, RequestSerialized
|
30
|
+
from thousandeyes_sdk.core.api_response import ApiResponse
|
31
|
+
from thousandeyes_sdk.core.rest import RESTResponseType
|
32
|
+
|
33
|
+
|
34
|
+
class AgentToAgentApi:
|
35
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
36
|
+
Ref: https://openapi-generator.tech
|
37
|
+
|
38
|
+
Do not edit the class manually.
|
39
|
+
"""
|
40
|
+
|
41
|
+
def __init__(self, api_client=None) -> None:
|
42
|
+
if api_client is None:
|
43
|
+
api_client = ApiClient.get_default()
|
44
|
+
api_client.user_agent = "ThousandEyesSDK-Python/{0}".format(version("thousandeyes-sdk-instant-tests"))
|
45
|
+
self.api_client = api_client
|
46
|
+
|
47
|
+
|
48
|
+
@validate_call
|
49
|
+
def create_agent_to_agent_instant_test(
|
50
|
+
self,
|
51
|
+
agent_to_agent_instant_test_request: AgentToAgentInstantTestRequest,
|
52
|
+
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,
|
53
|
+
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,
|
54
|
+
_request_timeout: Union[
|
55
|
+
None,
|
56
|
+
Annotated[StrictFloat, Field(gt=0)],
|
57
|
+
Tuple[
|
58
|
+
Annotated[StrictFloat, Field(gt=0)],
|
59
|
+
Annotated[StrictFloat, Field(gt=0)]
|
60
|
+
]
|
61
|
+
] = None,
|
62
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
63
|
+
_content_type: Optional[StrictStr] = None,
|
64
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
65
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
66
|
+
) -> AgentToAgentInstantTest:
|
67
|
+
"""Create agent-to-agent instant test
|
68
|
+
|
69
|
+
Creates and runs a new agent-to-agent instant test.
|
70
|
+
|
71
|
+
:param agent_to_agent_instant_test_request: (required)
|
72
|
+
:type agent_to_agent_instant_test_request: AgentToAgentInstantTestRequest
|
73
|
+
: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.
|
74
|
+
:type aid: str
|
75
|
+
: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`.
|
76
|
+
:type expand: List[Expand]
|
77
|
+
:param _request_timeout: timeout setting for this request. If one
|
78
|
+
number provided, it will be total request
|
79
|
+
timeout. It can also be a pair (tuple) of
|
80
|
+
(connection, read) timeouts.
|
81
|
+
:type _request_timeout: int, tuple(int, int), optional
|
82
|
+
:param _request_auth: set to override the auth_settings for an a single
|
83
|
+
request; this effectively ignores the
|
84
|
+
authentication in the spec for a single request.
|
85
|
+
:type _request_auth: dict, optional
|
86
|
+
:param _content_type: force content-type for the request.
|
87
|
+
:type _content_type: str, Optional
|
88
|
+
:param _headers: set to override the headers for a single
|
89
|
+
request; this effectively ignores the headers
|
90
|
+
in the spec for a single request.
|
91
|
+
:type _headers: dict, optional
|
92
|
+
:param _host_index: set to override the host_index for a single
|
93
|
+
request; this effectively ignores the host_index
|
94
|
+
in the spec for a single request.
|
95
|
+
:type _host_index: int, optional
|
96
|
+
:return: Returns the result object.
|
97
|
+
""" # noqa: E501
|
98
|
+
|
99
|
+
_param = self._create_agent_to_agent_instant_test_serialize(
|
100
|
+
agent_to_agent_instant_test_request=agent_to_agent_instant_test_request,
|
101
|
+
aid=aid,
|
102
|
+
expand=expand,
|
103
|
+
_request_auth=_request_auth,
|
104
|
+
_content_type=_content_type,
|
105
|
+
_headers=_headers,
|
106
|
+
_host_index=_host_index
|
107
|
+
)
|
108
|
+
|
109
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
110
|
+
'201': "AgentToAgentInstantTest",
|
111
|
+
'400': "ValidationError",
|
112
|
+
'401': "UnauthorizedError",
|
113
|
+
'403': "Error",
|
114
|
+
'404': "Error",
|
115
|
+
'429': "Error",
|
116
|
+
'500': "Error",
|
117
|
+
'502': "Error",
|
118
|
+
}
|
119
|
+
response_data = self.api_client.call_api(
|
120
|
+
*_param,
|
121
|
+
_request_timeout=_request_timeout
|
122
|
+
)
|
123
|
+
response_data.read()
|
124
|
+
return self.api_client.response_deserialize(
|
125
|
+
response_data=response_data,
|
126
|
+
response_types_map=_response_types_map,
|
127
|
+
models=thousandeyes_sdk.instant_tests.models,
|
128
|
+
).data
|
129
|
+
|
130
|
+
|
131
|
+
@validate_call
|
132
|
+
def create_agent_to_agent_instant_test_with_http_info(
|
133
|
+
self,
|
134
|
+
agent_to_agent_instant_test_request: AgentToAgentInstantTestRequest,
|
135
|
+
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,
|
136
|
+
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,
|
137
|
+
_request_timeout: Union[
|
138
|
+
None,
|
139
|
+
Annotated[StrictFloat, Field(gt=0)],
|
140
|
+
Tuple[
|
141
|
+
Annotated[StrictFloat, Field(gt=0)],
|
142
|
+
Annotated[StrictFloat, Field(gt=0)]
|
143
|
+
]
|
144
|
+
] = None,
|
145
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
146
|
+
_content_type: Optional[StrictStr] = None,
|
147
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
148
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
149
|
+
) -> ApiResponse[AgentToAgentInstantTest]:
|
150
|
+
"""Create agent-to-agent instant test
|
151
|
+
|
152
|
+
Creates and runs a new agent-to-agent instant test.
|
153
|
+
|
154
|
+
:param agent_to_agent_instant_test_request: (required)
|
155
|
+
:type agent_to_agent_instant_test_request: AgentToAgentInstantTestRequest
|
156
|
+
: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.
|
157
|
+
:type aid: str
|
158
|
+
: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`.
|
159
|
+
:type expand: List[Expand]
|
160
|
+
:param _request_timeout: timeout setting for this request. If one
|
161
|
+
number provided, it will be total request
|
162
|
+
timeout. It can also be a pair (tuple) of
|
163
|
+
(connection, read) timeouts.
|
164
|
+
:type _request_timeout: int, tuple(int, int), optional
|
165
|
+
:param _request_auth: set to override the auth_settings for an a single
|
166
|
+
request; this effectively ignores the
|
167
|
+
authentication in the spec for a single request.
|
168
|
+
:type _request_auth: dict, optional
|
169
|
+
:param _content_type: force content-type for the request.
|
170
|
+
:type _content_type: str, Optional
|
171
|
+
:param _headers: set to override the headers for a single
|
172
|
+
request; this effectively ignores the headers
|
173
|
+
in the spec for a single request.
|
174
|
+
:type _headers: dict, optional
|
175
|
+
:param _host_index: set to override the host_index for a single
|
176
|
+
request; this effectively ignores the host_index
|
177
|
+
in the spec for a single request.
|
178
|
+
:type _host_index: int, optional
|
179
|
+
:return: Returns the result object.
|
180
|
+
""" # noqa: E501
|
181
|
+
|
182
|
+
_param = self._create_agent_to_agent_instant_test_serialize(
|
183
|
+
agent_to_agent_instant_test_request=agent_to_agent_instant_test_request,
|
184
|
+
aid=aid,
|
185
|
+
expand=expand,
|
186
|
+
_request_auth=_request_auth,
|
187
|
+
_content_type=_content_type,
|
188
|
+
_headers=_headers,
|
189
|
+
_host_index=_host_index
|
190
|
+
)
|
191
|
+
|
192
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
193
|
+
'201': "AgentToAgentInstantTest",
|
194
|
+
'400': "ValidationError",
|
195
|
+
'401': "UnauthorizedError",
|
196
|
+
'403': "Error",
|
197
|
+
'404': "Error",
|
198
|
+
'429': "Error",
|
199
|
+
'500': "Error",
|
200
|
+
'502': "Error",
|
201
|
+
}
|
202
|
+
response_data = self.api_client.call_api(
|
203
|
+
*_param,
|
204
|
+
_request_timeout=_request_timeout
|
205
|
+
)
|
206
|
+
response_data.read()
|
207
|
+
return self.api_client.response_deserialize(
|
208
|
+
response_data=response_data,
|
209
|
+
response_types_map=_response_types_map,
|
210
|
+
models=thousandeyes_sdk.instant_tests.models,
|
211
|
+
)
|
212
|
+
|
213
|
+
|
214
|
+
@validate_call
|
215
|
+
def create_agent_to_agent_instant_test_without_preload_content(
|
216
|
+
self,
|
217
|
+
agent_to_agent_instant_test_request: AgentToAgentInstantTestRequest,
|
218
|
+
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,
|
219
|
+
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,
|
220
|
+
_request_timeout: Union[
|
221
|
+
None,
|
222
|
+
Annotated[StrictFloat, Field(gt=0)],
|
223
|
+
Tuple[
|
224
|
+
Annotated[StrictFloat, Field(gt=0)],
|
225
|
+
Annotated[StrictFloat, Field(gt=0)]
|
226
|
+
]
|
227
|
+
] = None,
|
228
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
229
|
+
_content_type: Optional[StrictStr] = None,
|
230
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
231
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
232
|
+
) -> RESTResponseType:
|
233
|
+
"""Create agent-to-agent instant test
|
234
|
+
|
235
|
+
Creates and runs a new agent-to-agent instant test.
|
236
|
+
|
237
|
+
:param agent_to_agent_instant_test_request: (required)
|
238
|
+
:type agent_to_agent_instant_test_request: AgentToAgentInstantTestRequest
|
239
|
+
: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.
|
240
|
+
:type aid: str
|
241
|
+
: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`.
|
242
|
+
:type expand: List[Expand]
|
243
|
+
:param _request_timeout: timeout setting for this request. If one
|
244
|
+
number provided, it will be total request
|
245
|
+
timeout. It can also be a pair (tuple) of
|
246
|
+
(connection, read) timeouts.
|
247
|
+
:type _request_timeout: int, tuple(int, int), optional
|
248
|
+
:param _request_auth: set to override the auth_settings for an a single
|
249
|
+
request; this effectively ignores the
|
250
|
+
authentication in the spec for a single request.
|
251
|
+
:type _request_auth: dict, optional
|
252
|
+
:param _content_type: force content-type for the request.
|
253
|
+
:type _content_type: str, Optional
|
254
|
+
:param _headers: set to override the headers for a single
|
255
|
+
request; this effectively ignores the headers
|
256
|
+
in the spec for a single request.
|
257
|
+
:type _headers: dict, optional
|
258
|
+
:param _host_index: set to override the host_index for a single
|
259
|
+
request; this effectively ignores the host_index
|
260
|
+
in the spec for a single request.
|
261
|
+
:type _host_index: int, optional
|
262
|
+
:return: Returns the result object.
|
263
|
+
""" # noqa: E501
|
264
|
+
|
265
|
+
_param = self._create_agent_to_agent_instant_test_serialize(
|
266
|
+
agent_to_agent_instant_test_request=agent_to_agent_instant_test_request,
|
267
|
+
aid=aid,
|
268
|
+
expand=expand,
|
269
|
+
_request_auth=_request_auth,
|
270
|
+
_content_type=_content_type,
|
271
|
+
_headers=_headers,
|
272
|
+
_host_index=_host_index
|
273
|
+
)
|
274
|
+
|
275
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
276
|
+
'201': "AgentToAgentInstantTest",
|
277
|
+
'400': "ValidationError",
|
278
|
+
'401': "UnauthorizedError",
|
279
|
+
'403': "Error",
|
280
|
+
'404': "Error",
|
281
|
+
'429': "Error",
|
282
|
+
'500': "Error",
|
283
|
+
'502': "Error",
|
284
|
+
}
|
285
|
+
response_data = self.api_client.call_api(
|
286
|
+
*_param,
|
287
|
+
_request_timeout=_request_timeout
|
288
|
+
)
|
289
|
+
return response_data.response
|
290
|
+
|
291
|
+
|
292
|
+
def _create_agent_to_agent_instant_test_serialize(
|
293
|
+
self,
|
294
|
+
agent_to_agent_instant_test_request,
|
295
|
+
aid,
|
296
|
+
expand,
|
297
|
+
_request_auth,
|
298
|
+
_content_type,
|
299
|
+
_headers,
|
300
|
+
_host_index,
|
301
|
+
) -> RequestSerialized:
|
302
|
+
|
303
|
+
_host = None
|
304
|
+
|
305
|
+
_collection_formats: Dict[str, str] = {
|
306
|
+
'expand': 'csv',
|
307
|
+
}
|
308
|
+
|
309
|
+
_path_params: Dict[str, str] = {}
|
310
|
+
_query_params: List[Tuple[str, str]] = []
|
311
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
312
|
+
_form_params: List[Tuple[str, str]] = []
|
313
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
314
|
+
_body_params: Optional[bytes] = None
|
315
|
+
|
316
|
+
# process the path parameters
|
317
|
+
# process the query parameters
|
318
|
+
if aid is not None:
|
319
|
+
|
320
|
+
_query_params.append(('aid', aid))
|
321
|
+
|
322
|
+
if expand is not None:
|
323
|
+
|
324
|
+
_query_params.append(('expand', expand))
|
325
|
+
|
326
|
+
# process the header parameters
|
327
|
+
# process the form parameters
|
328
|
+
# process the body parameter
|
329
|
+
if agent_to_agent_instant_test_request is not None:
|
330
|
+
_body_params = agent_to_agent_instant_test_request
|
331
|
+
|
332
|
+
|
333
|
+
# set the HTTP header `Accept`
|
334
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
335
|
+
[
|
336
|
+
'application/hal+json',
|
337
|
+
'application/json',
|
338
|
+
'application/problem+json'
|
339
|
+
]
|
340
|
+
)
|
341
|
+
|
342
|
+
# set the HTTP header `Content-Type`
|
343
|
+
if _content_type:
|
344
|
+
_header_params['Content-Type'] = _content_type
|
345
|
+
else:
|
346
|
+
_default_content_type = (
|
347
|
+
self.api_client.select_header_content_type(
|
348
|
+
[
|
349
|
+
'application/json'
|
350
|
+
]
|
351
|
+
)
|
352
|
+
)
|
353
|
+
if _default_content_type is not None:
|
354
|
+
_header_params['Content-Type'] = _default_content_type
|
355
|
+
|
356
|
+
# authentication setting
|
357
|
+
_auth_settings: List[str] = [
|
358
|
+
'BearerAuth'
|
359
|
+
]
|
360
|
+
|
361
|
+
return self.api_client.param_serialize(
|
362
|
+
method='POST',
|
363
|
+
resource_path='/v7/tests/agent-to-agent/instant',
|
364
|
+
path_params=_path_params,
|
365
|
+
query_params=_query_params,
|
366
|
+
header_params=_header_params,
|
367
|
+
body=_body_params,
|
368
|
+
post_params=_form_params,
|
369
|
+
files=_files,
|
370
|
+
auth_settings=_auth_settings,
|
371
|
+
collection_formats=_collection_formats,
|
372
|
+
_host=_host,
|
373
|
+
_request_auth=_request_auth
|
374
|
+
)
|
375
|
+
|
376
|
+
|