[GitHub Bot] Generated python SDK

This commit is contained in:
API Team 2024-11-19 20:13:28 +00:00
parent f235c99bfd
commit 71c6576d07
90 changed files with 333 additions and 58 deletions

View File

@ -12,7 +12,7 @@ This API provides the following operations to manage your organization:
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -9,7 +9,8 @@ Name | Type | Description | Notes
**account_group_name** | **str** | Account group name | [optional]
**is_current_account_group** | **bool** | Indicates whether the requested aid is the context of the current account. | [optional]
**is_default_account_group** | **bool** | Indicates whether the aid is the default one for the requesting user. | [optional]
**organization_name** | **str** | (Optional) Indicates whether the aid is the default one for the requesting user. | [optional]
**organization_name** | **str** | (Optional) The name of the organization associated with the account group. | [optional]
**org_id** | **str** | (Optional) The ID for the organization associated with the account group. | [optional]
**users** | [**List[UserAccountGroup]**](UserAccountGroup.md) | | [optional]
**links** | [**SelfLinks**](SelfLinks.md) | | [optional]
**agents** | [**List[EnterpriseAgent]**](EnterpriseAgent.md) | | [optional]

View File

@ -9,7 +9,8 @@ Name | Type | Description | Notes
**account_group_name** | **str** | Account group name | [optional]
**is_current_account_group** | **bool** | Indicates whether the requested aid is the context of the current account. | [optional]
**is_default_account_group** | **bool** | Indicates whether the aid is the default one for the requesting user. | [optional]
**organization_name** | **str** | (Optional) Indicates whether the aid is the default one for the requesting user. | [optional]
**organization_name** | **str** | (Optional) The name of the organization associated with the account group. | [optional]
**org_id** | **str** | (Optional) The ID for the organization associated with the account group. | [optional]
## Example

View File

@ -9,7 +9,8 @@ Name | Type | Description | Notes
**account_group_name** | **str** | Account group name | [optional]
**is_current_account_group** | **bool** | Indicates whether the requested aid is the context of the current account. | [optional]
**is_default_account_group** | **bool** | Indicates whether the aid is the default one for the requesting user. | [optional]
**organization_name** | **str** | (Optional) Indicates whether the aid is the default one for the requesting user. | [optional]
**organization_name** | **str** | (Optional) The name of the organization associated with the account group. | [optional]
**org_id** | **str** | (Optional) The ID for the organization associated with the account group. | [optional]
**users** | [**List[UserAccountGroup]**](UserAccountGroup.md) | | [optional]
**links** | [**SelfLinks**](SelfLinks.md) | | [optional]

View File

