diff --git a/thousandeyes-sdk-administrative/.openapi-generator/FILES b/thousandeyes-sdk-administrative/.openapi-generator/FILES index 4454791a..a6a23acc 100644 --- a/thousandeyes-sdk-administrative/.openapi-generator/FILES +++ b/thousandeyes-sdk-administrative/.openapi-generator/FILES @@ -14,6 +14,7 @@ docs/AuditUserEvents.md docs/BaseRole.md docs/CloudEnterpriseAgentType.md docs/ClusterMember.md +docs/Coordinates.md docs/CreatedAccountGroup.md docs/CreatedUser.md docs/EnterpriseAgent.md @@ -78,6 +79,7 @@ src/thousandeyes_sdk/administrative/models/audit_user_events.py src/thousandeyes_sdk/administrative/models/base_role.py src/thousandeyes_sdk/administrative/models/cloud_enterprise_agent_type.py src/thousandeyes_sdk/administrative/models/cluster_member.py +src/thousandeyes_sdk/administrative/models/coordinates.py src/thousandeyes_sdk/administrative/models/created_account_group.py src/thousandeyes_sdk/administrative/models/created_user.py src/thousandeyes_sdk/administrative/models/enterprise_agent.py diff --git a/thousandeyes-sdk-administrative/README.md b/thousandeyes-sdk-administrative/README.md index 4de44a1e..fe885512 100644 --- a/thousandeyes-sdk-administrative/README.md +++ b/thousandeyes-sdk-administrative/README.md @@ -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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator @@ -138,6 +138,7 @@ Class | Method | HTTP request | Description - [BaseRole](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-administrative/docs/BaseRole.md) - [CloudEnterpriseAgentType](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-administrative/docs/CloudEnterpriseAgentType.md) - [ClusterMember](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-administrative/docs/ClusterMember.md) + - [Coordinates](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-administrative/docs/Coordinates.md) - [CreatedAccountGroup](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-administrative/docs/CreatedAccountGroup.md) - [CreatedUser](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-administrative/docs/CreatedUser.md) - [EnterpriseAgent](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-administrative/docs/EnterpriseAgent.md) diff --git a/thousandeyes-sdk-administrative/docs/AgentResponse.md b/thousandeyes-sdk-administrative/docs/AgentResponse.md index 78c5731c..6fefe825 100644 --- a/thousandeyes-sdk-administrative/docs/AgentResponse.md +++ b/thousandeyes-sdk-administrative/docs/AgentResponse.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **agent_name** | **str** | Name of the agent. | [optional] **location** | **str** | Location of the agent. | [optional] [readonly] **country_id** | **str** | 2-digit ISO country code | [optional] [readonly] +**coordinates** | [**Coordinates**](Coordinates.md) | | [optional] **enabled** | **bool** | Flag indicating if the agent is enabled. | [optional] **prefix** | **str** | Prefix containing agents public IP address. | [optional] [readonly] **verify_ssl_certificates** | **bool** | Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests. | [optional] [readonly] diff --git a/thousandeyes-sdk-administrative/docs/Coordinates.md b/thousandeyes-sdk-administrative/docs/Coordinates.md new file mode 100644 index 00000000..691c7f6a --- /dev/null +++ b/thousandeyes-sdk-administrative/docs/Coordinates.md @@ -0,0 +1,31 @@ +# Coordinates + +Geographic coordinates for agent location. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**latitude** | **float** | The latitude of the agent location in decimal degrees | [optional] [readonly] +**longitude** | **float** | The longitude of the agent location in decimal degrees | [optional] [readonly] + +## Example + +```python +from thousandeyes_sdk.administrative.models.coordinates import Coordinates + +# TODO update the JSON string below +json = "{}" +# create an instance of Coordinates from a JSON string +coordinates_instance = Coordinates.from_json(json) +# print the JSON string representation of the object +print(Coordinates.to_json()) + +# convert the object into a dict +coordinates_dict = coordinates_instance.to_dict() +# create an instance of Coordinates from a dict +coordinates_from_dict = Coordinates.from_dict(coordinates_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-administrative/docs/EnterpriseAgent.md b/thousandeyes-sdk-administrative/docs/EnterpriseAgent.md index 88b973a3..b0b5e6c4 100644 --- a/thousandeyes-sdk-administrative/docs/EnterpriseAgent.md +++ b/thousandeyes-sdk-administrative/docs/EnterpriseAgent.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **agent_name** | **str** | Name of the agent. | [optional] **location** | **str** | Location of the agent. | [optional] [readonly] **country_id** | **str** | 2-digit ISO country code | [optional] [readonly] +**coordinates** | [**Coordinates**](Coordinates.md) | | [optional] **enabled** | **bool** | Flag indicating if the agent is enabled. | [optional] **prefix** | **str** | Prefix containing agents public IP address. | [optional] [readonly] **verify_ssl_certificates** | **bool** | Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests. | [optional] [readonly] diff --git a/thousandeyes-sdk-administrative/docs/SimpleAgent.md b/thousandeyes-sdk-administrative/docs/SimpleAgent.md index e3f7870d..e10fd61f 100644 --- a/thousandeyes-sdk-administrative/docs/SimpleAgent.md +++ b/thousandeyes-sdk-administrative/docs/SimpleAgent.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **agent_name** | **str** | Name of the agent. | [optional] **location** | **str** | Location of the agent. | [optional] [readonly] **country_id** | **str** | 2-digit ISO country code | [optional] [readonly] +**coordinates** | [**Coordinates**](Coordinates.md) | | [optional] **enabled** | **bool** | Flag indicating if the agent is enabled. | [optional] **prefix** | **str** | Prefix containing agents public IP address. | [optional] [readonly] **verify_ssl_certificates** | **bool** | Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests. | [optional] [readonly] diff --git a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/__init__.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/__init__.py index 9ba40a83..6331ed24 100644 --- a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/__init__.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/__init__.py @@ -34,6 +34,7 @@ from thousandeyes_sdk.administrative.models.audit_user_events import AuditUserEv from thousandeyes_sdk.administrative.models.base_role import BaseRole from thousandeyes_sdk.administrative.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType from thousandeyes_sdk.administrative.models.cluster_member import ClusterMember +from thousandeyes_sdk.administrative.models.coordinates import Coordinates from thousandeyes_sdk.administrative.models.created_account_group import CreatedAccountGroup from thousandeyes_sdk.administrative.models.created_user import CreatedUser from thousandeyes_sdk.administrative.models.enterprise_agent import EnterpriseAgent diff --git a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/__init__.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/__init__.py index 2227c608..fb3b7fb8 100644 --- a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/__init__.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/__init__.py @@ -25,6 +25,7 @@ from thousandeyes_sdk.administrative.models.audit_user_events import AuditUserEv from thousandeyes_sdk.administrative.models.base_role import BaseRole from thousandeyes_sdk.administrative.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType from thousandeyes_sdk.administrative.models.cluster_member import ClusterMember +from thousandeyes_sdk.administrative.models.coordinates import Coordinates from thousandeyes_sdk.administrative.models.created_account_group import CreatedAccountGroup from thousandeyes_sdk.administrative.models.created_user import CreatedUser from thousandeyes_sdk.administrative.models.enterprise_agent import EnterpriseAgent diff --git a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/agent_response.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/agent_response.py index 24fcf154..57f8b7b7 100644 --- a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/agent_response.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/agent_response.py @@ -19,6 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from thousandeyes_sdk.administrative.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType +from thousandeyes_sdk.administrative.models.coordinates import Coordinates from typing import Optional, Set from typing_extensions import Self @@ -33,11 +34,12 @@ class AgentResponse(BaseModel): agent_name: Optional[StrictStr] = Field(default=None, description="Name of the agent.", alias="agentName") location: Optional[StrictStr] = Field(default=None, description="Location of the agent.") country_id: Optional[StrictStr] = Field(default=None, description="2-digit ISO country code", alias="countryId") + coordinates: Optional[Coordinates] = None enabled: Optional[StrictBool] = Field(default=None, description="Flag indicating if the agent is enabled.") prefix: Optional[StrictStr] = Field(default=None, description="Prefix containing agents public IP address.") verify_ssl_certificates: Optional[StrictBool] = Field(default=None, description="Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests.", alias="verifySslCertificates") agent_type: CloudEnterpriseAgentType = Field(alias="agentType") - __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "enabled", "prefix", "verifySslCertificates", "agentType"] + __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "coordinates", "enabled", "prefix", "verifySslCertificates", "agentType"] model_config = ConfigDict( populate_by_name=True, @@ -95,6 +97,9 @@ class AgentResponse(BaseModel): exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of coordinates + if self.coordinates: + _dict['coordinates'] = self.coordinates.to_dict() return _dict @classmethod @@ -114,6 +119,7 @@ class AgentResponse(BaseModel): "agentName": obj.get("agentName"), "location": obj.get("location"), "countryId": obj.get("countryId"), + "coordinates": Coordinates.from_dict(obj["coordinates"]) if obj.get("coordinates") is not None else None, "enabled": obj.get("enabled"), "prefix": obj.get("prefix"), "verifySslCertificates": obj.get("verifySslCertificates"), diff --git a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/coordinates.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/coordinates.py new file mode 100644 index 00000000..da5b0eab --- /dev/null +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/coordinates.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Administrative API + + Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following operations to manage your organization: * `/account-groups`: Account groups are used to divide an organization into different sections. These operations can be used to create, retrieve, update and delete account groups. * `/users`: Create, retrieve, update and delete users within an organization. * `/roles`: Create, retrieve and update roles for the current user. * `/permissions`: Retrieve all assignable permissions. Used in the context of modifying roles. * `/audit-user-events`: Retrieve all activity log events. For more information about the administrative models, see [Account Management](https://docs.thousandeyes.com/product-documentation/user-management). + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class Coordinates(BaseModel): + """ + Geographic coordinates for agent location. + """ # noqa: E501 + latitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The latitude of the agent location in decimal degrees") + longitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The longitude of the agent location in decimal degrees") + __properties: ClassVar[List[str]] = ["latitude", "longitude"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + extra="allow", + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Coordinates from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "latitude", + "longitude", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Coordinates from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "latitude": obj.get("latitude"), + "longitude": obj.get("longitude") + }) + return _obj + + diff --git a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/enterprise_agent.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/enterprise_agent.py index 9a4db53e..f41c1b6f 100644 --- a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/enterprise_agent.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/enterprise_agent.py @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from thousandeyes_sdk.administrative.models.account_group import AccountGroup from thousandeyes_sdk.administrative.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType from thousandeyes_sdk.administrative.models.cluster_member import ClusterMember +from thousandeyes_sdk.administrative.models.coordinates import Coordinates from thousandeyes_sdk.administrative.models.enterprise_agent_ipv6_policy import EnterpriseAgentIpv6Policy from thousandeyes_sdk.administrative.models.enterprise_agent_state import EnterpriseAgentState from thousandeyes_sdk.administrative.models.error_detail import ErrorDetail @@ -42,6 +43,7 @@ class EnterpriseAgent(BaseModel): agent_name: Optional[StrictStr] = Field(default=None, description="Name of the agent.", alias="agentName") location: Optional[StrictStr] = Field(default=None, description="Location of the agent.") country_id: Optional[StrictStr] = Field(default=None, description="2-digit ISO country code", alias="countryId") + coordinates: Optional[Coordinates] = None enabled: Optional[StrictBool] = Field(default=None, description="Flag indicating if the agent is enabled.") prefix: Optional[StrictStr] = Field(default=None, description="Prefix containing agents public IP address.") verify_ssl_certificates: Optional[StrictBool] = Field(default=None, description="Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests.", alias="verifySslCertificates") @@ -60,7 +62,7 @@ class EnterpriseAgent(BaseModel): target_for_tests: Optional[StrictStr] = Field(default=None, description="Test target IP address.", alias="targetForTests") local_resolution_prefixes: Optional[List[StrictStr]] = Field(default=None, description="To perform rDNS lookups for public IP ranges, this field represents the public IP ranges. The range must be in CIDR notation; for example, 10.1.1.0/24. Maximum of 5 prefixes allowed (Enterprise Agents and Enterprise Agent clusters only).", alias="localResolutionPrefixes") interface_ip_mapping: Optional[List[InterfaceIpMapping]] = Field(default=None, alias="interfaceIpMapping") - __properties: ClassVar[List[str]] = ["agentType", "ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "enabled", "prefix", "verifySslCertificates", "testIds", "tests", "clusterMembers", "utilization", "accountGroups", "ipv6Policy", "errorDetails", "hostname", "lastSeen", "agentState", "keepBrowserCache", "createdDate", "targetForTests", "localResolutionPrefixes", "interfaceIpMapping"] + __properties: ClassVar[List[str]] = ["agentType", "ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "coordinates", "enabled", "prefix", "verifySslCertificates", "testIds", "tests", "clusterMembers", "utilization", "accountGroups", "ipv6Policy", "errorDetails", "hostname", "lastSeen", "agentState", "keepBrowserCache", "createdDate", "targetForTests", "localResolutionPrefixes", "interfaceIpMapping"] model_config = ConfigDict( populate_by_name=True, @@ -134,6 +136,9 @@ class EnterpriseAgent(BaseModel): exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of coordinates + if self.coordinates: + _dict['coordinates'] = self.coordinates.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in tests (list) _items = [] if self.tests: @@ -189,6 +194,7 @@ class EnterpriseAgent(BaseModel): "agentName": obj.get("agentName"), "location": obj.get("location"), "countryId": obj.get("countryId"), + "coordinates": Coordinates.from_dict(obj["coordinates"]) if obj.get("coordinates") is not None else None, "enabled": obj.get("enabled"), "prefix": obj.get("prefix"), "verifySslCertificates": obj.get("verifySslCertificates"), diff --git a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/simple_agent.py b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/simple_agent.py index 25bdf1b3..7177d35f 100644 --- a/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/simple_agent.py +++ b/thousandeyes-sdk-administrative/src/thousandeyes_sdk/administrative/models/simple_agent.py @@ -18,6 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.administrative.models.coordinates import Coordinates from typing import Optional, Set from typing_extensions import Self @@ -32,10 +33,11 @@ class SimpleAgent(BaseModel): agent_name: Optional[StrictStr] = Field(default=None, description="Name of the agent.", alias="agentName") location: Optional[StrictStr] = Field(default=None, description="Location of the agent.") country_id: Optional[StrictStr] = Field(default=None, description="2-digit ISO country code", alias="countryId") + coordinates: Optional[Coordinates] = None enabled: Optional[StrictBool] = Field(default=None, description="Flag indicating if the agent is enabled.") prefix: Optional[StrictStr] = Field(default=None, description="Prefix containing agents public IP address.") verify_ssl_certificates: Optional[StrictBool] = Field(default=None, description="Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests.", alias="verifySslCertificates") - __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "enabled", "prefix", "verifySslCertificates"] + __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "coordinates", "enabled", "prefix", "verifySslCertificates"] model_config = ConfigDict( populate_by_name=True, @@ -93,6 +95,9 @@ class SimpleAgent(BaseModel): exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of coordinates + if self.coordinates: + _dict['coordinates'] = self.coordinates.to_dict() return _dict @classmethod @@ -112,6 +117,7 @@ class SimpleAgent(BaseModel): "agentName": obj.get("agentName"), "location": obj.get("location"), "countryId": obj.get("countryId"), + "coordinates": Coordinates.from_dict(obj["coordinates"]) if obj.get("coordinates") is not None else None, "enabled": obj.get("enabled"), "prefix": obj.get("prefix"), "verifySslCertificates": obj.get("verifySslCertificates") diff --git a/thousandeyes-sdk-administrative/test/test_account_groups_api.py b/thousandeyes-sdk-administrative/test/test_account_groups_api.py index 01e69e7f..5bdb6a72 100644 --- a/thousandeyes-sdk-administrative/test/test_account_groups_api.py +++ b/thousandeyes-sdk-administrative/test/test_account_groups_api.py @@ -176,6 +176,10 @@ class TestAccountGroupsApi(unittest.TestCase): "keepBrowserCache" : true, "agentState" : "online", "localResolutionPrefixes" : [ "10.2.3.3/24", "10.2.3.3/24" ], + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "utilization" : 25, "testIds" : [ 281474976710706 ], @@ -317,6 +321,10 @@ class TestAccountGroupsApi(unittest.TestCase): "keepBrowserCache" : true, "agentState" : "online", "localResolutionPrefixes" : [ "10.2.3.3/24", "10.2.3.3/24" ], + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "utilization" : 25, "testIds" : [ 281474976710706 ], @@ -571,6 +579,10 @@ class TestAccountGroupsApi(unittest.TestCase): "keepBrowserCache" : true, "agentState" : "online", "localResolutionPrefixes" : [ "10.2.3.3/24", "10.2.3.3/24" ], + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "utilization" : 25, "testIds" : [ 281474976710706 ], @@ -712,6 +724,10 @@ class TestAccountGroupsApi(unittest.TestCase): "keepBrowserCache" : true, "agentState" : "online", "localResolutionPrefixes" : [ "10.2.3.3/24", "10.2.3.3/24" ], + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "utilization" : 25, "testIds" : [ 281474976710706 ], diff --git a/thousandeyes-sdk-agents/.openapi-generator/FILES b/thousandeyes-sdk-agents/.openapi-generator/FILES index bf20b0d6..d11356e2 100644 --- a/thousandeyes-sdk-agents/.openapi-generator/FILES +++ b/thousandeyes-sdk-agents/.openapi-generator/FILES @@ -27,6 +27,7 @@ docs/CloudEnterpriseAgent.md docs/CloudEnterpriseAgentType.md docs/CloudEnterpriseAgents.md docs/ClusterMember.md +docs/Coordinates.md docs/EnterpriseAgent.md docs/EnterpriseAgentClusterApi.md docs/EnterpriseAgentClusterDetail.md @@ -91,6 +92,7 @@ src/thousandeyes_sdk/agents/models/cloud_enterprise_agent.py src/thousandeyes_sdk/agents/models/cloud_enterprise_agent_type.py src/thousandeyes_sdk/agents/models/cloud_enterprise_agents.py src/thousandeyes_sdk/agents/models/cluster_member.py +src/thousandeyes_sdk/agents/models/coordinates.py src/thousandeyes_sdk/agents/models/enterprise_agent.py src/thousandeyes_sdk/agents/models/enterprise_agent_cluster_detail.py src/thousandeyes_sdk/agents/models/enterprise_agent_data.py diff --git a/thousandeyes-sdk-agents/README.md b/thousandeyes-sdk-agents/README.md index ca19f1fb..d42a5e17 100644 --- a/thousandeyes-sdk-agents/README.md +++ b/thousandeyes-sdk-agents/README.md @@ -5,7 +5,7 @@ Manage Cloud and Enterprise Agents available to your account in ThousandEyes. This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator @@ -135,6 +135,7 @@ Class | Method | HTTP request | Description - [CloudEnterpriseAgentType](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-agents/docs/CloudEnterpriseAgentType.md) - [CloudEnterpriseAgents](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-agents/docs/CloudEnterpriseAgents.md) - [ClusterMember](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-agents/docs/ClusterMember.md) + - [Coordinates](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-agents/docs/Coordinates.md) - [EnterpriseAgent](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-agents/docs/EnterpriseAgent.md) - [EnterpriseAgentClusterDetail](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-agents/docs/EnterpriseAgentClusterDetail.md) - [EnterpriseAgentData](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-agents/docs/EnterpriseAgentData.md) diff --git a/thousandeyes-sdk-agents/docs/AgentDetails.md b/thousandeyes-sdk-agents/docs/AgentDetails.md index 9903b368..ed18bf13 100644 --- a/thousandeyes-sdk-agents/docs/AgentDetails.md +++ b/thousandeyes-sdk-agents/docs/AgentDetails.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **agent_name** | **str** | Name of the agent. | [optional] **location** | **str** | Location of the agent. | [optional] [readonly] **country_id** | **str** | 2-digit ISO country code | [optional] [readonly] +**coordinates** | [**Coordinates**](Coordinates.md) | | [optional] **enabled** | **bool** | Flag indicating if the agent is enabled. | [optional] **prefix** | **str** | Prefix containing agents public IP address. | [optional] [readonly] **verify_ssl_certificates** | **bool** | Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests. | [optional] [readonly] diff --git a/thousandeyes-sdk-agents/docs/AgentResponse.md b/thousandeyes-sdk-agents/docs/AgentResponse.md index 79b6d537..d651cef5 100644 --- a/thousandeyes-sdk-agents/docs/AgentResponse.md +++ b/thousandeyes-sdk-agents/docs/AgentResponse.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **agent_name** | **str** | Name of the agent. | [optional] **location** | **str** | Location of the agent. | [optional] [readonly] **country_id** | **str** | 2-digit ISO country code | [optional] [readonly] +**coordinates** | [**Coordinates**](Coordinates.md) | | [optional] **enabled** | **bool** | Flag indicating if the agent is enabled. | [optional] **prefix** | **str** | Prefix containing agents public IP address. | [optional] [readonly] **verify_ssl_certificates** | **bool** | Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests. | [optional] [readonly] diff --git a/thousandeyes-sdk-agents/docs/CloudAgentDetail.md b/thousandeyes-sdk-agents/docs/CloudAgentDetail.md index 8bc2b668..fffc5801 100644 --- a/thousandeyes-sdk-agents/docs/CloudAgentDetail.md +++ b/thousandeyes-sdk-agents/docs/CloudAgentDetail.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **agent_name** | **str** | Name of the agent. | [optional] **location** | **str** | Location of the agent. | [optional] [readonly] **country_id** | **str** | 2-digit ISO country code | [optional] [readonly] +**coordinates** | [**Coordinates**](Coordinates.md) | | [optional] **enabled** | **bool** | Flag indicating if the agent is enabled. | [optional] **prefix** | **str** | Prefix containing agents public IP address. | [optional] [readonly] **verify_ssl_certificates** | **bool** | Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests. | [optional] [readonly] diff --git a/thousandeyes-sdk-agents/docs/CloudEnterpriseAgent.md b/thousandeyes-sdk-agents/docs/CloudEnterpriseAgent.md index 514baa55..eb2e93cd 100644 --- a/thousandeyes-sdk-agents/docs/CloudEnterpriseAgent.md +++ b/thousandeyes-sdk-agents/docs/CloudEnterpriseAgent.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **agent_name** | **str** | Name of the agent. | [optional] **location** | **str** | Location of the agent. | [optional] [readonly] **country_id** | **str** | 2-digit ISO country code | [optional] [readonly] +**coordinates** | [**Coordinates**](Coordinates.md) | | [optional] **enabled** | **bool** | Flag indicating if the agent is enabled. | [optional] **prefix** | **str** | Prefix containing agents public IP address. | [optional] [readonly] **verify_ssl_certificates** | **bool** | Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests. | [optional] [readonly] diff --git a/thousandeyes-sdk-agents/docs/Coordinates.md b/thousandeyes-sdk-agents/docs/Coordinates.md new file mode 100644 index 00000000..174bdf11 --- /dev/null +++ b/thousandeyes-sdk-agents/docs/Coordinates.md @@ -0,0 +1,31 @@ +# Coordinates + +Geographic coordinates for agent location. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**latitude** | **float** | The latitude of the agent location in decimal degrees | [optional] [readonly] +**longitude** | **float** | The longitude of the agent location in decimal degrees | [optional] [readonly] + +## Example + +```python +from thousandeyes_sdk.agents.models.coordinates import Coordinates + +# TODO update the JSON string below +json = "{}" +# create an instance of Coordinates from a JSON string +coordinates_instance = Coordinates.from_json(json) +# print the JSON string representation of the object +print(Coordinates.to_json()) + +# convert the object into a dict +coordinates_dict = coordinates_instance.to_dict() +# create an instance of Coordinates from a dict +coordinates_from_dict = Coordinates.from_dict(coordinates_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-agents/docs/EnterpriseAgent.md b/thousandeyes-sdk-agents/docs/EnterpriseAgent.md index 6f8a4d02..eb8068e3 100644 --- a/thousandeyes-sdk-agents/docs/EnterpriseAgent.md +++ b/thousandeyes-sdk-agents/docs/EnterpriseAgent.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **agent_name** | **str** | Name of the agent. | [optional] **location** | **str** | Location of the agent. | [optional] [readonly] **country_id** | **str** | 2-digit ISO country code | [optional] [readonly] +**coordinates** | [**Coordinates**](Coordinates.md) | | [optional] **enabled** | **bool** | Flag indicating if the agent is enabled. | [optional] **prefix** | **str** | Prefix containing agents public IP address. | [optional] [readonly] **verify_ssl_certificates** | **bool** | Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests. | [optional] [readonly] diff --git a/thousandeyes-sdk-agents/docs/EnterpriseAgentClusterDetail.md b/thousandeyes-sdk-agents/docs/EnterpriseAgentClusterDetail.md index b259ec2f..e2a18249 100644 --- a/thousandeyes-sdk-agents/docs/EnterpriseAgentClusterDetail.md +++ b/thousandeyes-sdk-agents/docs/EnterpriseAgentClusterDetail.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **agent_name** | **str** | Name of the agent. | [optional] **location** | **str** | Location of the agent. | [optional] [readonly] **country_id** | **str** | 2-digit ISO country code | [optional] [readonly] +**coordinates** | [**Coordinates**](Coordinates.md) | | [optional] **enabled** | **bool** | Flag indicating if the agent is enabled. | [optional] **prefix** | **str** | Prefix containing agents public IP address. | [optional] [readonly] **verify_ssl_certificates** | **bool** | Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests. | [optional] [readonly] diff --git a/thousandeyes-sdk-agents/docs/EnterpriseAgentDetail.md b/thousandeyes-sdk-agents/docs/EnterpriseAgentDetail.md index ce522e0b..9d02b43a 100644 --- a/thousandeyes-sdk-agents/docs/EnterpriseAgentDetail.md +++ b/thousandeyes-sdk-agents/docs/EnterpriseAgentDetail.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **agent_name** | **str** | Name of the agent. | [optional] **location** | **str** | Location of the agent. | [optional] [readonly] **country_id** | **str** | 2-digit ISO country code | [optional] [readonly] +**coordinates** | [**Coordinates**](Coordinates.md) | | [optional] **enabled** | **bool** | Flag indicating if the agent is enabled. | [optional] **prefix** | **str** | Prefix containing agents public IP address. | [optional] [readonly] **verify_ssl_certificates** | **bool** | Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests. | [optional] [readonly] diff --git a/thousandeyes-sdk-agents/docs/SimpleAgent.md b/thousandeyes-sdk-agents/docs/SimpleAgent.md index aa4d1304..69afdda7 100644 --- a/thousandeyes-sdk-agents/docs/SimpleAgent.md +++ b/thousandeyes-sdk-agents/docs/SimpleAgent.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **agent_name** | **str** | Name of the agent. | [optional] **location** | **str** | Location of the agent. | [optional] [readonly] **country_id** | **str** | 2-digit ISO country code | [optional] [readonly] +**coordinates** | [**Coordinates**](Coordinates.md) | | [optional] **enabled** | **bool** | Flag indicating if the agent is enabled. | [optional] **prefix** | **str** | Prefix containing agents public IP address. | [optional] [readonly] **verify_ssl_certificates** | **bool** | Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests. | [optional] [readonly] diff --git a/thousandeyes-sdk-agents/docs/SimpleEnterpriseAgent.md b/thousandeyes-sdk-agents/docs/SimpleEnterpriseAgent.md index fe588d5f..2bd882b9 100644 --- a/thousandeyes-sdk-agents/docs/SimpleEnterpriseAgent.md +++ b/thousandeyes-sdk-agents/docs/SimpleEnterpriseAgent.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **agent_name** | **str** | Name of the agent. | [optional] **location** | **str** | Location of the agent. | [optional] [readonly] **country_id** | **str** | 2-digit ISO country code | [optional] [readonly] +**coordinates** | [**Coordinates**](Coordinates.md) | | [optional] **enabled** | **bool** | Flag indicating if the agent is enabled. | [optional] **prefix** | **str** | Prefix containing agents public IP address. | [optional] [readonly] **verify_ssl_certificates** | **bool** | Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests. | [optional] [readonly] diff --git a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/__init__.py b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/__init__.py index c631349f..9b34eaba 100644 --- a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/__init__.py +++ b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/__init__.py @@ -45,6 +45,7 @@ from thousandeyes_sdk.agents.models.cloud_enterprise_agent import CloudEnterpris from thousandeyes_sdk.agents.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType from thousandeyes_sdk.agents.models.cloud_enterprise_agents import CloudEnterpriseAgents from thousandeyes_sdk.agents.models.cluster_member import ClusterMember +from thousandeyes_sdk.agents.models.coordinates import Coordinates from thousandeyes_sdk.agents.models.enterprise_agent import EnterpriseAgent from thousandeyes_sdk.agents.models.enterprise_agent_cluster_detail import EnterpriseAgentClusterDetail from thousandeyes_sdk.agents.models.enterprise_agent_data import EnterpriseAgentData diff --git a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/__init__.py b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/__init__.py index 47c1c0b4..8aa58ad8 100644 --- a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/__init__.py +++ b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/__init__.py @@ -36,6 +36,7 @@ from thousandeyes_sdk.agents.models.cloud_enterprise_agent import CloudEnterpris from thousandeyes_sdk.agents.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType from thousandeyes_sdk.agents.models.cloud_enterprise_agents import CloudEnterpriseAgents from thousandeyes_sdk.agents.models.cluster_member import ClusterMember +from thousandeyes_sdk.agents.models.coordinates import Coordinates from thousandeyes_sdk.agents.models.enterprise_agent import EnterpriseAgent from thousandeyes_sdk.agents.models.enterprise_agent_cluster_detail import EnterpriseAgentClusterDetail from thousandeyes_sdk.agents.models.enterprise_agent_data import EnterpriseAgentData diff --git a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/agent_response.py b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/agent_response.py index 0cb8f1b0..273b8439 100644 --- a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/agent_response.py +++ b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/agent_response.py @@ -19,6 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from thousandeyes_sdk.agents.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType +from thousandeyes_sdk.agents.models.coordinates import Coordinates from typing import Optional, Set from typing_extensions import Self @@ -33,11 +34,12 @@ class AgentResponse(BaseModel): agent_name: Optional[StrictStr] = Field(default=None, description="Name of the agent.", alias="agentName") location: Optional[StrictStr] = Field(default=None, description="Location of the agent.") country_id: Optional[StrictStr] = Field(default=None, description="2-digit ISO country code", alias="countryId") + coordinates: Optional[Coordinates] = None enabled: Optional[StrictBool] = Field(default=None, description="Flag indicating if the agent is enabled.") prefix: Optional[StrictStr] = Field(default=None, description="Prefix containing agents public IP address.") verify_ssl_certificates: Optional[StrictBool] = Field(default=None, description="Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests.", alias="verifySslCertificates") agent_type: CloudEnterpriseAgentType = Field(alias="agentType") - __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "enabled", "prefix", "verifySslCertificates", "agentType"] + __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "coordinates", "enabled", "prefix", "verifySslCertificates", "agentType"] model_config = ConfigDict( populate_by_name=True, @@ -95,6 +97,9 @@ class AgentResponse(BaseModel): exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of coordinates + if self.coordinates: + _dict['coordinates'] = self.coordinates.to_dict() return _dict @classmethod @@ -114,6 +119,7 @@ class AgentResponse(BaseModel): "agentName": obj.get("agentName"), "location": obj.get("location"), "countryId": obj.get("countryId"), + "coordinates": Coordinates.from_dict(obj["coordinates"]) if obj.get("coordinates") is not None else None, "enabled": obj.get("enabled"), "prefix": obj.get("prefix"), "verifySslCertificates": obj.get("verifySslCertificates"), diff --git a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/cloud_agent_detail.py b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/cloud_agent_detail.py index cb2b5de9..cfa4abf4 100644 --- a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/cloud_agent_detail.py +++ b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/cloud_agent_detail.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from thousandeyes_sdk.agents.models.agent_label import AgentLabel +from thousandeyes_sdk.agents.models.coordinates import Coordinates from thousandeyes_sdk.agents.models.self_links import SelfLinks from thousandeyes_sdk.agents.models.simple_test import SimpleTest from typing import Optional, Set @@ -36,6 +37,7 @@ class CloudAgentDetail(BaseModel): agent_name: Optional[StrictStr] = Field(default=None, description="Name of the agent.", alias="agentName") location: Optional[StrictStr] = Field(default=None, description="Location of the agent.") country_id: Optional[StrictStr] = Field(default=None, description="2-digit ISO country code", alias="countryId") + coordinates: Optional[Coordinates] = None enabled: Optional[StrictBool] = Field(default=None, description="Flag indicating if the agent is enabled.") prefix: Optional[StrictStr] = Field(default=None, description="Prefix containing agents public IP address.") verify_ssl_certificates: Optional[StrictBool] = Field(default=None, description="Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests.", alias="verifySslCertificates") @@ -43,7 +45,7 @@ class CloudAgentDetail(BaseModel): tests: Optional[List[SimpleTest]] = Field(default=None, description="List of tests. See `/tests` for more information.") labels: Optional[List[AgentLabel]] = Field(default=None, description="List of labels - see `/labels` for more information.") links: Optional[SelfLinks] = Field(default=None, alias="_links") - __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "enabled", "prefix", "verifySslCertificates", "agentType", "tests", "labels", "_links"] + __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "coordinates", "enabled", "prefix", "verifySslCertificates", "agentType", "tests", "labels", "_links"] @field_validator('agent_type') def agent_type_validate_regular_expression(cls, value): @@ -110,6 +112,9 @@ class CloudAgentDetail(BaseModel): exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of coordinates + if self.coordinates: + _dict['coordinates'] = self.coordinates.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in tests (list) _items = [] if self.tests: @@ -146,6 +151,7 @@ class CloudAgentDetail(BaseModel): "agentName": obj.get("agentName"), "location": obj.get("location"), "countryId": obj.get("countryId"), + "coordinates": Coordinates.from_dict(obj["coordinates"]) if obj.get("coordinates") is not None else None, "enabled": obj.get("enabled"), "prefix": obj.get("prefix"), "verifySslCertificates": obj.get("verifySslCertificates"), diff --git a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/coordinates.py b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/coordinates.py new file mode 100644 index 00000000..7840d465 --- /dev/null +++ b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/coordinates.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Agents API + + ## Overview Manage Cloud and Enterprise Agents available to your account in ThousandEyes. + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class Coordinates(BaseModel): + """ + Geographic coordinates for agent location. + """ # noqa: E501 + latitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The latitude of the agent location in decimal degrees") + longitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The longitude of the agent location in decimal degrees") + __properties: ClassVar[List[str]] = ["latitude", "longitude"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + extra="allow", + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Coordinates from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "latitude", + "longitude", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Coordinates from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "latitude": obj.get("latitude"), + "longitude": obj.get("longitude") + }) + return _obj + + diff --git a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/enterprise_agent.py b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/enterprise_agent.py index 5575c5fc..0856269b 100644 --- a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/enterprise_agent.py +++ b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/enterprise_agent.py @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from thousandeyes_sdk.agents.models.account_group import AccountGroup from thousandeyes_sdk.agents.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType from thousandeyes_sdk.agents.models.cluster_member import ClusterMember +from thousandeyes_sdk.agents.models.coordinates import Coordinates from thousandeyes_sdk.agents.models.enterprise_agent_ipv6_policy import EnterpriseAgentIpv6Policy from thousandeyes_sdk.agents.models.enterprise_agent_state import EnterpriseAgentState from thousandeyes_sdk.agents.models.error_detail import ErrorDetail @@ -42,6 +43,7 @@ class EnterpriseAgent(BaseModel): agent_name: Optional[StrictStr] = Field(default=None, description="Name of the agent.", alias="agentName") location: Optional[StrictStr] = Field(default=None, description="Location of the agent.") country_id: Optional[StrictStr] = Field(default=None, description="2-digit ISO country code", alias="countryId") + coordinates: Optional[Coordinates] = None enabled: Optional[StrictBool] = Field(default=None, description="Flag indicating if the agent is enabled.") prefix: Optional[StrictStr] = Field(default=None, description="Prefix containing agents public IP address.") verify_ssl_certificates: Optional[StrictBool] = Field(default=None, description="Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests.", alias="verifySslCertificates") @@ -60,7 +62,7 @@ class EnterpriseAgent(BaseModel): target_for_tests: Optional[StrictStr] = Field(default=None, description="Test target IP address.", alias="targetForTests") local_resolution_prefixes: Optional[List[StrictStr]] = Field(default=None, description="To perform rDNS lookups for public IP ranges, this field represents the public IP ranges. The range must be in CIDR notation; for example, 10.1.1.0/24. Maximum of 5 prefixes allowed (Enterprise Agents and Enterprise Agent clusters only).", alias="localResolutionPrefixes") interface_ip_mapping: Optional[List[InterfaceIpMapping]] = Field(default=None, alias="interfaceIpMapping") - __properties: ClassVar[List[str]] = ["agentType", "ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "enabled", "prefix", "verifySslCertificates", "testIds", "tests", "clusterMembers", "utilization", "accountGroups", "ipv6Policy", "errorDetails", "hostname", "lastSeen", "agentState", "keepBrowserCache", "createdDate", "targetForTests", "localResolutionPrefixes", "interfaceIpMapping"] + __properties: ClassVar[List[str]] = ["agentType", "ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "coordinates", "enabled", "prefix", "verifySslCertificates", "testIds", "tests", "clusterMembers", "utilization", "accountGroups", "ipv6Policy", "errorDetails", "hostname", "lastSeen", "agentState", "keepBrowserCache", "createdDate", "targetForTests", "localResolutionPrefixes", "interfaceIpMapping"] model_config = ConfigDict( populate_by_name=True, @@ -134,6 +136,9 @@ class EnterpriseAgent(BaseModel): exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of coordinates + if self.coordinates: + _dict['coordinates'] = self.coordinates.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in tests (list) _items = [] if self.tests: @@ -189,6 +194,7 @@ class EnterpriseAgent(BaseModel): "agentName": obj.get("agentName"), "location": obj.get("location"), "countryId": obj.get("countryId"), + "coordinates": Coordinates.from_dict(obj["coordinates"]) if obj.get("coordinates") is not None else None, "enabled": obj.get("enabled"), "prefix": obj.get("prefix"), "verifySslCertificates": obj.get("verifySslCertificates"), diff --git a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/enterprise_agent_cluster_detail.py b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/enterprise_agent_cluster_detail.py index 63b8281a..0c52e5a7 100644 --- a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/enterprise_agent_cluster_detail.py +++ b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/enterprise_agent_cluster_detail.py @@ -23,6 +23,7 @@ from typing_extensions import Annotated from thousandeyes_sdk.agents.models.account_group import AccountGroup from thousandeyes_sdk.agents.models.agent_label import AgentLabel from thousandeyes_sdk.agents.models.cluster_member import ClusterMember +from thousandeyes_sdk.agents.models.coordinates import Coordinates from thousandeyes_sdk.agents.models.enterprise_agent_ipv6_policy import EnterpriseAgentIpv6Policy from thousandeyes_sdk.agents.models.enterprise_agent_state import EnterpriseAgentState from thousandeyes_sdk.agents.models.error_detail import ErrorDetail @@ -44,6 +45,7 @@ class EnterpriseAgentClusterDetail(BaseModel): agent_name: Optional[StrictStr] = Field(default=None, description="Name of the agent.", alias="agentName") location: Optional[StrictStr] = Field(default=None, description="Location of the agent.") country_id: Optional[StrictStr] = Field(default=None, description="2-digit ISO country code", alias="countryId") + coordinates: Optional[Coordinates] = None enabled: Optional[StrictBool] = Field(default=None, description="Flag indicating if the agent is enabled.") prefix: Optional[StrictStr] = Field(default=None, description="Prefix containing agents public IP address.") verify_ssl_certificates: Optional[StrictBool] = Field(default=None, description="Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests.", alias="verifySslCertificates") @@ -66,7 +68,7 @@ class EnterpriseAgentClusterDetail(BaseModel): labels: Optional[List[AgentLabel]] = Field(default=None, description="List of labels. See `/labels` for more information.") agent_type: Annotated[str, Field(strict=True)] = Field(description="Enterprise Cluster agent type.", alias="agentType") links: Optional[SelfLinks] = Field(default=None, alias="_links") - __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "enabled", "prefix", "verifySslCertificates", "testIds", "tests", "clusterMembers", "utilization", "accountGroups", "ipv6Policy", "errorDetails", "hostname", "lastSeen", "agentState", "keepBrowserCache", "createdDate", "targetForTests", "localResolutionPrefixes", "interfaceIpMapping", "notificationRules", "labels", "agentType", "_links"] + __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "coordinates", "enabled", "prefix", "verifySslCertificates", "testIds", "tests", "clusterMembers", "utilization", "accountGroups", "ipv6Policy", "errorDetails", "hostname", "lastSeen", "agentState", "keepBrowserCache", "createdDate", "targetForTests", "localResolutionPrefixes", "interfaceIpMapping", "notificationRules", "labels", "agentType", "_links"] @field_validator('agent_type') def agent_type_validate_regular_expression(cls, value): @@ -149,6 +151,9 @@ class EnterpriseAgentClusterDetail(BaseModel): exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of coordinates + if self.coordinates: + _dict['coordinates'] = self.coordinates.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in tests (list) _items = [] if self.tests: @@ -220,6 +225,7 @@ class EnterpriseAgentClusterDetail(BaseModel): "agentName": obj.get("agentName"), "location": obj.get("location"), "countryId": obj.get("countryId"), + "coordinates": Coordinates.from_dict(obj["coordinates"]) if obj.get("coordinates") is not None else None, "enabled": obj.get("enabled"), "prefix": obj.get("prefix"), "verifySslCertificates": obj.get("verifySslCertificates"), diff --git a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/enterprise_agent_detail.py b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/enterprise_agent_detail.py index 9240d731..e7596e76 100644 --- a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/enterprise_agent_detail.py +++ b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/enterprise_agent_detail.py @@ -23,6 +23,7 @@ from typing_extensions import Annotated from thousandeyes_sdk.agents.models.account_group import AccountGroup from thousandeyes_sdk.agents.models.agent_label import AgentLabel from thousandeyes_sdk.agents.models.cluster_member import ClusterMember +from thousandeyes_sdk.agents.models.coordinates import Coordinates from thousandeyes_sdk.agents.models.enterprise_agent_ipv6_policy import EnterpriseAgentIpv6Policy from thousandeyes_sdk.agents.models.enterprise_agent_state import EnterpriseAgentState from thousandeyes_sdk.agents.models.error_detail import ErrorDetail @@ -44,6 +45,7 @@ class EnterpriseAgentDetail(BaseModel): agent_name: Optional[StrictStr] = Field(default=None, description="Name of the agent.", alias="agentName") location: Optional[StrictStr] = Field(default=None, description="Location of the agent.") country_id: Optional[StrictStr] = Field(default=None, description="2-digit ISO country code", alias="countryId") + coordinates: Optional[Coordinates] = None enabled: Optional[StrictBool] = Field(default=None, description="Flag indicating if the agent is enabled.") prefix: Optional[StrictStr] = Field(default=None, description="Prefix containing agents public IP address.") verify_ssl_certificates: Optional[StrictBool] = Field(default=None, description="Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests.", alias="verifySslCertificates") @@ -66,7 +68,7 @@ class EnterpriseAgentDetail(BaseModel): labels: Optional[List[AgentLabel]] = Field(default=None, description="List of labels. See `/labels` for more information.") agent_type: Annotated[str, Field(strict=True)] = Field(description="Enterprise agent type.", alias="agentType") links: Optional[SelfLinks] = Field(default=None, alias="_links") - __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "enabled", "prefix", "verifySslCertificates", "testIds", "tests", "clusterMembers", "utilization", "accountGroups", "ipv6Policy", "errorDetails", "hostname", "lastSeen", "agentState", "keepBrowserCache", "createdDate", "targetForTests", "localResolutionPrefixes", "interfaceIpMapping", "notificationRules", "labels", "agentType", "_links"] + __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "coordinates", "enabled", "prefix", "verifySslCertificates", "testIds", "tests", "clusterMembers", "utilization", "accountGroups", "ipv6Policy", "errorDetails", "hostname", "lastSeen", "agentState", "keepBrowserCache", "createdDate", "targetForTests", "localResolutionPrefixes", "interfaceIpMapping", "notificationRules", "labels", "agentType", "_links"] @field_validator('agent_type') def agent_type_validate_regular_expression(cls, value): @@ -149,6 +151,9 @@ class EnterpriseAgentDetail(BaseModel): exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of coordinates + if self.coordinates: + _dict['coordinates'] = self.coordinates.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in tests (list) _items = [] if self.tests: @@ -220,6 +225,7 @@ class EnterpriseAgentDetail(BaseModel): "agentName": obj.get("agentName"), "location": obj.get("location"), "countryId": obj.get("countryId"), + "coordinates": Coordinates.from_dict(obj["coordinates"]) if obj.get("coordinates") is not None else None, "enabled": obj.get("enabled"), "prefix": obj.get("prefix"), "verifySslCertificates": obj.get("verifySslCertificates"), diff --git a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/simple_agent.py b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/simple_agent.py index 12ba0f26..393f8069 100644 --- a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/simple_agent.py +++ b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/simple_agent.py @@ -18,6 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.agents.models.coordinates import Coordinates from typing import Optional, Set from typing_extensions import Self @@ -32,10 +33,11 @@ class SimpleAgent(BaseModel): agent_name: Optional[StrictStr] = Field(default=None, description="Name of the agent.", alias="agentName") location: Optional[StrictStr] = Field(default=None, description="Location of the agent.") country_id: Optional[StrictStr] = Field(default=None, description="2-digit ISO country code", alias="countryId") + coordinates: Optional[Coordinates] = None enabled: Optional[StrictBool] = Field(default=None, description="Flag indicating if the agent is enabled.") prefix: Optional[StrictStr] = Field(default=None, description="Prefix containing agents public IP address.") verify_ssl_certificates: Optional[StrictBool] = Field(default=None, description="Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests.", alias="verifySslCertificates") - __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "enabled", "prefix", "verifySslCertificates"] + __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "coordinates", "enabled", "prefix", "verifySslCertificates"] model_config = ConfigDict( populate_by_name=True, @@ -93,6 +95,9 @@ class SimpleAgent(BaseModel): exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of coordinates + if self.coordinates: + _dict['coordinates'] = self.coordinates.to_dict() return _dict @classmethod @@ -112,6 +117,7 @@ class SimpleAgent(BaseModel): "agentName": obj.get("agentName"), "location": obj.get("location"), "countryId": obj.get("countryId"), + "coordinates": Coordinates.from_dict(obj["coordinates"]) if obj.get("coordinates") is not None else None, "enabled": obj.get("enabled"), "prefix": obj.get("prefix"), "verifySslCertificates": obj.get("verifySslCertificates") diff --git a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/simple_enterprise_agent.py b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/simple_enterprise_agent.py index 4e94b1ec..7fbe5643 100644 --- a/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/simple_enterprise_agent.py +++ b/thousandeyes-sdk-agents/src/thousandeyes_sdk/agents/models/simple_enterprise_agent.py @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, Strict from typing import Any, ClassVar, Dict, List, Optional from thousandeyes_sdk.agents.models.account_group import AccountGroup from thousandeyes_sdk.agents.models.cluster_member import ClusterMember +from thousandeyes_sdk.agents.models.coordinates import Coordinates from thousandeyes_sdk.agents.models.enterprise_agent_ipv6_policy import EnterpriseAgentIpv6Policy from thousandeyes_sdk.agents.models.enterprise_agent_state import EnterpriseAgentState from thousandeyes_sdk.agents.models.error_detail import ErrorDetail @@ -40,6 +41,7 @@ class SimpleEnterpriseAgent(BaseModel): agent_name: Optional[StrictStr] = Field(default=None, description="Name of the agent.", alias="agentName") location: Optional[StrictStr] = Field(default=None, description="Location of the agent.") country_id: Optional[StrictStr] = Field(default=None, description="2-digit ISO country code", alias="countryId") + coordinates: Optional[Coordinates] = None enabled: Optional[StrictBool] = Field(default=None, description="Flag indicating if the agent is enabled.") prefix: Optional[StrictStr] = Field(default=None, description="Prefix containing agents public IP address.") verify_ssl_certificates: Optional[StrictBool] = Field(default=None, description="Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests.", alias="verifySslCertificates") @@ -58,7 +60,7 @@ class SimpleEnterpriseAgent(BaseModel): target_for_tests: Optional[StrictStr] = Field(default=None, description="Test target IP address.", alias="targetForTests") local_resolution_prefixes: Optional[List[StrictStr]] = Field(default=None, description="To perform rDNS lookups for public IP ranges, this field represents the public IP ranges. The range must be in CIDR notation; for example, 10.1.1.0/24. Maximum of 5 prefixes allowed (Enterprise Agents and Enterprise Agent clusters only).", alias="localResolutionPrefixes") interface_ip_mapping: Optional[List[InterfaceIpMapping]] = Field(default=None, alias="interfaceIpMapping") - __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "enabled", "prefix", "verifySslCertificates", "testIds", "tests", "clusterMembers", "utilization", "accountGroups", "ipv6Policy", "errorDetails", "hostname", "lastSeen", "agentState", "keepBrowserCache", "createdDate", "targetForTests", "localResolutionPrefixes", "interfaceIpMapping"] + __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "coordinates", "enabled", "prefix", "verifySslCertificates", "testIds", "tests", "clusterMembers", "utilization", "accountGroups", "ipv6Policy", "errorDetails", "hostname", "lastSeen", "agentState", "keepBrowserCache", "createdDate", "targetForTests", "localResolutionPrefixes", "interfaceIpMapping"] model_config = ConfigDict( populate_by_name=True, @@ -132,6 +134,9 @@ class SimpleEnterpriseAgent(BaseModel): exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of coordinates + if self.coordinates: + _dict['coordinates'] = self.coordinates.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in tests (list) _items = [] if self.tests: @@ -186,6 +191,7 @@ class SimpleEnterpriseAgent(BaseModel): "agentName": obj.get("agentName"), "location": obj.get("location"), "countryId": obj.get("countryId"), + "coordinates": Coordinates.from_dict(obj["coordinates"]) if obj.get("coordinates") is not None else None, "enabled": obj.get("enabled"), "prefix": obj.get("prefix"), "verifySslCertificates": obj.get("verifySslCertificates"), diff --git a/thousandeyes-sdk-agents/test/test_cloud_and_enterprise_agent_notification_rules_api.py b/thousandeyes-sdk-agents/test/test_cloud_and_enterprise_agent_notification_rules_api.py index 482ffd94..38f00903 100644 --- a/thousandeyes-sdk-agents/test/test_cloud_and_enterprise_agent_notification_rules_api.py +++ b/thousandeyes-sdk-agents/test/test_cloud_and_enterprise_agent_notification_rules_api.py @@ -99,6 +99,10 @@ class TestCloudAndEnterpriseAgentNotificationRulesApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -111,6 +115,10 @@ class TestCloudAndEnterpriseAgentNotificationRulesApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-agents/test/test_cloud_and_enterprise_agents_api.py b/thousandeyes-sdk-agents/test/test_cloud_and_enterprise_agents_api.py index b8b580d6..b2ef76e2 100644 --- a/thousandeyes-sdk-agents/test/test_cloud_and_enterprise_agents_api.py +++ b/thousandeyes-sdk-agents/test/test_cloud_and_enterprise_agents_api.py @@ -52,6 +52,10 @@ class TestCloudAndEnterpriseAgentsApi(unittest.TestCase): } }, "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "countryId" : "US", "enabled" : true, @@ -158,6 +162,10 @@ class TestCloudAndEnterpriseAgentsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -170,6 +178,10 @@ class TestCloudAndEnterpriseAgentsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -219,6 +231,10 @@ class TestCloudAndEnterpriseAgentsApi(unittest.TestCase): } }, "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "countryId" : "US", "enabled" : true, diff --git a/thousandeyes-sdk-agents/test/test_enterprise_agent_cluster_api.py b/thousandeyes-sdk-agents/test/test_enterprise_agent_cluster_api.py index 85c61369..24aa109f 100644 --- a/thousandeyes-sdk-agents/test/test_enterprise_agent_cluster_api.py +++ b/thousandeyes-sdk-agents/test/test_enterprise_agent_cluster_api.py @@ -56,6 +56,10 @@ class TestEnterpriseAgentClusterApi(unittest.TestCase): } }, "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "countryId" : "US", "enabled" : true, @@ -170,6 +174,10 @@ class TestEnterpriseAgentClusterApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -182,6 +190,10 @@ class TestEnterpriseAgentClusterApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-agents/test/test_tests_assignment_on_agents_api.py b/thousandeyes-sdk-agents/test/test_tests_assignment_on_agents_api.py index 5d9796cc..11c2de53 100644 --- a/thousandeyes-sdk-agents/test/test_tests_assignment_on_agents_api.py +++ b/thousandeyes-sdk-agents/test/test_tests_assignment_on_agents_api.py @@ -56,6 +56,10 @@ class TestTestsAssignmentOnAgentsApi(unittest.TestCase): } }, "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "countryId" : "US", "enabled" : true, @@ -168,6 +172,10 @@ class TestTestsAssignmentOnAgentsApi(unittest.TestCase): } }, "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "countryId" : "US", "enabled" : true, @@ -280,6 +288,10 @@ class TestTestsAssignmentOnAgentsApi(unittest.TestCase): } }, "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "countryId" : "US", "enabled" : true, diff --git a/thousandeyes-sdk-alerts/README.md b/thousandeyes-sdk-alerts/README.md index ad593ed8..05dbb78a 100644 --- a/thousandeyes-sdk-alerts/README.md +++ b/thousandeyes-sdk-alerts/README.md @@ -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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-bgp-monitors/README.md b/thousandeyes-sdk-bgp-monitors/README.md index dad0c98c..d7c0431f 100644 --- a/thousandeyes-sdk-bgp-monitors/README.md +++ b/thousandeyes-sdk-bgp-monitors/README.md @@ -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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-credentials/README.md b/thousandeyes-sdk-credentials/README.md index 119e0ad9..d1a239d7 100644 --- a/thousandeyes-sdk-credentials/README.md +++ b/thousandeyes-sdk-credentials/README.md @@ -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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-dashboards/README.md b/thousandeyes-sdk-dashboards/README.md index d07f39dd..c2ce9388 100644 --- a/thousandeyes-sdk-dashboards/README.md +++ b/thousandeyes-sdk-dashboards/README.md @@ -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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-emulation/README.md b/thousandeyes-sdk-emulation/README.md index 45e56b6e..d932c53b 100644 --- a/thousandeyes-sdk-emulation/README.md +++ b/thousandeyes-sdk-emulation/README.md @@ -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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-endpoint-agents/README.md b/thousandeyes-sdk-endpoint-agents/README.md index 3f992908..1954cc65 100644 --- a/thousandeyes-sdk-endpoint-agents/README.md +++ b/thousandeyes-sdk-endpoint-agents/README.md @@ -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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-endpoint-instant-tests/.openapi-generator/FILES b/thousandeyes-sdk-endpoint-instant-tests/.openapi-generator/FILES index e224303b..b2b9a7f2 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/.openapi-generator/FILES +++ b/thousandeyes-sdk-endpoint-instant-tests/.openapi-generator/FILES @@ -11,7 +11,7 @@ docs/EndpointHttpServerBaseTest.md docs/EndpointHttpServerInstantTest.md docs/EndpointHttpServerTest.md docs/EndpointInstantTest.md -docs/EndpointIpVersionTemplate.md +docs/EndpointIpVersionIn.md docs/EndpointRunScheduledInstantTestResult.md docs/EndpointScheduledTestType.md docs/EndpointSpecificAgentsSelectorConfig.md @@ -49,7 +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_ip_version_in.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 diff --git a/thousandeyes-sdk-endpoint-instant-tests/README.md b/thousandeyes-sdk-endpoint-instant-tests/README.md index 57df93f9..81e32968 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/README.md +++ b/thousandeyes-sdk-endpoint-instant-tests/README.md @@ -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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator @@ -121,7 +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) + - [EndpointIpVersionIn](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointIpVersionIn.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) diff --git a/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointAgentToServerInstantTest.md b/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointAgentToServerInstantTest.md index f212144c..e85c6b41 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointAgentToServerInstantTest.md +++ b/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointAgentToServerInstantTest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **endpoint_agent_labels** | **List[str]** | List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`. | [optional] **max_machines** | **int** | Maximum number of agents which can execute the test. | [optional] [default to 25] **test_name** | **str** | Name of the test. | +**ip_version** | [**EndpointIpVersionIn**](EndpointIpVersionIn.md) | | [optional] **server_name** | **str** | A server address without a protocol or IP address. **Deprecated, use `server` instead**. | [optional] **server** | **str** | Target domain name or IP address. | **port** | **int** | Port number. | [optional] [default to 443] diff --git a/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointAgentToServerTest.md b/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointAgentToServerTest.md index 74a9d405..a37a0ccc 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointAgentToServerTest.md +++ b/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointAgentToServerTest.md @@ -18,7 +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] +**ip_version** | **str** | For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT. | [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] diff --git a/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointHttpServerInstantTest.md b/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointHttpServerInstantTest.md index cc4b1cc1..9fe705bb 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointHttpServerInstantTest.md +++ b/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointHttpServerInstantTest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **endpoint_agent_labels** | **List[str]** | List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`. | [optional] **max_machines** | **int** | Maximum number of agents which can execute the test. | [optional] [default to 25] **test_name** | **str** | Name of the test. | +**ip_version** | [**EndpointIpVersionIn**](EndpointIpVersionIn.md) | | [optional] **auth_type** | [**EndpointTestAuthType**](EndpointTestAuthType.md) | | [optional] **has_path_trace_in_session** | **bool** | Enables \"in session\" path trace. When enabled, this option initiates a TCP session with the target server and sends path trace packets within the established TCP session. | [optional] **http_time_limit** | **int** | Maximum amount of time in milliseconds the agents wait before a request times out. | [optional] [default to 5000] diff --git a/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointHttpServerTest.md b/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointHttpServerTest.md index ee56d7db..0a87d5d8 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointHttpServerTest.md +++ b/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointHttpServerTest.md @@ -18,7 +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] +**ip_version** | **str** | For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT. | [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] diff --git a/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointInstantTest.md b/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointInstantTest.md index 151d3a2b..381a5758 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointInstantTest.md +++ b/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointInstantTest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **endpoint_agent_labels** | **List[str]** | List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`. | [optional] **max_machines** | **int** | Maximum number of agents which can execute the test. | [optional] [default to 25] **test_name** | **str** | Name of the test. | +**ip_version** | [**EndpointIpVersionIn**](EndpointIpVersionIn.md) | | [optional] ## Example diff --git a/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointIpVersionTemplate.md b/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointIpVersionIn.md similarity index 77% rename from thousandeyes-sdk-endpoint-instant-tests/docs/EndpointIpVersionTemplate.md rename to thousandeyes-sdk-endpoint-instant-tests/docs/EndpointIpVersionIn.md index bd754245..37a232a6 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointIpVersionTemplate.md +++ b/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointIpVersionIn.md @@ -1,6 +1,6 @@ -# EndpointIpVersionTemplate +# EndpointIpVersionIn -IP version the test should use for network tests. +For configuring network tests, the IP version of the test. ## Properties diff --git a/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointTest.md b/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointTest.md index b2e5b775..40b37b0c 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointTest.md +++ b/thousandeyes-sdk-endpoint-instant-tests/docs/EndpointTest.md @@ -18,7 +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] +**ip_version** | **str** | For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT. | [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] diff --git a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/__init__.py b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/__init__.py index bfac7485..1747f334 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/__init__.py +++ b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/__init__.py @@ -29,7 +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_ip_version_in import EndpointIpVersionIn 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 diff --git a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/__init__.py b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/__init__.py index 864d8bb5..ad728931 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/__init__.py +++ b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/__init__.py @@ -22,7 +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_ip_version_in import EndpointIpVersionIn 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 diff --git a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_agent_to_server_instant_test.py b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_agent_to_server_instant_test.py index e48d63e5..50317069 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_agent_to_server_instant_test.py +++ b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_agent_to_server_instant_test.py @@ -18,6 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_ip_version_in import EndpointIpVersionIn from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_test_agent_selector_type import EndpointTestAgentSelectorType from typing import Optional, Set from typing_extensions import Self @@ -31,10 +32,11 @@ class EndpointAgentToServerInstantTest(BaseModel): endpoint_agent_labels: Optional[List[StrictStr]] = Field(default=None, description="List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`.", alias="endpointAgentLabels") max_machines: Optional[StrictInt] = Field(default=25, description="Maximum number of agents which can execute the test.", alias="maxMachines") test_name: StrictStr = Field(description="Name of the test.", alias="testName") + ip_version: Optional[EndpointIpVersionIn] = Field(default=None, alias="ipVersion") server_name: Optional[StrictStr] = Field(default=None, description="A server address without a protocol or IP address. **Deprecated, use `server` instead**.", alias="serverName") server: StrictStr = Field(description="Target domain name or IP address.") port: Optional[StrictInt] = Field(default=443, description="Port number.") - __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "serverName", "server", "port"] + __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "ipVersion", "serverName", "server", "port"] model_config = ConfigDict( populate_by_name=True, @@ -93,6 +95,7 @@ class EndpointAgentToServerInstantTest(BaseModel): "endpointAgentLabels": obj.get("endpointAgentLabels"), "maxMachines": obj.get("maxMachines") if obj.get("maxMachines") is not None else 25, "testName": obj.get("testName"), + "ipVersion": obj.get("ipVersion"), "serverName": obj.get("serverName"), "server": obj.get("server"), "port": obj.get("port") if obj.get("port") is not None else 443 diff --git a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_agent_to_server_test.py b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_agent_to_server_test.py index ee0ec3d4..462c5166 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_agent_to_server_test.py +++ b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_agent_to_server_test.py @@ -21,7 +21,6 @@ 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 @@ -47,7 +46,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") + ip_version: Optional[StrictStr] = Field(default=None, description="For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT.", 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") diff --git a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_http_server_instant_test.py b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_http_server_instant_test.py index 233c096d..c5c20a03 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_http_server_instant_test.py +++ b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_http_server_instant_test.py @@ -18,6 +18,7 @@ import json 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_ip_version_in import EndpointIpVersionIn from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_test_agent_selector_type import EndpointTestAgentSelectorType from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_test_auth_type import EndpointTestAuthType from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_test_protocol import EndpointTestProtocol @@ -35,6 +36,7 @@ class EndpointHttpServerInstantTest(BaseModel): endpoint_agent_labels: Optional[List[StrictStr]] = Field(default=None, description="List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`.", alias="endpointAgentLabels") max_machines: Optional[StrictInt] = Field(default=25, description="Maximum number of agents which can execute the test.", alias="maxMachines") test_name: StrictStr = Field(description="Name of the test.", alias="testName") + ip_version: Optional[EndpointIpVersionIn] = Field(default=None, alias="ipVersion") auth_type: Optional[EndpointTestAuthType] = Field(default=None, alias="authType") has_path_trace_in_session: Optional[StrictBool] = Field(default=None, description="Enables \"in session\" path trace. When enabled, this option initiates a TCP session with the target server and sends path trace packets within the established TCP session.", alias="hasPathTraceInSession") http_time_limit: Optional[StrictInt] = Field(default=5000, description="Maximum amount of time in milliseconds the agents wait before a request times out.", alias="httpTimeLimit") @@ -49,7 +51,7 @@ class EndpointHttpServerInstantTest(BaseModel): 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") target_response_time: Optional[StrictInt] = Field(default=1000, description="Response time target in milliseconds. Affects the colors of agents and legends on the view page. The value is compared with actual response time in order to determine the color scale (from green to red).", alias="targetResponseTime") password: Optional[StrictStr] = Field(default=None, description="Password for Basic/NTLM authentication.") - __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "authType", "hasPathTraceInSession", "httpTimeLimit", "protocol", "username", "sslVersionId", "tcpProbeMode", "verifyCertificate", "url", "hasPing", "hasTraceroute", "networkMeasurements", "targetResponseTime", "password"] + __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "ipVersion", "authType", "hasPathTraceInSession", "httpTimeLimit", "protocol", "username", "sslVersionId", "tcpProbeMode", "verifyCertificate", "url", "hasPing", "hasTraceroute", "networkMeasurements", "targetResponseTime", "password"] model_config = ConfigDict( populate_by_name=True, @@ -108,6 +110,7 @@ class EndpointHttpServerInstantTest(BaseModel): "endpointAgentLabels": obj.get("endpointAgentLabels"), "maxMachines": obj.get("maxMachines") if obj.get("maxMachines") is not None else 25, "testName": obj.get("testName"), + "ipVersion": obj.get("ipVersion"), "authType": obj.get("authType"), "hasPathTraceInSession": obj.get("hasPathTraceInSession"), "httpTimeLimit": obj.get("httpTimeLimit") if obj.get("httpTimeLimit") is not None else 5000, diff --git a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_http_server_test.py b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_http_server_test.py index 5a22f2f3..ba62fe30 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_http_server_test.py +++ b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_http_server_test.py @@ -21,7 +21,6 @@ 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 @@ -49,7 +48,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") + ip_version: Optional[StrictStr] = Field(default=None, description="For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT.", 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") diff --git a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_instant_test.py b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_instant_test.py index 61bbf054..42676297 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_instant_test.py +++ b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_instant_test.py @@ -18,6 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_ip_version_in import EndpointIpVersionIn from thousandeyes_sdk.endpoint_instant_tests.models.endpoint_test_agent_selector_type import EndpointTestAgentSelectorType from typing import Optional, Set from typing_extensions import Self @@ -31,7 +32,8 @@ class EndpointInstantTest(BaseModel): endpoint_agent_labels: Optional[List[StrictStr]] = Field(default=None, description="List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`.", alias="endpointAgentLabels") max_machines: Optional[StrictInt] = Field(default=25, description="Maximum number of agents which can execute the test.", alias="maxMachines") test_name: StrictStr = Field(description="Name of the test.", alias="testName") - __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName"] + ip_version: Optional[EndpointIpVersionIn] = Field(default=None, alias="ipVersion") + __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "ipVersion"] model_config = ConfigDict( populate_by_name=True, @@ -89,7 +91,8 @@ class EndpointInstantTest(BaseModel): "agents": obj.get("agents"), "endpointAgentLabels": obj.get("endpointAgentLabels"), "maxMachines": obj.get("maxMachines") if obj.get("maxMachines") is not None else 25, - "testName": obj.get("testName") + "testName": obj.get("testName"), + "ipVersion": obj.get("ipVersion") }) return _obj diff --git a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_ip_version_template.py b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_ip_version_in.py similarity index 89% rename from thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_ip_version_template.py rename to thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_ip_version_in.py index 6928970c..5d39e213 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_ip_version_template.py +++ b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_ip_version_in.py @@ -17,9 +17,9 @@ from enum import Enum from typing_extensions import Self -class EndpointIpVersionTemplate(str, Enum): +class EndpointIpVersionIn(str, Enum): """ - IP version the test should use for network tests. + For configuring network tests, the IP version of the test. """ """ @@ -33,7 +33,7 @@ class EndpointIpVersionTemplate(str, Enum): @classmethod def from_json(cls, json_str: str) -> Self: - """Create an instance of EndpointIpVersionTemplate from a JSON string""" + """Create an instance of EndpointIpVersionIn from a JSON string""" return cls(json.loads(json_str)) @classmethod diff --git a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_test.py b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_test.py index 4a110e12..972ac437 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_test.py +++ b/thousandeyes-sdk-endpoint-instant-tests/src/thousandeyes_sdk/endpoint_instant_tests/models/endpoint_test.py @@ -20,7 +20,6 @@ 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 @@ -47,7 +46,7 @@ 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") + ip_version: Optional[StrictStr] = Field(default=None, description="For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT.", 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") diff --git a/thousandeyes-sdk-endpoint-instant-tests/test/test_agent_to_server_endpoint_instant_scheduled_tests_api.py b/thousandeyes-sdk-endpoint-instant-tests/test/test_agent_to_server_endpoint_instant_scheduled_tests_api.py index 27c8e6a4..e380a2f5 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/test/test_agent_to_server_endpoint_instant_scheduled_tests_api.py +++ b/thousandeyes-sdk-endpoint-instant-tests/test/test_agent_to_server_endpoint_instant_scheduled_tests_api.py @@ -33,6 +33,7 @@ class TestAgentToServerEndpointInstantScheduledTestsApi(unittest.TestCase): request_body_json = """ { "server" : "www.example.com", + "ipVersion" : "V4_ONLY", "port" : 443, "agentSelectorType" : "all-agents", "maxMachines" : 25, diff --git a/thousandeyes-sdk-endpoint-instant-tests/test/test_http_server_endpoint_instant_scheduled_tests_api.py b/thousandeyes-sdk-endpoint-instant-tests/test/test_http_server_endpoint_instant_scheduled_tests_api.py index 674b12a6..55355059 100644 --- a/thousandeyes-sdk-endpoint-instant-tests/test/test_http_server_endpoint_instant_scheduled_tests_api.py +++ b/thousandeyes-sdk-endpoint-instant-tests/test/test_http_server_endpoint_instant_scheduled_tests_api.py @@ -44,6 +44,7 @@ class TestHTTPServerEndpointInstantScheduledTestsApi(unittest.TestCase): "agents" : [ "0a3b9998-dc3a-4ff2-b50d-ac4a7cd986e1", "66eec0f1-72b4-4755-aa83-3aed61d17f3c" ], "protocol" : "icmp", "password" : "password", + "ipVersion" : "V4_ONLY", "hasTraceroute" : true, "targetResponseTime" : 1000, "authType" : "none", diff --git a/thousandeyes-sdk-endpoint-labels/README.md b/thousandeyes-sdk-endpoint-labels/README.md index 396b004b..0e879e90 100644 --- a/thousandeyes-sdk-endpoint-labels/README.md +++ b/thousandeyes-sdk-endpoint-labels/README.md @@ -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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-endpoint-test-results/.openapi-generator/FILES b/thousandeyes-sdk-endpoint-test-results/.openapi-generator/FILES index 6b24f86b..004e8739 100644 --- a/thousandeyes-sdk-endpoint-test-results/.openapi-generator/FILES +++ b/thousandeyes-sdk-endpoint-test-results/.openapi-generator/FILES @@ -21,7 +21,6 @@ docs/EndpointBrowser.md docs/EndpointHttpDataPointScore.md docs/EndpointHttpServerBaseTest.md docs/EndpointHttpServerTest.md -docs/EndpointIpVersionTemplate.md docs/EndpointNetworkTopologyResultRequest.md docs/EndpointNetworkTopologyResultRequestFilter.md docs/EndpointNetworkTopologyThresholdFilter.md @@ -192,7 +191,6 @@ 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_network_topology_threshold_filter.py diff --git a/thousandeyes-sdk-endpoint-test-results/README.md b/thousandeyes-sdk-endpoint-test-results/README.md index 2d066146..425275a9 100644 --- a/thousandeyes-sdk-endpoint-test-results/README.md +++ b/thousandeyes-sdk-endpoint-test-results/README.md @@ -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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator @@ -142,7 +142,6 @@ 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) - [EndpointNetworkTopologyThresholdFilter](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-test-results/docs/EndpointNetworkTopologyThresholdFilter.md) diff --git a/thousandeyes-sdk-endpoint-test-results/docs/DynamicTest.md b/thousandeyes-sdk-endpoint-test-results/docs/DynamicTest.md index 01a09dff..10c7acb7 100644 --- a/thousandeyes-sdk-endpoint-test-results/docs/DynamicTest.md +++ b/thousandeyes-sdk-endpoint-test-results/docs/DynamicTest.md @@ -19,7 +19,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] +**ip_version** | **str** | For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT. | [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] diff --git a/thousandeyes-sdk-endpoint-test-results/docs/EndpointAgentToServerTest.md b/thousandeyes-sdk-endpoint-test-results/docs/EndpointAgentToServerTest.md index 5739e0bf..04d5f2b2 100644 --- a/thousandeyes-sdk-endpoint-test-results/docs/EndpointAgentToServerTest.md +++ b/thousandeyes-sdk-endpoint-test-results/docs/EndpointAgentToServerTest.md @@ -18,7 +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] +**ip_version** | **str** | For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT. | [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] diff --git a/thousandeyes-sdk-endpoint-test-results/docs/EndpointHttpServerTest.md b/thousandeyes-sdk-endpoint-test-results/docs/EndpointHttpServerTest.md index 048a3055..cc0bea84 100644 --- a/thousandeyes-sdk-endpoint-test-results/docs/EndpointHttpServerTest.md +++ b/thousandeyes-sdk-endpoint-test-results/docs/EndpointHttpServerTest.md @@ -18,7 +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] +**ip_version** | **str** | For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT. | [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] diff --git a/thousandeyes-sdk-endpoint-test-results/docs/EndpointIpVersionTemplate.md b/thousandeyes-sdk-endpoint-test-results/docs/EndpointIpVersionTemplate.md deleted file mode 100644 index bd754245..00000000 --- a/thousandeyes-sdk-endpoint-test-results/docs/EndpointIpVersionTemplate.md +++ /dev/null @@ -1,12 +0,0 @@ -# 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) - - diff --git a/thousandeyes-sdk-endpoint-test-results/docs/EndpointScheduledTest.md b/thousandeyes-sdk-endpoint-test-results/docs/EndpointScheduledTest.md index 5b6741de..2ee63047 100644 --- a/thousandeyes-sdk-endpoint-test-results/docs/EndpointScheduledTest.md +++ b/thousandeyes-sdk-endpoint-test-results/docs/EndpointScheduledTest.md @@ -18,7 +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] +**ip_version** | **str** | For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT. | [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] diff --git a/thousandeyes-sdk-endpoint-test-results/docs/EndpointTest.md b/thousandeyes-sdk-endpoint-test-results/docs/EndpointTest.md index c8baf9e2..e5b2631d 100644 --- a/thousandeyes-sdk-endpoint-test-results/docs/EndpointTest.md +++ b/thousandeyes-sdk-endpoint-test-results/docs/EndpointTest.md @@ -18,7 +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] +**ip_version** | **str** | For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT. | [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] diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/__init__.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/__init__.py index ba656dab..692df1d4 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/__init__.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/__init__.py @@ -42,7 +42,6 @@ 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_network_topology_threshold_filter import EndpointNetworkTopologyThresholdFilter diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/__init__.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/__init__.py index 182c27e6..fb020255 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/__init__.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/__init__.py @@ -33,7 +33,6 @@ 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_network_topology_threshold_filter import EndpointNetworkTopologyThresholdFilter diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/dynamic_test.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/dynamic_test.py index c980f855..f61d2e96 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/dynamic_test.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/dynamic_test.py @@ -21,7 +21,6 @@ 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 @@ -47,7 +46,7 @@ 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") + ip_version: Optional[StrictStr] = Field(default=None, description="For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT.", 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") diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_agent_to_server_test.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_agent_to_server_test.py index 25662f5b..63b9e867 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_agent_to_server_test.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_agent_to_server_test.py @@ -21,7 +21,6 @@ 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 @@ -47,7 +46,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") + ip_version: Optional[StrictStr] = Field(default=None, description="For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT.", 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") diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_http_server_test.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_http_server_test.py index 7201585a..a1d11016 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_http_server_test.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_http_server_test.py @@ -21,7 +21,6 @@ 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 @@ -49,7 +48,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") + ip_version: Optional[StrictStr] = Field(default=None, description="For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT.", 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") diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_ip_version_template.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_ip_version_template.py deleted file mode 100644 index 4dce3e89..00000000 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_ip_version_template.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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 - diff --git a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_test.py b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_test.py index 8c9a7814..ffd5e1b0 100644 --- a/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_test.py +++ b/thousandeyes-sdk-endpoint-test-results/src/thousandeyes_sdk/endpoint_test_results/models/endpoint_test.py @@ -20,7 +20,6 @@ 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 @@ -47,7 +46,7 @@ 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") + ip_version: Optional[StrictStr] = Field(default=None, description="For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT.", 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") diff --git a/thousandeyes-sdk-endpoint-tests/.openapi-generator/FILES b/thousandeyes-sdk-endpoint-tests/.openapi-generator/FILES index 4f745ad8..a92738b6 100644 --- a/thousandeyes-sdk-endpoint-tests/.openapi-generator/FILES +++ b/thousandeyes-sdk-endpoint-tests/.openapi-generator/FILES @@ -23,7 +23,7 @@ docs/EndpointHttpServerTestRequest.md docs/EndpointHttpServerTests.md docs/EndpointHttpTestUpdate.md docs/EndpointInstantTest.md -docs/EndpointIpVersionTemplate.md +docs/EndpointIpVersionIn.md docs/EndpointNetworkTestUpdate.md docs/EndpointScheduledTestType.md docs/EndpointScheduledTestsApi.md @@ -77,7 +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_ip_version_in.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 diff --git a/thousandeyes-sdk-endpoint-tests/README.md b/thousandeyes-sdk-endpoint-tests/README.md index 80f4cd43..8ae67c95 100644 --- a/thousandeyes-sdk-endpoint-tests/README.md +++ b/thousandeyes-sdk-endpoint-tests/README.md @@ -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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator @@ -137,7 +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) + - [EndpointIpVersionIn](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-endpoint-tests/docs/EndpointIpVersionIn.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) diff --git a/thousandeyes-sdk-endpoint-tests/docs/DynamicTest.md b/thousandeyes-sdk-endpoint-tests/docs/DynamicTest.md index 6bb248c6..6255741d 100644 --- a/thousandeyes-sdk-endpoint-tests/docs/DynamicTest.md +++ b/thousandeyes-sdk-endpoint-tests/docs/DynamicTest.md @@ -19,7 +19,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] +**ip_version** | **str** | For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT. | [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] diff --git a/thousandeyes-sdk-endpoint-tests/docs/DynamicTestRequest.md b/thousandeyes-sdk-endpoint-tests/docs/DynamicTestRequest.md index 75e76b35..38a647eb 100644 --- a/thousandeyes-sdk-endpoint-tests/docs/DynamicTestRequest.md +++ b/thousandeyes-sdk-endpoint-tests/docs/DynamicTestRequest.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **tcp_probe_mode** | [**TestProbeMode**](TestProbeMode.md) | | [optional] **test_name** | **str** | Name of the test. | **has_path_trace_in_session** | **bool** | Enables \"in session\" path trace. When enabled, this option initiates a TCP session with the target server and sends path trace packets within the established TCP session. | [optional] +**ip_version** | [**EndpointIpVersionIn**](EndpointIpVersionIn.md) | | [optional] ## Example diff --git a/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerInstantTest.md b/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerInstantTest.md index 52170414..4c338372 100644 --- a/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerInstantTest.md +++ b/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerInstantTest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **endpoint_agent_labels** | **List[str]** | List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`. | [optional] **max_machines** | **int** | Maximum number of agents which can execute the test. | [optional] [default to 25] **test_name** | **str** | Name of the test. | +**ip_version** | [**EndpointIpVersionIn**](EndpointIpVersionIn.md) | | [optional] **server_name** | **str** | A server address without a protocol or IP address. **Deprecated, use `server` instead**. | [optional] **server** | **str** | Target domain name or IP address. | **port** | **int** | Port number. | [optional] [default to 443] diff --git a/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerTest.md b/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerTest.md index 8b830f7d..2bc01460 100644 --- a/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerTest.md +++ b/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerTest.md @@ -18,7 +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] +**ip_version** | **str** | For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT. | [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] diff --git a/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerTestRequest.md b/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerTestRequest.md index c49743fd..d2f1915b 100644 --- a/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerTestRequest.md +++ b/thousandeyes-sdk-endpoint-tests/docs/EndpointAgentToServerTestRequest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **endpoint_agent_labels** | **List[str]** | List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`. | [optional] **max_machines** | **int** | Maximum number of agents which can execute the test. | [optional] [default to 25] **test_name** | **str** | Name of the test. | +**ip_version** | [**EndpointIpVersionIn**](EndpointIpVersionIn.md) | | [optional] **server_name** | **str** | A server address without a protocol or IP address. **Deprecated, use `server` instead**. | [optional] **server** | **str** | Target domain name or IP address. | **port** | **int** | Port number. | [optional] [default to 443] diff --git a/thousandeyes-sdk-endpoint-tests/docs/EndpointHttpServerInstantTest.md b/thousandeyes-sdk-endpoint-tests/docs/EndpointHttpServerInstantTest.md index dc24a031..1ded884b 100644 --- a/thousandeyes-sdk-endpoint-tests/docs/EndpointHttpServerInstantTest.md +++ b/thousandeyes-sdk-endpoint-tests/docs/EndpointHttpServerInstantTest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **endpoint_agent_labels** | **List[str]** | List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`. | [optional] **max_machines** | **int** | Maximum number of agents which can execute the test. | [optional] [default to 25] **test_name** | **str** | Name of the test. | +**ip_version** | [**EndpointIpVersionIn**](EndpointIpVersionIn.md) | | [optional] **auth_type** | [**EndpointTestAuthType**](EndpointTestAuthType.md) | | [optional] **has_path_trace_in_session** | **bool** | Enables \"in session\" path trace. When enabled, this option initiates a TCP session with the target server and sends path trace packets within the established TCP session. | [optional] **http_time_limit** | **int** | Maximum amount of time in milliseconds the agents wait before a request times out. | [optional] [default to 5000] diff --git a/thousandeyes-sdk-endpoint-tests/docs/EndpointHttpServerTest.md b/thousandeyes-sdk-endpoint-tests/docs/EndpointHttpServerTest.md index b9e8deb6..503c0c95 100644 --- a/thousandeyes-sdk-endpoint-tests/docs/EndpointHttpServerTest.md +++ b/thousandeyes-sdk-endpoint-tests/docs/EndpointHttpServerTest.md @@ -18,7 +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] +**ip_version** | **str** | For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT. | [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] diff --git a/thousandeyes-sdk-endpoint-tests/docs/EndpointHttpServerTestRequest.md b/thousandeyes-sdk-endpoint-tests/docs/EndpointHttpServerTestRequest.md index cb621eda..99d40dac 100644 --- a/thousandeyes-sdk-endpoint-tests/docs/EndpointHttpServerTestRequest.md +++ b/thousandeyes-sdk-endpoint-tests/docs/EndpointHttpServerTestRequest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **endpoint_agent_labels** | **List[str]** | List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`. | [optional] **max_machines** | **int** | Maximum number of agents which can execute the test. | [optional] [default to 25] **test_name** | **str** | Name of the test. | +**ip_version** | [**EndpointIpVersionIn**](EndpointIpVersionIn.md) | | [optional] **auth_type** | [**EndpointTestAuthType**](EndpointTestAuthType.md) | | [optional] **has_path_trace_in_session** | **bool** | Enables \"in session\" path trace. When enabled, this option initiates a TCP session with the target server and sends path trace packets within the established TCP session. | [optional] **http_time_limit** | **int** | Maximum amount of time in milliseconds the agents wait before a request times out. | [optional] [default to 5000] diff --git a/thousandeyes-sdk-endpoint-tests/docs/EndpointInstantTest.md b/thousandeyes-sdk-endpoint-tests/docs/EndpointInstantTest.md index 817ce8c8..69191a6e 100644 --- a/thousandeyes-sdk-endpoint-tests/docs/EndpointInstantTest.md +++ b/thousandeyes-sdk-endpoint-tests/docs/EndpointInstantTest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **endpoint_agent_labels** | **List[str]** | List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`. | [optional] **max_machines** | **int** | Maximum number of agents which can execute the test. | [optional] [default to 25] **test_name** | **str** | Name of the test. | +**ip_version** | [**EndpointIpVersionIn**](EndpointIpVersionIn.md) | | [optional] ## Example diff --git a/thousandeyes-sdk-endpoint-tests/docs/EndpointIpVersionTemplate.md b/thousandeyes-sdk-endpoint-tests/docs/EndpointIpVersionIn.md similarity index 77% rename from thousandeyes-sdk-endpoint-tests/docs/EndpointIpVersionTemplate.md rename to thousandeyes-sdk-endpoint-tests/docs/EndpointIpVersionIn.md index bd754245..37a232a6 100644 --- a/thousandeyes-sdk-endpoint-tests/docs/EndpointIpVersionTemplate.md +++ b/thousandeyes-sdk-endpoint-tests/docs/EndpointIpVersionIn.md @@ -1,6 +1,6 @@ -# EndpointIpVersionTemplate +# EndpointIpVersionIn -IP version the test should use for network tests. +For configuring network tests, the IP version of the test. ## Properties diff --git a/thousandeyes-sdk-endpoint-tests/docs/EndpointTest.md b/thousandeyes-sdk-endpoint-tests/docs/EndpointTest.md index 4ca25233..a345ddf3 100644 --- a/thousandeyes-sdk-endpoint-tests/docs/EndpointTest.md +++ b/thousandeyes-sdk-endpoint-tests/docs/EndpointTest.md @@ -18,7 +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] +**ip_version** | **str** | For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT. | [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] diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/__init__.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/__init__.py index 7e217341..8205d834 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/__init__.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/__init__.py @@ -41,7 +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_ip_version_in import EndpointIpVersionIn 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 diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/__init__.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/__init__.py index 107dd4e1..dcfa89b1 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/__init__.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/__init__.py @@ -33,7 +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_ip_version_in import EndpointIpVersionIn 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 diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/dynamic_test.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/dynamic_test.py index 51519880..8a2a09e8 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/dynamic_test.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/dynamic_test.py @@ -21,7 +21,6 @@ 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 @@ -47,7 +46,7 @@ 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") + ip_version: Optional[StrictStr] = Field(default=None, description="For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT.", 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") diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/dynamic_test_request.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/dynamic_test_request.py index cc96cc4c..c3d67606 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/dynamic_test_request.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/dynamic_test_request.py @@ -18,6 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.endpoint_tests.models.endpoint_ip_version_in import EndpointIpVersionIn from thousandeyes_sdk.endpoint_tests.models.endpoint_test_agent_selector_type import EndpointTestAgentSelectorType from thousandeyes_sdk.endpoint_tests.models.endpoint_test_protocol import EndpointTestProtocol from thousandeyes_sdk.endpoint_tests.models.test_interval import TestInterval @@ -40,7 +41,8 @@ class DynamicTestRequest(BaseModel): tcp_probe_mode: Optional[TestProbeMode] = Field(default=None, alias="tcpProbeMode") test_name: StrictStr = Field(description="Name of the test.", alias="testName") has_path_trace_in_session: Optional[StrictBool] = Field(default=None, description="Enables \"in session\" path trace. When enabled, this option initiates a TCP session with the target server and sends path trace packets within the established TCP session.", alias="hasPathTraceInSession") - __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "isPrioritized", "interval", "maxMachines", "application", "protocol", "tcpProbeMode", "testName", "hasPathTraceInSession"] + ip_version: Optional[EndpointIpVersionIn] = Field(default=None, alias="ipVersion") + __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "isPrioritized", "interval", "maxMachines", "application", "protocol", "tcpProbeMode", "testName", "hasPathTraceInSession", "ipVersion"] model_config = ConfigDict( populate_by_name=True, @@ -104,7 +106,8 @@ class DynamicTestRequest(BaseModel): "protocol": obj.get("protocol"), "tcpProbeMode": obj.get("tcpProbeMode"), "testName": obj.get("testName"), - "hasPathTraceInSession": obj.get("hasPathTraceInSession") + "hasPathTraceInSession": obj.get("hasPathTraceInSession"), + "ipVersion": obj.get("ipVersion") }) return _obj diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_instant_test.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_instant_test.py index a617fe5d..d4f95a56 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_instant_test.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_instant_test.py @@ -18,6 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.endpoint_tests.models.endpoint_ip_version_in import EndpointIpVersionIn from thousandeyes_sdk.endpoint_tests.models.endpoint_test_agent_selector_type import EndpointTestAgentSelectorType from typing import Optional, Set from typing_extensions import Self @@ -31,10 +32,11 @@ class EndpointAgentToServerInstantTest(BaseModel): endpoint_agent_labels: Optional[List[StrictStr]] = Field(default=None, description="List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`.", alias="endpointAgentLabels") max_machines: Optional[StrictInt] = Field(default=25, description="Maximum number of agents which can execute the test.", alias="maxMachines") test_name: StrictStr = Field(description="Name of the test.", alias="testName") + ip_version: Optional[EndpointIpVersionIn] = Field(default=None, alias="ipVersion") server_name: Optional[StrictStr] = Field(default=None, description="A server address without a protocol or IP address. **Deprecated, use `server` instead**.", alias="serverName") server: StrictStr = Field(description="Target domain name or IP address.") port: Optional[StrictInt] = Field(default=443, description="Port number.") - __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "serverName", "server", "port"] + __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "ipVersion", "serverName", "server", "port"] model_config = ConfigDict( populate_by_name=True, @@ -93,6 +95,7 @@ class EndpointAgentToServerInstantTest(BaseModel): "endpointAgentLabels": obj.get("endpointAgentLabels"), "maxMachines": obj.get("maxMachines") if obj.get("maxMachines") is not None else 25, "testName": obj.get("testName"), + "ipVersion": obj.get("ipVersion"), "serverName": obj.get("serverName"), "server": obj.get("server"), "port": obj.get("port") if obj.get("port") is not None else 443 diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_test.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_test.py index 6b49f119..ba8144a7 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_test.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_test.py @@ -21,7 +21,6 @@ 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 @@ -47,7 +46,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") + ip_version: Optional[StrictStr] = Field(default=None, description="For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT.", 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") diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_test_request.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_test_request.py index ef29de13..fee9a28c 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_test_request.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_agent_to_server_test_request.py @@ -18,6 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.endpoint_tests.models.endpoint_ip_version_in import EndpointIpVersionIn from thousandeyes_sdk.endpoint_tests.models.endpoint_test_agent_selector_type import EndpointTestAgentSelectorType from thousandeyes_sdk.endpoint_tests.models.endpoint_test_protocol import EndpointTestProtocol from thousandeyes_sdk.endpoint_tests.models.test_interval import TestInterval @@ -33,13 +34,14 @@ class EndpointAgentToServerTestRequest(BaseModel): endpoint_agent_labels: Optional[List[StrictStr]] = Field(default=None, description="List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`.", alias="endpointAgentLabels") max_machines: Optional[StrictInt] = Field(default=25, description="Maximum number of agents which can execute the test.", alias="maxMachines") test_name: StrictStr = Field(description="Name of the test.", alias="testName") + ip_version: Optional[EndpointIpVersionIn] = Field(default=None, alias="ipVersion") server_name: Optional[StrictStr] = Field(default=None, description="A server address without a protocol or IP address. **Deprecated, use `server` instead**.", alias="serverName") server: StrictStr = Field(description="Target domain name or IP address.") port: Optional[StrictInt] = Field(default=443, description="Port number.") is_prioritized: Optional[StrictBool] = Field(default=False, description="Indicates whether the test should be prioritized when the number of tests assigned to an agent exceeds the license limit.", alias="isPrioritized") interval: Optional[TestInterval] = None protocol: Optional[EndpointTestProtocol] = None - __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "serverName", "server", "port", "isPrioritized", "interval", "protocol"] + __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "ipVersion", "serverName", "server", "port", "isPrioritized", "interval", "protocol"] model_config = ConfigDict( populate_by_name=True, @@ -98,6 +100,7 @@ class EndpointAgentToServerTestRequest(BaseModel): "endpointAgentLabels": obj.get("endpointAgentLabels"), "maxMachines": obj.get("maxMachines") if obj.get("maxMachines") is not None else 25, "testName": obj.get("testName"), + "ipVersion": obj.get("ipVersion"), "serverName": obj.get("serverName"), "server": obj.get("server"), "port": obj.get("port") if obj.get("port") is not None else 443, diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_http_server_instant_test.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_http_server_instant_test.py index bc5c294f..4ae28997 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_http_server_instant_test.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_http_server_instant_test.py @@ -18,6 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.endpoint_tests.models.endpoint_ip_version_in import EndpointIpVersionIn from thousandeyes_sdk.endpoint_tests.models.endpoint_test_agent_selector_type import EndpointTestAgentSelectorType from thousandeyes_sdk.endpoint_tests.models.endpoint_test_auth_type import EndpointTestAuthType from thousandeyes_sdk.endpoint_tests.models.endpoint_test_protocol import EndpointTestProtocol @@ -35,6 +36,7 @@ class EndpointHttpServerInstantTest(BaseModel): endpoint_agent_labels: Optional[List[StrictStr]] = Field(default=None, description="List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`.", alias="endpointAgentLabels") max_machines: Optional[StrictInt] = Field(default=25, description="Maximum number of agents which can execute the test.", alias="maxMachines") test_name: StrictStr = Field(description="Name of the test.", alias="testName") + ip_version: Optional[EndpointIpVersionIn] = Field(default=None, alias="ipVersion") auth_type: Optional[EndpointTestAuthType] = Field(default=None, alias="authType") has_path_trace_in_session: Optional[StrictBool] = Field(default=None, description="Enables \"in session\" path trace. When enabled, this option initiates a TCP session with the target server and sends path trace packets within the established TCP session.", alias="hasPathTraceInSession") http_time_limit: Optional[StrictInt] = Field(default=5000, description="Maximum amount of time in milliseconds the agents wait before a request times out.", alias="httpTimeLimit") @@ -49,7 +51,7 @@ class EndpointHttpServerInstantTest(BaseModel): 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") target_response_time: Optional[StrictInt] = Field(default=1000, description="Response time target in milliseconds. Affects the colors of agents and legends on the view page. The value is compared with actual response time in order to determine the color scale (from green to red).", alias="targetResponseTime") password: Optional[StrictStr] = Field(default=None, description="Password for Basic/NTLM authentication.") - __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "authType", "hasPathTraceInSession", "httpTimeLimit", "protocol", "username", "sslVersionId", "tcpProbeMode", "verifyCertificate", "url", "hasPing", "hasTraceroute", "networkMeasurements", "targetResponseTime", "password"] + __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "ipVersion", "authType", "hasPathTraceInSession", "httpTimeLimit", "protocol", "username", "sslVersionId", "tcpProbeMode", "verifyCertificate", "url", "hasPing", "hasTraceroute", "networkMeasurements", "targetResponseTime", "password"] model_config = ConfigDict( populate_by_name=True, @@ -108,6 +110,7 @@ class EndpointHttpServerInstantTest(BaseModel): "endpointAgentLabels": obj.get("endpointAgentLabels"), "maxMachines": obj.get("maxMachines") if obj.get("maxMachines") is not None else 25, "testName": obj.get("testName"), + "ipVersion": obj.get("ipVersion"), "authType": obj.get("authType"), "hasPathTraceInSession": obj.get("hasPathTraceInSession"), "httpTimeLimit": obj.get("httpTimeLimit") if obj.get("httpTimeLimit") is not None else 5000, diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_http_server_test.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_http_server_test.py index bc00c81a..a1bf7c6f 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_http_server_test.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_http_server_test.py @@ -21,7 +21,6 @@ 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 @@ -49,7 +48,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") + ip_version: Optional[StrictStr] = Field(default=None, description="For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT.", 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") diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_http_server_test_request.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_http_server_test_request.py index ab541437..1c2f2647 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_http_server_test_request.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_http_server_test_request.py @@ -18,6 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.endpoint_tests.models.endpoint_ip_version_in import EndpointIpVersionIn from thousandeyes_sdk.endpoint_tests.models.endpoint_test_agent_selector_type import EndpointTestAgentSelectorType from thousandeyes_sdk.endpoint_tests.models.endpoint_test_auth_type import EndpointTestAuthType from thousandeyes_sdk.endpoint_tests.models.endpoint_test_protocol import EndpointTestProtocol @@ -36,6 +37,7 @@ class EndpointHttpServerTestRequest(BaseModel): endpoint_agent_labels: Optional[List[StrictStr]] = Field(default=None, description="List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`.", alias="endpointAgentLabels") max_machines: Optional[StrictInt] = Field(default=25, description="Maximum number of agents which can execute the test.", alias="maxMachines") test_name: StrictStr = Field(description="Name of the test.", alias="testName") + ip_version: Optional[EndpointIpVersionIn] = Field(default=None, alias="ipVersion") auth_type: Optional[EndpointTestAuthType] = Field(default=None, alias="authType") has_path_trace_in_session: Optional[StrictBool] = Field(default=None, description="Enables \"in session\" path trace. When enabled, this option initiates a TCP session with the target server and sends path trace packets within the established TCP session.", alias="hasPathTraceInSession") http_time_limit: Optional[StrictInt] = Field(default=5000, description="Maximum amount of time in milliseconds the agents wait before a request times out.", alias="httpTimeLimit") @@ -52,7 +54,7 @@ class EndpointHttpServerTestRequest(BaseModel): password: Optional[StrictStr] = Field(default=None, description="Password for Basic/NTLM authentication.") is_prioritized: Optional[StrictBool] = Field(default=False, description="Indicates whether the test should be prioritized when the number of tests assigned to an agent exceeds the license limit.", alias="isPrioritized") interval: Optional[TestInterval] = None - __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "authType", "hasPathTraceInSession", "httpTimeLimit", "protocol", "username", "sslVersionId", "tcpProbeMode", "verifyCertificate", "url", "hasPing", "hasTraceroute", "networkMeasurements", "targetResponseTime", "password", "isPrioritized", "interval"] + __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "ipVersion", "authType", "hasPathTraceInSession", "httpTimeLimit", "protocol", "username", "sslVersionId", "tcpProbeMode", "verifyCertificate", "url", "hasPing", "hasTraceroute", "networkMeasurements", "targetResponseTime", "password", "isPrioritized", "interval"] model_config = ConfigDict( populate_by_name=True, @@ -111,6 +113,7 @@ class EndpointHttpServerTestRequest(BaseModel): "endpointAgentLabels": obj.get("endpointAgentLabels"), "maxMachines": obj.get("maxMachines") if obj.get("maxMachines") is not None else 25, "testName": obj.get("testName"), + "ipVersion": obj.get("ipVersion"), "authType": obj.get("authType"), "hasPathTraceInSession": obj.get("hasPathTraceInSession"), "httpTimeLimit": obj.get("httpTimeLimit") if obj.get("httpTimeLimit") is not None else 5000, diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_instant_test.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_instant_test.py index b24fe501..500e1cb3 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_instant_test.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_instant_test.py @@ -18,6 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.endpoint_tests.models.endpoint_ip_version_in import EndpointIpVersionIn from thousandeyes_sdk.endpoint_tests.models.endpoint_test_agent_selector_type import EndpointTestAgentSelectorType from typing import Optional, Set from typing_extensions import Self @@ -31,7 +32,8 @@ class EndpointInstantTest(BaseModel): endpoint_agent_labels: Optional[List[StrictStr]] = Field(default=None, description="List of endpoint agent label IDs (obtained from `/endpoint/labels` endpoint), required when `agentSelectorType` is set to `agent-labels`.", alias="endpointAgentLabels") max_machines: Optional[StrictInt] = Field(default=25, description="Maximum number of agents which can execute the test.", alias="maxMachines") test_name: StrictStr = Field(description="Name of the test.", alias="testName") - __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName"] + ip_version: Optional[EndpointIpVersionIn] = Field(default=None, alias="ipVersion") + __properties: ClassVar[List[str]] = ["agentSelectorType", "agents", "endpointAgentLabels", "maxMachines", "testName", "ipVersion"] model_config = ConfigDict( populate_by_name=True, @@ -89,7 +91,8 @@ class EndpointInstantTest(BaseModel): "agents": obj.get("agents"), "endpointAgentLabels": obj.get("endpointAgentLabels"), "maxMachines": obj.get("maxMachines") if obj.get("maxMachines") is not None else 25, - "testName": obj.get("testName") + "testName": obj.get("testName"), + "ipVersion": obj.get("ipVersion") }) return _obj diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_ip_version_template.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_ip_version_in.py similarity index 81% rename from thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_ip_version_template.py rename to thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_ip_version_in.py index d5ff6bec..f622642c 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_ip_version_template.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_ip_version_in.py @@ -17,9 +17,9 @@ from enum import Enum from typing_extensions import Self -class EndpointIpVersionTemplate(str, Enum): +class EndpointIpVersionIn(str, Enum): """ - IP version the test should use for network tests. + For configuring network tests, the IP version of the test. """ """ @@ -33,7 +33,7 @@ class EndpointIpVersionTemplate(str, Enum): @classmethod def from_json(cls, json_str: str) -> Self: - """Create an instance of EndpointIpVersionTemplate from a JSON string""" + """Create an instance of EndpointIpVersionIn from a JSON string""" return cls(json.loads(json_str)) @classmethod diff --git a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_test.py b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_test.py index b099af5c..b62c65df 100644 --- a/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_test.py +++ b/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/endpoint_test.py @@ -20,7 +20,6 @@ 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 @@ -47,7 +46,7 @@ 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") + ip_version: Optional[StrictStr] = Field(default=None, description="For reading current network test configurations, the IP version of the test. Values include V4_ONLY, V6_ONLY, V6_PREFER, and OS_DEFAULT.", 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") diff --git a/thousandeyes-sdk-endpoint-tests/test/test_agent_to_server_endpoint_dynamic_tests_api.py b/thousandeyes-sdk-endpoint-tests/test/test_agent_to_server_endpoint_dynamic_tests_api.py index 28c62315..28c426ab 100644 --- a/thousandeyes-sdk-endpoint-tests/test/test_agent_to_server_endpoint_dynamic_tests_api.py +++ b/thousandeyes-sdk-endpoint-tests/test/test_agent_to_server_endpoint_dynamic_tests_api.py @@ -33,6 +33,7 @@ class TestAgentToServerEndpointDynamicTestsApi(unittest.TestCase): request_body_json = """ { "protocol" : "icmp", + "ipVersion" : "V4_ONLY", "application" : "webex", "agentSelectorType" : "all-agents", "isPrioritized" : false, diff --git a/thousandeyes-sdk-endpoint-tests/test/test_agent_to_server_endpoint_scheduled_tests_api.py b/thousandeyes-sdk-endpoint-tests/test/test_agent_to_server_endpoint_scheduled_tests_api.py index 87c465c6..0b5b48f4 100644 --- a/thousandeyes-sdk-endpoint-tests/test/test_agent_to_server_endpoint_scheduled_tests_api.py +++ b/thousandeyes-sdk-endpoint-tests/test/test_agent_to_server_endpoint_scheduled_tests_api.py @@ -34,6 +34,7 @@ class TestAgentToServerEndpointScheduledTestsApi(unittest.TestCase): { "server" : "www.example.com", "protocol" : "icmp", + "ipVersion" : "V4_ONLY", "port" : 443, "agentSelectorType" : "all-agents", "maxMachines" : 25, diff --git a/thousandeyes-sdk-endpoint-tests/test/test_http_server_endpoint_scheduled_tests_api.py b/thousandeyes-sdk-endpoint-tests/test/test_http_server_endpoint_scheduled_tests_api.py index 5f4184be..00e7a65c 100644 --- a/thousandeyes-sdk-endpoint-tests/test/test_http_server_endpoint_scheduled_tests_api.py +++ b/thousandeyes-sdk-endpoint-tests/test/test_http_server_endpoint_scheduled_tests_api.py @@ -45,6 +45,7 @@ class TestHTTPServerEndpointScheduledTestsApi(unittest.TestCase): "agents" : [ "0a3b9998-dc3a-4ff2-b50d-ac4a7cd986e1", "66eec0f1-72b4-4755-aa83-3aed61d17f3c" ], "protocol" : "icmp", "password" : "password", + "ipVersion" : "V4_ONLY", "hasTraceroute" : true, "targetResponseTime" : 1000, "interval" : 60, diff --git a/thousandeyes-sdk-event-detection/README.md b/thousandeyes-sdk-event-detection/README.md index 93f1a748..4a116316 100644 --- a/thousandeyes-sdk-event-detection/README.md +++ b/thousandeyes-sdk-event-detection/README.md @@ -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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-instant-tests/.openapi-generator/FILES b/thousandeyes-sdk-instant-tests/.openapi-generator/FILES index 452a2e71..52d0d382 100644 --- a/thousandeyes-sdk-instant-tests/.openapi-generator/FILES +++ b/thousandeyes-sdk-instant-tests/.openapi-generator/FILES @@ -31,6 +31,7 @@ docs/ApiRequestHeader.md docs/ApiRequestMethod.md docs/ApiRequestVariable.md docs/CloudEnterpriseAgentType.md +docs/Coordinates.md docs/DNSSECInstantTestsApi.md docs/DNSServerInstantTestsApi.md docs/DNSTraceInstantTestsApi.md @@ -158,6 +159,7 @@ src/thousandeyes_sdk/instant_tests/models/api_request_header.py src/thousandeyes_sdk/instant_tests/models/api_request_method.py src/thousandeyes_sdk/instant_tests/models/api_request_variable.py src/thousandeyes_sdk/instant_tests/models/cloud_enterprise_agent_type.py +src/thousandeyes_sdk/instant_tests/models/coordinates.py src/thousandeyes_sdk/instant_tests/models/dns_query_class.py src/thousandeyes_sdk/instant_tests/models/dns_sec_instant_test.py src/thousandeyes_sdk/instant_tests/models/dns_sec_instant_test_request.py diff --git a/thousandeyes-sdk-instant-tests/README.md b/thousandeyes-sdk-instant-tests/README.md index 699c09fb..598a0e99 100644 --- a/thousandeyes-sdk-instant-tests/README.md +++ b/thousandeyes-sdk-instant-tests/README.md @@ -6,7 +6,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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator @@ -143,6 +143,7 @@ Class | Method | HTTP request | Description - [ApiRequestMethod](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/ApiRequestMethod.md) - [ApiRequestVariable](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/ApiRequestVariable.md) - [CloudEnterpriseAgentType](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/CloudEnterpriseAgentType.md) + - [Coordinates](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/Coordinates.md) - [DnsQueryClass](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/DnsQueryClass.md) - [DnsSecInstantTest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/DnsSecInstantTest.md) - [DnsSecInstantTestRequest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-instant-tests/docs/DnsSecInstantTestRequest.md) diff --git a/thousandeyes-sdk-instant-tests/docs/AgentResponse.md b/thousandeyes-sdk-instant-tests/docs/AgentResponse.md index 9753405c..50333bdd 100644 --- a/thousandeyes-sdk-instant-tests/docs/AgentResponse.md +++ b/thousandeyes-sdk-instant-tests/docs/AgentResponse.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **agent_name** | **str** | Name of the agent. | [optional] **location** | **str** | Location of the agent. | [optional] [readonly] **country_id** | **str** | 2-digit ISO country code | [optional] [readonly] +**coordinates** | [**Coordinates**](Coordinates.md) | | [optional] **enabled** | **bool** | Flag indicating if the agent is enabled. | [optional] **prefix** | **str** | Prefix containing agents public IP address. | [optional] [readonly] **verify_ssl_certificates** | **bool** | Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests. | [optional] [readonly] diff --git a/thousandeyes-sdk-instant-tests/docs/Coordinates.md b/thousandeyes-sdk-instant-tests/docs/Coordinates.md new file mode 100644 index 00000000..7985450f --- /dev/null +++ b/thousandeyes-sdk-instant-tests/docs/Coordinates.md @@ -0,0 +1,31 @@ +# Coordinates + +Geographic coordinates for agent location. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**latitude** | **float** | The latitude of the agent location in decimal degrees | [optional] [readonly] +**longitude** | **float** | The longitude of the agent location in decimal degrees | [optional] [readonly] + +## Example + +```python +from thousandeyes_sdk.instant_tests.models.coordinates import Coordinates + +# TODO update the JSON string below +json = "{}" +# create an instance of Coordinates from a JSON string +coordinates_instance = Coordinates.from_json(json) +# print the JSON string representation of the object +print(Coordinates.to_json()) + +# convert the object into a dict +coordinates_dict = coordinates_instance.to_dict() +# create an instance of Coordinates from a dict +coordinates_from_dict = Coordinates.from_dict(coordinates_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-instant-tests/docs/SimpleAgent.md b/thousandeyes-sdk-instant-tests/docs/SimpleAgent.md index 158dde3e..2acd11c4 100644 --- a/thousandeyes-sdk-instant-tests/docs/SimpleAgent.md +++ b/thousandeyes-sdk-instant-tests/docs/SimpleAgent.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **agent_name** | **str** | Name of the agent. | [optional] **location** | **str** | Location of the agent. | [optional] [readonly] **country_id** | **str** | 2-digit ISO country code | [optional] [readonly] +**coordinates** | [**Coordinates**](Coordinates.md) | | [optional] **enabled** | **bool** | Flag indicating if the agent is enabled. | [optional] **prefix** | **str** | Prefix containing agents public IP address. | [optional] [readonly] **verify_ssl_certificates** | **bool** | Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests. | [optional] [readonly] diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/__init__.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/__init__.py index 9cb8aff7..1cf1f5f1 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/__init__.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/__init__.py @@ -57,6 +57,7 @@ from thousandeyes_sdk.instant_tests.models.api_request_header import ApiRequestH from thousandeyes_sdk.instant_tests.models.api_request_method import ApiRequestMethod from thousandeyes_sdk.instant_tests.models.api_request_variable import ApiRequestVariable from thousandeyes_sdk.instant_tests.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType +from thousandeyes_sdk.instant_tests.models.coordinates import Coordinates from thousandeyes_sdk.instant_tests.models.dns_query_class import DnsQueryClass from thousandeyes_sdk.instant_tests.models.dns_sec_instant_test import DnsSecInstantTest from thousandeyes_sdk.instant_tests.models.dns_sec_instant_test_request import DnsSecInstantTestRequest diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/__init__.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/__init__.py index 6c2c8bf3..b33796f3 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/__init__.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/__init__.py @@ -40,6 +40,7 @@ from thousandeyes_sdk.instant_tests.models.api_request_header import ApiRequestH from thousandeyes_sdk.instant_tests.models.api_request_method import ApiRequestMethod from thousandeyes_sdk.instant_tests.models.api_request_variable import ApiRequestVariable from thousandeyes_sdk.instant_tests.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType +from thousandeyes_sdk.instant_tests.models.coordinates import Coordinates from thousandeyes_sdk.instant_tests.models.dns_query_class import DnsQueryClass from thousandeyes_sdk.instant_tests.models.dns_sec_instant_test import DnsSecInstantTest from thousandeyes_sdk.instant_tests.models.dns_sec_instant_test_request import DnsSecInstantTestRequest diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/agent_response.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/agent_response.py index eef873d2..79ee02fc 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/agent_response.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/agent_response.py @@ -19,6 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from thousandeyes_sdk.instant_tests.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType +from thousandeyes_sdk.instant_tests.models.coordinates import Coordinates from typing import Optional, Set from typing_extensions import Self @@ -33,11 +34,12 @@ class AgentResponse(BaseModel): agent_name: Optional[StrictStr] = Field(default=None, description="Name of the agent.", alias="agentName") location: Optional[StrictStr] = Field(default=None, description="Location of the agent.") country_id: Optional[StrictStr] = Field(default=None, description="2-digit ISO country code", alias="countryId") + coordinates: Optional[Coordinates] = None enabled: Optional[StrictBool] = Field(default=None, description="Flag indicating if the agent is enabled.") prefix: Optional[StrictStr] = Field(default=None, description="Prefix containing agents public IP address.") verify_ssl_certificates: Optional[StrictBool] = Field(default=None, description="Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests.", alias="verifySslCertificates") agent_type: CloudEnterpriseAgentType = Field(alias="agentType") - __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "enabled", "prefix", "verifySslCertificates", "agentType"] + __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "coordinates", "enabled", "prefix", "verifySslCertificates", "agentType"] model_config = ConfigDict( populate_by_name=True, @@ -95,6 +97,9 @@ class AgentResponse(BaseModel): exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of coordinates + if self.coordinates: + _dict['coordinates'] = self.coordinates.to_dict() return _dict @classmethod @@ -114,6 +119,7 @@ class AgentResponse(BaseModel): "agentName": obj.get("agentName"), "location": obj.get("location"), "countryId": obj.get("countryId"), + "coordinates": Coordinates.from_dict(obj["coordinates"]) if obj.get("coordinates") is not None else None, "enabled": obj.get("enabled"), "prefix": obj.get("prefix"), "verifySslCertificates": obj.get("verifySslCertificates"), diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/coordinates.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/coordinates.py new file mode 100644 index 00000000..b69f7ab7 --- /dev/null +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/coordinates.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Instant Tests API + + The Instant Tests API operations lets you create and run new instant tests. You will need to be an Account Admin. 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. + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class Coordinates(BaseModel): + """ + Geographic coordinates for agent location. + """ # noqa: E501 + latitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The latitude of the agent location in decimal degrees") + longitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The longitude of the agent location in decimal degrees") + __properties: ClassVar[List[str]] = ["latitude", "longitude"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + extra="allow", + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Coordinates from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "latitude", + "longitude", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Coordinates from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "latitude": obj.get("latitude"), + "longitude": obj.get("longitude") + }) + return _obj + + diff --git a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/simple_agent.py b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/simple_agent.py index 1903c572..8a010b58 100644 --- a/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/simple_agent.py +++ b/thousandeyes-sdk-instant-tests/src/thousandeyes_sdk/instant_tests/models/simple_agent.py @@ -18,6 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.instant_tests.models.coordinates import Coordinates from typing import Optional, Set from typing_extensions import Self @@ -32,10 +33,11 @@ class SimpleAgent(BaseModel): agent_name: Optional[StrictStr] = Field(default=None, description="Name of the agent.", alias="agentName") location: Optional[StrictStr] = Field(default=None, description="Location of the agent.") country_id: Optional[StrictStr] = Field(default=None, description="2-digit ISO country code", alias="countryId") + coordinates: Optional[Coordinates] = None enabled: Optional[StrictBool] = Field(default=None, description="Flag indicating if the agent is enabled.") prefix: Optional[StrictStr] = Field(default=None, description="Prefix containing agents public IP address.") verify_ssl_certificates: Optional[StrictBool] = Field(default=None, description="Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests.", alias="verifySslCertificates") - __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "enabled", "prefix", "verifySslCertificates"] + __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "coordinates", "enabled", "prefix", "verifySslCertificates"] model_config = ConfigDict( populate_by_name=True, @@ -93,6 +95,9 @@ class SimpleAgent(BaseModel): exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of coordinates + if self.coordinates: + _dict['coordinates'] = self.coordinates.to_dict() return _dict @classmethod @@ -112,6 +117,7 @@ class SimpleAgent(BaseModel): "agentName": obj.get("agentName"), "location": obj.get("location"), "countryId": obj.get("countryId"), + "coordinates": Coordinates.from_dict(obj["coordinates"]) if obj.get("coordinates") is not None else None, "enabled": obj.get("enabled"), "prefix": obj.get("prefix"), "verifySslCertificates": obj.get("verifySslCertificates") diff --git a/thousandeyes-sdk-instant-tests/test/test_agent_to_agent_instant_tests_api.py b/thousandeyes-sdk-instant-tests/test/test_agent_to_agent_instant_tests_api.py index efead048..cd91ded0 100644 --- a/thousandeyes-sdk-instant-tests/test/test_agent_to_agent_instant_tests_api.py +++ b/thousandeyes-sdk-instant-tests/test/test_agent_to_agent_instant_tests_api.py @@ -138,6 +138,10 @@ class TestAgentToAgentInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -150,6 +154,10 @@ class TestAgentToAgentInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-instant-tests/test/test_agent_to_server_instant_tests_api.py b/thousandeyes-sdk-instant-tests/test/test_agent_to_server_instant_tests_api.py index 83735df5..25176248 100644 --- a/thousandeyes-sdk-instant-tests/test/test_agent_to_server_instant_tests_api.py +++ b/thousandeyes-sdk-instant-tests/test/test_agent_to_server_instant_tests_api.py @@ -140,6 +140,10 @@ class TestAgentToServerInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -152,6 +156,10 @@ class TestAgentToServerInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-instant-tests/test/test_api_instant_tests_api.py b/thousandeyes-sdk-instant-tests/test/test_api_instant_tests_api.py index 08796d1b..9c1dc0bf 100644 --- a/thousandeyes-sdk-instant-tests/test/test_api_instant_tests_api.py +++ b/thousandeyes-sdk-instant-tests/test/test_api_instant_tests_api.py @@ -322,6 +322,10 @@ class TestAPIInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -334,6 +338,10 @@ class TestAPIInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-instant-tests/test/test_dns_server_instant_tests_api.py b/thousandeyes-sdk-instant-tests/test/test_dns_server_instant_tests_api.py index d70c4d37..45410e1c 100644 --- a/thousandeyes-sdk-instant-tests/test/test_dns_server_instant_tests_api.py +++ b/thousandeyes-sdk-instant-tests/test/test_dns_server_instant_tests_api.py @@ -147,6 +147,10 @@ class TestDNSServerInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -159,6 +163,10 @@ class TestDNSServerInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-instant-tests/test/test_dns_trace_instant_tests_api.py b/thousandeyes-sdk-instant-tests/test/test_dns_trace_instant_tests_api.py index 543f80eb..c051a606 100644 --- a/thousandeyes-sdk-instant-tests/test/test_dns_trace_instant_tests_api.py +++ b/thousandeyes-sdk-instant-tests/test/test_dns_trace_instant_tests_api.py @@ -117,6 +117,10 @@ class TestDNSTraceInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -129,6 +133,10 @@ class TestDNSTraceInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-instant-tests/test/test_dnssec_instant_tests_api.py b/thousandeyes-sdk-instant-tests/test/test_dnssec_instant_tests_api.py index a00e7a3d..92d1003c 100644 --- a/thousandeyes-sdk-instant-tests/test/test_dnssec_instant_tests_api.py +++ b/thousandeyes-sdk-instant-tests/test/test_dnssec_instant_tests_api.py @@ -115,6 +115,10 @@ class TestDNSSECInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -127,6 +131,10 @@ class TestDNSSECInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-instant-tests/test/test_ftp_server_instant_tests_api.py b/thousandeyes-sdk-instant-tests/test/test_ftp_server_instant_tests_api.py index dbd2f3b3..a5368f53 100644 --- a/thousandeyes-sdk-instant-tests/test/test_ftp_server_instant_tests_api.py +++ b/thousandeyes-sdk-instant-tests/test/test_ftp_server_instant_tests_api.py @@ -147,6 +147,10 @@ class TestFTPServerInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -159,6 +163,10 @@ class TestFTPServerInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-instant-tests/test/test_http_page_load_instant_tests_api.py b/thousandeyes-sdk-instant-tests/test/test_http_page_load_instant_tests_api.py index 2659bc67..7f6cf37b 100644 --- a/thousandeyes-sdk-instant-tests/test/test_http_page_load_instant_tests_api.py +++ b/thousandeyes-sdk-instant-tests/test/test_http_page_load_instant_tests_api.py @@ -256,6 +256,10 @@ class TestHTTPPageLoadInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -268,6 +272,10 @@ class TestHTTPPageLoadInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-instant-tests/test/test_http_server_instant_tests_api.py b/thousandeyes-sdk-instant-tests/test/test_http_server_instant_tests_api.py index a798f543..c3e9d55e 100644 --- a/thousandeyes-sdk-instant-tests/test/test_http_server_instant_tests_api.py +++ b/thousandeyes-sdk-instant-tests/test/test_http_server_instant_tests_api.py @@ -242,6 +242,10 @@ class TestHTTPServerInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -254,6 +258,10 @@ class TestHTTPServerInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-instant-tests/test/test_sip_server_instant_tests_api.py b/thousandeyes-sdk-instant-tests/test/test_sip_server_instant_tests_api.py index 90fe6fd5..89545629 100644 --- a/thousandeyes-sdk-instant-tests/test/test_sip_server_instant_tests_api.py +++ b/thousandeyes-sdk-instant-tests/test/test_sip_server_instant_tests_api.py @@ -147,6 +147,10 @@ class TestSIPServerInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -159,6 +163,10 @@ class TestSIPServerInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-instant-tests/test/test_voice_instant_tests_api.py b/thousandeyes-sdk-instant-tests/test/test_voice_instant_tests_api.py index 05e36e99..734dcd71 100644 --- a/thousandeyes-sdk-instant-tests/test/test_voice_instant_tests_api.py +++ b/thousandeyes-sdk-instant-tests/test/test_voice_instant_tests_api.py @@ -123,6 +123,10 @@ class TestVoiceInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -135,6 +139,10 @@ class TestVoiceInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-instant-tests/test/test_web_transaction_instant_tests_api.py b/thousandeyes-sdk-instant-tests/test/test_web_transaction_instant_tests_api.py index a3e4e428..b4057d88 100644 --- a/thousandeyes-sdk-instant-tests/test/test_web_transaction_instant_tests_api.py +++ b/thousandeyes-sdk-instant-tests/test/test_web_transaction_instant_tests_api.py @@ -258,6 +258,10 @@ class TestWebTransactionInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -270,6 +274,10 @@ class TestWebTransactionInstantTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-internet-insights/README.md b/thousandeyes-sdk-internet-insights/README.md index efb7b772..b7c9b276 100644 --- a/thousandeyes-sdk-internet-insights/README.md +++ b/thousandeyes-sdk-internet-insights/README.md @@ -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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-snapshots/README.md b/thousandeyes-sdk-snapshots/README.md index b1236dfe..cf85ff45 100644 --- a/thousandeyes-sdk-snapshots/README.md +++ b/thousandeyes-sdk-snapshots/README.md @@ -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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-streaming/.openapi-generator/FILES b/thousandeyes-sdk-streaming/.openapi-generator/FILES index 47e72293..c51b9381 100644 --- a/thousandeyes-sdk-streaming/.openapi-generator/FILES +++ b/thousandeyes-sdk-streaming/.openapi-generator/FILES @@ -8,8 +8,11 @@ docs/AuditOperationWithUpdate.md docs/BadRequestError.md docs/CreateStreamResponse.md docs/DataModelVersion.md +docs/EndpointAgentLabel.md docs/EndpointType.md docs/ExporterConfig.md +docs/ExporterConfigAuthorization.md +docs/ExporterConfigOAuth2.md docs/ExporterConfigSplunkHec.md docs/Filters.md docs/FiltersTestTypes.md @@ -43,8 +46,11 @@ src/thousandeyes_sdk/streaming/models/audit_operation_with_update.py src/thousandeyes_sdk/streaming/models/bad_request_error.py src/thousandeyes_sdk/streaming/models/create_stream_response.py src/thousandeyes_sdk/streaming/models/data_model_version.py +src/thousandeyes_sdk/streaming/models/endpoint_agent_label.py src/thousandeyes_sdk/streaming/models/endpoint_type.py src/thousandeyes_sdk/streaming/models/exporter_config.py +src/thousandeyes_sdk/streaming/models/exporter_config_authorization.py +src/thousandeyes_sdk/streaming/models/exporter_config_o_auth2.py src/thousandeyes_sdk/streaming/models/exporter_config_splunk_hec.py src/thousandeyes_sdk/streaming/models/filters.py src/thousandeyes_sdk/streaming/models/filters_test_types.py diff --git a/thousandeyes-sdk-streaming/README.md b/thousandeyes-sdk-streaming/README.md index 04d71da2..a0af6004 100644 --- a/thousandeyes-sdk-streaming/README.md +++ b/thousandeyes-sdk-streaming/README.md @@ -15,7 +15,7 @@ For more information about ThousandEyes for OpenTelemetry, see the [product docu This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator @@ -123,8 +123,11 @@ Class | Method | HTTP request | Description - [BadRequestError](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-streaming/docs/BadRequestError.md) - [CreateStreamResponse](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-streaming/docs/CreateStreamResponse.md) - [DataModelVersion](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-streaming/docs/DataModelVersion.md) + - [EndpointAgentLabel](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-streaming/docs/EndpointAgentLabel.md) - [EndpointType](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-streaming/docs/EndpointType.md) - [ExporterConfig](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-streaming/docs/ExporterConfig.md) + - [ExporterConfigAuthorization](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-streaming/docs/ExporterConfigAuthorization.md) + - [ExporterConfigOAuth2](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-streaming/docs/ExporterConfigOAuth2.md) - [ExporterConfigSplunkHec](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-streaming/docs/ExporterConfigSplunkHec.md) - [Filters](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-streaming/docs/Filters.md) - [FiltersTestTypes](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-streaming/docs/FiltersTestTypes.md) diff --git a/thousandeyes-sdk-streaming/docs/EndpointAgentLabel.md b/thousandeyes-sdk-streaming/docs/EndpointAgentLabel.md new file mode 100644 index 00000000..1dd0310a --- /dev/null +++ b/thousandeyes-sdk-streaming/docs/EndpointAgentLabel.md @@ -0,0 +1,30 @@ +# EndpointAgentLabel + +Endpoint Agent label configuration. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The label ID of Endpoint Agent labels. | [optional] + +## Example + +```python +from thousandeyes_sdk.streaming.models.endpoint_agent_label import EndpointAgentLabel + +# TODO update the JSON string below +json = "{}" +# create an instance of EndpointAgentLabel from a JSON string +endpoint_agent_label_instance = EndpointAgentLabel.from_json(json) +# print the JSON string representation of the object +print(EndpointAgentLabel.to_json()) + +# convert the object into a dict +endpoint_agent_label_dict = endpoint_agent_label_instance.to_dict() +# create an instance of EndpointAgentLabel from a dict +endpoint_agent_label_from_dict = EndpointAgentLabel.from_dict(endpoint_agent_label_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-streaming/docs/ExporterConfig.md b/thousandeyes-sdk-streaming/docs/ExporterConfig.md index d49c4274..17ac6942 100644 --- a/thousandeyes-sdk-streaming/docs/ExporterConfig.md +++ b/thousandeyes-sdk-streaming/docs/ExporterConfig.md @@ -7,6 +7,7 @@ Capability to set exporter configuration. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **splunk_hec** | [**ExporterConfigSplunkHec**](ExporterConfigSplunkHec.md) | | [optional] +**authorization** | [**ExporterConfigAuthorization**](ExporterConfigAuthorization.md) | | [optional] ## Example diff --git a/thousandeyes-sdk-streaming/docs/ExporterConfigAuthorization.md b/thousandeyes-sdk-streaming/docs/ExporterConfigAuthorization.md new file mode 100644 index 00000000..77eed28c --- /dev/null +++ b/thousandeyes-sdk-streaming/docs/ExporterConfigAuthorization.md @@ -0,0 +1,30 @@ +# ExporterConfigAuthorization + +Authentication configuration type. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**o_auth2** | [**ExporterConfigOAuth2**](ExporterConfigOAuth2.md) | | [optional] + +## Example + +```python +from thousandeyes_sdk.streaming.models.exporter_config_authorization import ExporterConfigAuthorization + +# TODO update the JSON string below +json = "{}" +# create an instance of ExporterConfigAuthorization from a JSON string +exporter_config_authorization_instance = ExporterConfigAuthorization.from_json(json) +# print the JSON string representation of the object +print(ExporterConfigAuthorization.to_json()) + +# convert the object into a dict +exporter_config_authorization_dict = exporter_config_authorization_instance.to_dict() +# create an instance of ExporterConfigAuthorization from a dict +exporter_config_authorization_from_dict = ExporterConfigAuthorization.from_dict(exporter_config_authorization_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-streaming/docs/ExporterConfigOAuth2.md b/thousandeyes-sdk-streaming/docs/ExporterConfigOAuth2.md new file mode 100644 index 00000000..b161372d --- /dev/null +++ b/thousandeyes-sdk-streaming/docs/ExporterConfigOAuth2.md @@ -0,0 +1,33 @@ +# ExporterConfigOAuth2 + +OAuth2 authentication configuration. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_id** | **str** | The OAuth2 client ID. | [optional] +**client_secret** | **str** | The OAuth2 client secret. | [optional] +**token_url** | **str** | The OAuth2 token URL. | [optional] +**scopes** | **List[str]** | The OAuth2 scopes. | [optional] + +## Example + +```python +from thousandeyes_sdk.streaming.models.exporter_config_o_auth2 import ExporterConfigOAuth2 + +# TODO update the JSON string below +json = "{}" +# create an instance of ExporterConfigOAuth2 from a JSON string +exporter_config_o_auth2_instance = ExporterConfigOAuth2.from_json(json) +# print the JSON string representation of the object +print(ExporterConfigOAuth2.to_json()) + +# convert the object into a dict +exporter_config_o_auth2_dict = exporter_config_o_auth2_instance.to_dict() +# create an instance of ExporterConfigOAuth2 from a dict +exporter_config_o_auth2_from_dict = ExporterConfigOAuth2.from_dict(exporter_config_o_auth2_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/__init__.py b/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/__init__.py index d3fd01d0..dd2c9400 100644 --- a/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/__init__.py +++ b/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/__init__.py @@ -25,8 +25,11 @@ from thousandeyes_sdk.streaming.models.audit_operation_with_update import AuditO from thousandeyes_sdk.streaming.models.bad_request_error import BadRequestError from thousandeyes_sdk.streaming.models.create_stream_response import CreateStreamResponse from thousandeyes_sdk.streaming.models.data_model_version import DataModelVersion +from thousandeyes_sdk.streaming.models.endpoint_agent_label import EndpointAgentLabel from thousandeyes_sdk.streaming.models.endpoint_type import EndpointType from thousandeyes_sdk.streaming.models.exporter_config import ExporterConfig +from thousandeyes_sdk.streaming.models.exporter_config_authorization import ExporterConfigAuthorization +from thousandeyes_sdk.streaming.models.exporter_config_o_auth2 import ExporterConfigOAuth2 from thousandeyes_sdk.streaming.models.exporter_config_splunk_hec import ExporterConfigSplunkHec from thousandeyes_sdk.streaming.models.filters import Filters from thousandeyes_sdk.streaming.models.filters_test_types import FiltersTestTypes diff --git a/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/__init__.py b/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/__init__.py index 57d9dbc5..71c34a09 100644 --- a/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/__init__.py +++ b/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/__init__.py @@ -20,8 +20,11 @@ from thousandeyes_sdk.streaming.models.audit_operation_with_update import AuditO from thousandeyes_sdk.streaming.models.bad_request_error import BadRequestError from thousandeyes_sdk.streaming.models.create_stream_response import CreateStreamResponse from thousandeyes_sdk.streaming.models.data_model_version import DataModelVersion +from thousandeyes_sdk.streaming.models.endpoint_agent_label import EndpointAgentLabel from thousandeyes_sdk.streaming.models.endpoint_type import EndpointType from thousandeyes_sdk.streaming.models.exporter_config import ExporterConfig +from thousandeyes_sdk.streaming.models.exporter_config_authorization import ExporterConfigAuthorization +from thousandeyes_sdk.streaming.models.exporter_config_o_auth2 import ExporterConfigOAuth2 from thousandeyes_sdk.streaming.models.exporter_config_splunk_hec import ExporterConfigSplunkHec from thousandeyes_sdk.streaming.models.filters import Filters from thousandeyes_sdk.streaming.models.filters_test_types import FiltersTestTypes diff --git a/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/endpoint_agent_label.py b/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/endpoint_agent_label.py new file mode 100644 index 00000000..4a0d3880 --- /dev/null +++ b/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/endpoint_agent_label.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + ThousandEyes for OpenTelemetry API + + ThousandEyes for OpenTelemetry provides machine-to-machine integration between ThousandEyes and its customers. It allows you to export ThousandEyes telemetry data in OTel format, which is widely used in the industry. With ThousandEyes for OTel, you can leverage frameworks widely used in the observability domain - such as Splunk, Grafana, and Honeycomb - to capture and analyze ThousandEyes data. Any client that supports OTel can use ThousandEyes for OpenTelemetry. ThousandEyes for OTel is made up of the following components: * Data streaming APIs that you can use to configure and enable your ThousandEyes tests with OTel-compatible streams, in particular to configure how ThousandEyes telemetry data is exported to client integrations. * A set of streaming pipelines called _collectors_ that actively fetch ThousandEyes network test data, enrich the data with some additional detail, filter, and push the data to the customer-configured endpoints, depending on what you configure via the public APIs. * Third-party OTel collectors that receive, transform, filter, and export different metrics to client applications such as AppD, or any other OTel-capable client configuration. For more information about ThousandEyes for OpenTelemetry, see the [product documentation](https://docs.thousandeyes.com/product-documentation/integration-guides/opentelemetry). + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class EndpointAgentLabel(BaseModel): + """ + Endpoint Agent label configuration. + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="The label ID of Endpoint Agent labels.") + __properties: ClassVar[List[str]] = ["id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + extra="allow", + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EndpointAgentLabel from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EndpointAgentLabel from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id") + }) + return _obj + + diff --git a/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/exporter_config.py b/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/exporter_config.py index a279003e..2476fc22 100644 --- a/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/exporter_config.py +++ b/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/exporter_config.py @@ -18,6 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.streaming.models.exporter_config_authorization import ExporterConfigAuthorization from thousandeyes_sdk.streaming.models.exporter_config_splunk_hec import ExporterConfigSplunkHec from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,8 @@ class ExporterConfig(BaseModel): Capability to set exporter configuration. """ # noqa: E501 splunk_hec: Optional[ExporterConfigSplunkHec] = Field(default=None, alias="splunkHec") - __properties: ClassVar[List[str]] = ["splunkHec"] + authorization: Optional[ExporterConfigAuthorization] = None + __properties: ClassVar[List[str]] = ["splunkHec", "authorization"] model_config = ConfigDict( populate_by_name=True, @@ -72,6 +74,9 @@ class ExporterConfig(BaseModel): # override the default output from pydantic by calling `to_dict()` of splunk_hec if self.splunk_hec: _dict['splunkHec'] = self.splunk_hec.to_dict() + # override the default output from pydantic by calling `to_dict()` of authorization + if self.authorization: + _dict['authorization'] = self.authorization.to_dict() return _dict @classmethod @@ -84,7 +89,8 @@ class ExporterConfig(BaseModel): return cls.model_validate(obj) _obj = cls.model_validate({ - "splunkHec": ExporterConfigSplunkHec.from_dict(obj["splunkHec"]) if obj.get("splunkHec") is not None else None + "splunkHec": ExporterConfigSplunkHec.from_dict(obj["splunkHec"]) if obj.get("splunkHec") is not None else None, + "authorization": ExporterConfigAuthorization.from_dict(obj["authorization"]) if obj.get("authorization") is not None else None }) return _obj diff --git a/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/exporter_config_authorization.py b/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/exporter_config_authorization.py new file mode 100644 index 00000000..1538cffb --- /dev/null +++ b/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/exporter_config_authorization.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + ThousandEyes for OpenTelemetry API + + ThousandEyes for OpenTelemetry provides machine-to-machine integration between ThousandEyes and its customers. It allows you to export ThousandEyes telemetry data in OTel format, which is widely used in the industry. With ThousandEyes for OTel, you can leverage frameworks widely used in the observability domain - such as Splunk, Grafana, and Honeycomb - to capture and analyze ThousandEyes data. Any client that supports OTel can use ThousandEyes for OpenTelemetry. ThousandEyes for OTel is made up of the following components: * Data streaming APIs that you can use to configure and enable your ThousandEyes tests with OTel-compatible streams, in particular to configure how ThousandEyes telemetry data is exported to client integrations. * A set of streaming pipelines called _collectors_ that actively fetch ThousandEyes network test data, enrich the data with some additional detail, filter, and push the data to the customer-configured endpoints, depending on what you configure via the public APIs. * Third-party OTel collectors that receive, transform, filter, and export different metrics to client applications such as AppD, or any other OTel-capable client configuration. For more information about ThousandEyes for OpenTelemetry, see the [product documentation](https://docs.thousandeyes.com/product-documentation/integration-guides/opentelemetry). + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.streaming.models.exporter_config_o_auth2 import ExporterConfigOAuth2 +from typing import Optional, Set +from typing_extensions import Self + +class ExporterConfigAuthorization(BaseModel): + """ + Authentication configuration type. + """ # noqa: E501 + o_auth2: Optional[ExporterConfigOAuth2] = Field(default=None, alias="oAuth2") + __properties: ClassVar[List[str]] = ["oAuth2"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + extra="allow", + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExporterConfigAuthorization from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of o_auth2 + if self.o_auth2: + _dict['oAuth2'] = self.o_auth2.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExporterConfigAuthorization from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "oAuth2": ExporterConfigOAuth2.from_dict(obj["oAuth2"]) if obj.get("oAuth2") is not None else None + }) + return _obj + + diff --git a/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/exporter_config_o_auth2.py b/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/exporter_config_o_auth2.py new file mode 100644 index 00000000..aaccc5c8 --- /dev/null +++ b/thousandeyes-sdk-streaming/src/thousandeyes_sdk/streaming/models/exporter_config_o_auth2.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + ThousandEyes for OpenTelemetry API + + ThousandEyes for OpenTelemetry provides machine-to-machine integration between ThousandEyes and its customers. It allows you to export ThousandEyes telemetry data in OTel format, which is widely used in the industry. With ThousandEyes for OTel, you can leverage frameworks widely used in the observability domain - such as Splunk, Grafana, and Honeycomb - to capture and analyze ThousandEyes data. Any client that supports OTel can use ThousandEyes for OpenTelemetry. ThousandEyes for OTel is made up of the following components: * Data streaming APIs that you can use to configure and enable your ThousandEyes tests with OTel-compatible streams, in particular to configure how ThousandEyes telemetry data is exported to client integrations. * A set of streaming pipelines called _collectors_ that actively fetch ThousandEyes network test data, enrich the data with some additional detail, filter, and push the data to the customer-configured endpoints, depending on what you configure via the public APIs. * Third-party OTel collectors that receive, transform, filter, and export different metrics to client applications such as AppD, or any other OTel-capable client configuration. For more information about ThousandEyes for OpenTelemetry, see the [product documentation](https://docs.thousandeyes.com/product-documentation/integration-guides/opentelemetry). + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ExporterConfigOAuth2(BaseModel): + """ + OAuth2 authentication configuration. + """ # noqa: E501 + client_id: Optional[StrictStr] = Field(default=None, description="The OAuth2 client ID.", alias="clientId") + client_secret: Optional[StrictStr] = Field(default=None, description="The OAuth2 client secret.", alias="clientSecret") + token_url: Optional[StrictStr] = Field(default=None, description="The OAuth2 token URL.", alias="tokenUrl") + scopes: Optional[List[StrictStr]] = Field(default=None, description="The OAuth2 scopes.") + __properties: ClassVar[List[str]] = ["clientId", "clientSecret", "tokenUrl", "scopes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + extra="allow", + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExporterConfigOAuth2 from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExporterConfigOAuth2 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clientId": obj.get("clientId"), + "clientSecret": obj.get("clientSecret"), + "tokenUrl": obj.get("tokenUrl"), + "scopes": obj.get("scopes") + }) + return _obj + + diff --git a/thousandeyes-sdk-streaming/test/test_streaming_api.py b/thousandeyes-sdk-streaming/test/test_streaming_api.py index dfd47da8..3184defd 100644 --- a/thousandeyes-sdk-streaming/test/test_streaming_api.py +++ b/thousandeyes-sdk-streaming/test/test_streaming_api.py @@ -42,6 +42,14 @@ class TestStreamingApi(unittest.TestCase): "endpointType" : "grpc", "streamEndpointUrl" : "https://api.thousandeyes.otel-collector", "exporterConfig" : { + "authorization" : { + "oAuth2" : { + "clientId" : "1234567890", + "tokenUrl" : "https://example.com/token", + "clientSecret" : "1234567890", + "scopes" : [ "read", "write" ] + } + }, "splunkHec" : { "sourceType" : "ThousandEyesOTel", "index" : "thousandeyes_otel_events_index", @@ -85,6 +93,14 @@ class TestStreamingApi(unittest.TestCase): }, "streamEndpointUrl" : "https://api.thousandeyes.otel-collector", "exporterConfig" : { + "authorization" : { + "oAuth2" : { + "clientId" : "1234567890", + "tokenUrl" : "https://example.com/token", + "clientSecret" : "1234567890", + "scopes" : [ "read", "write" ] + } + }, "splunkHec" : { "sourceType" : "ThousandEyesOTel", "index" : "thousandeyes_otel_events_index", @@ -152,6 +168,14 @@ class TestStreamingApi(unittest.TestCase): }, "streamEndpointUrl" : "https://api.thousandeyes.otel-collector", "exporterConfig" : { + "authorization" : { + "oAuth2" : { + "clientId" : "1234567890", + "tokenUrl" : "https://example.com/token", + "clientSecret" : "1234567890", + "scopes" : [ "read", "write" ] + } + }, "splunkHec" : { "sourceType" : "ThousandEyesOTel", "index" : "thousandeyes_otel_events_index", @@ -217,6 +241,14 @@ class TestStreamingApi(unittest.TestCase): }, "streamEndpointUrl" : "https://api.thousandeyes.otel-collector", "exporterConfig" : { + "authorization" : { + "oAuth2" : { + "clientId" : "1234567890", + "tokenUrl" : "https://example.com/token", + "clientSecret" : "1234567890", + "scopes" : [ "read", "write" ] + } + }, "splunkHec" : { "sourceType" : "ThousandEyesOTel", "index" : "thousandeyes_otel_events_index", @@ -272,6 +304,14 @@ class TestStreamingApi(unittest.TestCase): }, "streamEndpointUrl" : "https://api.thousandeyes.otel-collector", "exporterConfig" : { + "authorization" : { + "oAuth2" : { + "clientId" : "1234567890", + "tokenUrl" : "https://example.com/token", + "clientSecret" : "1234567890", + "scopes" : [ "read", "write" ] + } + }, "splunkHec" : { "sourceType" : "ThousandEyesOTel", "index" : "thousandeyes_otel_events_index", @@ -340,6 +380,14 @@ class TestStreamingApi(unittest.TestCase): } ], "streamEndpointUrl" : "https://api.thousandeyes.otel-collector", "exporterConfig" : { + "authorization" : { + "oAuth2" : { + "clientId" : "1234567890", + "tokenUrl" : "https://example.com/token", + "clientSecret" : "1234567890", + "scopes" : [ "read", "write" ] + } + }, "splunkHec" : { "sourceType" : "ThousandEyesOTel", "index" : "thousandeyes_otel_events_index", @@ -380,6 +428,14 @@ class TestStreamingApi(unittest.TestCase): }, "streamEndpointUrl" : "https://api.thousandeyes.otel-collector", "exporterConfig" : { + "authorization" : { + "oAuth2" : { + "clientId" : "1234567890", + "tokenUrl" : "https://example.com/token", + "clientSecret" : "1234567890", + "scopes" : [ "read", "write" ] + } + }, "splunkHec" : { "sourceType" : "ThousandEyesOTel", "index" : "thousandeyes_otel_events_index", diff --git a/thousandeyes-sdk-tags/README.md b/thousandeyes-sdk-tags/README.md index 1fd16f04..a8510786 100644 --- a/thousandeyes-sdk-tags/README.md +++ b/thousandeyes-sdk-tags/README.md @@ -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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-test-results/README.md b/thousandeyes-sdk-test-results/README.md index 9e756296..7fe7c516 100644 --- a/thousandeyes-sdk-test-results/README.md +++ b/thousandeyes-sdk-test-results/README.md @@ -3,7 +3,7 @@ Get test result metrics for Network and Application Synthetics tests. This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator diff --git a/thousandeyes-sdk-tests/.openapi-generator/FILES b/thousandeyes-sdk-tests/.openapi-generator/FILES index f3bc9e77..228c37d6 100644 --- a/thousandeyes-sdk-tests/.openapi-generator/FILES +++ b/thousandeyes-sdk-tests/.openapi-generator/FILES @@ -49,6 +49,7 @@ docs/BgpTestRequest.md docs/BgpTestResponse.md docs/BgpTests.md docs/CloudEnterpriseAgentType.md +docs/Coordinates.md docs/DNSSECTestsApi.md docs/DNSServerTestsApi.md docs/DNSTraceTestsApi.md @@ -247,6 +248,7 @@ src/thousandeyes_sdk/tests/models/bgp_test_request.py src/thousandeyes_sdk/tests/models/bgp_test_response.py src/thousandeyes_sdk/tests/models/bgp_tests.py src/thousandeyes_sdk/tests/models/cloud_enterprise_agent_type.py +src/thousandeyes_sdk/tests/models/coordinates.py src/thousandeyes_sdk/tests/models/dns_query_class.py src/thousandeyes_sdk/tests/models/dns_sec_instant_test.py src/thousandeyes_sdk/tests/models/dns_sec_properties.py diff --git a/thousandeyes-sdk-tests/README.md b/thousandeyes-sdk-tests/README.md index 85632487..7974f614 100644 --- a/thousandeyes-sdk-tests/README.md +++ b/thousandeyes-sdk-tests/README.md @@ -4,7 +4,7 @@ This API allows you to list, create, edit, and delete Network and Application Sy This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.0.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator @@ -216,6 +216,7 @@ Class | Method | HTTP request | Description - [BgpTestResponse](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/BgpTestResponse.md) - [BgpTests](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/BgpTests.md) - [CloudEnterpriseAgentType](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/CloudEnterpriseAgentType.md) + - [Coordinates](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/Coordinates.md) - [DnsQueryClass](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/DnsQueryClass.md) - [DnsSecInstantTest](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/DnsSecInstantTest.md) - [DnsSecProperties](https://github.com/thousandeyes/thousandeyes-sdk-python//tree/main/thousandeyes-sdk-tests/docs/DnsSecProperties.md) diff --git a/thousandeyes-sdk-tests/docs/AgentResponse.md b/thousandeyes-sdk-tests/docs/AgentResponse.md index cbd4b5ca..214a9a8e 100644 --- a/thousandeyes-sdk-tests/docs/AgentResponse.md +++ b/thousandeyes-sdk-tests/docs/AgentResponse.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **agent_name** | **str** | Name of the agent. | [optional] **location** | **str** | Location of the agent. | [optional] [readonly] **country_id** | **str** | 2-digit ISO country code | [optional] [readonly] +**coordinates** | [**Coordinates**](Coordinates.md) | | [optional] **enabled** | **bool** | Flag indicating if the agent is enabled. | [optional] **prefix** | **str** | Prefix containing agents public IP address. | [optional] [readonly] **verify_ssl_certificates** | **bool** | Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests. | [optional] [readonly] diff --git a/thousandeyes-sdk-tests/docs/Coordinates.md b/thousandeyes-sdk-tests/docs/Coordinates.md new file mode 100644 index 00000000..e274c7c4 --- /dev/null +++ b/thousandeyes-sdk-tests/docs/Coordinates.md @@ -0,0 +1,31 @@ +# Coordinates + +Geographic coordinates for agent location. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**latitude** | **float** | The latitude of the agent location in decimal degrees | [optional] [readonly] +**longitude** | **float** | The longitude of the agent location in decimal degrees | [optional] [readonly] + +## Example + +```python +from thousandeyes_sdk.tests.models.coordinates import Coordinates + +# TODO update the JSON string below +json = "{}" +# create an instance of Coordinates from a JSON string +coordinates_instance = Coordinates.from_json(json) +# print the JSON string representation of the object +print(Coordinates.to_json()) + +# convert the object into a dict +coordinates_dict = coordinates_instance.to_dict() +# create an instance of Coordinates from a dict +coordinates_from_dict = Coordinates.from_dict(coordinates_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/thousandeyes-sdk-tests/docs/SimpleAgent.md b/thousandeyes-sdk-tests/docs/SimpleAgent.md index e3684d8e..96e486de 100644 --- a/thousandeyes-sdk-tests/docs/SimpleAgent.md +++ b/thousandeyes-sdk-tests/docs/SimpleAgent.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **agent_name** | **str** | Name of the agent. | [optional] **location** | **str** | Location of the agent. | [optional] [readonly] **country_id** | **str** | 2-digit ISO country code | [optional] [readonly] +**coordinates** | [**Coordinates**](Coordinates.md) | | [optional] **enabled** | **bool** | Flag indicating if the agent is enabled. | [optional] **prefix** | **str** | Prefix containing agents public IP address. | [optional] [readonly] **verify_ssl_certificates** | **bool** | Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests. | [optional] [readonly] diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/__init__.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/__init__.py index 85c7821e..43c5058d 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/__init__.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/__init__.py @@ -76,6 +76,7 @@ from thousandeyes_sdk.tests.models.bgp_test_request import BgpTestRequest from thousandeyes_sdk.tests.models.bgp_test_response import BgpTestResponse from thousandeyes_sdk.tests.models.bgp_tests import BgpTests from thousandeyes_sdk.tests.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType +from thousandeyes_sdk.tests.models.coordinates import Coordinates from thousandeyes_sdk.tests.models.dns_query_class import DnsQueryClass from thousandeyes_sdk.tests.models.dns_sec_instant_test import DnsSecInstantTest from thousandeyes_sdk.tests.models.dns_sec_properties import DnsSecProperties diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/__init__.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/__init__.py index 2aca74c9..c67b2ee5 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/__init__.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/__init__.py @@ -57,6 +57,7 @@ from thousandeyes_sdk.tests.models.bgp_test_request import BgpTestRequest from thousandeyes_sdk.tests.models.bgp_test_response import BgpTestResponse from thousandeyes_sdk.tests.models.bgp_tests import BgpTests from thousandeyes_sdk.tests.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType +from thousandeyes_sdk.tests.models.coordinates import Coordinates from thousandeyes_sdk.tests.models.dns_query_class import DnsQueryClass from thousandeyes_sdk.tests.models.dns_sec_instant_test import DnsSecInstantTest from thousandeyes_sdk.tests.models.dns_sec_properties import DnsSecProperties diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/agent_response.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/agent_response.py index 7ba00749..19a2585d 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/agent_response.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/agent_response.py @@ -19,6 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from thousandeyes_sdk.tests.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType +from thousandeyes_sdk.tests.models.coordinates import Coordinates from typing import Optional, Set from typing_extensions import Self @@ -33,11 +34,12 @@ class AgentResponse(BaseModel): agent_name: Optional[StrictStr] = Field(default=None, description="Name of the agent.", alias="agentName") location: Optional[StrictStr] = Field(default=None, description="Location of the agent.") country_id: Optional[StrictStr] = Field(default=None, description="2-digit ISO country code", alias="countryId") + coordinates: Optional[Coordinates] = None enabled: Optional[StrictBool] = Field(default=None, description="Flag indicating if the agent is enabled.") prefix: Optional[StrictStr] = Field(default=None, description="Prefix containing agents public IP address.") verify_ssl_certificates: Optional[StrictBool] = Field(default=None, description="Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests.", alias="verifySslCertificates") agent_type: CloudEnterpriseAgentType = Field(alias="agentType") - __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "enabled", "prefix", "verifySslCertificates", "agentType"] + __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "coordinates", "enabled", "prefix", "verifySslCertificates", "agentType"] model_config = ConfigDict( populate_by_name=True, @@ -95,6 +97,9 @@ class AgentResponse(BaseModel): exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of coordinates + if self.coordinates: + _dict['coordinates'] = self.coordinates.to_dict() return _dict @classmethod @@ -114,6 +119,7 @@ class AgentResponse(BaseModel): "agentName": obj.get("agentName"), "location": obj.get("location"), "countryId": obj.get("countryId"), + "coordinates": Coordinates.from_dict(obj["coordinates"]) if obj.get("coordinates") is not None else None, "enabled": obj.get("enabled"), "prefix": obj.get("prefix"), "verifySslCertificates": obj.get("verifySslCertificates"), diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/coordinates.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/coordinates.py new file mode 100644 index 00000000..2f139c79 --- /dev/null +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/coordinates.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Tests API + + This API allows you to list, create, edit, and delete Network and Application Synthetics tests. + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class Coordinates(BaseModel): + """ + Geographic coordinates for agent location. + """ # noqa: E501 + latitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The latitude of the agent location in decimal degrees") + longitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The longitude of the agent location in decimal degrees") + __properties: ClassVar[List[str]] = ["latitude", "longitude"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + extra="allow", + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return self.model_dump_json(by_alias=True, exclude_unset=True, exclude_none=True) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Coordinates from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "latitude", + "longitude", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Coordinates from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "latitude": obj.get("latitude"), + "longitude": obj.get("longitude") + }) + return _obj + + diff --git a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/simple_agent.py b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/simple_agent.py index 764a524e..fb173e84 100644 --- a/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/simple_agent.py +++ b/thousandeyes-sdk-tests/src/thousandeyes_sdk/tests/models/simple_agent.py @@ -18,6 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from thousandeyes_sdk.tests.models.coordinates import Coordinates from typing import Optional, Set from typing_extensions import Self @@ -32,10 +33,11 @@ class SimpleAgent(BaseModel): agent_name: Optional[StrictStr] = Field(default=None, description="Name of the agent.", alias="agentName") location: Optional[StrictStr] = Field(default=None, description="Location of the agent.") country_id: Optional[StrictStr] = Field(default=None, description="2-digit ISO country code", alias="countryId") + coordinates: Optional[Coordinates] = None enabled: Optional[StrictBool] = Field(default=None, description="Flag indicating if the agent is enabled.") prefix: Optional[StrictStr] = Field(default=None, description="Prefix containing agents public IP address.") verify_ssl_certificates: Optional[StrictBool] = Field(default=None, description="Flag indicating if has normal SSL operations or if instead it's set to ignore SSL errors on browserbot-based tests.", alias="verifySslCertificates") - __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "enabled", "prefix", "verifySslCertificates"] + __properties: ClassVar[List[str]] = ["ipAddresses", "publicIpAddresses", "network", "agentId", "agentName", "location", "countryId", "coordinates", "enabled", "prefix", "verifySslCertificates"] model_config = ConfigDict( populate_by_name=True, @@ -93,6 +95,9 @@ class SimpleAgent(BaseModel): exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of coordinates + if self.coordinates: + _dict['coordinates'] = self.coordinates.to_dict() return _dict @classmethod @@ -112,6 +117,7 @@ class SimpleAgent(BaseModel): "agentName": obj.get("agentName"), "location": obj.get("location"), "countryId": obj.get("countryId"), + "coordinates": Coordinates.from_dict(obj["coordinates"]) if obj.get("coordinates") is not None else None, "enabled": obj.get("enabled"), "prefix": obj.get("prefix"), "verifySslCertificates": obj.get("verifySslCertificates") diff --git a/thousandeyes-sdk-tests/test/test_agent_to_agent_tests_api.py b/thousandeyes-sdk-tests/test/test_agent_to_agent_tests_api.py index e944802d..d1defa65 100644 --- a/thousandeyes-sdk-tests/test/test_agent_to_agent_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_agent_to_agent_tests_api.py @@ -178,6 +178,10 @@ class TestAgentToAgentTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -190,6 +194,10 @@ class TestAgentToAgentTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -324,6 +332,10 @@ class TestAgentToAgentTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -336,6 +348,10 @@ class TestAgentToAgentTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -648,6 +664,10 @@ class TestAgentToAgentTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -660,6 +680,10 @@ class TestAgentToAgentTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-tests/test/test_agent_to_server_tests_api.py b/thousandeyes-sdk-tests/test/test_agent_to_server_tests_api.py index 676d01e1..21881048 100644 --- a/thousandeyes-sdk-tests/test/test_agent_to_server_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_agent_to_server_tests_api.py @@ -181,6 +181,10 @@ class TestAgentToServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -193,6 +197,10 @@ class TestAgentToServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -328,6 +336,10 @@ class TestAgentToServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -340,6 +352,10 @@ class TestAgentToServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -657,6 +673,10 @@ class TestAgentToServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -669,6 +689,10 @@ class TestAgentToServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-tests/test/test_api_tests_api.py b/thousandeyes-sdk-tests/test/test_api_tests_api.py index d765acb8..89b06fda 100644 --- a/thousandeyes-sdk-tests/test/test_api_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_api_tests_api.py @@ -376,6 +376,10 @@ class TestAPITestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -388,6 +392,10 @@ class TestAPITestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -615,6 +623,10 @@ class TestAPITestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -627,6 +639,10 @@ class TestAPITestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -1323,6 +1339,10 @@ class TestAPITestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -1335,6 +1355,10 @@ class TestAPITestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-tests/test/test_dns_server_tests_api.py b/thousandeyes-sdk-tests/test/test_dns_server_tests_api.py index 8c7e7ba6..ecbd2e7b 100644 --- a/thousandeyes-sdk-tests/test/test_dns_server_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_dns_server_tests_api.py @@ -187,6 +187,10 @@ class TestDNSServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -199,6 +203,10 @@ class TestDNSServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -340,6 +348,10 @@ class TestDNSServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -352,6 +364,10 @@ class TestDNSServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -686,6 +702,10 @@ class TestDNSServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -698,6 +718,10 @@ class TestDNSServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-tests/test/test_dns_trace_tests_api.py b/thousandeyes-sdk-tests/test/test_dns_trace_tests_api.py index a5f9ac92..85a716f5 100644 --- a/thousandeyes-sdk-tests/test/test_dns_trace_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_dns_trace_tests_api.py @@ -151,6 +151,10 @@ class TestDNSTraceTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -163,6 +167,10 @@ class TestDNSTraceTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -270,6 +278,10 @@ class TestDNSTraceTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -282,6 +294,10 @@ class TestDNSTraceTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -530,6 +546,10 @@ class TestDNSTraceTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -542,6 +562,10 @@ class TestDNSTraceTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-tests/test/test_dnssec_tests_api.py b/thousandeyes-sdk-tests/test/test_dnssec_tests_api.py index 8faff468..4f89ce51 100644 --- a/thousandeyes-sdk-tests/test/test_dnssec_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_dnssec_tests_api.py @@ -149,6 +149,10 @@ class TestDNSSECTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -161,6 +165,10 @@ class TestDNSSECTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -267,6 +275,10 @@ class TestDNSSECTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -279,6 +291,10 @@ class TestDNSSECTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -523,6 +539,10 @@ class TestDNSSECTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -535,6 +555,10 @@ class TestDNSSECTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-tests/test/test_ftp_server_tests_api.py b/thousandeyes-sdk-tests/test/test_ftp_server_tests_api.py index dfca025d..a49e3cea 100644 --- a/thousandeyes-sdk-tests/test/test_ftp_server_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_ftp_server_tests_api.py @@ -187,6 +187,10 @@ class TestFTPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -199,6 +203,10 @@ class TestFTPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -338,6 +346,10 @@ class TestFTPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -350,6 +362,10 @@ class TestFTPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -682,6 +698,10 @@ class TestFTPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -694,6 +714,10 @@ class TestFTPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-tests/test/test_http_server_tests_api.py b/thousandeyes-sdk-tests/test/test_http_server_tests_api.py index 0b35d872..46b990da 100644 --- a/thousandeyes-sdk-tests/test/test_http_server_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_http_server_tests_api.py @@ -298,6 +298,10 @@ class TestHTTPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -310,6 +314,10 @@ class TestHTTPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -493,6 +501,10 @@ class TestHTTPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -505,6 +517,10 @@ class TestHTTPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -1013,6 +1029,10 @@ class TestHTTPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -1025,6 +1045,10 @@ class TestHTTPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-tests/test/test_page_load_tests_api.py b/thousandeyes-sdk-tests/test/test_page_load_tests_api.py index 5955cd34..a3b521f8 100644 --- a/thousandeyes-sdk-tests/test/test_page_load_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_page_load_tests_api.py @@ -315,6 +315,10 @@ class TestPageLoadTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -327,6 +331,10 @@ class TestPageLoadTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -519,6 +527,10 @@ class TestPageLoadTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -531,6 +543,10 @@ class TestPageLoadTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -1075,6 +1091,10 @@ class TestPageLoadTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -1087,6 +1107,10 @@ class TestPageLoadTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-tests/test/test_sip_server_tests_api.py b/thousandeyes-sdk-tests/test/test_sip_server_tests_api.py index 2a02f04b..64b19e44 100644 --- a/thousandeyes-sdk-tests/test/test_sip_server_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_sip_server_tests_api.py @@ -201,6 +201,10 @@ class TestSIPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -213,6 +217,10 @@ class TestSIPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -351,6 +359,10 @@ class TestSIPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -363,6 +375,10 @@ class TestSIPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -707,6 +723,10 @@ class TestSIPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -719,6 +739,10 @@ class TestSIPServerTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-tests/test/test_voice_tests_api.py b/thousandeyes-sdk-tests/test/test_voice_tests_api.py index b8e6a22f..f34300e7 100644 --- a/thousandeyes-sdk-tests/test/test_voice_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_voice_tests_api.py @@ -182,6 +182,10 @@ class TestVoiceTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -194,6 +198,10 @@ class TestVoiceTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -324,6 +332,10 @@ class TestVoiceTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -336,6 +348,10 @@ class TestVoiceTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -646,6 +662,10 @@ class TestVoiceTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -658,6 +678,10 @@ class TestVoiceTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-tests/test/test_web_transaction_tests_api.py b/thousandeyes-sdk-tests/test/test_web_transaction_tests_api.py index dfd74bb3..b41331cd 100644 --- a/thousandeyes-sdk-tests/test/test_web_transaction_tests_api.py +++ b/thousandeyes-sdk-tests/test/test_web_transaction_tests_api.py @@ -315,6 +315,10 @@ class TestWebTransactionTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -327,6 +331,10 @@ class TestWebTransactionTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -520,6 +528,10 @@ class TestWebTransactionTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -532,6 +544,10 @@ class TestWebTransactionTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -1078,6 +1094,10 @@ class TestWebTransactionTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", @@ -1090,6 +1110,10 @@ class TestWebTransactionTestsApi(unittest.TestCase): "agentType" : "enterprise-cluster", "publicIpAddresses" : [ "192.168.1.78", "f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c" ], "prefix" : "99.128.0.0/11", + "coordinates" : { + "latitude" : 37.77493, + "longitude" : -122.41942 + }, "agentName" : "thousandeyes-stg-va-254", "ipAddresses" : [ "99.139.65.220", "9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce" ], "location" : "San Francisco Bay Area", diff --git a/thousandeyes-sdk-usage/README.md b/thousandeyes-sdk-usage/README.md index e1980926..1a8190f8 100644 --- a/thousandeyes-sdk-usage/README.md +++ b/thousandeyes-sdk-usage/README.md @@ -18,7 +18,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.66 +- API version: 7.0.67 - Generator version: 7.6.0 - Build package: com.thousandeyes.api.codegen.ThousandeyesPythonGenerator