@ -32,12 +32,13 @@ class AccountGroupDetail(BaseModel):
account_group_name: Optional[StrictStr] = Field(default=None, description="Account group name", alias="accountGroupName")
is_current_account_group: Optional[StrictBool] = Field(default=None, description="Indicates whether the requested aid is the context of the current account.", alias="isCurrentAccountGroup")
is_default_account_group: Optional[StrictBool] = Field(default=None, description="Indicates whether the aid is the default one for the requesting user.", alias="isDefaultAccountGroup")
organization_name: Optional[StrictStr] = Field(default=None, description="(Optional) Indicates whether the aid is the default one for the requesting user.", alias="organizationName")
organization_name: Optional[StrictStr] = Field(default=None, description="(Optional) The name of the organization associated with the account group.", alias="organizationName")
org_id: Optional[StrictStr] = Field(default=None, description="(Optional) The ID for the organization associated with the account group.", alias="orgId")
users: Optional[List[UserAccountGroup]] = None
links: Optional[SelfLinks] = Field(default=None, alias="_links")
agents: Optional[List[EnterpriseAgent]] = None
account_token: Optional[StrictStr] = Field(default=None, description="The account group token is an alphanumeric string used to bind an Enterprise Agent to a specific account group. This token is not a password that must be kept secret. You can retrieve your `AccountGroupToken` from the `/account-groups/{id}` endpoint.", alias="accountToken")
__properties: ClassVar[List[str]] = ["aid", "accountGroupName", "isCurrentAccountGroup", "isDefaultAccountGroup", "organizationName", "users", "_links", "agents", "accountToken"]
__properties: ClassVar[List[str]] = ["aid", "accountGroupName", "isCurrentAccountGroup", "isDefaultAccountGroup", "organizationName", "orgId", "users", "_links", "agents", "accountToken"]
model_config = ConfigDict(
populate_by_name=True,
@ -113,6 +114,7 @@ class AccountGroupDetail(BaseModel):
"isCurrentAccountGroup": obj.get("isCurrentAccountGroup"),
"isDefaultAccountGroup": obj.get("isDefaultAccountGroup"),
"organizationName": obj.get("organizationName"),
"orgId": obj.get("orgId"),
"users": [UserAccountGroup.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None,
"_links": SelfLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None,
"agents": [EnterpriseAgent.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None,

View File

@ -29,8 +29,9 @@ class AccountGroupInfo(BaseModel):
account_group_name: Optional[StrictStr] = Field(default=None, description="Account group name", alias="accountGroupName")
is_current_account_group: Optional[StrictBool] = Field(default=None, description="Indicates whether the requested aid is the context of the current account.", alias="isCurrentAccountGroup")
is_default_account_group: Optional[StrictBool] = Field(default=None, description="Indicates whether the aid is the default one for the requesting user.", alias="isDefaultAccountGroup")
organization_name: Optional[StrictStr] = Field(default=None, description="(Optional) Indicates whether the aid is the default one for the requesting user.", alias="organizationName")
__properties: ClassVar[List[str]] = ["aid", "accountGroupName", "isCurrentAccountGroup", "isDefaultAccountGroup", "organizationName"]
organization_name: Optional[StrictStr] = Field(default=None, description="(Optional) The name of the organization associated with the account group.", alias="organizationName")
org_id: Optional[StrictStr] = Field(default=None, description="(Optional) The ID for the organization associated with the account group.", alias="orgId")
__properties: ClassVar[List[str]] = ["aid", "accountGroupName", "isCurrentAccountGroup", "isDefaultAccountGroup", "organizationName", "orgId"]
model_config = ConfigDict(
populate_by_name=True,
@ -88,7 +89,8 @@ class AccountGroupInfo(BaseModel):
"accountGroupName": obj.get("accountGroupName"),
"isCurrentAccountGroup": obj.get("isCurrentAccountGroup"),
"isDefaultAccountGroup": obj.get("isDefaultAccountGroup"),
"organizationName": obj.get("organizationName")
"organizationName": obj.get("organizationName"),
"orgId": obj.get("orgId")
})
return _obj

View File

@ -31,10 +31,11 @@ class CreatedAccountGroup(BaseModel):
account_group_name: Optional[StrictStr] = Field(default=None, description="Account group name", alias="accountGroupName")
is_current_account_group: Optional[StrictBool] = Field(default=None, description="Indicates whether the requested aid is the context of the current account.", alias="isCurrentAccountGroup")
is_default_account_group: Optional[StrictBool] = Field(default=None, description="Indicates whether the aid is the default one for the requesting user.", alias="isDefaultAccountGroup")
organization_name: Optional[StrictStr] = Field(default=None, description="(Optional) Indicates whether the aid is the default one for the requesting user.", alias="organizationName")
organization_name: Optional[StrictStr] = Field(default=None, description="(Optional) The name of the organization associated with the account group.", alias="organizationName")
org_id: Optional[StrictStr] = Field(default=None, description="(Optional) The ID for the organization associated with the account group.", alias="orgId")
users: Optional[List[UserAccountGroup]] = None
links: Optional[SelfLinks] = Field(default=None, alias="_links")
__properties: ClassVar[List[str]] = ["aid", "accountGroupName", "isCurrentAccountGroup", "isDefaultAccountGroup", "organizationName", "users", "_links"]
__properties: ClassVar[List[str]] = ["aid", "accountGroupName", "isCurrentAccountGroup", "isDefaultAccountGroup", "organizationName", "orgId", "users", "_links"]
model_config = ConfigDict(
populate_by_name=True,
@ -103,6 +104,7 @@ class CreatedAccountGroup(BaseModel):
"isCurrentAccountGroup": obj.get("isCurrentAccountGroup"),
"isDefaultAccountGroup": obj.get("isDefaultAccountGroup"),
"organizationName": obj.get("organizationName"),
"orgId": obj.get("orgId"),
"users": [UserAccountGroup.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None,
"_links": SelfLinks.from_dict(obj["_links"]) if obj.get("_links") is not None else None
})

View File

@ -59,6 +59,7 @@ class TestAccountGroupsApi(unittest.TestCase):
"accountGroupName" : "Account A",
"isDefaultAccountGroup" : true,
"aid" : "1234",
"orgId" : "12345",
"users" : [ {
"uid" : "235",
"lastLogin" : "2022-07-17T22:00:54Z",
@ -127,6 +128,7 @@ class TestAccountGroupsApi(unittest.TestCase):
"isDefaultAccountGroup" : true,
"accountToken" : "6j052y4vfgyuhefghue",
"aid" : "1234",
"orgId" : "12345",
"users" : [ {
"uid" : "235",
"lastLogin" : "2022-07-17T22:00:54Z",
@ -345,13 +347,15 @@ class TestAccountGroupsApi(unittest.TestCase):
"organizationName" : "organizationName",
"accountGroupName" : "Account A",
"isDefaultAccountGroup" : true,
"aid" : "1234"
"aid" : "1234",
"orgId" : "12345"
}, {
"isCurrentAccountGroup" : true,
"organizationName" : "organizationName",
"accountGroupName" : "Account A",
"isDefaultAccountGroup" : true,
"aid" : "1234"
"aid" : "1234",
"orgId" : "12345"
} ]
}"""
@ -391,6 +395,7 @@ class TestAccountGroupsApi(unittest.TestCase):
"isDefaultAccountGroup" : true,
"accountToken" : "6j052y4vfgyuhefghue",
"aid" : "1234",
"orgId" : "12345",
"users" : [ {
"uid" : "235",
"lastLogin" : "2022-07-17T22:00:54Z",

View File

@ -5,7 +5,7 @@ Manage all agents available to your account in ThousandEyes, including both Clou
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -12,7 +12,7 @@ For more information about the alerts, see [Alerts](https://docs.thousandeyes.co
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -9,7 +9,7 @@ For more information about monitors, see [Inside-Out BGP Visibility](https://doc
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -13,7 +13,7 @@ For more information about credentials, see [Working With Secure Credentials](ht
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -3,7 +3,7 @@ Manage ThousandEyes Dashboards.
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -28,6 +28,9 @@ class ApiWidgetFixedYScalePrefix(str, Enum):
KBPS = 'Kbps'
MBPS = 'Mbps'
GBPS = 'Gbps'
KBITPS = 'Kbitps'
MBITPS = 'Mbitps'
GBITPS = 'Gbitps'
KPPS = 'Kpps'
MPPS = 'Mpps'
GPPS = 'Gpps'

View File

@ -244,10 +244,14 @@ class DashboardMetric(str, Enum):
CLOUD_NATIVE_MONITORING_MINUS_ACCEPTED_TOTAL_THROUGHPUT = 'CLOUD_NATIVE_MONITORING-ACCEPTED_TOTAL_THROUGHPUT'
CLOUD_NATIVE_MONITORING_MINUS_ACCEPTED_OUTBOUND_THROUGHPUT = 'CLOUD_NATIVE_MONITORING-ACCEPTED_OUTBOUND_THROUGHPUT'
CLOUD_NATIVE_MONITORING_MINUS_ACCEPTED_INBOUND_THROUGHPUT = 'CLOUD_NATIVE_MONITORING-ACCEPTED_INBOUND_THROUGHPUT'
CLOUD_NATIVE_MONITORING_MINUS_ACCEPTED_INTERNAL_THROUGHPUT = 'CLOUD_NATIVE_MONITORING-ACCEPTED_INTERNAL_THROUGHPUT'
CLOUD_NATIVE_MONITORING_MINUS_REJECTED_TOTAL_THROUGHPUT = 'CLOUD_NATIVE_MONITORING-REJECTED_TOTAL_THROUGHPUT'
CLOUD_NATIVE_MONITORING_MINUS_REJECTED_OUTBOUND_THROUGHPUT = 'CLOUD_NATIVE_MONITORING-REJECTED_OUTBOUND_THROUGHPUT'
CLOUD_NATIVE_MONITORING_MINUS_REJECTED_INBOUND_THROUGHPUT = 'CLOUD_NATIVE_MONITORING-REJECTED_INBOUND_THROUGHPUT'
CLOUD_NATIVE_MONITORING_MINUS_REJECTED_INTERNAL_THROUGHPUT = 'CLOUD_NATIVE_MONITORING-REJECTED_INTERNAL_THROUGHPUT'
CLOUD_NATIVE_MONITORING_MINUS_TOTAL_CONNECTION_RATE = 'CLOUD_NATIVE_MONITORING-TOTAL_CONNECTION_RATE'
CLOUD_NATIVE_MONITORING_MINUS_CONNECTION_RATE = 'CLOUD_NATIVE_MONITORING-CONNECTION_RATE'
CLOUD_NATIVE_MONITORING_MINUS_INTERNAL_CONNECTION_RATE = 'CLOUD_NATIVE_MONITORING-INTERNAL_CONNECTION_RATE'
CLOUD_NATIVE_MONITORING_MINUS_ALL_EVENTS = 'CLOUD_NATIVE_MONITORING-ALL_EVENTS'
CLOUD_NATIVE_MONITORING_MINUS_CONFIGURATION_CHANGE_EVENTS = 'CLOUD_NATIVE_MONITORING-CONFIGURATION_CHANGE_EVENTS'
CLOUD_NATIVE_MONITORING_MINUS_AUTOSCALING_EVENTS = 'CLOUD_NATIVE_MONITORING-AUTOSCALING_EVENTS'

View File

@ -61,6 +61,8 @@ class MetricGroup(str, Enum):
NETWORK_OUTAGES = 'NETWORK_OUTAGES'
APPLICATION_OUTAGES = 'APPLICATION_OUTAGES'
APPDYNAMICS_SERVICE_HEALTH = 'APPDYNAMICS_SERVICE_HEALTH'
CLOUD_NATIVE_MONITORING_MINUS_TRAFFIC_FLOW = 'CLOUD_NATIVE_MONITORING-TRAFFIC_FLOW'
CLOUD_NATIVE_MONITORING_MINUS_EVENTS = 'CLOUD_NATIVE_MONITORING-EVENTS'
UNKNOWN = 'unknown'
@classmethod

View File

@ -35,6 +35,7 @@ class WidgetMeasureType(str, Enum):
STDDEV = 'STDDEV'
TOTAL = 'TOTAL'
VALUES = 'VALUES'
SUM = 'SUM'
CLOUD_NATIVE_MONITORING_MINUS_MEAN = 'CLOUD_NATIVE_MONITORING-MEAN'
CLOUD_NATIVE_MONITORING_MINUS_SUM = 'CLOUD_NATIVE_MONITORING-SUM'
UNKNOWN = 'unknown'

View File

@ -9,7 +9,7 @@ To access Emulation API operations, the following permissions are required:
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -5,7 +5,7 @@ For more information about Endpoint Agents, see [Endpoint Agents](https://docs.t
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -11,6 +11,7 @@ docs/EndpointHttpServerBaseTest.md
docs/EndpointHttpServerInstantTest.md
docs/EndpointHttpServerTest.md
docs/EndpointInstantTest.md
docs/EndpointIpVersionTemplate.md
docs/EndpointRunScheduledInstantTestResult.md
docs/EndpointScheduledTestType.md
docs/EndpointSpecificAgentsSelectorConfig.md
@ -48,6 +49,7 @@ src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_http_server_base_tes
src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_http_server_instant_test.py
src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_http_server_test.py
src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_instant_test.py
src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_ip_version_template.py
src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_run_scheduled_instant_test_result.py
src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_scheduled_test_type.py
src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_specific_agents_selector_config.py

View File

@ -13,7 +13,7 @@ The URLs for these API test data endpoints are provided within the test definiti
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
@ -121,6 +121,7 @@ Class | Method | HTTP request | Description
- [EndpointHttpServerInstantTest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointHttpServerInstantTest.md)
- [EndpointHttpServerTest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointHttpServerTest.md)
- [EndpointInstantTest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointInstantTest.md)
- [EndpointIpVersionTemplate](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointIpVersionTemplate.md)
- [EndpointRunScheduledInstantTestResult](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointRunScheduledInstantTestResult.md)
- [EndpointScheduledTestType](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointScheduledTestType.md)
- [EndpointSpecificAgentsSelectorConfig](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointSpecificAgentsSelectorConfig.md)

View File

@ -16,6 +16,7 @@ Name | Type | Description | Notes
**modified_date** | **datetime** | UTC last modification date (ISO date-time format). | [optional] [readonly]
**network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True]
**protocol** | [**EndpointTestProtocol**](EndpointTestProtocol.md) | | [optional]
**ip_version** | [**EndpointIpVersionTemplate**](EndpointIpVersionTemplate.md) | | [optional]
**server** | **str** | Target domain name or IP address. | [optional]
**test_id** | **str** | Each test is assigned a unique ID to access test data from other endpoints. | [optional] [readonly]
**test_name** | **str** | Name of the test. | [optional]

View File

@ -16,6 +16,7 @@ Name | Type | Description | Notes
**modified_date** | **datetime** | UTC last modification date (ISO date-time format). | [optional] [readonly]
**network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True]
**protocol** | [**EndpointTestProtocol**](EndpointTestProtocol.md) | | [optional]
**ip_version** | [**EndpointIpVersionTemplate**](EndpointIpVersionTemplate.md) | | [optional]
**server** | **str** | Target domain name or IP address. | [optional]
**test_id** | **str** | Each test is assigned a unique ID to access test data from other endpoints. | [optional] [readonly]
**test_name** | **str** | Name of the test. | [optional]

View File

@ -0,0 +1,12 @@
# EndpointIpVersionTemplate
IP version the test should use for network tests.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -16,6 +16,7 @@ Name | Type | Description | Notes
**modified_date** | **datetime** | UTC last modification date (ISO date-time format). | [optional] [readonly]
**network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True]
**protocol** | [**EndpointTestProtocol**](EndpointTestProtocol.md) | | [optional]
**ip_version** | [**EndpointIpVersionTemplate**](EndpointIpVersionTemplate.md) | | [optional]
**server** | **str** | Target domain name or IP address. | [optional]
**test_id** | **str** | Each test is assigned a unique ID to access test data from other endpoints. | [optional] [readonly]
**test_name** | **str** | Name of the test. | [optional]

View File

@ -29,6 +29,7 @@ from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_http_server_base_te
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_http_server_instant_test import EndpointHttpServerInstantTest
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_http_server_test import EndpointHttpServerTest
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_instant_test import EndpointInstantTest
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_run_scheduled_instant_test_result import EndpointRunScheduledInstantTestResult
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_scheduled_test_type import EndpointScheduledTestType
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_specific_agents_selector_config import EndpointSpecificAgentsSelectorConfig

View File

@ -22,6 +22,7 @@ from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_http_server_base_te
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_http_server_instant_test import EndpointHttpServerInstantTest
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_http_server_test import EndpointHttpServerTest
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_instant_test import EndpointInstantTest
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_run_scheduled_instant_test_result import EndpointRunScheduledInstantTestResult
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_scheduled_test_type import EndpointScheduledTestType
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_specific_agents_selector_config import EndpointSpecificAgentsSelectorConfig

View File

@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, Strict
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_agent_selector_config import EndpointAgentSelectorConfig
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_test_links import EndpointTestLinks
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_test_protocol import EndpointTestProtocol
from thousandeyes_sdk.endpoint_instant_tests.models.test_interval import TestInterval
@ -44,6 +45,7 @@ class EndpointAgentToServerTest(BaseModel):
modified_date: Optional[datetime] = Field(default=None, description="UTC last modification date (ISO date-time format).", alias="modifiedDate")
network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements")
protocol: Optional[EndpointTestProtocol] = None
ip_version: Optional[EndpointIpVersionTemplate] = Field(default=None, alias="ipVersion")
server: Optional[StrictStr] = Field(default=None, description="Target domain name or IP address.")
test_id: Optional[StrictStr] = Field(default=None, description="Each test is assigned a unique ID to access test data from other endpoints.", alias="testId")
test_name: Optional[StrictStr] = Field(default=None, description="Name of the test.", alias="testName")
@ -51,7 +53,7 @@ class EndpointAgentToServerTest(BaseModel):
tcp_probe_mode: Optional[TestProbeModeResponse] = Field(default=None, alias="tcpProbeMode")
port: Optional[StrictInt] = Field(default=443, description="Port number.")
labels: Optional[List[TestLabel]] = None
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "server", "testId", "testName", "type", "tcpProbeMode", "port", "labels"]
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "ipVersion", "server", "testId", "testName", "type", "tcpProbeMode", "port", "labels"]
@field_validator('type')
def type_validate_regular_expression(cls, value):
@ -148,6 +150,7 @@ class EndpointAgentToServerTest(BaseModel):
"modifiedDate": obj.get("modifiedDate"),
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
"protocol": obj.get("protocol"),
"ipVersion": obj.get("ipVersion"),
"server": obj.get("server"),
"testId": obj.get("testId"),
"testName": obj.get("testName"),

View File

@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, Strict
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_agent_selector_config import EndpointAgentSelectorConfig
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_test_auth_type import EndpointTestAuthType
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_test_links import EndpointTestLinks
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_test_protocol import EndpointTestProtocol
@ -46,6 +47,7 @@ class EndpointHttpServerTest(BaseModel):
modified_date: Optional[datetime] = Field(default=None, description="UTC last modification date (ISO date-time format).", alias="modifiedDate")
network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements")
protocol: Optional[EndpointTestProtocol] = None
ip_version: Optional[EndpointIpVersionTemplate] = Field(default=None, alias="ipVersion")
server: Optional[StrictStr] = Field(default=None, description="Target domain name or IP address.")
test_id: Optional[StrictStr] = Field(default=None, description="Each test is assigned a unique ID to access test data from other endpoints.", alias="testId")
test_name: Optional[StrictStr] = Field(default=None, description="Name of the test.", alias="testName")
@ -64,7 +66,7 @@ class EndpointHttpServerTest(BaseModel):
ssl_version: Optional[StrictStr] = Field(default=None, description="Reflects the verbose SSL protocol version used by a test.", alias="sslVersion")
use_ntlm: Optional[StrictBool] = Field(default=None, description="Set to true to use NTLM, false to use Basic Authentication. Requires username and password to be set.", alias="useNtlm")
labels: Optional[List[TestLabel]] = None
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "server", "testId", "testName", "type", "tcpProbeMode", "port", "authType", "httpTimeLimit", "username", "sslVersionId", "verifyCertificate", "url", "followRedirects", "httpTargetTime", "httpVersion", "sslVersion", "useNtlm", "labels"]
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "ipVersion", "server", "testId", "testName", "type", "tcpProbeMode", "port", "authType", "httpTimeLimit", "username", "sslVersionId", "verifyCertificate", "url", "followRedirects", "httpTargetTime", "httpVersion", "sslVersion", "useNtlm", "labels"]
@field_validator('type')
def type_validate_regular_expression(cls, value):
@ -163,6 +165,7 @@ class EndpointHttpServerTest(BaseModel):
"modifiedDate": obj.get("modifiedDate"),
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
"protocol": obj.get("protocol"),
"ipVersion": obj.get("ipVersion"),
"server": obj.get("server"),
"testId": obj.get("testId"),
"testName": obj.get("testName"),

View File

@ -0,0 +1,43 @@
# coding: utf-8
"""
Endpoint Instant Scheduled Tests API
You can create and execute a new endpoint instant scheduled test within ThousandEyes using this API. The test parameters are specified in the `POST` data. The following applies to the Endpoint Instant Scheduled Tests API: * To initiate the creation and execution of an instant scheduled test, the user must possess the `Edit endpoint tests` permission. * Upon successful creation of an instant scheduled test, the API responds with an HTTP/201 CREATED status code and return the test definition. * It's important to note that the response does not include the results of the instant scheduled test. To retrieve test results, users can utilize the Endpoint Test Data endpoints. The URLs for these API test data endpoints are provided within the test definition output when an instant scheduled test is created.
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self
class EndpointIpVersionTemplate(str, Enum):
"""
IP version the test should use for network tests.
"""
"""
allowed enum values
"""
V4_ONLY = 'V4_ONLY'
V6_ONLY = 'V6_ONLY'
V6_PREFER = 'V6_PREFER'
OS_DEFAULT = 'OS_DEFAULT'
UNKNOWN = 'unknown'
@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of EndpointIpVersionTemplate from a JSON string"""
return cls(json.loads(json_str))
@classmethod
def _missing_(cls, value):
"""Handle unknown values"""
return cls.UNKNOWN

View File

@ -20,6 +20,7 @@ from datetime import datetime
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_agent_selector_config import EndpointAgentSelectorConfig
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_scheduled_test_type import EndpointScheduledTestType
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_test_links import EndpointTestLinks
from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_test_protocol import EndpointTestProtocol
@ -43,13 +44,14 @@ class EndpointTest(BaseModel):
modified_date: Optional[datetime] = Field(default=None, description="UTC last modification date (ISO date-time format).", alias="modifiedDate")
network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements")
protocol: Optional[EndpointTestProtocol] = None
ip_version: Optional[EndpointIpVersionTemplate] = Field(default=None, alias="ipVersion")
server: Optional[StrictStr] = Field(default=None, description="Target domain name or IP address.")
test_id: Optional[StrictStr] = Field(default=None, description="Each test is assigned a unique ID to access test data from other endpoints.", alias="testId")
test_name: Optional[StrictStr] = Field(default=None, description="Name of the test.", alias="testName")
type: EndpointScheduledTestType
tcp_probe_mode: Optional[TestProbeModeResponse] = Field(default=None, alias="tcpProbeMode")
port: Optional[StrictInt] = Field(default=443, description="Port number.")
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "server", "testId", "testName", "type", "tcpProbeMode", "port"]
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "ipVersion", "server", "testId", "testName", "type", "tcpProbeMode", "port"]
model_config = ConfigDict(
populate_by_name=True,
@ -128,6 +130,7 @@ class EndpointTest(BaseModel):
"modifiedDate": obj.get("modifiedDate"),
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
"protocol": obj.get("protocol"),
"ipVersion": obj.get("ipVersion"),
"server": obj.get("server"),
"testId": obj.get("testId"),
"testName": obj.get("testName"),

View File

@ -80,6 +80,7 @@ class TestAgentToServerEndpointInstantScheduledTestsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",

View File

@ -101,6 +101,7 @@ class TestHTTPServerEndpointInstantScheduledTestsApi(unittest.TestCase):
"isBuiltin" : false
} ],
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",

View File

@ -4,7 +4,7 @@ Manage labels applied to endpoint agents using this API.
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -20,6 +20,7 @@ docs/EndpointBrowser.md
docs/EndpointHttpDataPointScore.md
docs/EndpointHttpServerBaseTest.md
docs/EndpointHttpServerTest.md
docs/EndpointIpVersionTemplate.md
docs/EndpointNetworkTopologyResultRequest.md
docs/EndpointNetworkTopologyResultRequestFilter.md
docs/EndpointPathTrace.md
@ -173,6 +174,7 @@ src/thousandeyes_sdk/endpoint_test_results/models/endpoint_browser.py
src/thousandeyes_sdk/endpoint_test_results/models/endpoint_http_data_point_score.py
src/thousandeyes_sdk/endpoint_test_results/models/endpoint_http_server_base_test.py
src/thousandeyes_sdk/endpoint_test_results/models/endpoint_http_server_test.py
src/thousandeyes_sdk/endpoint_test_results/models/endpoint_ip_version_template.py
src/thousandeyes_sdk/endpoint_test_results/models/endpoint_network_topology_result_request.py
src/thousandeyes_sdk/endpoint_test_results/models/endpoint_network_topology_result_request_filter.py
src/thousandeyes_sdk/endpoint_test_results/models/endpoint_path_trace.py

View File

@ -3,7 +3,7 @@ Retrieve results for scheduled and dynamic tests on endpoint agents.
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
@ -140,6 +140,7 @@ Class | Method | HTTP request | Description
- [EndpointHttpDataPointScore](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointHttpDataPointScore.md)
- [EndpointHttpServerBaseTest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointHttpServerBaseTest.md)
- [EndpointHttpServerTest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointHttpServerTest.md)
- [EndpointIpVersionTemplate](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointIpVersionTemplate.md)
- [EndpointNetworkTopologyResultRequest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointNetworkTopologyResultRequest.md)
- [EndpointNetworkTopologyResultRequestFilter](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointNetworkTopologyResultRequestFilter.md)
- [EndpointPathTrace](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointPathTrace.md)

View File

@ -18,6 +18,7 @@ Name | Type | Description | Notes
**modified_date** | **datetime** | UTC last modification date (ISO date-time format). | [optional] [readonly]
**network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True]
**protocol** | [**EndpointTestProtocol**](EndpointTestProtocol.md) | | [optional]
**ip_version** | [**EndpointIpVersionTemplate**](EndpointIpVersionTemplate.md) | | [optional]
**tcp_probe_mode** | [**TestProbeModeResponse**](TestProbeModeResponse.md) | | [optional]
**test_id** | **str** | Each test is assigned a unique ID; this is used to access test information and results from other endpoints. | [optional] [readonly]
**test_name** | **str** | Name of the test. | [optional]

View File

@ -16,6 +16,7 @@ Name | Type | Description | Notes
**modified_date** | **datetime** | UTC last modification date (ISO date-time format). | [optional] [readonly]
**network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True]
**protocol** | [**EndpointTestProtocol**](EndpointTestProtocol.md) | | [optional]
**ip_version** | [**EndpointIpVersionTemplate**](EndpointIpVersionTemplate.md) | | [optional]
**server** | **str** | Target domain name or IP address. | [optional]
**test_id** | **str** | Each test is assigned a unique ID to access test data from other endpoints. | [optional] [readonly]
**test_name** | **str** | Name of the test. | [optional]

View File

@ -16,6 +16,7 @@ Name | Type | Description | Notes
**modified_date** | **datetime** | UTC last modification date (ISO date-time format). | [optional] [readonly]
**network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True]
**protocol** | [**EndpointTestProtocol**](EndpointTestProtocol.md) | | [optional]
**ip_version** | [**EndpointIpVersionTemplate**](EndpointIpVersionTemplate.md) | | [optional]
**server** | **str** | Target domain name or IP address. | [optional]
**test_id** | **str** | Each test is assigned a unique ID to access test data from other endpoints. | [optional] [readonly]
**test_name** | **str** | Name of the test. | [optional]

View File

@ -0,0 +1,12 @@
# EndpointIpVersionTemplate
IP version the test should use for network tests.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -16,6 +16,7 @@ Name | Type | Description | Notes
**modified_date** | **datetime** | UTC last modification date (ISO date-time format). | [optional] [readonly]
**network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True]
**protocol** | [**EndpointTestProtocol**](EndpointTestProtocol.md) | | [optional]
**ip_version** | [**EndpointIpVersionTemplate**](EndpointIpVersionTemplate.md) | | [optional]
**server** | **str** | Target domain name or IP address. | [optional]
**test_id** | **str** | Each test is assigned a unique ID to access test data from other endpoints. | [optional] [readonly]
**test_name** | **str** | Name of the test. | [optional]

View File

@ -16,6 +16,7 @@ Name | Type | Description | Notes
**modified_date** | **datetime** | UTC last modification date (ISO date-time format). | [optional] [readonly]
**network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True]
**protocol** | [**EndpointTestProtocol**](EndpointTestProtocol.md) | | [optional]
**ip_version** | [**EndpointIpVersionTemplate**](EndpointIpVersionTemplate.md) | | [optional]
**server** | **str** | Target domain name or IP address. | [optional]
**test_id** | **str** | Each test is assigned a unique ID to access test data from other endpoints. | [optional] [readonly]
**test_name** | **str** | Name of the test. | [optional]

View File

@ -41,6 +41,7 @@ from thousandeyes_sdk.endpoint_test_results.models.endpoint_browser import Endpo
from thousandeyes_sdk.endpoint_test_results.models.endpoint_http_data_point_score import EndpointHttpDataPointScore
from thousandeyes_sdk.endpoint_test_results.models.endpoint_http_server_base_test import EndpointHttpServerBaseTest
from thousandeyes_sdk.endpoint_test_results.models.endpoint_http_server_test import EndpointHttpServerTest
from thousandeyes_sdk.endpoint_test_results.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_test_results.models.endpoint_network_topology_result_request import EndpointNetworkTopologyResultRequest
from thousandeyes_sdk.endpoint_test_results.models.endpoint_network_topology_result_request_filter import EndpointNetworkTopologyResultRequestFilter
from thousandeyes_sdk.endpoint_test_results.models.endpoint_path_trace import EndpointPathTrace

View File

@ -32,6 +32,7 @@ from thousandeyes_sdk.endpoint_test_results.models.endpoint_browser import Endpo
from thousandeyes_sdk.endpoint_test_results.models.endpoint_http_data_point_score import EndpointHttpDataPointScore
from thousandeyes_sdk.endpoint_test_results.models.endpoint_http_server_base_test import EndpointHttpServerBaseTest
from thousandeyes_sdk.endpoint_test_results.models.endpoint_http_server_test import EndpointHttpServerTest
from thousandeyes_sdk.endpoint_test_results.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_test_results.models.endpoint_network_topology_result_request import EndpointNetworkTopologyResultRequest
from thousandeyes_sdk.endpoint_test_results.models.endpoint_network_topology_result_request_filter import EndpointNetworkTopologyResultRequestFilter
from thousandeyes_sdk.endpoint_test_results.models.endpoint_path_trace import EndpointPathTrace

View File

@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from thousandeyes_sdk.endpoint_test_results.models.dynamic_test_links import DynamicTestLinks
from thousandeyes_sdk.endpoint_test_results.models.endpoint_agent_selector_config import EndpointAgentSelectorConfig
from thousandeyes_sdk.endpoint_test_results.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_test_results.models.endpoint_test_protocol import EndpointTestProtocol
from thousandeyes_sdk.endpoint_test_results.models.test_interval import TestInterval
from thousandeyes_sdk.endpoint_test_results.models.test_label import TestLabel
@ -45,11 +46,12 @@ class DynamicTest(BaseModel):
modified_date: Optional[datetime] = Field(default=None, description="UTC last modification date (ISO date-time format).", alias="modifiedDate")
network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements")
protocol: Optional[EndpointTestProtocol] = None
ip_version: Optional[EndpointIpVersionTemplate] = Field(default=None, alias="ipVersion")
tcp_probe_mode: Optional[TestProbeModeResponse] = Field(default=None, alias="tcpProbeMode")
test_id: Optional[StrictStr] = Field(default=None, description="Each test is assigned a unique ID; this is used to access test information and results from other endpoints.", alias="testId")
test_name: Optional[StrictStr] = Field(default=None, description="Name of the test.", alias="testName")
labels: Optional[List[TestLabel]] = None
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "application", "createdDate", "interval", "isEnabled", "hasPathTraceInSession", "hasPing", "hasTraceroute", "modifiedDate", "networkMeasurements", "protocol", "tcpProbeMode", "testId", "testName", "labels"]
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "application", "createdDate", "interval", "isEnabled", "hasPathTraceInSession", "hasPing", "hasTraceroute", "modifiedDate", "networkMeasurements", "protocol", "ipVersion", "tcpProbeMode", "testId", "testName", "labels"]
model_config = ConfigDict(
populate_by_name=True,
@ -137,6 +139,7 @@ class DynamicTest(BaseModel):
"modifiedDate": obj.get("modifiedDate"),
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
"protocol": obj.get("protocol"),
"ipVersion": obj.get("ipVersion"),
"tcpProbeMode": obj.get("tcpProbeMode"),
"testId": obj.get("testId"),
"testName": obj.get("testName"),

View File

@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, Strict
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
from thousandeyes_sdk.endpoint_test_results.models.endpoint_agent_selector_config import EndpointAgentSelectorConfig
from thousandeyes_sdk.endpoint_test_results.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_test_results.models.endpoint_test_links import EndpointTestLinks
from thousandeyes_sdk.endpoint_test_results.models.endpoint_test_protocol import EndpointTestProtocol
from thousandeyes_sdk.endpoint_test_results.models.test_interval import TestInterval
@ -44,6 +45,7 @@ class EndpointAgentToServerTest(BaseModel):
modified_date: Optional[datetime] = Field(default=None, description="UTC last modification date (ISO date-time format).", alias="modifiedDate")
network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements")
protocol: Optional[EndpointTestProtocol] = None
ip_version: Optional[EndpointIpVersionTemplate] = Field(default=None, alias="ipVersion")
server: Optional[StrictStr] = Field(default=None, description="Target domain name or IP address.")
test_id: Optional[StrictStr] = Field(default=None, description="Each test is assigned a unique ID to access test data from other endpoints.", alias="testId")
test_name: Optional[StrictStr] = Field(default=None, description="Name of the test.", alias="testName")
@ -51,7 +53,7 @@ class EndpointAgentToServerTest(BaseModel):
tcp_probe_mode: Optional[TestProbeModeResponse] = Field(default=None, alias="tcpProbeMode")
port: Optional[StrictInt] = Field(default=443, description="Port number.")
labels: Optional[List[TestLabel]] = None
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "server", "testId", "testName", "type", "tcpProbeMode", "port", "labels"]
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "ipVersion", "server", "testId", "testName", "type", "tcpProbeMode", "port", "labels"]
@field_validator('type')
def type_validate_regular_expression(cls, value):
@ -148,6 +150,7 @@ class EndpointAgentToServerTest(BaseModel):
"modifiedDate": obj.get("modifiedDate"),
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
"protocol": obj.get("protocol"),
"ipVersion": obj.get("ipVersion"),
"server": obj.get("server"),
"testId": obj.get("testId"),
"testName": obj.get("testName"),

View File

@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, Strict
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
from thousandeyes_sdk.endpoint_test_results.models.endpoint_agent_selector_config import EndpointAgentSelectorConfig
from thousandeyes_sdk.endpoint_test_results.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_test_results.models.endpoint_test_auth_type import EndpointTestAuthType
from thousandeyes_sdk.endpoint_test_results.models.endpoint_test_links import EndpointTestLinks
from thousandeyes_sdk.endpoint_test_results.models.endpoint_test_protocol import EndpointTestProtocol
@ -46,6 +47,7 @@ class EndpointHttpServerTest(BaseModel):
modified_date: Optional[datetime] = Field(default=None, description="UTC last modification date (ISO date-time format).", alias="modifiedDate")
network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements")
protocol: Optional[EndpointTestProtocol] = None
ip_version: Optional[EndpointIpVersionTemplate] = Field(default=None, alias="ipVersion")
server: Optional[StrictStr] = Field(default=None, description="Target domain name or IP address.")
test_id: Optional[StrictStr] = Field(default=None, description="Each test is assigned a unique ID to access test data from other endpoints.", alias="testId")
test_name: Optional[StrictStr] = Field(default=None, description="Name of the test.", alias="testName")
@ -64,7 +66,7 @@ class EndpointHttpServerTest(BaseModel):
ssl_version: Optional[StrictStr] = Field(default=None, description="Reflects the verbose SSL protocol version used by a test.", alias="sslVersion")
use_ntlm: Optional[StrictBool] = Field(default=None, description="Set to true to use NTLM, false to use Basic Authentication. Requires username and password to be set.", alias="useNtlm")
labels: Optional[List[TestLabel]] = None
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "server", "testId", "testName", "type", "tcpProbeMode", "port", "authType", "httpTimeLimit", "username", "sslVersionId", "verifyCertificate", "url", "followRedirects", "httpTargetTime", "httpVersion", "sslVersion", "useNtlm", "labels"]
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "ipVersion", "server", "testId", "testName", "type", "tcpProbeMode", "port", "authType", "httpTimeLimit", "username", "sslVersionId", "verifyCertificate", "url", "followRedirects", "httpTargetTime", "httpVersion", "sslVersion", "useNtlm", "labels"]
@field_validator('type')
def type_validate_regular_expression(cls, value):
@ -163,6 +165,7 @@ class EndpointHttpServerTest(BaseModel):
"modifiedDate": obj.get("modifiedDate"),
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
"protocol": obj.get("protocol"),
"ipVersion": obj.get("ipVersion"),
"server": obj.get("server"),
"testId": obj.get("testId"),
"testName": obj.get("testName"),

View File

@ -0,0 +1,43 @@
# coding: utf-8
"""
Endpoint Test Results API
Retrieve results for scheduled and dynamic tests on endpoint agents.
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self
class EndpointIpVersionTemplate(str, Enum):
"""
IP version the test should use for network tests.
"""
"""
allowed enum values
"""
V4_ONLY = 'V4_ONLY'
V6_ONLY = 'V6_ONLY'
V6_PREFER = 'V6_PREFER'
OS_DEFAULT = 'OS_DEFAULT'
UNKNOWN = 'unknown'
@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of EndpointIpVersionTemplate from a JSON string"""
return cls(json.loads(json_str))
@classmethod
def _missing_(cls, value):
"""Handle unknown values"""
return cls.UNKNOWN

View File

@ -20,6 +20,7 @@ from datetime import datetime
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from thousandeyes_sdk.endpoint_test_results.models.endpoint_agent_selector_config import EndpointAgentSelectorConfig
from thousandeyes_sdk.endpoint_test_results.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_test_results.models.endpoint_scheduled_test_type import EndpointScheduledTestType
from thousandeyes_sdk.endpoint_test_results.models.endpoint_test_links import EndpointTestLinks
from thousandeyes_sdk.endpoint_test_results.models.endpoint_test_protocol import EndpointTestProtocol
@ -43,13 +44,14 @@ class EndpointTest(BaseModel):
modified_date: Optional[datetime] = Field(default=None, description="UTC last modification date (ISO date-time format).", alias="modifiedDate")
network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements")
protocol: Optional[EndpointTestProtocol] = None
ip_version: Optional[EndpointIpVersionTemplate] = Field(default=None, alias="ipVersion")
server: Optional[StrictStr] = Field(default=None, description="Target domain name or IP address.")
test_id: Optional[StrictStr] = Field(default=None, description="Each test is assigned a unique ID to access test data from other endpoints.", alias="testId")
test_name: Optional[StrictStr] = Field(default=None, description="Name of the test.", alias="testName")
type: EndpointScheduledTestType
tcp_probe_mode: Optional[TestProbeModeResponse] = Field(default=None, alias="tcpProbeMode")
port: Optional[StrictInt] = Field(default=443, description="Port number.")
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "server", "testId", "testName", "type", "tcpProbeMode", "port"]
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "ipVersion", "server", "testId", "testName", "type", "tcpProbeMode", "port"]
model_config = ConfigDict(
populate_by_name=True,
@ -128,6 +130,7 @@ class EndpointTest(BaseModel):
"modifiedDate": obj.get("modifiedDate"),
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
"protocol": obj.get("protocol"),
"ipVersion": obj.get("ipVersion"),
"server": obj.get("server"),
"testId": obj.get("testId"),
"testName": obj.get("testName"),

View File

@ -76,6 +76,7 @@ class TestHTTPServerEndpointScheduledTestResultsApi(unittest.TestCase):
"isBuiltin" : false
} ],
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",

View File

@ -95,6 +95,7 @@ class TestNetworkDynamicEndpointTestResultsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"application" : "webex",
"hasTraceroute" : true,
"isEnabled" : true,
@ -370,6 +371,7 @@ class TestNetworkDynamicEndpointTestResultsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"application" : "webex",
"hasTraceroute" : true,
"isEnabled" : true,
@ -822,6 +824,7 @@ class TestNetworkDynamicEndpointTestResultsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"application" : "webex",
"hasTraceroute" : true,
"isEnabled" : true,

View File

@ -96,6 +96,7 @@ class TestNetworkEndpointScheduledTestResultsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
@ -591,6 +592,7 @@ class TestNetworkEndpointScheduledTestResultsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
@ -1024,6 +1026,7 @@ class TestNetworkEndpointScheduledTestResultsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",

View File

@ -380,11 +380,11 @@ class TestRealUserEndpointTestResultsApi(unittest.TestCase):
"log" : {
"browser" : {
"name" : "Google Chrome",
"version" : "7.0.26.98"
"version" : "7.0.28.98"
},
"creator" : {
"name" : "ThousandEyes Endpoint Agent",
"version" : "7.0.26"
"version" : "7.0.28"
},
"entries" : [ {
"pageref" : "page_1",

View File

@ -23,6 +23,7 @@ docs/EndpointHttpServerTestRequest.md
docs/EndpointHttpServerTests.md
docs/EndpointHttpTestUpdate.md
docs/EndpointInstantTest.md
docs/EndpointIpVersionTemplate.md
docs/EndpointNetworkTestUpdate.md
docs/EndpointScheduledTestType.md
docs/EndpointScheduledTestsApi.md
@ -76,6 +77,7 @@ src/thousandeyes_sdk/endpoint_tests/models/endpoint_http_server_test_request.py
src/thousandeyes_sdk/endpoint_tests/models/endpoint_http_server_tests.py
src/thousandeyes_sdk/endpoint_tests/models/endpoint_http_test_update.py
src/thousandeyes_sdk/endpoint_tests/models/endpoint_instant_test.py
src/thousandeyes_sdk/endpoint_tests/models/endpoint_ip_version_template.py
src/thousandeyes_sdk/endpoint_tests/models/endpoint_network_test_update.py
src/thousandeyes_sdk/endpoint_tests/models/endpoint_scheduled_test_type.py
src/thousandeyes_sdk/endpoint_tests/models/endpoint_specific_agents_selector_config.py

View File

@ -5,7 +5,7 @@ Manage endpoint agent dynamic and scheduled tests using the Endpoint Tests API.
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator
@ -137,6 +137,7 @@ Class | Method | HTTP request | Description
- [EndpointHttpServerTests](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-tests/docs/EndpointHttpServerTests.md)
- [EndpointHttpTestUpdate](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-tests/docs/EndpointHttpTestUpdate.md)
- [EndpointInstantTest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-tests/docs/EndpointInstantTest.md)
- [EndpointIpVersionTemplate](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-tests/docs/EndpointIpVersionTemplate.md)
- [EndpointNetworkTestUpdate](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-tests/docs/EndpointNetworkTestUpdate.md)
- [EndpointScheduledTestType](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-tests/docs/EndpointScheduledTestType.md)
- [EndpointSpecificAgentsSelectorConfig](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-tests/docs/EndpointSpecificAgentsSelectorConfig.md)

View File

@ -18,6 +18,7 @@ Name | Type | Description | Notes
**modified_date** | **datetime** | UTC last modification date (ISO date-time format). | [optional] [readonly]
**network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True]
**protocol** | [**EndpointTestProtocol**](EndpointTestProtocol.md) | | [optional]
**ip_version** | [**EndpointIpVersionTemplate**](EndpointIpVersionTemplate.md) | | [optional]
**tcp_probe_mode** | [**TestProbeModeResponse**](TestProbeModeResponse.md) | | [optional]
**test_id** | **str** | Each test is assigned a unique ID; this is used to access test information and results from other endpoints. | [optional] [readonly]
**test_name** | **str** | Name of the test. | [optional]

View File

@ -16,6 +16,7 @@ Name | Type | Description | Notes
**modified_date** | **datetime** | UTC last modification date (ISO date-time format). | [optional] [readonly]
**network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True]
**protocol** | [**EndpointTestProtocol**](EndpointTestProtocol.md) | | [optional]
**ip_version** | [**EndpointIpVersionTemplate**](EndpointIpVersionTemplate.md) | | [optional]
**server** | **str** | Target domain name or IP address. | [optional]
**test_id** | **str** | Each test is assigned a unique ID to access test data from other endpoints. | [optional] [readonly]
**test_name** | **str** | Name of the test. | [optional]

View File

@ -16,6 +16,7 @@ Name | Type | Description | Notes
**modified_date** | **datetime** | UTC last modification date (ISO date-time format). | [optional] [readonly]
**network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True]
**protocol** | [**EndpointTestProtocol**](EndpointTestProtocol.md) | | [optional]
**ip_version** | [**EndpointIpVersionTemplate**](EndpointIpVersionTemplate.md) | | [optional]
**server** | **str** | Target domain name or IP address. | [optional]
**test_id** | **str** | Each test is assigned a unique ID to access test data from other endpoints. | [optional] [readonly]
**test_name** | **str** | Name of the test. | [optional]

View File

@ -0,0 +1,12 @@
# EndpointIpVersionTemplate
IP version the test should use for network tests.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -16,6 +16,7 @@ Name | Type | Description | Notes
**modified_date** | **datetime** | UTC last modification date (ISO date-time format). | [optional] [readonly]
**network_measurements** | **bool** | Enable or disable network measurements. Set to true to enable or false to disable network measurements. | [optional] [default to True]
**protocol** | [**EndpointTestProtocol**](EndpointTestProtocol.md) | | [optional]
**ip_version** | [**EndpointIpVersionTemplate**](EndpointIpVersionTemplate.md) | | [optional]
**server** | **str** | Target domain name or IP address. | [optional]
**test_id** | **str** | Each test is assigned a unique ID to access test data from other endpoints. | [optional] [readonly]
**test_name** | **str** | Name of the test. | [optional]

View File

@ -41,6 +41,7 @@ from thousandeyes_sdk.endpoint_tests.models.endpoint_http_server_test_request im
from thousandeyes_sdk.endpoint_tests.models.endpoint_http_server_tests import EndpointHttpServerTests
from thousandeyes_sdk.endpoint_tests.models.endpoint_http_test_update import EndpointHttpTestUpdate
from thousandeyes_sdk.endpoint_tests.models.endpoint_instant_test import EndpointInstantTest
from thousandeyes_sdk.endpoint_tests.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_tests.models.endpoint_network_test_update import EndpointNetworkTestUpdate
from thousandeyes_sdk.endpoint_tests.models.endpoint_scheduled_test_type import EndpointScheduledTestType
from thousandeyes_sdk.endpoint_tests.models.endpoint_specific_agents_selector_config import EndpointSpecificAgentsSelectorConfig

View File

@ -33,6 +33,7 @@ from thousandeyes_sdk.endpoint_tests.models.endpoint_http_server_test_request im
from thousandeyes_sdk.endpoint_tests.models.endpoint_http_server_tests import EndpointHttpServerTests
from thousandeyes_sdk.endpoint_tests.models.endpoint_http_test_update import EndpointHttpTestUpdate
from thousandeyes_sdk.endpoint_tests.models.endpoint_instant_test import EndpointInstantTest
from thousandeyes_sdk.endpoint_tests.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_tests.models.endpoint_network_test_update import EndpointNetworkTestUpdate
from thousandeyes_sdk.endpoint_tests.models.endpoint_scheduled_test_type import EndpointScheduledTestType
from thousandeyes_sdk.endpoint_tests.models.endpoint_specific_agents_selector_config import EndpointSpecificAgentsSelectorConfig

View File

@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from thousandeyes_sdk.endpoint_tests.models.dynamic_test_links import DynamicTestLinks
from thousandeyes_sdk.endpoint_tests.models.endpoint_agent_selector_config import EndpointAgentSelectorConfig
from thousandeyes_sdk.endpoint_tests.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_tests.models.endpoint_test_protocol import EndpointTestProtocol
from thousandeyes_sdk.endpoint_tests.models.test_interval import TestInterval
from thousandeyes_sdk.endpoint_tests.models.test_label import TestLabel
@ -45,11 +46,12 @@ class DynamicTest(BaseModel):
modified_date: Optional[datetime] = Field(default=None, description="UTC last modification date (ISO date-time format).", alias="modifiedDate")
network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements")
protocol: Optional[EndpointTestProtocol] = None
ip_version: Optional[EndpointIpVersionTemplate] = Field(default=None, alias="ipVersion")
tcp_probe_mode: Optional[TestProbeModeResponse] = Field(default=None, alias="tcpProbeMode")
test_id: Optional[StrictStr] = Field(default=None, description="Each test is assigned a unique ID; this is used to access test information and results from other endpoints.", alias="testId")
test_name: Optional[StrictStr] = Field(default=None, description="Name of the test.", alias="testName")
labels: Optional[List[TestLabel]] = None
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "application", "createdDate", "interval", "isEnabled", "hasPathTraceInSession", "hasPing", "hasTraceroute", "modifiedDate", "networkMeasurements", "protocol", "tcpProbeMode", "testId", "testName", "labels"]
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "application", "createdDate", "interval", "isEnabled", "hasPathTraceInSession", "hasPing", "hasTraceroute", "modifiedDate", "networkMeasurements", "protocol", "ipVersion", "tcpProbeMode", "testId", "testName", "labels"]
model_config = ConfigDict(
populate_by_name=True,
@ -137,6 +139,7 @@ class DynamicTest(BaseModel):
"modifiedDate": obj.get("modifiedDate"),
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
"protocol": obj.get("protocol"),
"ipVersion": obj.get("ipVersion"),
"tcpProbeMode": obj.get("tcpProbeMode"),
"testId": obj.get("testId"),
"testName": obj.get("testName"),

View File

@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, Strict
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
from thousandeyes_sdk.endpoint_tests.models.endpoint_agent_selector_config import EndpointAgentSelectorConfig
from thousandeyes_sdk.endpoint_tests.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_tests.models.endpoint_test_links import EndpointTestLinks
from thousandeyes_sdk.endpoint_tests.models.endpoint_test_protocol import EndpointTestProtocol
from thousandeyes_sdk.endpoint_tests.models.test_interval import TestInterval
@ -44,6 +45,7 @@ class EndpointAgentToServerTest(BaseModel):
modified_date: Optional[datetime] = Field(default=None, description="UTC last modification date (ISO date-time format).", alias="modifiedDate")
network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements")
protocol: Optional[EndpointTestProtocol] = None
ip_version: Optional[EndpointIpVersionTemplate] = Field(default=None, alias="ipVersion")
server: Optional[StrictStr] = Field(default=None, description="Target domain name or IP address.")
test_id: Optional[StrictStr] = Field(default=None, description="Each test is assigned a unique ID to access test data from other endpoints.", alias="testId")
test_name: Optional[StrictStr] = Field(default=None, description="Name of the test.", alias="testName")
@ -51,7 +53,7 @@ class EndpointAgentToServerTest(BaseModel):
tcp_probe_mode: Optional[TestProbeModeResponse] = Field(default=None, alias="tcpProbeMode")
port: Optional[StrictInt] = Field(default=443, description="Port number.")
labels: Optional[List[TestLabel]] = None
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "server", "testId", "testName", "type", "tcpProbeMode", "port", "labels"]
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "ipVersion", "server", "testId", "testName", "type", "tcpProbeMode", "port", "labels"]
@field_validator('type')
def type_validate_regular_expression(cls, value):
@ -148,6 +150,7 @@ class EndpointAgentToServerTest(BaseModel):
"modifiedDate": obj.get("modifiedDate"),
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
"protocol": obj.get("protocol"),
"ipVersion": obj.get("ipVersion"),
"server": obj.get("server"),
"testId": obj.get("testId"),
"testName": obj.get("testName"),

View File

@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, Strict
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
from thousandeyes_sdk.endpoint_tests.models.endpoint_agent_selector_config import EndpointAgentSelectorConfig
from thousandeyes_sdk.endpoint_tests.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_tests.models.endpoint_test_auth_type import EndpointTestAuthType
from thousandeyes_sdk.endpoint_tests.models.endpoint_test_links import EndpointTestLinks
from thousandeyes_sdk.endpoint_tests.models.endpoint_test_protocol import EndpointTestProtocol
@ -46,6 +47,7 @@ class EndpointHttpServerTest(BaseModel):
modified_date: Optional[datetime] = Field(default=None, description="UTC last modification date (ISO date-time format).", alias="modifiedDate")
network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements")
protocol: Optional[EndpointTestProtocol] = None
ip_version: Optional[EndpointIpVersionTemplate] = Field(default=None, alias="ipVersion")
server: Optional[StrictStr] = Field(default=None, description="Target domain name or IP address.")
test_id: Optional[StrictStr] = Field(default=None, description="Each test is assigned a unique ID to access test data from other endpoints.", alias="testId")
test_name: Optional[StrictStr] = Field(default=None, description="Name of the test.", alias="testName")
@ -64,7 +66,7 @@ class EndpointHttpServerTest(BaseModel):
ssl_version: Optional[StrictStr] = Field(default=None, description="Reflects the verbose SSL protocol version used by a test.", alias="sslVersion")
use_ntlm: Optional[StrictBool] = Field(default=None, description="Set to true to use NTLM, false to use Basic Authentication. Requires username and password to be set.", alias="useNtlm")
labels: Optional[List[TestLabel]] = None
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "server", "testId", "testName", "type", "tcpProbeMode", "port", "authType", "httpTimeLimit", "username", "sslVersionId", "verifyCertificate", "url", "followRedirects", "httpTargetTime", "httpVersion", "sslVersion", "useNtlm", "labels"]
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "ipVersion", "server", "testId", "testName", "type", "tcpProbeMode", "port", "authType", "httpTimeLimit", "username", "sslVersionId", "verifyCertificate", "url", "followRedirects", "httpTargetTime", "httpVersion", "sslVersion", "useNtlm", "labels"]
@field_validator('type')
def type_validate_regular_expression(cls, value):
@ -163,6 +165,7 @@ class EndpointHttpServerTest(BaseModel):
"modifiedDate": obj.get("modifiedDate"),
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
"protocol": obj.get("protocol"),
"ipVersion": obj.get("ipVersion"),
"server": obj.get("server"),
"testId": obj.get("testId"),
"testName": obj.get("testName"),

View File

@ -0,0 +1,43 @@
# coding: utf-8
"""
Endpoint Tests API
Manage endpoint agent dynamic and scheduled tests using the Endpoint Tests API.
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self
class EndpointIpVersionTemplate(str, Enum):
"""
IP version the test should use for network tests.
"""
"""
allowed enum values
"""
V4_ONLY = 'V4_ONLY'
V6_ONLY = 'V6_ONLY'
V6_PREFER = 'V6_PREFER'
OS_DEFAULT = 'OS_DEFAULT'
UNKNOWN = 'unknown'
@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of EndpointIpVersionTemplate from a JSON string"""
return cls(json.loads(json_str))
@classmethod
def _missing_(cls, value):
"""Handle unknown values"""
return cls.UNKNOWN

View File

@ -20,6 +20,7 @@ from datetime import datetime
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from thousandeyes_sdk.endpoint_tests.models.endpoint_agent_selector_config import EndpointAgentSelectorConfig
from thousandeyes_sdk.endpoint_tests.models.endpoint_ip_version_template import EndpointIpVersionTemplate
from thousandeyes_sdk.endpoint_tests.models.endpoint_scheduled_test_type import EndpointScheduledTestType
from thousandeyes_sdk.endpoint_tests.models.endpoint_test_links import EndpointTestLinks
from thousandeyes_sdk.endpoint_tests.models.endpoint_test_protocol import EndpointTestProtocol
@ -43,13 +44,14 @@ class EndpointTest(BaseModel):
modified_date: Optional[datetime] = Field(default=None, description="UTC last modification date (ISO date-time format).", alias="modifiedDate")
network_measurements: Optional[StrictBool] = Field(default=True, description="Enable or disable network measurements. Set to true to enable or false to disable network measurements.", alias="networkMeasurements")
protocol: Optional[EndpointTestProtocol] = None
ip_version: Optional[EndpointIpVersionTemplate] = Field(default=None, alias="ipVersion")
server: Optional[StrictStr] = Field(default=None, description="Target domain name or IP address.")
test_id: Optional[StrictStr] = Field(default=None, description="Each test is assigned a unique ID to access test data from other endpoints.", alias="testId")
test_name: Optional[StrictStr] = Field(default=None, description="Name of the test.", alias="testName")
type: EndpointScheduledTestType
tcp_probe_mode: Optional[TestProbeModeResponse] = Field(default=None, alias="tcpProbeMode")
port: Optional[StrictInt] = Field(default=443, description="Port number.")
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "server", "testId", "testName", "type", "tcpProbeMode", "port"]
__properties: ClassVar[List[str]] = ["aid", "_links", "agentSelectorConfig", "createdDate", "interval", "isEnabled", "isSavedEvent", "hasPathTraceInSession", "modifiedDate", "networkMeasurements", "protocol", "ipVersion", "server", "testId", "testName", "type", "tcpProbeMode", "port"]
model_config = ConfigDict(
populate_by_name=True,
@ -128,6 +130,7 @@ class EndpointTest(BaseModel):
"modifiedDate": obj.get("modifiedDate"),
"networkMeasurements": obj.get("networkMeasurements") if obj.get("networkMeasurements") is not None else True,
"protocol": obj.get("protocol"),
"ipVersion": obj.get("ipVersion"),
"server": obj.get("server"),
"testId": obj.get("testId"),
"testName": obj.get("testName"),

View File

@ -81,6 +81,7 @@ class TestAgentToServerEndpointDynamicTestsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"application" : "webex",
"hasTraceroute" : true,
"isEnabled" : true,
@ -140,6 +141,7 @@ class TestAgentToServerEndpointDynamicTestsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"application" : "webex",
"hasTraceroute" : true,
"isEnabled" : true,
@ -196,6 +198,7 @@ class TestAgentToServerEndpointDynamicTestsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"application" : "webex",
"hasTraceroute" : true,
"isEnabled" : true,
@ -241,6 +244,7 @@ class TestAgentToServerEndpointDynamicTestsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"application" : "webex",
"hasTraceroute" : true,
"isEnabled" : true,
@ -322,6 +326,7 @@ class TestAgentToServerEndpointDynamicTestsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"application" : "webex",
"hasTraceroute" : true,
"isEnabled" : true,

View File

@ -82,6 +82,7 @@ class TestAgentToServerEndpointScheduledTestsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
@ -142,6 +143,7 @@ class TestAgentToServerEndpointScheduledTestsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
@ -199,6 +201,7 @@ class TestAgentToServerEndpointScheduledTestsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
@ -245,6 +248,7 @@ class TestAgentToServerEndpointScheduledTestsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
@ -328,6 +332,7 @@ class TestAgentToServerEndpointScheduledTestsApi(unittest.TestCase):
} ],
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",

View File

@ -58,6 +58,7 @@ class TestEndpointScheduledTestsApi(unittest.TestCase):
"tcpProbeMode" : "auto",
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
@ -95,6 +96,7 @@ class TestEndpointScheduledTestsApi(unittest.TestCase):
"tcpProbeMode" : "auto",
"protocol" : "icmp",
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",

View File

@ -102,6 +102,7 @@ class TestHTTPServerEndpointScheduledTestsApi(unittest.TestCase):
"isBuiltin" : false
} ],
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
@ -173,6 +174,7 @@ class TestHTTPServerEndpointScheduledTestsApi(unittest.TestCase):
"isBuiltin" : false
} ],
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
@ -241,6 +243,7 @@ class TestHTTPServerEndpointScheduledTestsApi(unittest.TestCase):
"isBuiltin" : false
} ],
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
@ -298,6 +301,7 @@ class TestHTTPServerEndpointScheduledTestsApi(unittest.TestCase):
"isBuiltin" : false
} ],
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",
@ -391,6 +395,7 @@ class TestHTTPServerEndpointScheduledTestsApi(unittest.TestCase):
"isBuiltin" : false
} ],
"createdDate" : "2022-07-17T22:00:54Z",
"ipVersion" : "V4_ONLY",
"port" : 443,
"isEnabled" : true,
"modifiedDate" : "2022-07-17T22:00:54Z",

View File

@ -12,7 +12,7 @@ With the Events API, you can perform the following tasks on the ThousandEyes pla
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -8,7 +8,7 @@ The response does not include the immediate test results. Use the Test Results e
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -14,7 +14,7 @@ For more information about Internet Insights, see the [Internet Insights](https:
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -3,7 +3,7 @@ Creates a new test snapshot in ThousandEyes.
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -15,7 +15,7 @@ For more information about ThousandEyes for OpenTelemetry, see the [documentatio
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -1,6 +1,6 @@
# DataModelVersion
The version of the data model used in the data stream. When using `v1`: - The `signal` cannot be `trace`. Default: `v2`
The version of the data model used in the data stream. When using `v1`: - The `signal` cannot be `trace`.
## Properties

View File

@ -1,6 +1,6 @@
# EndpointType
The type of connection used to send data to the endpoint. Default: `grpc` **Note**: When using the `splunk-hec` 'type', the `EndpointType` must be `http`.
The type of connection used to send data to the endpoint. **Note**: When using the `splunk-hec` 'type', the `EndpointType` must be `http`.
## Properties

View File

@ -7,8 +7,8 @@ Splunk HEC configuration. This can only be configured when the `type` is `splunk
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**token** | **str** | The Splunk HEC `token`. This is a required field. | [optional]
**source** | **str** | The Splunk HEC `source`. This field is optional. Default: `ThousandEyesOTel` | [optional] [default to 'ThousandEyesOTel']
**source_type** | **str** | The Splunk HEC `sourceType`. This field is optional. Default: `ThousandEyesOTel` | [optional] [default to 'ThousandEyesOTel']
**source** | **str** | The Splunk HEC `source`. This field is optional. | [optional] [default to 'ThousandEyesOTel']
**source_type** | **str** | The Splunk HEC `sourceType`. This field is optional. | [optional] [default to 'ThousandEyesOTel']
**index** | **str** | The name of the Splunk HEC index where the event data will be stored. This field is optional. | [optional]
## Example

View File

@ -1,6 +1,6 @@
# Signal
The OpenTelemetry signal of the stream integration. When using `trace`: - `dataModelVersion` must be `v2`. Default: `metric`
The OpenTelemetry signal of the stream integration. When using `trace`: - `dataModelVersion` must be `v2`.
## Properties

View File

@ -1,6 +1,6 @@
# TestMatchDomain
The domain of the test to match.
The domain of the test to match. `cea` - Cloud and Enterprise Agent `endpoint` - Endpoint Agent
## Properties

View File

@ -19,7 +19,7 @@ from typing_extensions import Self
class DataModelVersion(str, Enum):
"""
The version of the data model used in the data stream. When using `v1`: - The `signal` cannot be `trace`. Default: `v2`
The version of the data model used in the data stream. When using `v1`: - The `signal` cannot be `trace`.
"""
"""

View File

@ -19,7 +19,7 @@ from typing_extensions import Self
class EndpointType(str, Enum):
"""
The type of connection used to send data to the endpoint. Default: `grpc` **Note**: When using the `splunk-hec` 'type', the `EndpointType` must be `http`.
The type of connection used to send data to the endpoint. **Note**: When using the `splunk-hec` 'type', the `EndpointType` must be `http`.
"""
"""

View File

@ -26,8 +26,8 @@ class ExporterConfigSplunkHec(BaseModel):
Splunk HEC configuration. This can only be configured when the `type` is `splunk-hec`.
""" # noqa: E501
token: Optional[StrictStr] = Field(default=None, description="The Splunk HEC `token`. This is a required field.")
source: Optional[StrictStr] = Field(default='ThousandEyesOTel', description="The Splunk HEC `source`. This field is optional. Default: `ThousandEyesOTel`")
source_type: Optional[StrictStr] = Field(default='ThousandEyesOTel', description="The Splunk HEC `sourceType`. This field is optional. Default: `ThousandEyesOTel`", alias="sourceType")
source: Optional[StrictStr] = Field(default='ThousandEyesOTel', description="The Splunk HEC `source`. This field is optional.")
source_type: Optional[StrictStr] = Field(default='ThousandEyesOTel', description="The Splunk HEC `sourceType`. This field is optional.", alias="sourceType")
index: Optional[StrictStr] = Field(default=None, description="The name of the Splunk HEC index where the event data will be stored. This field is optional.")
__properties: ClassVar[List[str]] = ["token", "source", "sourceType", "index"]

View File

@ -19,7 +19,7 @@ from typing_extensions import Self
class Signal(str, Enum):
"""
The OpenTelemetry signal of the stream integration. When using `trace`: - `dataModelVersion` must be `v2`. Default: `metric`
The OpenTelemetry signal of the stream integration. When using `trace`: - `dataModelVersion` must be `v2`.
"""
"""

View File

@ -19,7 +19,7 @@ from typing_extensions import Self
class TestMatchDomain(str, Enum):
"""
The domain of the test to match.
The domain of the test to match. `cea` - Cloud and Enterprise Agent `endpoint` - Endpoint Agent
"""
"""

View File

@ -16,7 +16,7 @@ Things to note with the ThousandEyes Tags API:
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -3,7 +3,7 @@ Get test result metrics for Cloud and Enterprise Agent tests.
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -4,7 +4,7 @@ This API supports listing, creating, editing, and deleting Cloud and Enterprise
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator

View File

@ -17,7 +17,7 @@ Refer to the Usage API operations for detailed usage instructions and optional p
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 7.0.26
- API version: 7.0.28
- Generator version: 7.6.0
- Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator